:root{font-family:Inter,Segoe UI,Arial,sans-serif;color:#20332e;background:#f6f7f2;font-synthesis:none;--ink:#20332e;--green:#17694e;--line:#dbe1d8;--muted:#68756e}
body.booting>header,body.booting>main,body.booting>footer{visibility:hidden}
#startup-screen{display:none}
body.booting #startup-screen{position:fixed;inset:0;z-index:10000;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:16px;background:#0b1831;color:#f3f6ff;font-size:14px;font-weight:700;letter-spacing:.03em}
body.booting #startup-screen img{display:block;width:min(280px,72vw);height:auto;max-height:120px;object-fit:contain}
*{box-sizing:border-box}body{margin:0}header{height:98px;padding:0 5vw;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--line);background:#fff}.brand{color:var(--green);font-size:36px;text-decoration:none;display:flex;align-items:center;gap:12px}.brand span{font-size:24px;letter-spacing:3px;font-weight:800}.brand small{display:block;font-size:9px;letter-spacing:2px;margin-top:3px}.header-right{display:flex;align-items:center;gap:18px}main{max-width:1440px;margin:auto;padding:48px 5vw 64px}h1,h2,p{margin-top:0}h1{font-size:42px;font-weight:550;letter-spacing:-1.7px;margin-bottom:20px}h2{font-size:22px;letter-spacing:-.5px;font-weight:600}p{line-height:1.65}.eyebrow{font-size:11px;letter-spacing:2px;font-weight:700;color:var(--green);margin-bottom:18px}.muted,.footnote{color:var(--muted)}.small,.footnote{font-size:12px}.panel{background:white;border:1px solid var(--line);border-radius:14px;padding:28px;margin-bottom:24px}label{display:flex;flex-direction:column;gap:8px;font-size:13px;font-weight:600;margin-bottom:18px}input,select{font:inherit;border:1px solid #cbd4ca;border-radius:7px;background:#fff;padding:12px;color:var(--ink);min-width:0}input:focus,select:focus{outline:2px solid #7ac3a5;outline-offset:2px}button,.button{font:inherit;background:#fff;border:1px solid #cbd4ca;border-radius:7px;padding:12px 18px;cursor:pointer;color:var(--ink);text-decoration:none;font-size:13px;font-weight:600;display:inline-block}button:hover,.button:hover{background:#eef4ed}button:disabled{opacity:.5;cursor:not-allowed}.primary{background:var(--green);border-color:var(--green);color:#fff}.primary:hover{background:#12553f}.login-layout{display:grid;grid-template-columns:1.25fr 1fr;gap:8vw;align-items:center;min-height:66vh}.intro h1{font-size:clamp(40px,4.8vw,68px);line-height:1.08}.login-layout .panel{padding:38px}.login-layout button{width:100%;margin-top:8px}.sample-balls{display:flex;gap:16px;margin:32px 0}.sample-balls span{width:76px;height:76px;display:grid;place-items:center;border-radius:50%;font-size:28px;font-weight:650;background:#deeadc;box-shadow:inset -6px -8px 12px #bfd4ba}.sample-balls span:nth-child(2){background:#e6c975;box-shadow:inset -6px -8px 12px #cdb160;transform:translateY(-12px)}.sample-balls span:nth-child(3){background:#ccdcd4;box-shadow:inset -6px -8px 12px #afc6bb}.error{color:#a73030;font-size:13px;margin:14px 0 0}#notice:not(:empty){padding:14px 20px;background:#e6efdf;border:1px solid #c4d6ba;border-radius:8px}#notice.error{background:#fff0ed;border-color:#edb3a7}.page-heading,.grid-heading,.section-title{display:flex;justify-content:space-between;align-items:center;gap:24px}.page-heading{margin-bottom:30px}.page-heading h1{margin:0}.page-heading .eyebrow{margin-bottom:10px}.entry-toolbar{display:grid;grid-template-columns:1.2fr 1fr 1fr;gap:24px;align-items:center}.entry-toolbar label{margin:0}#lock-countdown{margin:8px 0 0;font-size:17px;font-weight:600}.grid-heading{margin:35px 0 24px}.grid-heading h2{margin-bottom:8px}.grid-heading p{margin:0;font-size:13px}.total{text-align:right}.total span{font-size:32px;font-weight:650}.total small{display:block;font-size:9px;letter-spacing:1.4px;color:var(--muted)}.number-grid{display:grid;grid-template-columns:repeat(10,1fr);gap:10px}.number-cell{padding:12px 8px;background:#fff;border:1px solid var(--line);border-radius:9px;text-align:center;margin:0;gap:9px;font-size:18px}.number-cell:focus-within{border-color:var(--green);background:#edf5eb}.number-cell input{width:100%;text-align:center;padding:8px 1px;font-size:13px;background:#f6f7f2;border:0}.submit-bar{display:flex;justify-content:space-between;gap:16px;align-items:center;margin:28px 0;font-size:12px}.stats{display:grid;grid-template-columns:repeat(3,1fr);gap:20px;margin-bottom:24px}.stat{padding:24px;border-radius:12px;background:#e5edde;border:1px solid #d1dfc6}.stat span{font-size:11px;letter-spacing:1px}.stat strong{display:block;font-size:32px;margin-top:12px;font-weight:550}.admin-columns{display:grid;grid-template-columns:1fr 1fr;gap:24px}.inline-form{display:flex;gap:16px;align-items:end;flex-wrap:wrap}.inline-form label{flex:1;min-width:160px}.inline-form button{margin-bottom:18px}.table-wrap{overflow:auto}table{border-collapse:collapse;width:100%;font-size:12px;text-align:left}td,th{padding:16px 12px;border-bottom:1px solid #e7eae3;vertical-align:top;max-width:400px;overflow-wrap:anywhere}th{font-size:10px;text-transform:uppercase;letter-spacing:1px;color:var(--muted)}td small{display:block;color:var(--muted);margin-top:5px}td button{padding:6px 9px;margin:0 5px 5px 0;font-size:11px}footer{padding:24px 5vw;border-top:1px solid var(--line);color:var(--muted);font-size:11px;letter-spacing:.4px}[hidden]{display:none!important}.live-page{background:#0e2923;color:#f1f7ee}.live-page header{background:transparent;border-color:#30493c}.live-page .brand{color:#dcebd6}.live-page main{max-width:1280px;text-align:center;padding-top:30px}.live-page .eyebrow{color:#b4d08b}.live-page h1{font-size:36px}.live-page canvas{width:100%;height:auto;border:1px solid #496449;border-radius:28px;background:#153a2e;max-height:540px}.live-page select{max-width:460px;width:100%;margin-bottom:22px;background:#193e30;color:#fff;border-color:#526e52}.winners{display:flex;justify-content:center;gap:45px;margin:30px}.winner span{display:grid;place-items:center;width:85px;height:85px;border:1px dashed #658764;border-radius:50%;font-size:30px;margin:0 auto 12px}.winner.revealed span{background:#e3c773;color:#283528;border:0;box-shadow:0 0 40px #d9c16b22}.winner small{font-size:10px;letter-spacing:2px;color:#c9d9b3}.live-page footer{border-color:#30493c}.live-page #live-status{color:#c9d9b3;font-size:13px}
@media(max-width:800px){header{height:80px}.login-layout{grid-template-columns:1fr;gap:30px}.intro h1{font-size:44px}.sample-balls{display:none}.number-grid{grid-template-columns:repeat(5,1fr)}.entry-toolbar,.admin-columns{grid-template-columns:1fr}.stats{gap:8px}.stat{padding:16px}.stat strong{font-size:22px}.page-heading{align-items:start}.button{max-width:135px}.submit-bar{align-items:stretch;flex-direction:column}.header-right{font-size:11px;gap:6px}.panel{padding:20px}.winners{gap:20px}.winner span{width:70px;height:70px}main{padding-top:30px}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto}}
dialog{border:1px solid var(--line);border-radius:14px;padding:30px;width:min(450px,90vw);color:var(--ink)}dialog::backdrop{background:#142a2580}dialog button{margin-right:10px}
/* Seller desktop layout: visual structure only; all ticket controls keep their original IDs and handlers. */
.nav-toggle{display:none}
body.terminal-mode{background:#0c1020;color:#f1f4ff;min-height:100vh;--ink:#eef2ff;--muted:#a8b2cc;--line:#293251}body.terminal-mode header{height:70px;padding:0 28px;background:#11172a;border-color:#293251;gap:16px;justify-content:flex-start}body.terminal-mode .brand{color:#eef2ff;font-size:26px}body.terminal-mode .brand span{font-size:17px;letter-spacing:2px}body.terminal-mode .header-right{margin-left:auto;color:#c9d2ec}body.terminal-mode main{max-width:none;width:100%;padding:20px 28px 34px}body.terminal-mode footer{display:none}body.terminal-mode #workspace>.page-heading{display:none}body.terminal-mode .nav-toggle{display:grid;place-items:center;flex:0 0 42px;width:42px;height:42px;padding:0;border:1px solid #3a4770;border-radius:11px;background:#1a2340;color:#eef2ff;font-size:21px;line-height:1}body.terminal-mode .nav-toggle:hover{background:#26345e}body.terminal-mode #logout{border-color:#3a4770;background:#18203a;color:#e5ebff}body.terminal-mode #notice:not(:empty){margin:0 0 16px;background:#1c2f50;border-color:#395787;color:#eaf2ff}body.terminal-mode #notice.error{background:#44283c;border-color:#86425d;color:#ffeaf1}
.pos-shell{display:grid;grid-template-columns:0 minmax(0,1fr);transition:grid-template-columns .24s ease}.pos-shell.nav-open{grid-template-columns:248px minmax(0,1fr)}.pos-sidebar{min-width:0;overflow:hidden;transition:padding .24s ease}.pos-sidebar-inner{width:228px;min-height:calc(100vh - 124px);padding:19px 12px;background:#121a30;border:1px solid #2a3659;border-radius:16px;opacity:0;transform:translateX(-18px);transition:opacity .18s ease,transform .24s ease}.nav-open .pos-sidebar{padding-right:20px}.nav-open .pos-sidebar-inner{opacity:1;transform:translateX(0)}.pos-sidebar .eyebrow{margin:10px 10px 18px;color:#7f90c6}.pos-nav-link{display:block;width:100%;margin:4px 0;padding:12px;border:0;border-radius:9px;background:transparent;color:#b9c4e4;font:600 13px/1.3 Inter,Segoe UI,Arial,sans-serif;text-align:left;text-decoration:none;cursor:pointer}.pos-nav-link:hover,.pos-nav-link.active{background:#26345d;color:#fff}.pos-workspace{min-width:0}.pos-workspace-heading{display:flex;align-items:center;justify-content:space-between;gap:20px;margin:3px 0 18px}.pos-workspace-heading .eyebrow{margin:0 0 6px;color:#899bd1}.pos-workspace-heading h2{margin:0;color:#f7f8ff;font-size:26px}.pos-live-link{border-color:#3d4e7c;background:#18213b;color:#dce5ff}.pos-live-link:hover{background:#26345e}
.draw-strip{margin-bottom:16px;padding:15px 17px 17px;border:1px solid #303d66;border-radius:15px;background:#131b31}.draw-strip-heading{display:flex;align-items:center;justify-content:space-between;gap:14px;margin-bottom:12px;color:#edf1ff;font-size:13px;font-weight:700}.draw-strip-heading small{color:#93a1c7;font-size:11px;font-weight:500}.draw-cards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.draw-card{min-width:0;padding:13px 15px;border:1px solid #334266;border-radius:11px;background:#19223d;color:#eaf0ff;text-align:left}.draw-card:hover:not(:disabled){background:#22305a;border-color:#5f76d4}.draw-card.selected{border-color:#8b5cf6;background:linear-gradient(135deg,#31215d,#1b2b55);box-shadow:0 0 0 1px #8b5cf688}.draw-card:disabled{opacity:.58;cursor:not-allowed}.draw-card-name,.draw-card small{display:block;color:#aeb9d7;font-size:10px;letter-spacing:.8px;text-transform:uppercase}.draw-card strong{display:block;margin:6px 0 4px;color:#fff;font-size:18px;letter-spacing:-.3px}.draw-empty{margin:4px 0;color:#aab5d1;font-size:13px}.terminal-mode .panel,.terminal-mode .pos-number-panel{background:#131b31;border-color:#303d66;box-shadow:0 8px 22px #05081733}.terminal-mode .entry-toolbar{grid-template-columns:minmax(180px,.9fr) minmax(220px,1.5fr) minmax(160px,.7fr);gap:18px;padding:19px;margin-bottom:16px}.terminal-mode label{color:#c8d2ed}.terminal-mode input,.terminal-mode select{border-color:#37466e;background:#0f162b;color:#f2f5ff}.terminal-mode input:focus,.terminal-mode select:focus{outline-color:#8b5cf6}.terminal-mode .lock-state{padding:8px 0}.terminal-mode #lock-countdown{margin:7px 0 0;color:#f5f7ff;font-size:18px}.pos-number-panel{padding:20px;border:1px solid;border-radius:15px}.terminal-mode .grid-heading{margin:0 0 17px}.terminal-mode .grid-heading h2{color:#f6f7ff}.terminal-mode .grid-heading p{color:#aab5d1}.terminal-mode .total span{color:#a78bfa}.terminal-mode .total small{color:#9eabd0}.terminal-mode .number-grid{grid-template-columns:repeat(10,minmax(0,1fr));gap:8px}.terminal-mode .number-cell{padding:10px 6px;border-color:#344164;background:#18213a;color:#eaf0ff;font-size:16px}.terminal-mode .number-cell:focus-within{border-color:#8b5cf6;background:#24204a;box-shadow:0 0 0 1px #8b5cf655}.terminal-mode .number-cell input{margin-top:6px;border:1px solid #303c5f;border-radius:6px;background:#0e1428;color:#fff}.terminal-mode .submit-bar{margin:16px 0 0;padding:14px 16px;border:1px solid #303d66;border-radius:13px;background:#131b31}.terminal-mode .submit-bar .muted{color:#a8b4d1}.terminal-mode .primary{border-color:#7357d8;background:linear-gradient(135deg,#7651dc,#386ee4);box-shadow:0 7px 16px #5326a944}.terminal-mode .primary:hover{background:linear-gradient(135deg,#865ff0,#4d7df0)}.terminal-mode #receipt h2{color:#fff}
@media(max-width:900px){body.terminal-mode main{padding:16px}.pos-shell.nav-open{grid-template-columns:0 minmax(0,1fr)}.pos-sidebar{position:fixed;z-index:10;top:86px;bottom:16px;left:16px;width:248px;pointer-events:none}.nav-open .pos-sidebar{padding:0;pointer-events:auto}.pos-sidebar-inner{min-height:100%;box-shadow:0 20px 50px #0008}.terminal-mode .entry-toolbar{grid-template-columns:1fr}.draw-cards{grid-template-columns:1fr}.terminal-mode .number-grid{grid-template-columns:repeat(5,minmax(0,1fr))}.pos-live-link{display:none}}
/* Compact desktop POS proportions. Existing controls and event handlers remain unchanged. */
body.terminal-mode main{padding:12px 20px 20px}.pos-workspace-heading{margin:0 0 8px}.pos-workspace-heading .eyebrow{margin-bottom:2px}.pos-workspace-heading h2{font-size:21px}.draw-strip{margin-bottom:7px;padding:9px 12px 11px;border-radius:10px}.draw-strip-heading{margin-bottom:7px;font-size:12px}.draw-strip-heading small{font-size:10px}.draw-cards{gap:8px}.draw-card{padding:8px 12px;border-radius:8px}.draw-card-name,.draw-card small{font-size:9px}.draw-card strong{margin:3px 0;font-size:16px}.pos-action-row{display:flex;align-items:center;gap:8px;margin-bottom:7px;padding:8px 10px;border:1px solid #303d66;border-radius:10px;background:#131b31}.pos-action-row button,.pos-action-row .button{padding:8px 11px;border-radius:7px;font-size:12px}.pos-action-link{border-color:#3d4e7c!important;background:#18213b!important;color:#dce5ff!important}.pos-action-link:hover{background:#26345e!important}.pos-action-spacer{flex:1}.terminal-mode .entry-toolbar{grid-template-columns:minmax(150px,.85fr) minmax(220px,1.45fr) minmax(150px,.7fr);gap:14px;padding:13px 15px;margin-bottom:7px;border-radius:10px}.terminal-mode .entry-toolbar label{gap:5px;margin:0;font-size:11px}.terminal-mode .lock-state{padding:3px 0}.terminal-mode #lock-countdown{margin:4px 0 0;font-size:15px}.pos-ticket-workspace{display:grid;grid-template-columns:minmax(0,1fr) minmax(240px,27%);gap:8px}.pos-number-panel{padding:14px;border-radius:11px}.terminal-mode .grid-heading{margin:0 0 11px}.terminal-mode .grid-heading h2{font-size:18px}.terminal-mode .grid-heading p{font-size:11px}.terminal-mode .total span{font-size:25px}.terminal-mode .number-grid{gap:6px}.terminal-mode .number-cell{padding:7px 5px;font-size:14px}.terminal-mode .number-cell input{margin-top:4px;border-radius:5px;font-size:12px}.pos-ticket-information{min-width:0;padding:15px;border:1px solid #303d66;border-radius:11px;background:#131b31;box-shadow:0 8px 22px #05081733}.pos-ticket-information .eyebrow{margin:0 0 10px;color:#899bd1}.ticket-information-empty{margin:0;color:#aeb9d7;font-size:12px;line-height:1.55}.pos-ticket-information #receipt{margin:0;padding:0;border:0;background:transparent;box-shadow:none}.terminal-mode #receipt h2{margin-bottom:8px;font-size:17px}.terminal-mode #receipt p{font-size:12px;overflow-wrap:anywhere}
.draw-card-empty{border-style:dashed;color:#8190b5;cursor:default}.draw-card-empty strong{color:#aeb8d2}.draw-card-empty:hover{background:#19223d;border-color:#334266}
@media(max-width:900px){.terminal-mode .entry-toolbar,.pos-ticket-workspace{grid-template-columns:1fr}.pos-action-spacer{display:none}.pos-action-row{flex-wrap:wrap}.pos-action-row .primary{margin-left:auto}}

/* Reference-matched desktop seller surface. */
body.terminal-mode{overflow:hidden;background:radial-gradient(circle at 45% 0,#07365e 0,#041c37 44%,#03152b 100%);color:#f4f8ff}
body.terminal-mode header{height:60px;padding:0 18px;border-bottom:1px solid #1671a8;background:#041a34;box-shadow:0 4px 18px #0007}
body.terminal-mode .nav-toggle{width:40px;height:40px;flex-basis:40px;border:0;border-radius:7px;background:linear-gradient(145deg,#5f14e8,#2925a6);box-shadow:0 0 18px #6a21ff88;font-size:24px}
body.terminal-mode .brand{gap:10px;font-size:23px}body.terminal-mode .brand span{font-size:18px;letter-spacing:.4px}body.terminal-mode .brand small{display:none}
.terminal-status{display:flex;flex-direction:column;margin-left:auto;padding-right:18px;text-align:right;font-size:9px;color:#9db4d1;letter-spacing:1px}.terminal-status strong{margin-top:2px;color:#fff;font-size:15px;letter-spacing:0}
body.terminal-mode .header-right{margin-left:0;gap:9px}body.terminal-mode #identity{min-width:128px;padding:10px 15px;border:1px solid #18568a;border-radius:7px;background:#0a3764;color:#fff;font-weight:700;text-transform:capitalize}body.terminal-mode #logout{padding:10px 13px;border-color:#18568a;background:#092e54}
body.terminal-mode main{height:calc(100vh - 60px);padding:0;overflow:hidden}.pos-shell{height:100%}.pos-shell.nav-open{grid-template-columns:224px minmax(0,1fr)}
.pos-sidebar{background:#03172e}.pos-sidebar-inner{width:224px;min-height:100%;padding:16px 10px;border:0;border-right:1px solid #176393;border-radius:0;background:linear-gradient(#061d39,#03172d)}.nav-open .pos-sidebar{padding-right:0}.pos-nav-link{padding:13px 12px;color:#d5e4f8}.pos-nav-link.active{background:linear-gradient(90deg,#6513e8,#3415b4);box-shadow:0 0 16px #5619dc55}
.pos-workspace{height:100%;padding:6px 13px 0;overflow:hidden}.pos-workspace form{height:100%;display:grid;grid-template-rows:61px 44px 58px minmax(0,1fr) 31px;gap:6px}
.draw-strip{display:grid;grid-template-columns:minmax(190px,.9fr) repeat(3,minmax(145px,1fr)) minmax(210px,1.25fr);gap:8px;margin:0;padding:0;border:0;background:transparent}
.game-card,.network-card,.draw-card{height:61px;border:1px solid #1f6399;border-radius:7px;background:linear-gradient(145deg,#0d4776,#0a315a);color:#fff}
.game-card{display:flex;align-items:center;gap:13px;padding:8px 16px;background:linear-gradient(145deg,#6b12e8,#290ca5)}.game-symbol{font-size:32px}.game-card span:last-child{display:flex;flex-direction:column}.game-card strong{font-size:16px}.game-card small{font-size:11px}
.draw-cards{display:contents}.draw-card{padding:6px 10px;text-align:center}.draw-card:first-child{background:linear-gradient(145deg,#42ccf4,#229ad8);color:#032442;box-shadow:0 0 13px #2ac6f177}.draw-card:first-child .draw-card-name,.draw-card:first-child small,.draw-card:first-child strong{color:#032442}.draw-card strong{margin:2px 0;font-size:14px}.draw-card-name,.draw-card small{font-size:9px}.draw-card-empty{opacity:1;border-style:solid}.draw-card-empty:hover{background:linear-gradient(145deg,#0d4776,#0a315a)}
.network-card{display:flex;justify-content:center;flex-direction:column;padding:7px 14px;background:linear-gradient(145deg,#291668,#10194d)}.network-card>span{color:#77b8ef;font-size:8px;letter-spacing:1.3px}.network-card strong{font-size:14px}.network-card small{color:#b8cae2;font-size:10px}
.pos-action-row{height:44px;margin:0;padding:4px 7px;gap:8px;border:1px solid #155887;border-radius:6px;background:#061d38}.pos-action-row button,.pos-action-row .button{height:34px;min-width:128px;padding:7px 14px;border:0;border-radius:5px;color:#fff;text-align:center;font-size:11px;font-weight:800}.action-green{background:linear-gradient(#20d8a4,#0cb879)!important}.action-amber{background:linear-gradient(#ffba24,#ed8e05)!important}.action-purple{background:linear-gradient(145deg,#7d0aff,#4c0fd5)!important}.action-pay{background:linear-gradient(#1bd9a5,#08b77d)!important;box-shadow:none!important}.compact-player{display:flex!important;align-items:center!important;flex-direction:row!important;gap:7px!important;margin:0!important;color:#9cb4d0!important;font-size:9px!important}.compact-player input{width:125px;height:32px;padding:6px 9px}
.terminal-mode .entry-toolbar{display:grid;grid-template-columns:minmax(220px,1.15fr) minmax(180px,.72fr) minmax(210px,1fr);gap:10px;margin:0;padding:0;border:0;background:transparent}.terminal-mode .entry-toolbar label{gap:3px;margin:0;color:#c5d9ee;font-size:9px;font-weight:800}.terminal-mode .entry-toolbar input{height:40px;padding:7px 13px;border:1px solid #2182c1;border-radius:5px;background:#062440;color:#fff;font-size:18px}.terminal-mode .entry-toolbar select{position:absolute;width:1px;height:1px;opacity:0;pointer-events:none}.entry-icon,.entry-step{align-self:end;height:40px;padding:0;border:1px solid #247ab2;border-radius:5px;background:#0b4577;color:#fff}.entry-step{font-size:10px;font-weight:800}.availability{height:50px;align-self:start;display:flex;align-items:center;justify-content:center;flex-direction:column;border:1px solid #2182c1;border-radius:6px;background:#051d35;box-shadow:inset 0 0 18px #0b4e7c33}.availability span{color:#91a9c5;font-size:9px;font-weight:900;letter-spacing:1px}.availability strong{color:#1edaae;font-size:21px;line-height:1.05;font-variant-numeric:tabular-nums}.availability small{color:#a9bfd6;font-size:9px;line-height:1.1}
.pos-ticket-workspace{min-height:0;display:grid;grid-template-columns:minmax(0,1.65fr) minmax(310px,1fr);gap:7px}.pos-number-panel,.pos-ticket-information{min-height:0;padding:0;border:1px solid #1e72a7;border-radius:6px;background:#052544;box-shadow:none;overflow:hidden}.pos-number-panel{display:flex;flex-direction:column}.ticket-table-title{height:34px;display:flex;align-items:center;gap:10px;padding:0 11px;background:linear-gradient(90deg,#142bcc,#5711d2);font-size:10px}.ticket-table-title>span{color:#d5e4fb}.ticket-summary{margin-left:auto}.table-scroll{height:auto;min-height:0;flex:1;overflow:auto;background:#f7f9fc}.pos-table{color:#092c4b;font-size:12px}.pos-table th{height:30px;padding:7px 12px;border-color:#c5d6e7;background:#dfe9f3;color:#123656;text-align:center}.pos-table td{padding:8px 12px;border-color:#d8e2ec;text-align:center}.empty-ticket td{height:180px;color:#37556f}.empty-ticket strong,.empty-ticket span,.ticket-information-empty strong,.ticket-information-empty span{display:block}.empty-ticket strong{font-size:15px}.empty-ticket span{margin-top:6px}.line-remove{padding:4px 8px;border:0;background:transparent;color:#d23d4d;font-size:18px;line-height:1}.direct-ticket-title{position:relative;justify-content:center;background:linear-gradient(90deg,#0d597f,#117a9c)!important;color:#fff;font-size:15px;font-weight:900}.table-clear{position:absolute;right:10px;display:grid;place-items:center;width:28px;height:28px;padding:0;border:0;background:transparent;color:#fff;font-size:17px}.direct-ticket-table th{height:38px;background:#123f62;color:#dff2ff;font-size:12px}.direct-ticket-table th:first-child,.direct-ticket-table td:first-child{width:30%;text-align:left}.direct-ticket-table th:nth-child(2),.direct-ticket-table td:nth-child(2){width:25%}.direct-ticket-table th:nth-child(3),.direct-ticket-table td:nth-child(3){width:25%}.direct-ticket-table th:last-child,.direct-ticket-table td:last-child{width:20%}.direct-ticket-table td{padding:7px 12px;font-size:16px;font-variant-numeric:tabular-nums}.direct-ticket-table .repeated-play td{background:#a83e50;color:#fff;border-color:#8e3242}.direct-ticket-table .repeated-play .line-remove{color:#fff}.ticket-total-bar{display:flex;align-items:center;justify-content:center;min-height:50px;border-top:1px solid #1a4870;background:#102d4d;color:#fff;font-size:20px;font-weight:900;letter-spacing:.03em}.ticket-total-bar b{margin-left:6px;color:#69e1b4;font-variant-numeric:tabular-nums}
.pos-ticket-information{background:#052a4b}.pos-ticket-information .ticket-table-title{background:linear-gradient(#0d4d7f,#0a3a68)}.ticket-information-empty{display:grid;place-items:center;align-content:center;height:calc(100% - 34px);padding:20px;color:#adc4dc;text-align:center;font-size:12px}.ticket-information-empty strong{margin-bottom:6px;color:#eef6ff}.pos-ticket-information #receipt{margin:15px;padding:14px!important;border:1px solid #246d9d;background:#082f52!important}.pos-ticket-information #receipt h2{font-size:16px}
.pos-footer{height:31px;display:flex;align-items:center;gap:8px;padding:0 4px;border-top:1px solid #18577f;color:#c1d4e9;font-size:9px}.ready-dot{width:13px;height:13px;border-radius:50%;background:#1be07a;box-shadow:0 0 9px #1be07a}.shortcut-help{margin-left:auto}.pos-footer span:last-child{margin-left:18px}.terminal-mode #notice:not(:empty){position:fixed;z-index:20;left:50%;bottom:39px;transform:translateX(-50%);margin:0;padding:8px 18px}
@media(max-width:1100px){.network-card{display:none}.draw-strip{grid-template-columns:minmax(170px,.85fr) repeat(3,1fr)}.compact-player{display:none!important}.pos-ticket-workspace{grid-template-columns:minmax(0,1.5fr) minmax(270px,.8fr)}}
@media(max-width:800px){body.terminal-mode{overflow:auto}body.terminal-mode main{height:auto;overflow:visible}.pos-workspace form{display:block}.draw-strip{grid-template-columns:1fr}.draw-cards{display:grid;grid-template-columns:repeat(3,1fr)}.game-card{display:none}.terminal-mode .entry-toolbar,.pos-ticket-workspace{grid-template-columns:1fr}.terminal-mode .entry-toolbar{height:auto}.entry-icon,.entry-step,.availability{height:40px}.pos-action-row{height:auto;flex-wrap:wrap}.pos-ticket-workspace{margin-top:8px}.pos-number-panel,.pos-ticket-information{min-height:260px}.pos-footer{margin-top:8px}}
.action-blue{background:linear-gradient(#237fc0,#15588e)!important}
.pos-action-row .pos-icon-action{display:grid;place-items:center;width:40px;min-width:40px;padding:0!important;font-size:19px;line-height:1}.pos-action-row .pos-icon-action b{font:inherit}.pos-action-row .pos-icon-action .icon-state{width:7px;height:7px;margin:0;border-radius:50%;background:#7d8ca8;font-size:0}.pos-action-row .multi-lottery.active .icon-state{background:#19c896;box-shadow:0 0 7px #19c896}.visually-hidden{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important}
.pair-dialog{width:min(420px,90vw);padding:24px;border:1px solid #247ab2;border-radius:10px;background:#071f3a;color:#f4f8ff;box-shadow:0 24px 80px #000a}.pair-dialog::backdrop{background:#010917c7}.pair-dialog .eyebrow{margin-bottom:8px;color:#53bdf0}.pair-dialog h2{margin-bottom:8px}.pair-dialog label{color:#c7d9ee}.pair-dialog input{background:#06162d;border-color:#2d76aa;color:#fff}.dialog-actions{display:flex;justify-content:flex-end;gap:9px}.pair-dialog button{border-color:#2d6590;background:#0a3158;color:#fff}.pair-dialog .primary{border-color:#0fbd83;background:#0fbd83}
body.terminal-mode header{position:relative}body.terminal-mode #identity{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);min-width:150px;text-align:center;font-size:15px}body.terminal-mode #logout{display:none!important}body.terminal-mode .terminal-status{margin-left:auto}body.terminal-mode .header-right{margin-left:0}
body.terminal-mode #identity{min-width:0;padding:0;border:0;background:transparent;box-shadow:none;font-size:16px;letter-spacing:.5px}.terminal-status{flex-direction:row;align-items:center;gap:12px;padding-right:0}.terminal-status>div{display:flex;flex-direction:column}.header-live{padding:8px 11px;border:1px solid #1d6596;border-radius:5px;background:#0b3c69;color:#eaf5ff;text-decoration:none;font-size:9px;font-weight:800}.header-live:hover{background:#105187}
.multi-lottery{background:#0b3d6a!important}.multi-lottery span{display:inline-block;margin-left:7px;padding:2px 5px;border-radius:8px;background:#365f83;font-size:8px}.multi-lottery.active{background:linear-gradient(145deg,#6c15e3,#3016aa)!important;box-shadow:0 0 12px #5d21dc77}.multi-lottery.active span{background:#19c896;color:#042c21}
.ticket-info-values{display:grid;grid-template-columns:1fr;gap:10px;padding:14px}.ticket-info-values>div{padding:14px;border:1px solid #1f638f;border-radius:6px;background:#06213c}.ticket-info-values span{display:block;margin-bottom:7px;color:#91abc6;font-size:9px;letter-spacing:1px}.ticket-info-values strong{display:block;color:#fff;font-size:18px;overflow-wrap:anywhere}

/* Recent tickets occupy the former information panel and stay aligned with the current-entry table. */
.recent-ticket-panel{display:flex;min-width:0;flex-direction:column}.recent-ticket-panel .ticket-table-title{flex:0 0 auto}.recent-tickets{min-height:0;flex:1;overflow:auto;padding:10px;background:#052a4b}.recent-ticket-empty{display:grid;min-height:160px;margin:0;place-items:center;color:#a9c0d8;text-align:center}.recent-ticket-row{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:12px;padding:12px;border:1px solid #226891;border-radius:8px;background:#082f52;color:#eaf5ff}.recent-ticket-top{display:flex;align-items:center;justify-content:space-between;gap:10px}.recent-ticket-top strong{font-size:18px;letter-spacing:.06em}.recent-ticket-top b{color:#75edbe;font-size:16px;white-space:nowrap}.recent-ticket-actions{display:flex;align-items:center;justify-content:flex-end;gap:6px}.recent-ticket-actions button{width:34px;height:34px;min-height:34px;padding:0;border:1px solid #3a85b8;border-radius:7px;background:#135787;color:#fff;font-size:15px;font-weight:800}.recent-ticket-actions button:hover:not(:disabled){background:#1b70aa}.recent-ticket-actions button:disabled{border-color:#294c67;background:#16324a;color:#718da4;opacity:.72}.recent-ticket-more{margin-top:9px}.recent-ticket-more>summary{padding:10px;border:1px solid #226891;border-radius:7px;background:#0a3b64;color:#e8f4ff;cursor:pointer;font-weight:800;text-align:center}.recent-ticket-more[open]>summary{margin-bottom:8px}.recent-ticket-list{display:grid;gap:8px}.temporary-credentials{display:grid;grid-template-columns:auto 1fr;gap:10px 18px;margin:18px 0;padding:16px;border:1px solid #355985;border-radius:10px;background:#081b33}.temporary-credentials span{color:#9eb1cb}.temporary-credentials strong{font-size:20px;letter-spacing:.06em;user-select:all}
.recent-ticket-identity{display:grid;gap:2px;min-width:0}.recent-ticket-time{color:#607089;font-size:12px;font-weight:700;white-space:nowrap;font-variant-numeric:tabular-nums}
@media(min-width:801px){.compact-player{display:flex!important}}
.draw-card.selected{border-color:#c29aff;background:linear-gradient(145deg,#7720e5,#3815a9);box-shadow:0 0 13px #7437e899}.draw-card.selected .draw-card-name,.draw-card.selected strong,.draw-card.selected small{color:#fff}
.label-editor{display:grid;gap:8px}.label-row{display:grid;grid-template-columns:minmax(180px,.8fr) minmax(240px,1.5fr) auto auto;gap:9px;align-items:center;padding:10px 0;border-bottom:1px solid var(--line)}.label-copy strong{display:block;text-transform:capitalize}.label-copy small{display:block;margin-top:4px;color:var(--muted)}.label-row input{width:100%}.label-row button{white-space:nowrap}@media(max-width:800px){.label-row{grid-template-columns:1fr}.label-row button{width:100%}}
.wording-panel{overflow:hidden}.wording-tabs{display:flex;gap:8px;margin:20px 0 10px;flex-wrap:wrap}.wording-tabs button.active{border-color:#9475ff!important;background:#5635b0!important}.wording-layout-tools{display:flex;align-items:center;justify-content:flex-end;gap:8px;margin-bottom:14px}.wording-layout-tools span{margin-right:auto}.wording-layout{display:grid;grid-template-columns:minmax(0,1.65fr) minmax(260px,.65fr);gap:18px;align-items:start}.wording-preview{min-height:540px;padding:18px;border:1px solid #334b6b;border-radius:12px;background:#071426}.wording-inspector{position:sticky;top:18px;padding:20px;border:1px solid #3b5272;border-radius:12px;background:#0a172b}.wording-inspector h3{margin-bottom:8px}.wording-inspector label{margin:18px 0 0}.wording-inspector input{font-size:17px}.wording-current{color:#b9c9dc;font-size:13px;overflow-wrap:anywhere}.wording-target{display:inline-block!important;width:auto!important;min-width:0!important;margin:0!important;padding:3px 6px!important;border:1px dashed #62cbe777!important;border-radius:5px!important;background:#45b8dc14!important;color:inherit!important;text-align:inherit!important;font:inherit!important;line-height:inherit!important;box-shadow:none!important;white-space:normal!important}.wording-target:hover,.wording-target.selected{border-color:#ffe16c!important;background:#ffe16c22!important;outline:2px solid #ffe16c55}.wording-target[draggable=true]{cursor:grab}.wording-target.dragging{opacity:.45;cursor:grabbing}.wording-page{min-height:500px;border-radius:9px;overflow:hidden}.wording-seller{position:relative;padding:14px 14px 14px 174px;background:#0b1a30;color:#eef5ff}.wording-seller-header{display:grid;grid-template-columns:1fr auto 1fr;align-items:center;padding:8px 10px}.wording-logo-text{font-size:25px!important;font-weight:900!important}.wording-clock{justify-self:end}.wording-preview-menu{position:absolute;left:12px;top:16px;bottom:16px;width:148px;display:flex;flex-direction:column;gap:6px;padding:11px 8px;border:1px solid #2c4968;border-radius:8px;background:#071426}.wording-preview-menu .wording-target{display:block!important;width:100%!important;padding:9px 7px!important;text-align:left!important;font-size:11px!important}.wording-menu-title{margin-bottom:8px!important;color:#a999ec!important;font-size:10px!important;font-weight:900!important;text-transform:uppercase}.wording-draws{display:grid;grid-template-columns:repeat(4,1fr);gap:7px;margin:11px 0}.wording-draw{display:grid;gap:5px;padding:12px 7px;border:1px solid #6351c9;border-radius:7px;background:linear-gradient(135deg,#4424a5,#273b80);text-align:center}.wording-draw strong{font-size:13px}.wording-actions{display:grid;grid-template-columns:repeat(auto-fit,minmax(78px,1fr));gap:6px;margin-bottom:10px}.wording-actions>*{padding:10px 6px!important;background:#164b7d!important;text-align:center!important;font-size:11px!important}.wording-actions .wording-create{background:#16865e!important}.wording-fields{display:grid;grid-template-columns:1.2fr 1fr;gap:8px}.wording-fields>*{height:52px;padding:14px!important;border:1px solid #2584bf!important;background:#061d34!important;color:#91a7c0!important;font-size:19px!important}.wording-panels{display:grid;grid-template-columns:1.4fr .8fr;gap:8px;margin-top:10px}.wording-panels>div{min-height:230px;padding:12px;border:1px solid #2e4f71;border-radius:7px;background:#10243e}.wording-panels>div>p{white-space:pre-line}.wording-panels .wording-target{display:block!important;margin-bottom:9px!important}.wording-small-action{float:right!important}.wording-instructions{display:block!important;margin-top:10px!important;text-align:center!important;color:#aabbd0!important;font-size:11px!important}.wording-live{display:grid;justify-items:center;align-content:start;gap:10px;padding:24px;background:radial-gradient(circle at 50% 35%,#153c72,#071328 68%);color:#fff;text-align:center}.wording-live-logo{font-size:31px!important;font-weight:950!important}.wording-live-badge{justify-self:end;color:#ff5a68!important}.wording-live-kicker{color:#9fc4e8!important;font-size:12px!important;text-transform:uppercase}.wording-live-title{font-size:27px!important;font-weight:900!important}.wording-live-game{font-size:20px!important;color:#ffe276!important}.wording-live-results{display:grid;grid-template-columns:repeat(3,1fr);gap:18px;width:100%;margin-top:22px;padding:18px;border-top:1px solid #48678a}.wording-results-title{grid-column:1/-1;justify-self:center}.wording-live-results>div{display:grid;justify-items:center;gap:9px}.wording-sample-ball{display:grid;width:70px;height:70px;place-items:center;border-radius:50%;background:radial-gradient(circle at 30% 25%,#fff5a5,#f0b72d 45%,#87520c);box-shadow:inset -8px -9px 12px #0005;color:#111;font-size:24px}.wording-receipt{display:grid;place-items:center;padding:22px;background:#14243b}.wording-paper{width:min(330px,100%);min-height:450px;padding:28px;background:#fff;color:#111;text-align:center;font-family:monospace;box-shadow:0 12px 35px #0008}.wording-paper>*{display:block;margin:10px auto}.wording-receipt-logo{font-family:Arial,sans-serif!important;font-size:27px!important;font-weight:900!important}.wording-paper p{white-space:pre-line;text-align:left}.wording-paper hr{border:0;border-top:1px dashed #333}.wording-admin-preview{display:grid;grid-template-columns:190px 1fr;background:#0b1427;color:#fff}.wording-admin-menu{display:flex;flex-direction:column;gap:5px;padding:16px 10px;background:#080f20}.wording-admin-menu .wording-target{display:block!important;width:100%!important;padding:9px!important;text-align:left!important;font-size:11px!important}.wording-admin-content{padding:24px}.wording-admin-title{font-size:27px!important;font-weight:900!important}.wording-admin-card{margin-top:16px;padding:24px;border:1px solid #304561;border-radius:9px;background:#152139;color:#dbe5f2}@media(max-width:900px){.wording-layout{grid-template-columns:1fr}.wording-inspector{position:static}.wording-preview{min-height:0}}@media(max-width:700px){.wording-layout-tools{align-items:stretch;flex-direction:column}.wording-seller{padding-left:14px;padding-top:240px}.wording-preview-menu{right:12px;width:auto;height:214px;bottom:auto}.wording-draws{grid-template-columns:1fr 1fr}.wording-panels{grid-template-columns:1fr}.wording-live-results{gap:7px}.wording-sample-ball{width:55px;height:55px}.wording-page{min-height:440px}.wording-admin-preview{grid-template-columns:1fr}.wording-admin-menu{display:grid;grid-template-columns:1fr 1fr}}
.live-page{min-height:100vh;background:radial-gradient(circle at 50% -10%,#124b75 0,#061d35 38%,#020b17 100%);color:#edf8ff}.live-page header{height:72px;padding:0 3vw;background:#04152aee;border-color:#27638b;backdrop-filter:blur(16px)}.live-page .brand{color:#effaff}.live-page .brand b{font-size:19px}.live-page .button{max-width:none;border-color:#2e719d;background:#0a3154;color:#e8f6ff}.live-page .live-main{max-width:1500px;padding:24px 3vw 34px;text-align:left}.live-heading{display:flex;align-items:end;justify-content:space-between;gap:30px;margin-bottom:14px}.live-heading .eyebrow{margin-bottom:6px;color:#6fd9ff}.live-heading h1{margin:0;font-size:clamp(28px,3vw,44px)}.live-controls{width:min(440px,45vw);text-align:right}.live-controls label{display:grid;grid-template-columns:auto minmax(180px,1fr);align-items:center;gap:10px;margin:0;color:#a9c5da;font-size:10px;letter-spacing:1px}.live-page #live-session{width:100%;margin:0;padding:9px 11px;border-color:#28658e;border-radius:6px;background:#082641}.live-page #live-status{min-height:18px;margin:7px 0 0;color:#b9d7e9;font-size:11px;line-height:1.4}.draw-stage{position:relative;overflow:hidden;border:1px solid #2a78a9;border-radius:20px;background:#020b17;box-shadow:0 24px 70px #0008,0 0 40px #28a8ef18}.live-page #machine{display:block;width:100%;height:auto;max-height:none;border:0;border-radius:0;background:transparent}.stage-caption{position:absolute;left:18px;bottom:15px;display:flex;align-items:center;gap:8px;padding:7px 11px;border:1px solid #2b638d;border-radius:20px;background:#041a30d9;color:#bcd5e6;font-size:9px;letter-spacing:.8px;backdrop-filter:blur(10px)}.stage-caption strong{color:#effaff}.live-light{width:9px;height:9px;border-radius:50%;background:#1de68c;box-shadow:0 0 12px #1de68c}.result-board{margin-top:14px;padding:13px 16px 16px;border:1px solid #245d84;border-radius:14px;background:linear-gradient(145deg,#071d34dd,#061528dd);box-shadow:0 18px 45px #0005}.result-board h2{margin:0 0 10px;color:#a8c8dd;font-size:10px;letter-spacing:1.8px;text-transform:uppercase}.live-page .winners{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin:0}.live-page .winner{position:relative;display:grid;grid-template-columns:auto 1fr;align-items:center;gap:14px;min-height:82px;padding:12px 18px;border:1px solid #245c84;border-radius:11px;background:#092440;color:#fff}.live-page .winner small{grid-column:1;color:#8eabc0;font-size:9px;letter-spacing:1.4px}.live-page .winner span{grid-column:2;grid-row:1;width:58px;height:58px;margin:0 0 0 auto;border:1px solid #3b7197;background:#05182c;color:#7693a8;font-size:24px;box-shadow:inset 0 0 16px #0005}.live-page .winner.presenting{border-color:#3bb5ef;box-shadow:0 0 20px #27a9eb33}.live-page .winner.revealed{border-color:#c5a248;background:linear-gradient(145deg,#173d5b,#302c47)}.live-page .winner.revealed span{border:0;background:radial-gradient(circle at 35% 25%,#fff9cf,#e3bc4d 62%,#8f6411);color:#15253b;box-shadow:0 0 24px #ffd65d66,inset -5px -7px 10px #8f641144}.live-page footer{text-align:center;border-color:#174668;color:#7694aa}.live-fallback .draw-stage{display:none}@media(max-width:800px){.live-heading{align-items:stretch;flex-direction:column}.live-controls{width:100%;text-align:left}.live-page .winners{grid-template-columns:1fr}.stage-caption{display:none}}@media(prefers-reduced-motion:reduce){.live-page .live-light{box-shadow:none}.live-page .winner{transition:none}}
.draw-stage .result-board{position:absolute;right:16px;bottom:16px;width:360px;margin:0;padding:12px;background:linear-gradient(145deg,#071d34ee,#061528ee);box-shadow:0 18px 45px #0008;backdrop-filter:blur(12px)}.draw-stage .result-board h2{margin-bottom:8px;font-size:9px}.draw-stage .winners{grid-template-columns:1fr;gap:7px}.draw-stage .winner{grid-template-columns:1fr auto;min-height:52px;padding:6px 10px;border-radius:8px}.draw-stage .winner small{grid-column:1}.draw-stage .winner span{grid-column:2;grid-row:1;width:42px;height:42px;margin:0;font-size:19px}@media(max-width:800px){.draw-stage .result-board{position:relative;right:auto;bottom:auto;width:auto;margin:12px}.draw-stage .winners{grid-template-columns:1fr}}
.live-page .draw-stage{height:min(520px,calc(100vh - 190px));min-height:430px}.live-page .draw-stage #machine{height:100%}@media(max-width:800px){.live-page .draw-stage{height:auto;min-height:0}.live-page .draw-stage #machine{height:auto}}
/* Admin shell is isolated from the seller and live display styles. */
body.admin-mode{background:#080f20;color:#ecf1ff;--ink:#ecf1ff;--muted:#a0aec8;--line:#263650;--green:#a994ff;min-height:100vh}body.admin-mode header{height:68px;padding:0 24px;background:#0c1830;gap:16px;justify-content:flex-start}body.admin-mode .brand{color:#f1f4ff;font-size:25px}body.admin-mode .brand span{font-size:18px}body.admin-mode .header-right{margin-left:auto}body.admin-mode main{max-width:none;padding:24px;width:100%}body.admin-mode footer{display:none}body.admin-mode .nav-toggle{display:block;color:#d3c8ff;background:#251c4e;border-color:#514080;padding:8px 12px;font-size:21px}body.admin-mode .page-heading{margin-bottom:22px}body.admin-mode h1{font-size:28px;letter-spacing:-.7px}body.admin-mode h2{font-size:18px}body.admin-mode .eyebrow{color:#a998ee;margin-bottom:8px}body.admin-mode .panel{background:#111e35;border-color:#263954;padding:22px;margin-bottom:18px}body.admin-mode input,body.admin-mode select{background:#09162b;border-color:#354867;color:#edf3ff}body.admin-mode button,body.admin-mode .button{background:#192c4a;border-color:#354869;color:#edf3ff}body.admin-mode button:hover,body.admin-mode .button:hover{background:#2b3e65}body.admin-mode input:focus{outline-color:#9a80ff}body.admin-mode th{color:#aebbd1;background:#142640}body.admin-mode td,body.admin-mode th{border-color:#283a53;padding:14px}body.admin-mode #notice:not(:empty){background:#192d48;border-color:#355575;color:#fff}body.admin-mode #notice.error{background:#48263a}body.admin-mode dialog{background:#111e35;color:#fff}body.admin-mode .stats{gap:16px;margin-bottom:20px}body.admin-mode .stat{background:linear-gradient(130deg,#182b49,#111b31);border-color:#2a3b59;padding:20px 24px}body.admin-mode .stat span{text-transform:uppercase;color:#adb9d2}body.admin-mode .stat strong{font-size:30px;font-weight:650}.admin-shell{display:grid;grid-template-columns:220px minmax(0,1fr);gap:24px;transition:grid-template-columns .22s,gap .22s}.admin-shell.sidebar-closed{grid-template-columns:0 minmax(0,1fr);gap:0}.admin-sidebar{overflow:hidden;min-width:0}.admin-sidebar>p,.admin-sidebar nav{width:220px}.admin-sidebar nav{display:grid;gap:7px}.admin-sidebar nav button{display:flex;align-items:center;gap:12px;width:100%;text-align:left;padding:13px 12px;border-color:transparent;background:transparent;white-space:nowrap}.admin-sidebar nav button.active{background:linear-gradient(115deg,#6338c8,#343183);border-color:#7955df}.admin-icon{font-size:21px;display:inline-grid;place-items:center;width:26px}.admin-content{min-width:0}.sales-value{color:#44df9b!important}.winnings-value{color:#ff788b!important}.chart-legend{display:flex;gap:24px;font-size:12px;margin:4px 0 22px}.weekly-chart{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:18px;min-height:245px}.chart-day{text-align:center;min-width:0}.chart-bars{height:185px;display:flex;gap:7px;align-items:stretch;border-bottom:1px solid #384a65;background:repeating-linear-gradient(to top,transparent 0,transparent 45px,#24324a88 46px)}.chart-series{flex:1;display:flex;flex-direction:column;justify-content:end;align-items:center;min-width:0;padding-top:20px;position:relative}.chart-value{font-size:10px;color:#b9c6db;margin-bottom:5px;max-width:100%;overflow:hidden;text-overflow:ellipsis}.chart-bar{width:min(100%,34px);flex-shrink:0;min-height:2px;border-radius:5px 5px 0 0}.chart-bar.sales{background:linear-gradient(#44df9b,#159d77)}.chart-bar.winnings{background:linear-gradient(#ff788b,#c83b5b)}.chart-day-label{display:block;font-size:12px;margin-top:12px}.chart-day small{color:#889bb7;font-size:10px}body.admin-mode .section-title{gap:12px}body.admin-mode .section-title h2{margin:0}body.admin-mode .label-row{grid-template-columns:minmax(140px,.8fr) minmax(160px,1.5fr) auto auto}
@media(max-width:1000px){.admin-shell{grid-template-columns:190px minmax(0,1fr);gap:16px}.admin-sidebar>p,.admin-sidebar nav{width:190px}body.admin-mode .admin-columns{grid-template-columns:1fr}body.admin-mode .label-row{grid-template-columns:1fr 1fr}.weekly-chart{gap:7px}.chart-value{font-size:9px}}
@media(max-width:650px){body.admin-mode main{padding:14px}body.admin-mode .brand small{display:none}.admin-shell{grid-template-columns:1fr}.admin-shell.sidebar-closed{grid-template-columns:minmax(0,1fr)}.admin-shell.sidebar-closed .admin-sidebar{display:none}.admin-sidebar nav,.admin-sidebar>p{width:100%}.admin-sidebar nav{grid-template-columns:1fr 1fr}body.admin-mode .stats{grid-template-columns:1fr}.weekly-chart{gap:4px}.chart-bars{gap:3px}body.admin-mode .panel{padding:14px}.chart-value{font-size:8px}}
@media(prefers-reduced-motion:reduce){.admin-shell{transition:none}}
body.admin-mode .admin-icon{font-size:17px;flex:0 0 24px}body.admin-mode .admin-sidebar nav button{font-size:12px;white-space:normal}.chart-legend{flex-wrap:wrap}.chart-value{flex-shrink:0}
.admin-sidebar-owner{width:220px;margin:-2px 0 16px;padding:10px 11px;border:1px solid #493a7a;border-radius:9px;background:#171236;color:#e7e1ff;font-size:13px;font-weight:800;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
@media(max-width:1000px){.admin-sidebar-owner{width:190px}}@media(max-width:650px){.admin-sidebar-owner{width:100%}}
.master-terminal-filter{margin-left:auto;padding:8px 12px!important;border-color:#c99a34!important;background:linear-gradient(135deg,#5a3c10,#1e1b37)!important;color:#ffe7a1!important;font-weight:900;box-shadow:0 4px 15px #0005}.master-terminal-filter:hover{background:linear-gradient(135deg,#775018,#29234b)!important}
.terminal-launcher{display:grid;grid-template-columns:repeat(auto-fit,minmax(160px,1fr));gap:16px;margin:18px 0 4px}.terminal-launcher-card{display:grid;min-height:184px;place-items:center;align-content:center;gap:8px;padding:18px!important;border:1px solid #4f4a86!important;border-radius:18px!important;background:linear-gradient(145deg,#1a2344,#111934)!important;color:#f0edff!important;text-align:center;box-shadow:0 10px 24px #0004}.terminal-launcher-card:hover{border-color:#a58bff!important;background:linear-gradient(145deg,#28245b,#171d40)!important;transform:translateY(-2px)}.terminal-launcher-card.master{border-color:#c99a34!important;background:linear-gradient(145deg,#553a10,#201a37)!important;color:#ffe6a1!important}.terminal-launcher-card strong{font-size:17px}.terminal-launcher-card small{color:#bbc7de;font-size:12px}.terminal-launcher-card.master{white-space:pre-line;font-size:17px;font-weight:900}.terminal-avatar{position:relative;display:block;width:88px;height:88px;overflow:hidden;border-radius:50%;background:radial-gradient(circle at 31% 19%,#fff9 0 7%,transparent 29%),var(--avatar-bg);box-shadow:inset 0 -12px 18px #0002,0 9px 18px #0005}.terminal-avatar-head{position:absolute;z-index:2;left:26px;bottom:20px;width:38px;height:45px;border-radius:48% 48% 43% 43%;background:var(--skin);box-shadow:inset -4px -4px 5px #0001}.terminal-avatar-head:before,.terminal-avatar-head:after{position:absolute;top:20px;width:4px;height:4px;border-radius:50%;background:#35291f;content:''}.terminal-avatar-head:before{left:10px}.terminal-avatar-head:after{right:10px}.terminal-avatar-head{font-size:0}.terminal-avatar-head::selection{background:transparent}.terminal-avatar-head:after{box-shadow:none}.terminal-avatar-hair{position:absolute;z-index:3;left:20px;bottom:46px;width:51px;height:28px;border-radius:58% 58% 35% 35%;background:var(--hair);box-shadow:0 6px 0 -2px var(--hair)}.terminal-avatar-shirt{position:absolute;z-index:1;left:14px;bottom:-14px;width:61px;height:45px;border-radius:48% 48% 0 0;background:var(--shirt)}.terminal-avatar-shirt:after{position:absolute;top:0;left:23px;width:15px;height:22px;border-radius:0 0 50% 50%;background:#edf4ff;content:''}.avatar-gold{--avatar-bg:#ffd45f;--skin:#7d4e35;--hair:#241916;--shirt:#dde9fa}.avatar-rose{--avatar-bg:#e895c7;--skin:#9d694d;--hair:#241b22;--shirt:#edf5ff}.avatar-sky{--avatar-bg:#86c4d9;--skin:#edb384;--hair:#653b2d;--shirt:#dceaff}.avatar-sand{--avatar-bg:#e6d8b9;--skin:#f3bf96;--hair:#bd563d;--shirt:#e1ab28}.avatar-lime{--avatar-bg:#bbc967;--skin:#d9956d;--hair:#7c332b;--shirt:#c53b50}.avatar-peach{--avatar-bg:#f4b5b3;--skin:#eaa47f;--hair:#9d4534;--shirt:#f4c94e}
.terminal-launcher-card:not(.master){min-height:174px;padding:14px!important;border:0!important;border-radius:0!important;background:transparent!important;box-shadow:none!important}.terminal-launcher-card:not(.master):hover{border:0!important;background:transparent!important;box-shadow:none!important;transform:translateY(-3px)}.terminal-launcher-card.master{min-height:174px;padding:14px!important;border:0!important;border-radius:0!important;background:transparent!important;box-shadow:none!important}.terminal-launcher-card.master:hover{background:transparent!important;transform:translateY(-3px)}.terminal-avatar{width:108px;height:108px;border:3px solid #fff8;box-shadow:inset 0 -15px 22px #0002,0 10px 0 #0002,0 18px 24px #0005}.terminal-avatar-head{left:32px;bottom:23px;width:46px;height:55px}.terminal-avatar-head:before,.terminal-avatar-head:after{top:25px;width:5px;height:5px}.terminal-avatar-head:before{left:12px}.terminal-avatar-head:after{right:12px}.terminal-avatar-hair{left:25px;bottom:56px;width:60px;height:33px;box-shadow:0 7px 0 -2px var(--hair)}.terminal-avatar-shirt{left:17px;bottom:-16px;width:72px;height:52px}.terminal-avatar-shirt:after{left:27px;width:18px;height:25px}.terminal-manager-name{font-size:18px!important;color:#f5f3ff}.terminal-group-name{font-size:13px!important;color:#aeb9d7!important}.terminal-group-name:before{content:'Group · ';color:#7784a6}
.avatar-master{--avatar-bg:#8d77f5;--skin:#9b6148;--hair:#1d1725;--shirt:#5be2d0}.avatar-master:after{position:absolute;z-index:4;top:8px;right:11px;width:18px;height:18px;border:2px solid #fff;border-radius:50%;background:#ffd55f;box-shadow:0 2px 5px #0005;content:'★';color:#66490c;font-size:12px;font-weight:900;line-height:18px;text-align:center}.terminal-avatar-head{background:linear-gradient(105deg,#fff2 0 18%,transparent 19% 100%),var(--skin)}.terminal-avatar-hair{background:linear-gradient(120deg,#fff2,transparent 35%),var(--hair)}.terminal-avatar-shirt{background:linear-gradient(105deg,#fff3,transparent 30%),var(--shirt)}
.attendant-launcher-panel{padding:0!important;border:0!important;background:transparent!important;box-shadow:none!important}.attendant-launcher-panel .section-title{padding:0 0 8px}.attendant-launcher-panel .create-manager-button{margin-right:0}
.terminal-workspace-dialog{position:relative;width:min(1120px,94vw);max-height:88vh;overflow:auto;padding:28px;border:1px solid #465b84;border-radius:20px;background:#111e35;color:#edf3ff;box-shadow:0 30px 90px #000b}.terminal-workspace-dialog::backdrop{background:#030817c9;backdrop-filter:blur(5px)}.terminal-workspace-dialog .panel{margin:0;border:0;background:transparent;padding:0}.terminal-window-close{position:absolute;top:14px;right:16px;z-index:2;width:36px;height:36px;padding:0!important;border-radius:50%!important;font-size:25px!important;line-height:1;color:#e8eeff!important}.terminal-workspace-dialog .section-title{padding-right:48px}
.language-toggle{display:inline-flex!important;align-items:center;justify-content:center;gap:7px;min-width:70px;height:34px;padding:3px 10px!important;border:1px solid #365478!important;border-radius:999px!important;background:linear-gradient(145deg,#203b5a,#11273f)!important;box-shadow:inset 0 1px #c8e4ff33,0 2px 5px #0004;color:#eaf5ff!important;font-size:12px!important;font-weight:900!important;letter-spacing:.08em}.language-toggle:hover{background:linear-gradient(145deg,#2a5079,#173553)!important}.language-toggle #language-flag{display:grid;width:24px;height:24px;place-items:center;border-radius:50%;font-size:17px;letter-spacing:0;background:#fff;box-shadow:0 1px 4px #0008}.language-toggle #language-code{display:block;font-size:12px;line-height:1}
.mobile-number-pad{display:none}.mobile-pad-heading{display:flex;align-items:baseline;justify-content:space-between;gap:12px}.mobile-pad-heading strong{color:#eaf2ff;font-size:12px;letter-spacing:.1em}.mobile-pad-heading small{color:#9fb2d4;font-size:11px;text-align:right}.mobile-pad-keys{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:9px}.mobile-pad-keys button{min-height:54px;padding:0;border:1px solid #3d5683;border-radius:11px;background:linear-gradient(145deg,#263b62,#142440);box-shadow:inset 0 1px #ffffff22,0 4px 0 #081221;color:#f5f8ff;font-size:22px;font-weight:800;touch-action:manipulation}.mobile-pad-keys button:active{transform:translateY(3px);box-shadow:inset 0 1px #ffffff18,0 1px 0 #081221}.mobile-pad-keys .pad-utility{color:#ffd18a;background:linear-gradient(145deg,#504064,#2d2441);font-size:17px}.mobile-pad-keys .pad-enter{grid-row:span 2;background:linear-gradient(145deg,#25a77f,#176257);color:#fff;font-size:14px;letter-spacing:.05em}
@media(max-width:800px){.mobile-number-pad{display:grid;gap:12px;margin:12px 0;padding:14px;border:1px solid #334d78;border-radius:16px;background:linear-gradient(160deg,#101d38,#0a1428);box-shadow:0 12px 28px #02071566}.terminal-mode .mobile-number-pad{display:grid}.terminal-mode .entry-toolbar{margin-bottom:0}.terminal-mode .entry-toolbar input{font-size:24px}.terminal-mode .pos-ticket-workspace{margin-top:12px}}

/* Shared visual grid: every application screen uses the same spacing and aligned surfaces. */
:root{--page-space:24px;--surface-space:22px;--grid-gap:18px;--control-height:44px}main{padding-inline:clamp(18px,4vw,56px)}.panel,.draw-strip,.pos-number-panel,.pos-ticket-information,.stat{border-radius:16px}.panel{padding:var(--surface-space)}.admin-columns{grid-template-columns:repeat(2,minmax(0,1fr));gap:var(--grid-gap);align-items:stretch}.admin-columns>.panel{height:100%;margin:0}.stats{grid-template-columns:repeat(3,minmax(0,1fr));gap:var(--grid-gap);align-items:stretch}.stats>.stat{min-height:132px;margin:0}.section-title,.page-heading,.grid-heading{gap:var(--grid-gap)}.section-title{min-height:36px}.inline-form{gap:var(--grid-gap);align-items:end}.inline-form label{margin:0}.inline-form button{min-height:var(--control-height);margin:0 0 0}.inline-form input,.inline-form select{min-height:var(--control-height)}.table-wrap{border-radius:10px}.table-wrap table{table-layout:fixed}.table-wrap th,.table-wrap td{vertical-align:middle}.table-wrap th{height:46px}.table-wrap td{min-height:54px}.pos-ticket-workspace{gap:var(--grid-gap);align-items:stretch}.pos-ticket-workspace>.pos-number-panel,.pos-ticket-workspace>.pos-ticket-information{height:100%;margin:0}.draw-cards{gap:var(--grid-gap)}.draw-card{min-height:112px;display:grid;align-content:center}.pos-action-row{gap:12px;align-items:center}.entry-toolbar{gap:var(--grid-gap)}.entry-toolbar>*{min-height:var(--control-height)}.entry-toolbar .availability,.entry-toolbar .points-entry{height:100%}.terminal-launcher{align-items:start}.terminal-launcher-card{width:100%;justify-self:stretch}.terminal-workspace-dialog .inline-form{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));align-items:end}.terminal-workspace-dialog .inline-form button{width:100%}dialog{max-width:calc(100vw - 32px)}
@media(max-width:980px){.admin-columns{grid-template-columns:1fr}.stats{grid-template-columns:repeat(2,minmax(0,1fr))}.terminal-workspace-dialog .inline-form{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:640px){:root{--surface-space:16px;--grid-gap:12px}.stats{grid-template-columns:1fr}.inline-form,.terminal-workspace-dialog .inline-form{grid-template-columns:1fr}.inline-form label{width:100%}.inline-form button{width:100%}.admin-columns>.panel{height:auto}.table-wrap{overflow-x:auto}.table-wrap table{min-width:640px}.terminal-launcher{grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.terminal-launcher-card{min-height:158px!important}}
.create-manager-button{margin-left:auto!important;background:linear-gradient(135deg,#5c42da,#343b9b)!important;border-color:#8874ff!important;color:#fff!important;font-weight:900}.manager-create-dialog{width:min(470px,94vw)}.manager-create-dialog form{display:grid;gap:13px}.manager-create-dialog h2{margin:0}.manager-create-dialog button{justify-self:start}.manager-create-dialog button.primary{justify-self:end;margin-top:-46px}
#receipt-paper{display:none}.receipt-dialog strong{display:block;margin-top:12px}.receipt-dialog p{overflow-wrap:anywhere}.compact-player[hidden]{display:none!important}
@media print{
  /* Thermal receipts must end at their content. A printer driver then receives a
     completed document and can perform its configured end-of-document cut. */
  @page{size:80mm auto;margin:0}
  html,body{width:80mm!important;height:auto!important;min-height:0!important;margin:0!important;padding:0!important;background:#fff!important;overflow:visible!important;color:#000!important;print-color-adjust:exact!important;-webkit-print-color-adjust:exact!important}
  body>*{display:none!important}
  body>#receipt-paper{display:block!important;width:80mm!important;min-height:0!important;margin:0!important;padding:0!important;color:#000;background:#fff;font:700 17px/1.3 "Courier New","Liberation Mono",monospace;overflow:hidden!important}
  /* Thermal roll tickets follow their content; a forced page break feeds the unused paper length. */
  .receipt-page{box-sizing:border-box!important;width:80mm!important;max-width:80mm!important;min-height:0!important;margin:0!important;padding:3mm 3mm 10mm!important;break-inside:avoid;page-break-inside:avoid;break-after:auto;page-break-after:auto;overflow:hidden!important}
  .receipt-page:last-child{break-after:auto;page-break-after:auto}
  .receipt-page h2,.receipt-page h3{color:#000!important;letter-spacing:0;margin:0 0 3mm!important;font-weight:900!important}
  .receipt-page p{overflow-wrap:anywhere;margin:0 0 2mm!important;line-height:1.35;color:#000!important}
  .receipt-page table{width:100%;font-size:14px;border-collapse:collapse}
  .receipt-page td{padding:1.2mm 1mm;border-bottom:0;color:#000!important;font-weight:700}
  dialog{display:none!important}
}

/* Keep the N/A availability control exactly aligned with adjacent entry controls. */
.terminal-mode .entry-toolbar .availability{width:100%;min-height:50px;height:50px}
@media(max-width:800px){.terminal-mode .entry-toolbar .availability{min-height:50px;height:50px}}

/* The transparent mark adapts cleanly to each approved page surface. */
body.login-mode>header{background:linear-gradient(115deg,#0c1830,#101b36);border-color:#263954}
body.login-mode>header .app-logo{filter:drop-shadow(0 3px 9px #0009)}
body.admin-mode .app-logo,body.terminal-mode .app-logo{mix-blend-mode:screen}

/* Compact header controls keep the selling area clear on tablets and phones. */
.terminal-status{gap:8px}.header-qr{display:grid;place-items:center;width:34px;height:34px;padding:0;border:0!important;border-radius:0!important;background:transparent!important;color:#ccecff;line-height:1}.header-qr svg{display:block;width:29px;height:29px;fill:none;stroke:currentColor;stroke-width:2.25;stroke-linecap:round;stroke-linejoin:round;filter:drop-shadow(0 0 4px #42c5ff88)}.header-qr:hover{color:#fff;filter:brightness(1.15)}.header-live{display:inline-flex;align-items:center;justify-content:center;min-height:35px;min-width:108px;padding:0 16px!important;border:1px solid #ff7b7b!important;border-radius:999px!important;background:linear-gradient(180deg,#ff463e,#df0505 70%,#a80000)!important;box-shadow:inset 0 2px #fff5,inset 0 -3px #820000,0 3px 0 #690000;color:#fff!important;font-size:11px!important;font-weight:950!important;letter-spacing:.06em;text-shadow:0 1px #700!important}.header-live::before{display:none;content:""}.header-live:hover{transform:translateY(-1px);filter:brightness(1.1)}.header-live.is-live{border-color:#ffe3a3!important;background:linear-gradient(180deg,#ff6a3e,#e40018 70%,#930000)!important;animation:header-live-pulse .85s ease-in-out infinite}.header-live.is-live::before{display:block;width:8px;height:8px;margin-right:7px;border-radius:50%;background:#fff;box-shadow:0 0 12px #fff,0 0 3px 3px #ff264e}.header-live.is-live span::after{margin-left:5px;color:#ffe5e5;font-size:.82em;content:" LIVE"}@keyframes header-live-pulse{50%{box-shadow:inset 0 2px #fff8,inset 0 -3px #820000,0 0 0 4px #ff345633,0 0 21px #ff345688}}@media(prefers-reduced-motion:reduce){.header-live.is-live{animation:none}}@media(max-width:800px){.terminal-status{gap:6px}.header-qr{width:36px;height:36px}.header-qr svg{width:30px;height:30px}.header-live{min-height:36px;min-width:94px;padding:0 10px!important;font-size:10px!important}.header-live.is-live span::after{content:""}}
.share-preview{display:grid;grid-template-columns:1fr 1fr;gap:12px;padding:18px;background:#0a172b;border:1px solid #354867;border-radius:10px;margin-bottom:14px}.share-preview p{grid-column:1/-1;margin:0;font-size:13px}.daily-time-controls{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.schedule-switch{flex-direction:row;align-items:center}.schedule-switch input{width:18px;height:18px}body.admin-mode input[type=time]{color-scheme:dark;width:100%}body.admin-mode hr{border:0;border-top:1px solid var(--line);margin:24px 0}#settings-form details{margin-bottom:20px;font-size:12px}#settings-form details p{margin-top:10px}@media(max-width:650px){.daily-time-controls{grid-template-columns:1fr}}
#station-detail>.section-title{margin-bottom:20px}#station-detail>.stats{grid-template-columns:repeat(3,minmax(0,1fr))}#station-detail .stat strong{font-size:22px}.station-fields{display:grid;grid-template-columns:1fr 1fr;gap:16px}.station-fields label:last-child{grid-column:1/-1}#station-detail form button{margin:0 12px 14px 0}body.admin-mode .station-link{padding:5px 0;background:transparent;border:0;color:#b6a1ff;text-decoration:underline}#station-detail table details p{min-width:180px;margin-top:8px}#station-detail .dialog-actions{align-items:center;margin-top:14px}@media(max-width:650px){#station-detail>.stats,.station-fields{grid-template-columns:1fr}}
.redemption-dialog{width:min(680px,94vw);max-height:92vh;overflow:auto}.reward-total{padding:16px;border:1px solid #387c70;background:#103d3b;border-radius:8px;margin:12px 0}.reward-total span,.reward-total strong{display:block}.reward-total strong{font-size:28px;color:#63edb2;margin-top:8px}.reward-results{display:flex;gap:10px;flex-wrap:wrap;margin-bottom:16px}.reward-results span{padding:8px 14px;border-radius:20px;background:#362367;border:1px solid #7856bb;font-weight:700}.reward-preview h3{margin-bottom:8px}.reward-plays{max-height:270px;overflow:auto;border:1px solid #355575;border-radius:8px}.reward-plays table{color:#eaf5ff}.reward-plays th{background:#102f4f;color:#c5d9ee;position:sticky;top:0}.reward-plays td,.reward-plays th{padding:10px;border-color:#355575}.reward-plays .winning-play{background:#154c42;color:#a2ffd1;font-weight:700}.reward-plays .winning-play td:first-child{border-left:4px solid #4be4a0;font-size:18px}.reward-preview>small{display:block;margin:10px 0;color:#aabfd5}.redemption-dialog .dialog-actions{flex-wrap:wrap;position:sticky;bottom:0;padding-top:12px;background:#071f3a}
body.terminal-mode .redemption-dialog .muted{color:#c6d5ea!important}
.draw-cards{grid-template-columns:repeat(4,minmax(0,1fr))}.daily-time-controls{grid-template-columns:repeat(2,minmax(0,1fr))}@media(max-width:650px){.daily-time-controls{grid-template-columns:1fr}}
.receipt-preview-paper{max-height:none;overflow:visible;background:#14243b;padding:18px;border-radius:9px}.receipt-preview-paper .receipt-page{width:76mm;max-width:100%;margin:auto;padding:4mm;background:white;color:#111;font:12px Arial,sans-serif;box-shadow:0 5px 20px #0006}.receipt-preview-paper h2{font:700 18px Arial;color:#111;letter-spacing:0}.receipt-preview-paper h3{font:700 14px Arial;color:#111;letter-spacing:0}.receipt-preview-paper p{color:#111;overflow-wrap:anywhere;line-height:1.4}.receipt-preview-paper table{width:100%;color:#111;font-size:12px}.receipt-preview-paper td{padding:3px;border-bottom:1px dashed #999;color:#111}.receipt-preview-paper .receipt-winner{background:#d0f5da;font-weight:700}.receipt-preview-paper .receipt-winner td:first-child{border-left:4px solid #148441}.redemption-confirm{max-width:440px}.redemption-confirm button{margin-top:10px}
.draw-strip{display:block}.draw-strip .draw-cards{display:grid;grid-template-columns:repeat(auto-fit,minmax(145px,1fr));gap:8px}.draw-strip .draw-empty{grid-column:1/-1;padding:16px;text-align:center}
.draw-selection-indicator{display:block;margin-top:4px;font-size:10px;font-weight:800;letter-spacing:.5px;color:#b5c8dd}.draw-card.selected .draw-selection-indicator{color:#fff}.draw-strip .draw-card strong{font-size:19px}.draw-strip .draw-card:first-child:not(.selected){background:linear-gradient(145deg,#0d4776,#0a315a);box-shadow:none;color:#eaf0ff}.draw-strip .draw-card:first-child:not(.selected) strong,.draw-strip .draw-card:first-child:not(.selected) small,.draw-strip .draw-card:first-child:not(.selected) .draw-card-name{color:#eaf0ff}.draw-strip .draw-card.selected{border:2px solid #bc9bff}.ticket-table-title #selected-session-label{white-space:normal;overflow-wrap:anywhere;font-weight:700}
.live-page .draw-stage{height:auto;min-height:0}.live-page .draw-stage #machine{height:auto;aspect-ratio:1280/620}.draw-stage .result-board{position:relative;right:auto;bottom:auto;width:auto;margin:12px 16px}.draw-stage .winners{grid-template-columns:repeat(3,minmax(0,1fr))}.live-fallback .draw-stage{display:block}.live-fallback #machine{display:none}.stage-caption{display:none}@media(max-width:650px){.draw-stage .winners{grid-template-columns:1fr}}

.live-history{margin-top:24px;padding:24px;border:1px solid #245c84;border-radius:16px;background:#091c32;color:#f5f8ff}.live-history>h2{font-size:24px;margin-bottom:8px}.live-history p{color:#a6bed4}.history-day{margin-top:24px}.history-day h3{font-size:21px;padding-bottom:10px;border-bottom:1px solid #29435f}.history-result{display:grid;grid-template-columns:minmax(150px,1fr) repeat(3,minmax(90px,1fr));align-items:center;gap:18px;padding:18px;margin-top:12px;border:1px solid #2b4766;border-radius:12px;background:#10263e}.history-result time{font-size:22px;font-weight:700}.history-number{text-align:center}.history-number small{display:block;color:#b9cde1;font-size:12px}.history-number strong{display:block;font-size:clamp(42px,5vw,76px);line-height:1.15;color:#f3d77c;font-variant-numeric:tabular-nums}.live-page .draw-stage .winner span{width:76px;height:76px;font-size:40px}@media(max-width:650px){.live-history{padding:14px}.history-result{grid-template-columns:repeat(3,1fr);gap:10px;padding:12px}.history-result time{grid-column:1/-1}.history-number small{font-size:10px}}

.machine-game-name{padding:18px 24px 4px;text-align:center;color:#f5f7fc;font-size:clamp(24px,3vw,44px);font-weight:800;letter-spacing:.06em;background:#071524}.live-page .live-main{max-width:none}.live-page .draw-stage #machine{width:100%;display:block}

.live-page.live-fallback .draw-stage #machine{display:none}

.live-page .draw-stage #machine[hidden]{display:none}.basket-rack{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;padding:14px}.draw-basket{min-width:0;border:1px solid #34516d;border-radius:12px;overflow:hidden;background:#071524}.draw-basket h3{margin:14px 12px 4px;color:#f5f8ff;font-size:21px;text-align:center}.draw-basket p{margin:0 0 6px;color:#b5cadd;font-size:13px;text-align:center}.draw-basket canvas{display:block;width:100%;height:auto;aspect-ratio:700/760}.draw-basket.basket-revealed{border-color:#dfc571}@media(max-width:800px){.basket-rack{grid-template-columns:1fr}}

.number-limit-fields{display:grid;grid-template-columns:repeat(auto-fit,minmax(85px,1fr));gap:10px;max-height:320px;overflow:auto;padding:10px}.number-limit-fields input{width:100%}.exposure-table{max-height:420px;overflow:auto;margin-bottom:24px}.exposure-table th{position:sticky;top:0}.exposure-table td{font-variant-numeric:tabular-nums}
/* Clear, task-based settings layout for drawing operators. */
.settings-panel{display:grid;gap:18px;max-width:1080px}.settings-page-heading{padding:4px 2px 2px}.settings-page-heading h2{margin:0 0 7px}.settings-page-heading p:last-child{margin:0}.settings-section{display:grid;gap:13px;padding:20px;border:1px solid #34476a;border-radius:14px;background:#0b1930}.settings-section h3{margin:0;color:#eff6ff;font-size:18px}.settings-section .eyebrow{margin:0 0 3px;color:#9ec7ff}.settings-section>label{max-width:450px}.settings-section small{font-weight:500}.settings-schedule{border-color:#5f59ba;background:linear-gradient(145deg,#111c39,#0b1930)}.settings-schedule .daily-time-controls{grid-template-columns:repeat(4,minmax(150px,1fr))}.settings-schedule .daily-time-controls label{padding:12px;border:1px solid #40537b;border-radius:10px;background:#09162b}.settings-schedule .daily-time-controls label>span{display:block;margin-bottom:7px;color:#c4d2f2;font-size:13px;font-weight:800}.settings-disclosure{margin:0!important;padding:0;border:1px solid #354a70;border-radius:12px;background:#09172b;overflow:hidden}.settings-disclosure>summary{padding:14px 16px;color:#eaf2ff;font-size:14px;font-weight:800;cursor:pointer}.settings-disclosure[open]>summary{border-bottom:1px solid #354a70;background:#112240}.settings-disclosure>p{padding:0 16px}.settings-disclosure .number-limit-fields{margin:0 12px 14px}.exposure-disclosure>summary{background:#102642}.settings-exposure{margin:14px;border:0;background:#0b1930}.settings-save{position:sticky;bottom:10px;display:flex;align-items:center;justify-content:space-between;gap:16px;padding:14px 16px;border:1px solid #576a94;border-radius:12px;background:#111e38ee;box-shadow:0 12px 28px #0007;backdrop-filter:blur(12px)}.settings-save p{margin:0}.settings-save button{min-width:210px}@media(max-width:850px){.settings-schedule .daily-time-controls{grid-template-columns:repeat(2,minmax(0,1fr))}.settings-save{align-items:stretch;flex-direction:column}.settings-save button{width:100%}}@media(max-width:540px){.settings-schedule .daily-time-controls{grid-template-columns:1fr}.settings-section{padding:15px}}
body.admin-mode .admin-columns{grid-template-columns:minmax(0,1fr)}body.admin-mode #schedule-form{max-width:560px}

/* Shared centered brand for login, POS, and all admin sections. */
body>header,body.admin-mode>header,body.terminal-mode>header{position:relative;background:#0b1528;min-height:98px;color:#edf3ff}
body>header .brand{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);margin:0}
.app-logo{display:block;width:480px;height:102px;object-fit:contain;object-position:center;background:transparent;filter:drop-shadow(0 5px 13px #000a);isolation:isolate}
@media(min-width:801px){.draw-cards{grid-template-columns:repeat(4,minmax(0,1fr))}}
@media(min-width:801px){body.terminal-mode #ticket-form{grid-template-rows:50px auto 112px minmax(0,1fr) 36px}body.terminal-mode .draw-strip{margin-bottom:4px;padding:4px 6px;border-radius:8px}body.terminal-mode .draw-card{height:40px;min-height:40px;padding:4px 8px;border-radius:6px}body.terminal-mode .draw-strip .draw-card strong{font-size:clamp(14px,1.05vw,18px)}}
body>header .header-right{margin-left:auto}
body.terminal-mode>header #identity{left:68px;top:50%;transform:translateY(-50%);max-width:200px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.receipt-logo{display:block;width:60mm;max-width:100%;height:auto;margin:0 auto 4mm;background:white}
@media(max-width:800px){body>header,body.admin-mode>header,body.terminal-mode>header{padding-top:80px;min-height:132px;height:auto;padding-bottom:12px}body>header .brand{top:0;transform:translateX(-50%)}body.terminal-mode>header #identity{position:static;transform:none;max-width:120px}.app-logo{width:330px;height:80px}}

.pending-ticket-dialog{width:min(700px,94vw);max-width:700px;max-height:88vh;overflow:auto}.pending-ticket{padding:16px 0;border-bottom:1px solid #49617c}.pending-ticket h3{margin:10px 0}.pending-ticket p{margin:5px 0;font-size:13px}

.nav-mini-icon{display:inline-grid;width:24px;height:24px;margin-right:8px;place-items:center;border-radius:7px;background:#203d65;color:#7ee6ff;font-size:15px;vertical-align:middle}.pos-nav-link.active .nav-mini-icon{background:#ffffff20;color:#fff}.pending-ticket{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:15px 4px}.pending-ticket-details{min-width:0}.pending-ticket h3{color:#3de0b4;font-size:20px}.pending-ticket .primary{flex:0 0 auto}.pending-ticket-dialog>p{color:#b9cbe0}.pending-ticket-dialog>form{display:flex;gap:8px;align-items:end}.pending-ticket-dialog>form input{margin:0}

.pending-ticket-dialog{width:min(1050px,96vw);max-width:1050px;padding:28px}.pending-ticket-dialog h2{text-align:center;font-size:28px}.pending-payment-summary{display:flex;flex-direction:column;align-items:center;width:max-content;min-width:330px;margin:22px auto;padding:17px 30px;border:1px solid #278ab5;border-radius:10px;background:linear-gradient(145deg,#103655,#0b2946);box-shadow:0 12px 30px #0005;color:#b9d7ec}.pending-payment-summary span{font-size:15px;text-transform:uppercase;letter-spacing:.08em}.pending-payment-summary strong{margin-top:5px;color:#3de0b4;font-size:32px;font-variant-numeric:tabular-nums}.pending-payment-filters{display:grid!important;grid-template-columns:190px minmax(190px,1fr) auto;gap:10px!important;margin:18px 0 12px}.pending-payment-filters input,.pending-payment-filters button{height:44px}.pending-payment-table-wrap{overflow-x:auto;border:1px solid #2a5273;border-radius:9px}.pending-payment-table{width:100%;border-collapse:collapse;background:#071f38;font-variant-numeric:tabular-nums}.pending-payment-table th{padding:12px 10px;background:#123a59;color:#d9ecfb;text-align:left;font-size:12px;text-transform:uppercase;letter-spacing:.04em}.pending-payment-table td{padding:13px 10px;border-top:1px solid #24445f;color:#e5f0f8;font-size:13px}.pending-payment-table tbody tr:hover{background:#0d2c48}.pending-payment-table td:nth-child(4){color:#3de0b4;font-weight:800}.pending-payment-table td:nth-child(5){color:#ffd36d}.pending-payment-table .primary{padding:8px 13px}.pending-payment-pages{display:flex;align-items:center;justify-content:center;gap:12px;padding:12px}.pending-payment-pages button{padding:7px 12px}@media(max-width:700px){.pending-ticket-dialog{padding:18px}.pending-payment-summary{min-width:0;width:100%}.pending-payment-filters{grid-template-columns:1fr!important}}

.number-sales-page{min-width:0}.number-sales-filters{display:flex;align-items:end;gap:12px;flex-wrap:wrap}.number-sales-filters label{flex:1;min-width:180px}.number-sales-filters button{margin-bottom:18px}.number-sales-summary{display:flex;justify-content:space-between;gap:14px;padding:16px 0;flex-wrap:wrap}.number-sales-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:12px}.number-sale{display:grid;grid-template-columns:auto 1fr;gap:8px 18px;align-items:center;padding:16px;background:#0b213b;border:1px solid #345477;border-radius:10px;color:#eff6ff}.number-sale-number{font-size:30px;font-variant-numeric:tabular-nums;color:#d6c5ff}.number-sale-amount{text-align:right;font-size:23px;font-weight:700;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}.number-sale small{grid-column:1/-1;color:#aabed7;text-align:right}body.terminal-mode .number-sales-page{background:#0b1b32;border-color:#315074;color:#edf3ff;margin:10px 0;padding:20px}body.terminal-mode .number-sales-page input,body.terminal-mode .number-sales-page select{background:#06182c;color:#edf3ff;border-color:#345477}

/* Simple branded sign-in screen. */
body.login-mode{min-height:100vh;background:radial-gradient(circle at 50% 22%,#183e61 0,#0b2138 38%,#061321 100%)}
body.login-mode>header,body.login-mode>footer{display:none}
body.login-mode>main{max-width:none;min-height:100vh;padding:32px;display:grid;place-items:center}
body.login-mode .login-layout{display:grid;grid-template-columns:1fr;place-items:center;width:100%;min-height:0}
.login-card{width:min(430px,100%);margin:0;padding:44px 42px 38px;border:1px solid #32577a;background:rgba(8,26,45,.94);box-shadow:0 28px 80px #020b14aa;color:#f4f8ff}
.login-logo{display:block;width:min(350px,100%);height:auto;margin:0 auto 36px;background:transparent;object-fit:contain;filter:drop-shadow(0 8px 18px #07152db0)}
.login-card label{color:#dce8f4;font-size:14px}
.login-card input{height:50px;background:#06182b;border-color:#365b7d;color:#fff;font-size:16px}
.login-card input:focus{outline-color:#8c6dff}
.login-card .primary{height:50px;margin-top:4px;background:linear-gradient(90deg,#6240e8,#2877d5);border:0;font-size:15px}
.login-card .primary:hover{background:linear-gradient(90deg,#7654f0,#3586e4)}
.login-card .error{text-align:center;color:#ff9c9c;margin-bottom:0}
#terminal-form label small{color:var(--muted);font-weight:500}
@media(max-width:520px){body.login-mode>main{padding:18px}.login-card{padding:34px 24px}.login-logo{width:min(310px,100%);margin-bottom:28px}}

/* Use flex for the collapsible POS shell. Chromium can intermittently fail to
   paint descendants of a zero-width grid track after a reload. */
.pos-shell{display:flex;align-items:stretch}
.pos-sidebar{flex:0 0 0;width:0}
.pos-shell.nav-open .pos-sidebar{flex-basis:224px;width:224px}
.pos-workspace{flex:1 1 auto;width:auto}
@media(max-width:800px){.pos-shell.nav-open .pos-sidebar{flex-basis:0;width:248px}}
/* Keep the running ticket amount directly beneath the keyboard points entry. */
.points-entry{min-width:0}.entry-running-total{display:flex;align-items:baseline;justify-content:flex-start;gap:12px;margin-top:5px;color:#c5d9ee;font-size:17px;font-weight:700}.entry-running-total output{color:#3de0b4;font-size:clamp(34px,2.5vw,46px);line-height:1.1;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}
@media(min-width:801px){.pos-workspace form{grid-template-rows:61px 44px 88px minmax(0,1fr) 31px}.terminal-mode .entry-toolbar{grid-template-columns:minmax(260px,1.2fr) minmax(190px,.72fr) minmax(260px,1fr);align-items:start}}

/* Seller reports open as clear, full-size overlays without replacing the POS. */
dialog[open]{animation:dialog-in .2s ease-out both}dialog[open]::backdrop{animation:backdrop-in .2s ease-out both}@keyframes dialog-in{from{opacity:0;transform:translateY(14px) scale(.985)}to{opacity:1;transform:none}}@keyframes backdrop-in{from{opacity:0}to{opacity:1}}
.number-sales-dialog{width:min(1080px,96vw);max-width:1080px;max-height:90vh;padding:0;overflow:auto;background:#081b31}.number-sales-dialog>.number-sales-page{margin:0!important;padding:28px!important;border:0!important}.number-sales-dialog .section-title{margin-bottom:6px}.number-sales-dialog .section-title h2{font-size:28px}.number-sales-dialog .number-sales-filters{display:grid;grid-template-columns:minmax(210px,1fr) minmax(250px,1.5fr) auto;gap:12px;align-items:end;margin-top:20px}.number-sales-dialog .number-sales-filters label{margin:0}.number-sales-dialog .number-sales-filters button{height:46px;margin:0}.number-sales-dialog .number-sales-summary{padding:18px 2px;font-size:16px}.number-sales-dialog .number-sales-grid{grid-template-columns:repeat(auto-fill,minmax(145px,1fr))}.number-sales-dialog .number-sale{padding:14px}.number-sales-dialog .number-sale-number{font-size:32px}.number-sales-dialog .number-sale-amount{font-size:21px}
.sales-report-dialog{width:min(820px,96vw);max-width:820px;max-height:92vh;padding:0;overflow:auto;background:#081b31}.report-dialog-heading{display:flex;align-items:center;justify-content:space-between;padding:22px 28px;border-bottom:1px solid #284863}.report-dialog-heading h2{margin:0;font-size:27px}.report-close{width:40px;height:40px;padding:0!important;margin:0!important;border-radius:50%!important;font-size:24px!important}.sales-report-controls{display:grid;grid-template-columns:minmax(190px,1fr) auto auto;gap:12px;align-items:end;padding:20px 28px}.sales-report-controls input,.sales-report-controls button{height:46px;margin:0}.report-status{min-height:22px;margin:0 28px;color:#a9bdd2}.sales-report-summary{padding:4px 28px 30px}.sales-report-summary h3{text-align:center;margin:12px 0 18px;color:#d8e8f7;font-size:23px}.sales-report-hero{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:18px 22px;margin-bottom:16px;border:1px solid #337a9d;border-radius:10px;background:linear-gradient(135deg,#103b5a,#0b2843)}.sales-report-hero span{color:#b8d2e4;text-transform:uppercase;letter-spacing:.08em;font-size:12px}.sales-report-hero strong{color:#62e2ad;font-size:29px;font-variant-numeric:tabular-nums}.sales-report-table{width:100%;border:1px solid #2b4c68;border-radius:9px;overflow:hidden;font-variant-numeric:tabular-nums}.sales-report-table th,.sales-report-table td{padding:13px 16px;border-color:#29445d}.sales-report-table th{width:55%;background:#102c48;color:#c9d9e8;font-size:13px;text-transform:none;letter-spacing:0}.sales-report-table td{text-align:right;background:#0b223b;color:#f0f6fb;font-size:14px;font-weight:700}.sales-report-table .report-sales{color:#4be0a4}.sales-report-table .report-prizes{color:#ff8797}.sales-report-table .report-pending{color:#ffd16e}#sales-report-paper{display:none}
@media(max-width:700px){.number-sales-dialog .number-sales-filters,.sales-report-controls{grid-template-columns:1fr}.sales-report-dialog,.number-sales-dialog{width:96vw}.sales-report-hero{align-items:flex-start;flex-direction:column}.sales-report-hero strong{font-size:24px}}
@media(prefers-reduced-motion:reduce){dialog[open],dialog[open]::backdrop{animation:none}}
@media print{body>#sales-report-paper{display:block!important;color:#000;background:#fff;font:13px Arial,sans-serif;max-width:190mm;margin:auto}#sales-report-paper h2{color:#000}#sales-report-paper table{width:100%;border-collapse:collapse}#sales-report-paper th,#sales-report-paper td{padding:10px;border:1px solid #bbb;color:#000;background:#fff;text-align:left}}

/* Pending-payment report follows the same organized report structure. */
.pending-ticket-dialog{width:min(1120px,96vw);max-width:1120px;max-height:92vh;padding:0;overflow:auto}.pending-payment-intro{margin:18px 28px 0;color:#b9cbe0;text-align:center}.pending-payment-summary{display:grid;width:min(430px,calc(100% - 56px));margin:22px auto 18px;padding:0;border:1px solid #278ab5;border-radius:8px;overflow:hidden;background:#103655}.pending-payment-summary>div{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:10px 16px;border-bottom:1px solid #2b6685}.pending-payment-summary>div:last-child{border-bottom:0}.pending-payment-summary span{font-size:13px;letter-spacing:.02em;text-transform:none}.pending-payment-summary strong{margin:0;color:#9fd5ef;font-size:18px}.pending-payment-summary .pending-total-main strong{color:#53e1aa;font-size:21px}.pending-print{margin:0 28px 12px!important;background:#dba938!important;border-color:#edc35d!important;color:#10192a!important}.pending-payment-filters{display:grid!important;grid-template-columns:190px minmax(220px,1fr) auto;gap:10px!important;margin:0 28px 10px}.pending-payment-message{margin:0 28px 10px;color:#b9cbe0}.pending-payment-table-wrap{margin:0 28px 26px;overflow:auto;border:1px solid #2a5273;border-radius:9px}.pending-payment-table{min-width:950px}.pending-payment-table th{white-space:nowrap;text-align:center}.pending-payment-table td{text-align:center;vertical-align:middle}.pending-payment-table td:first-child{font-weight:800;letter-spacing:.04em}.pending-payment-table td:nth-child(5){color:#53e1aa;font-weight:800}.pending-payment-table td:nth-child(7){color:#ffd36d}.pending-row-actions{white-space:nowrap}.pending-row-actions button{width:34px;height:32px;padding:0;margin:0 3px;font-size:15px}.pending-row-actions button:disabled{opacity:.42}#pending-report-paper{display:none}
@media(max-width:700px){.pending-payment-filters{grid-template-columns:1fr!important}.pending-payment-table-wrap,.pending-payment-filters,.pending-payment-message{margin-left:16px;margin-right:16px}.pending-print{margin-left:16px!important}.pending-payment-intro{margin-left:16px;margin-right:16px}}
@media print{body>#pending-report-paper{display:block!important;color:#000;background:#fff;font:12px Arial,sans-serif;max-width:190mm;margin:auto}#pending-report-paper h2{color:#000}#pending-report-paper table{width:100%;border-collapse:collapse}#pending-report-paper th,#pending-report-paper td{padding:8px;border:1px solid #aaa;color:#000;background:#fff;text-align:left}}
/* Readable seller workspace fills desktop height; receipt printing is unchanged. */
@media screen and (min-width:801px){
  body.terminal-mode{--pos-header:84px;--pos-type:clamp(14px,1vw,18px)}
  body.terminal-mode>header{height:var(--pos-header);min-height:var(--pos-header)}
  body.terminal-mode>main{height:calc(100dvh - var(--pos-header));min-height:530px;margin:0;padding:0}
  body.terminal-mode #workspace,body.terminal-mode #terminal{height:100%;min-height:0}
  body.terminal-mode #notice:empty{display:none}
  body.terminal-mode .pos-workspace{padding:10px 14px 0}
  body.terminal-mode #ticket-form{grid-template-rows:84px auto 112px minmax(0,1fr) 36px;gap:9px}
  body.terminal-mode .draw-card{height:84px;padding:8px 12px}
  body.terminal-mode .draw-card-name,body.terminal-mode .draw-card small{font-size:12px}
  body.terminal-mode .draw-strip .draw-card strong{font-size:clamp(24px,1.7vw,32px)}
  body.terminal-mode .draw-selection-indicator{font-size:12px}
  body.terminal-mode .draw-empty{font-size:var(--pos-type)}
  body.terminal-mode .pos-action-row{height:auto;min-height:54px;flex-wrap:wrap;padding:5px;gap:6px}
  body.terminal-mode .pos-action-row button{height:auto;min-height:42px;min-width:0;flex:1 0 auto;padding:10px 12px;font-size:var(--pos-type);line-height:1.25}
  body.terminal-mode .pos-action-row button.pos-icon-action{flex:0 0 48px;width:48px;min-width:48px;min-height:42px;padding:0!important;font-size:20px}
  body.terminal-mode .pos-action-spacer{display:none}
  body.terminal-mode .multi-lottery span{font-size:11px}
  body.terminal-mode .entry-toolbar{grid-template-columns:minmax(0,1.2fr) minmax(190px,.72fr) minmax(0,1fr);gap:10px}
  body.terminal-mode .entry-toolbar label{font-size:12px;gap:6px}
  body.terminal-mode .entry-toolbar input{height:50px;font-size:28px;font-weight:700;padding:8px 12px;width:100%}
  body.terminal-mode .entry-toolbar .availability{height:58px}
  body.terminal-mode .entry-toolbar .availability strong{font-size:25px}
  body.terminal-mode .ticket-table-title{min-height:46px;height:auto;flex-wrap:wrap;gap:6px 10px;padding:10px 12px;font-size:var(--pos-type)}
  body.terminal-mode .pos-number-panel{display:flex;flex-direction:column}
  body.terminal-mode .table-scroll{height:auto;min-height:0;flex:1}
  body.terminal-mode .pos-table{font-size:clamp(18px,1.25vw,24px);font-variant-numeric:tabular-nums}
  body.terminal-mode .pos-table th{font-size:13px;padding:11px 12px;position:sticky;top:0}
  body.terminal-mode .pos-table td{padding:11px 12px}
  body.terminal-mode .line-remove{height:auto;padding:7px 10px;font-size:13px}
  body.terminal-mode .ticket-info-values span{font-size:13px}
  body.terminal-mode .ticket-info-values strong{font-size:clamp(24px,1.8vw,34px)}
  body.terminal-mode .pos-footer{height:36px;font-size:12px;flex-wrap:wrap}
  body.terminal-mode .pos-footer span:last-child{margin-left:auto}
  body.terminal-mode .terminal-status{font-size:11px}
  body.terminal-mode .terminal-status strong{font-size:19px}
  body.terminal-mode .header-live{font-size:12px;padding:10px 12px}
  body.terminal-mode #identity{font-size:20px}
  body.terminal-mode .pos-nav-link{font-size:15px}
}
@media screen and (min-width:801px) and (max-height:650px){body.terminal-mode{overflow:auto}}

.entry-toolbar .entry-field{justify-content:flex-end;margin:0}.terminal-mode .entry-toolbar input::placeholder{color:#8ea6c1;opacity:.48;font-weight:800;letter-spacing:.08em}.terminal-mode .entry-toolbar input:focus::placeholder{opacity:.25}

/* Closing time stays quiet until the final five minutes. */
.draw-card-countdown{display:block;margin-top:4px;color:#ffe08a;font-size:12px;font-weight:900;letter-spacing:.08em}.draw-card-countdown[hidden]{display:none!important}.draw-card.closing-soon{border-color:#ffb347;box-shadow:inset 0 0 0 1px #ffb347,0 0 18px #ff9d2840}.closing-warning{position:fixed;right:22px;bottom:20px;z-index:40;display:grid;min-width:240px;padding:13px 18px;border:2px solid #ffb347;border-radius:13px;background:rgba(50,20,14,.96);box-shadow:0 15px 40px #0009,0 0 24px #ff9d2840;color:#fff;text-align:center;animation:closing-pulse 1.2s ease-in-out infinite}.closing-warning[hidden]{display:none!important}.closing-warning span{color:#ffd18a;font-size:12px;font-weight:900;letter-spacing:.12em}.closing-warning strong{margin:2px 0;color:#fff;font-size:34px;line-height:1;font-variant-numeric:tabular-nums}.closing-warning small{color:#ffd7cf;font-size:11px}@keyframes closing-pulse{50%{border-color:#ff6b55;box-shadow:0 15px 40px #0009,0 0 30px #ff574f70}}@media(max-width:800px){.closing-warning{right:12px;bottom:12px;min-width:210px}}@media(prefers-reduced-motion:reduce){.closing-warning{animation:none}}

/* Compact in-POS results browser, opened on today's Eastern date. */
.pos-results-dialog{width:min(610px,94vw);max-width:610px;max-height:82vh;padding:0;overflow:auto;background:#081b31;color:#f4f8ff;border:1px solid #385c7c}.pos-results-heading{display:flex;align-items:center;justify-content:space-between;padding:16px 20px;border-bottom:1px solid #284863}.pos-results-heading h2{margin:0;font-size:23px}.pos-results-navigation{display:grid;grid-template-columns:44px 1fr 44px;align-items:center;gap:10px;padding:14px 20px;background:#0b223b}.pos-results-navigation button{width:44px;height:40px;padding:0;font-size:21px}.pos-results-navigation strong{text-align:center;font-size:16px}.pos-results-content{padding:6px 20px 20px}.pos-results-row{display:grid;grid-template-columns:105px 1fr;align-items:center;gap:18px;padding:15px 2px;border-bottom:1px solid #29455f}.pos-results-row time{color:#b8d0e4;font-size:13px;font-weight:800}.pos-results-balls{display:flex;justify-content:flex-end;gap:16px}.pos-result-item{display:grid;justify-items:center;gap:5px}.pos-result-item small{color:#c7d8e8;font-size:11px;font-weight:800;text-transform:uppercase}.pos-result-ball{display:grid;width:58px;height:58px;place-items:center;border-radius:50%;border:3px solid #ffffffb8;background:radial-gradient(circle at 31% 24%,var(--ball-light),var(--ball-color) 42%,var(--ball-dark) 78%);box-shadow:inset -8px -10px 14px #0005,inset 5px 5px 8px #fff7,0 7px 14px #0007;color:#08101a;font-size:22px;font-weight:1000;text-shadow:0 1px 1px #fff;font-variant-numeric:tabular-nums}.pos-results-empty{padding:30px 0;text-align:center;color:#abc0d4}@media(max-width:520px){.pos-results-row{grid-template-columns:1fr}.pos-results-balls{justify-content:flex-start}.pos-result-ball{width:52px;height:52px}.pos-results-navigation strong{font-size:14px}}

/* Compact thermal receipt: two play columns, using only live ticket data. */
.receipt-page{box-sizing:border-box;width:80mm;max-width:80mm;margin:0;padding:3mm 3mm 10mm;background:#fff;color:#000;font:700 17px/1.3 "Courier New","Liberation Mono",monospace;text-align:left}
.receipt-header{display:flex;min-height:13mm;align-items:center;justify-content:center;background:#fff;border:0}
.receipt-logo{display:block;max-width:58mm;max-height:15mm;object-fit:contain;filter:grayscale(1) contrast(1.6)}
.receipt-copy-notice,.receipt-cancelled,.receipt-meta,.receipt-ticket-code,.receipt-payment-code,.receipt-serial,.receipt-custom-footer{margin:0 0 2mm;text-align:center;color:#000}.receipt-meta,.receipt-ticket-code{font-weight:400}
.receipt-viewing-access{text-align:center;color:#000;margin:3mm 0 1mm}.receipt-viewing-access>p:first-child{margin:0 0 1mm;font-weight:900;font-size:11px}.receipt-viewing-qr{display:block;width:28mm;height:28mm;margin:0 auto;image-rendering:auto}.receipt-viewing-note{margin:1mm 0 0;font-size:9px}
.customer-day-qr-paper{text-align:center!important}.customer-day-qr-paper img{display:block;width:60mm;max-width:100%;height:auto;margin:3mm auto}.customer-day-qr-paper p{font-size:12px;overflow-wrap:anywhere}.customer-day-qr-paper h2,.customer-day-qr-paper h3{margin:2mm 0}
.receipt-copy-notice,.receipt-cancelled{font-weight:900;letter-spacing:.4px}.receipt-copy-notice{display:block;width:max-content;margin:0 auto 2mm!important;padding:1mm 4mm;font-size:22px;line-height:1}.receipt-cancelled{font-size:17px}.receipt-ticket-code{font-size:16px;font-weight:400;letter-spacing:.2px}
.receipt-divider{height:0;border-top:1px dashed #000;margin:3mm 0}
.receipt-heading-divider{margin:0 0 2mm}
.receipt-heading-divider-before{margin:2mm 0 2mm}
.receipt-draw-summary,.receipt-total{margin:0;text-align:center;color:#000;font-weight:900;letter-spacing:.2px}
.receipt-draw-summary{font-size:22px;line-height:1.22;white-space:pre-line}.receipt-total{font-size:28px;letter-spacing:.5px}
.receipt-plays{width:100%;table-layout:fixed;border-collapse:collapse;font-variant-numeric:tabular-nums}.receipt-plays th,.receipt-plays td{box-sizing:border-box}.receipt-plays th:nth-child(1),.receipt-plays td:nth-child(1),.receipt-plays th:nth-child(3),.receipt-plays td:nth-child(3){width:27%;text-align:left}.receipt-plays th:nth-child(2),.receipt-plays td:nth-child(2),.receipt-plays th:nth-child(4),.receipt-plays td:nth-child(4){width:23%;text-align:right}.receipt-plays th{padding:0 .5mm 1.4mm;font-size:16px;font-weight:700;white-space:nowrap}.receipt-plays th:nth-child(2),.receipt-plays td:nth-child(2){padding-right:2.5mm}.receipt-plays th:nth-child(3),.receipt-plays td:nth-child(3){padding-left:2.5mm}.receipt-plays td{padding:1.35mm .5mm;color:#000;vertical-align:top;border:0;font-size:22px;font-weight:700;white-space:nowrap}.receipt-plays .receipt-amount{text-align:right;letter-spacing:-.3px}.receipt-plays .receipt-winner{background:#d9d9d9;font-weight:900}.receipt-custom-footer{margin-top:3mm;padding-bottom:4mm;white-space:pre-line;overflow-wrap:anywhere;font-size:16px;line-height:1.32;font-weight:700}
.receipt-real-plays th:nth-child(1),.receipt-real-plays td:nth-child(1){width:72%;text-align:left}.receipt-real-plays th:nth-child(2),.receipt-real-plays td:nth-child(2){width:28%;padding-right:.5mm;text-align:right}.receipt-real-plays .receipt-play{text-align:left;white-space:nowrap}.receipt-real-plays .receipt-amount{text-align:right;white-space:nowrap}
.receipt-preview-paper .receipt-page{font:700 12px/1.25 "Courier New","Liberation Mono",monospace}.receipt-preview-paper .receipt-header{min-height:16mm}.receipt-preview-paper .receipt-logo{filter:grayscale(1) contrast(1.6)}.receipt-preview-paper .receipt-plays td{border:0}.receipt-preview-paper .receipt-winner{background:#d0f5da;font-weight:900}.receipt-preview-paper .receipt-winner:first-child{border-left:0}
.customer-pass{text-align:center!important;min-height:125mm!important;padding-top:8mm!important}.customer-pass h2{font-size:22px!important;text-align:center}.customer-pass-message{font-weight:900;font-size:14px}.customer-pass-qr{display:block;width:52mm;height:52mm;margin:6mm auto}.customer-pass-note{font-size:11px}
.customer-pass-dialog{max-height:90vh;overflow:auto;text-align:center}.customer-pass-dialog .customer-pass-qr{width:min(260px,70vw);height:auto;aspect-ratio:1;margin:16px auto;background:#fff;border:8px solid #fff;border-radius:8px}.customer-pass-dialog .dialog-actions{justify-content:center;flex-wrap:wrap}.customer-pass-dialog .dialog-actions>*{min-height:44px;display:inline-flex;align-items:center;justify-content:center}.customer-pass-dialog .dialog-actions>[hidden]{display:none}.customer-pass-dialog input{width:100%;margin-top:10px}
.receipt-text-header{font-size:28px;font-weight:900;letter-spacing:1px}
.receipt-title{display:grid;width:100%;grid-template-columns:minmax(0,1fr);min-height:15mm;align-content:center;justify-content:center;justify-items:center;gap:1mm;text-align:center;font-weight:900}.receipt-title .receipt-brand{display:block;width:100%;font-size:34px;line-height:1;letter-spacing:.3px;font-weight:1000;text-align:center;color:#000}.receipt-title .receipt-group{font-size:18px;line-height:1.1;letter-spacing:.3px;font-weight:900}
.receipt-title.receipt-owner-header{min-height:15mm}
.receipt-brand-line{display:flex;width:100%;align-items:baseline;justify-content:center;gap:2mm;white-space:nowrap;text-align:center}
.receipt-origin-group,.receipt-origin-post{display:inline-block;color:#000;font-family:"Courier New","Liberation Mono",monospace;font-weight:700;letter-spacing:0}
.receipt-origin-group{font-size:18px}.receipt-origin-post{font-size:14px}
.receipt-serial{margin:0 0 2mm;text-align:center;font-size:10px;line-height:1.25;overflow-wrap:anywhere;color:#000}
.receipt-payment-code{margin:0 0 2mm;text-align:center;font-size:16px;font-weight:900;letter-spacing:0;color:#000}

/* Compact device-request controls in the admin approval list. */
.device-actions{display:flex;align-items:center;gap:7px}.device-icon-button{width:34px;min-width:34px;height:32px;margin:0;padding:0;border-radius:8px;font-size:17px;line-height:1}.device-icon-button.approve{background:#167653}.device-icon-button.delete{background:#9d3945}
.device-results-posts{min-width:210px}.device-results-post{display:flex;flex-direction:column;gap:3px;line-height:1.25}.device-results-post+.device-results-post{margin-top:9px;padding-top:9px;border-top:1px solid #d8e5ee}.device-results-post strong{font-weight:800}.device-results-post small{font-size:.78rem;color:#506677;white-space:normal}

/* Track names mirror the ticket wording exactly. */
.draw-card-name{text-transform:none!important}

/* Keep the three entry fields visually even and make the live total easier to scan. */
@media screen and (min-width:801px){
  .terminal-mode .entry-toolbar{
    grid-template-columns:repeat(4,minmax(0,1fr));
    align-items:stretch;
  }
  .terminal-mode .pos-workspace form{grid-template-rows:61px 44px 50px minmax(0,1fr) 31px}
  .terminal-mode .points-entry{display:contents}
  .terminal-mode .entry-toolbar .entry-field,
  .terminal-mode .entry-toolbar .availability,
  .terminal-mode .entry-toolbar .entry-running-total{height:50px;min-height:50px;margin:0}
  .terminal-mode .entry-toolbar .entry-field{display:block}
  .terminal-mode .entry-toolbar input{height:50px}
  .terminal-mode .entry-toolbar .entry-running-total{display:flex;align-items:center;justify-content:center;gap:9px;padding:3px 10px;border:1px solid #2182c1;border-radius:7px;background:#051d35}
  .terminal-mode .entry-toolbar .entry-running-total span{font-size:14px}
  .terminal-mode .entry-toolbar .entry-running-total output{font-size:30px}
}

/* The four seller entry surfaces are deliberately one identical size. */
@media screen and (min-width:801px){
  .terminal-mode .entry-toolbar{
    grid-template-columns:repeat(4,minmax(0,1fr))!important;
    grid-auto-rows:52px;
    align-items:stretch;
  }
  .terminal-mode .entry-toolbar .points-entry{display:contents!important}
  .terminal-mode .entry-toolbar .entry-field,
  .terminal-mode .entry-toolbar .availability,
  .terminal-mode .entry-toolbar .entry-running-total,
  .terminal-mode .entry-toolbar .entry-field input{
    box-sizing:border-box;
    block-size:52px;
    min-block-size:52px;
    max-block-size:52px;
    margin:0;
  }
  .terminal-mode .entry-toolbar .entry-field{
    display:block;
  }
  .terminal-mode .entry-toolbar .entry-running-total{
    border:0;
    border-radius:0;
    background:transparent;
    justify-content:flex-end;
    padding-right:8px;
  }
  .terminal-mode .entry-toolbar .entry-running-total span{
    font-size:16px;
    letter-spacing:.04em;
  }
  .terminal-mode .entry-toolbar .entry-running-total output{
    color:#63e3b4;
    font-size:42px;
    font-weight:900;
    line-height:1;
  }
  .terminal-mode .ticket-total-bar{font-size:27px;min-height:58px}
}

/* Final compact desktop draw strip override. */
@media screen and (min-width:801px){
  body.terminal-mode #ticket-form{grid-template-rows:50px auto 112px minmax(0,1fr) 36px}
  body.terminal-mode .draw-strip{margin-bottom:4px;padding:4px 6px;border-radius:8px}
  body.terminal-mode .draw-card{height:40px;min-height:40px;padding:4px 8px;border-radius:6px}
  body.terminal-mode .draw-strip .draw-card strong{font-size:clamp(14px,1.05vw,18px)}
}

/* Seller header: the brand owns the center, the station name sits beneath it. */
@media screen and (min-width:801px){
  body.terminal-mode>header{min-height:128px}
  body.terminal-mode>header .brand{top:46%}
  body.terminal-mode>header .app-logo{width:620px;height:120px}
  body.terminal-mode>header #identity{position:absolute;left:50%;top:101px;transform:translateX(-50%);max-width:330px;color:#c9d9ef;font-size:14px;font-weight:800;letter-spacing:.08em;text-align:center}
  body.terminal-mode>header .terminal-status{position:absolute;right:28px;bottom:11px;margin:0}
  body.terminal-mode>header .terminal-status>div>span{display:none}
  body.terminal-mode>header .terminal-status strong{font-size:15px;letter-spacing:.05em}
}

/* Light slate and electric-orange seller theme: available for visual review only. */
body.terminal-mode.orange-theme{background:#f3f4f6;color:#2d3748;--ink:#2d3748;--muted:#667085;--line:#d8dee7}
body.terminal-mode.orange-theme>header{background:#2d3748;border-color:#2d3748;color:#fff}
body.terminal-mode.orange-theme .app-logo{filter:drop-shadow(0 3px 8px #0008);mix-blend-mode:normal}
body.terminal-mode.orange-theme #identity,body.terminal-mode.orange-theme .terminal-status strong{color:#fff}
body.terminal-mode.orange-theme .nav-toggle{background:#374151;border-color:#4b5563;color:#fff;box-shadow:none}
body.terminal-mode.orange-theme .language-toggle{background:#374151!important;border-color:#4b5563!important;color:#fff!important;box-shadow:none}
body.terminal-mode.orange-theme .language-toggle #language-flag{box-shadow:none}
body.terminal-mode.orange-theme .header-live{border-color:#4b5563!important;background:#374151!important;box-shadow:none;color:#fff!important;text-shadow:none!important}
body.terminal-mode.orange-theme .header-qr{color:#fff}
body.terminal-mode.orange-theme main{background:#f3f4f6}
body.terminal-mode.orange-theme .draw-strip,body.terminal-mode.orange-theme .pos-action-row{background:#f3f4f6;border-color:#d8dee7}
body.terminal-mode.orange-theme .draw-card{background:#fff;border-color:#d8dee7;color:#2d3748}
body.terminal-mode.orange-theme .draw-card-name{color:#2d3748}
body.terminal-mode.orange-theme .draw-card.selected{border-color:#ff6b35;background:#ff6b35;box-shadow:none}
body.terminal-mode.orange-theme .draw-card.selected .draw-card-name{color:#fff}
body.terminal-mode.orange-theme .pos-action-row .pos-icon-action{background:#fff!important;border-color:#d8dee7!important;color:#2d3748!important}
body.terminal-mode.orange-theme .action-pay{background:#ff6b35!important;border-color:#ff6b35!important;color:#fff!important;box-shadow:none!important}
body.terminal-mode.orange-theme .entry-toolbar input,body.terminal-mode.orange-theme .entry-toolbar .availability{background:#fff;border-color:#d8dee7;color:#2d3748;box-shadow:none}
body.terminal-mode.orange-theme .entry-toolbar input::placeholder{color:#667085}
body.terminal-mode.orange-theme .entry-toolbar .availability strong,body.terminal-mode.orange-theme .entry-toolbar .entry-running-total output{color:#2d3748}
body.terminal-mode.orange-theme .entry-toolbar .entry-running-total{color:#2d3748}
body.terminal-mode.orange-theme .pos-number-panel,body.terminal-mode.orange-theme .pos-ticket-information{background:#fff;border-color:#d8dee7;box-shadow:none}
body.terminal-mode.orange-theme .ticket-table-title,body.terminal-mode.orange-theme .pos-ticket-information .ticket-table-title{background:#2d3748!important;color:#fff}
body.terminal-mode.orange-theme .direct-ticket-title{background:#2d3748!important}
body.terminal-mode.orange-theme .direct-ticket-table th{background:#edf0f4;color:#2d3748}
body.terminal-mode.orange-theme .pos-table{color:#2d3748}
body.terminal-mode.orange-theme .pos-table td{border-color:#e4e7ec}
body.terminal-mode.orange-theme .table-scroll{background:#fff}
body.terminal-mode.orange-theme .ticket-total-bar{background:#2d3748;color:#fff}
body.terminal-mode.orange-theme .ticket-total-bar b{color:#fff}
body.terminal-mode.orange-theme .recent-ticket-row,body.terminal-mode.orange-theme .recent-ticket-featured{background:#fff;border-color:#e4e7ec}
body.terminal-mode.orange-theme .recent-ticket-top strong{color:#2d3748}
body.terminal-mode.orange-theme .recent-ticket-top b{color:#2d3748}
body.terminal-mode.orange-theme .recent-ticket-actions button{background:#f8fafc;border-color:#d8dee7;color:#2d3748}
body.terminal-mode.orange-theme .pos-footer{border-color:#d8dee7;color:#667085}

/* Final orange seller layout: paper-light interface with navy used only for text. */
body.terminal-mode.orange-theme,body.terminal-mode.orange-theme main,body.terminal-mode.orange-theme .pos-workspace{background:#f6f7f9!important;color:#172b4d!important}
body.terminal-mode.orange-theme>header{background:#f6f7f9!important;border-bottom:1px solid #dce2ea!important;color:#172b4d!important}
body.terminal-mode.orange-theme .app-logo{filter:drop-shadow(0 2px 4px #172b4d22)!important}
body.terminal-mode.orange-theme #identity,body.terminal-mode.orange-theme .terminal-status strong{color:#172b4d!important}
body.terminal-mode.orange-theme .nav-toggle,body.terminal-mode.orange-theme .language-toggle,body.terminal-mode.orange-theme .header-live,body.terminal-mode.orange-theme .header-qr{background:#fff!important;border-color:#dce2ea!important;color:#172b4d!important}
body.terminal-mode.orange-theme .draw-strip,body.terminal-mode.orange-theme .pos-action-row{background:transparent!important;border:0!important}
body.terminal-mode.orange-theme .draw-card{height:56px!important;min-height:56px!important;border:1px solid #d7dee8!important;border-radius:9px!important;background:#fff!important;box-shadow:none!important}
body.terminal-mode.orange-theme .draw-card,body.terminal-mode.orange-theme .draw-card-name,body.terminal-mode.orange-theme .draw-card strong,body.terminal-mode.orange-theme .draw-card small{color:#172b4d!important}
body.terminal-mode.orange-theme .draw-card.selected,body.terminal-mode.orange-theme .draw-card.selected:first-child:not(.selected){border-color:#ff6633!important;background:#ff6633!important}
body.terminal-mode.orange-theme .draw-card.selected,body.terminal-mode.orange-theme .draw-card.selected .draw-card-name,body.terminal-mode.orange-theme .draw-card.selected strong,body.terminal-mode.orange-theme .draw-card.selected small{color:#fff!important}
body.terminal-mode.orange-theme .pos-action-row{display:grid!important;grid-template-columns:repeat(5,48px) minmax(240px,1fr)!important;min-height:50px!important;padding:0!important}
body.terminal-mode.orange-theme .pos-action-row .pos-icon-action{width:48px!important;height:48px!important;min-height:48px!important;border:1px solid #d7dee8!important;border-radius:8px!important;background:#fff!important;color:#172b4d!important}
body.terminal-mode.orange-theme .pos-action-spacer{display:none!important}
body.terminal-mode.orange-theme .action-pay{min-height:48px!important;height:48px!important;border-radius:8px!important;background:#ff6633!important;border-color:#ff6633!important;color:#fff!important}
body.terminal-mode.orange-theme .entry-toolbar{grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:10px!important}
body.terminal-mode.orange-theme .entry-toolbar .entry-field,body.terminal-mode.orange-theme .entry-toolbar .availability,body.terminal-mode.orange-theme .entry-toolbar .entry-running-total{min-height:66px!important;height:66px!important;border:1px solid #d7dee8!important;border-radius:8px!important;background:#fff!important}
body.terminal-mode.orange-theme .entry-toolbar input{height:66px!important;border:0!important;background:transparent!important;color:#172b4d!important;font-size:25px!important}
body.terminal-mode.orange-theme .entry-toolbar .availability strong,body.terminal-mode.orange-theme .entry-toolbar .entry-running-total,body.terminal-mode.orange-theme .entry-toolbar .entry-running-total span{color:#172b4d!important}
body.terminal-mode.orange-theme .entry-toolbar .entry-running-total{justify-content:flex-end!important;padding-right:0!important;border-color:transparent!important;background:transparent!important;font-size:22px!important}
body.terminal-mode.orange-theme .entry-toolbar .entry-running-total output{color:#ff6633!important;font-size:42px!important}
body.terminal-mode.orange-theme .pos-ticket-workspace{gap:18px!important}
body.terminal-mode.orange-theme .pos-number-panel,body.terminal-mode.orange-theme .pos-ticket-information{border:1px solid #dce2ea!important;border-radius:12px!important;background:#fff!important}
body.terminal-mode.orange-theme .ticket-table-title,body.terminal-mode.orange-theme .direct-ticket-title,body.terminal-mode.orange-theme .pos-ticket-information .ticket-table-title{min-height:58px!important;background:#fff!important;color:#172b4d!important;border-bottom:1px solid #dce2ea!important;font-size:20px!important}
body.terminal-mode.orange-theme .table-clear{color:#172b4d!important}
body.terminal-mode.orange-theme .direct-ticket-table th{background:#eef1f5!important;color:#172b4d!important}
body.terminal-mode.orange-theme .direct-ticket-table .repeated-play td{background:#fff!important;color:#172b4d!important}
body.terminal-mode.orange-theme .line-remove{color:#7b8794!important}
body.terminal-mode.orange-theme .ticket-total-bar{background:#fff!important;border-top:1px solid #dce2ea!important;color:#172b4d!important}
body.terminal-mode.orange-theme .ticket-total-bar b{color:#ff6633!important}
body.terminal-mode.orange-theme .recent-ticket-top b{color:#ff6633!important}
body.terminal-mode.orange-theme .recent-ticket-actions button{background:#f3f5f7!important;border:0!important;color:#172b4d!important}

body.terminal-mode.orange-theme .recent-tickets{background:#fff!important}

/* Sòlèy system palette: navy, sun-gold, white, with logo-ball blue/red reserved for states. */
:root{--soley-navy:#102846;--soley-navy-deep:#091a30;--soley-gold:#f3b83f;--soley-gold-light:#fff5dc;--soley-blue:#2999db;--soley-red:#e95b48;--ink:#172b4d;--green:#102846;--line:#d9e1ea;--muted:#607089;color:#172b4d;background:#f7f9fc}
body.admin-mode{background:#f7f9fc;color:#172b4d}.admin-mode>header{background:var(--soley-navy)!important;border-color:#234464!important}.admin-mode .panel,.admin-mode .stat{border-color:#d9e1ea;background:#fff}.admin-mode .stat{background:var(--soley-gold-light)}.admin-mode .eyebrow{color:#a46c08}.admin-mode .primary{background:var(--soley-navy);border-color:var(--soley-navy)}.admin-mode .primary:hover{background:var(--soley-navy-deep)}.admin-mode input:focus,.admin-mode select:focus{outline-color:var(--soley-gold)}
body.login-mode{background:radial-gradient(circle at 50% 12%,#20466e 0,var(--soley-navy) 42%,var(--soley-navy-deep) 100%)}.login-card{border-color:#375a7c;background:#fff;color:#172b4d}.login-card label,.login-card input{color:#172b4d}.login-card input{background:#fff;border-color:#bfcddd}.login-card .primary{background:var(--soley-gold);border-color:var(--soley-gold);color:#172b4d}.login-card .primary:hover{background:#e4a82b}
body.terminal-mode,body.terminal-mode.orange-theme{background:#f7f9fc!important;color:#172b4d!important;--ink:#172b4d;--line:#d9e1ea;--muted:#607089}body.terminal-mode>header,body.terminal-mode.orange-theme>header{background:var(--soley-navy)!important;border-color:#234464!important;color:#fff!important}body.terminal-mode #identity,body.terminal-mode .terminal-status strong,body.terminal-mode.orange-theme #identity,body.terminal-mode.orange-theme .terminal-status strong{color:#fff!important}body.terminal-mode .nav-toggle,body.terminal-mode .language-toggle,body.terminal-mode .header-live,body.terminal-mode .header-qr{border-color:#40658a!important;background:#17395e!important;color:#fff!important}
body.terminal-mode main,body.terminal-mode .pos-workspace{background:#f7f9fc!important}.terminal-mode .draw-card,.terminal-mode.orange-theme .draw-card{border-color:#d9e1ea!important;background:#fff!important;color:#172b4d!important}.terminal-mode .draw-card.selected,.terminal-mode.orange-theme .draw-card.selected{border-color:var(--soley-gold)!important;background:var(--soley-gold)!important}.terminal-mode .draw-card.selected *,.terminal-mode.orange-theme .draw-card.selected *{color:#172b4d!important}.terminal-mode .pos-action-row .pos-icon-action{border-color:#d9e1ea!important;background:#fff!important;color:#172b4d!important}.terminal-mode .action-pay,.terminal-mode.orange-theme .action-pay{background:var(--soley-gold)!important;border-color:var(--soley-gold)!important;color:#172b4d!important}.terminal-mode .entry-toolbar .entry-field,.terminal-mode .entry-toolbar .availability,.terminal-mode .entry-toolbar .entry-running-total{border-color:#d9e1ea!important;background:#fff!important}.terminal-mode .entry-toolbar input{color:#172b4d!important}.terminal-mode .entry-toolbar .entry-running-total output{color:#a46c08!important}.terminal-mode .pos-number-panel,.terminal-mode .pos-ticket-information{border-color:#d9e1ea!important;background:#fff!important}.terminal-mode .ticket-table-title,.terminal-mode .direct-ticket-title,.terminal-mode .pos-ticket-information .ticket-table-title{background:var(--soley-navy)!important;border-color:var(--soley-navy)!important;color:#fff!important}.terminal-mode .direct-ticket-table th{background:#edf2f7!important;color:#172b4d!important}.terminal-mode .pos-table{color:#172b4d!important}.terminal-mode .ticket-total-bar{background:var(--soley-gold-light)!important;color:#172b4d!important;border-color:#eadbb3!important}.terminal-mode .ticket-total-bar b,.terminal-mode .recent-ticket-top b{color:#a46c08!important}.terminal-mode .recent-tickets{background:#fff!important}.terminal-mode .recent-ticket-row{border-color:#d9e1ea!important;background:#fff!important;color:#172b4d!important}.terminal-mode .recent-ticket-actions button{background:#f1f5f9!important;border-color:#d9e1ea!important;color:#172b4d!important}.terminal-mode .pos-footer{border-color:#d9e1ea!important;color:#607089!important}

/* Blue-logo refinement: the logo's blue replaces navy across the application. */
:root{--soley-navy:#167ec1;--soley-navy-deep:#0d5f9e;--green:#167ec1}
body.admin-mode>header{background:#167ec1!important;border-color:#167ec1!important}.admin-mode .primary{background:#167ec1;border-color:#167ec1}.admin-mode .primary:hover{background:#0d5f9e}
body.login-mode{background:radial-gradient(circle at 50% 12%,#55bde9 0,#167ec1 43%,#0d5f9e 100%)}.login-card .primary{background:#167ec1;border-color:#167ec1;color:#fff}.login-card .primary:hover{background:#0d5f9e}
body.terminal-mode>header,body.terminal-mode.orange-theme>header{background:#167ec1!important;border-color:#167ec1!important}.terminal-mode .nav-toggle,.terminal-mode .language-toggle,.terminal-mode .header-live,.terminal-mode .header-qr{background:#0d6fac!important;border-color:#62c5ec!important}.terminal-mode .ticket-table-title,.terminal-mode .direct-ticket-title,.terminal-mode .pos-ticket-information .ticket-table-title{background:#167ec1!important;border-color:#167ec1!important}.terminal-mode .action-pay,.terminal-mode.orange-theme .action-pay{background:#167ec1!important;border-color:#167ec1!important;color:#fff!important}.terminal-mode .draw-card.selected,.terminal-mode.orange-theme .draw-card.selected{border-color:#2999db!important;background:#2999db!important;color:#fff!important}.terminal-mode .draw-card.selected *,.terminal-mode.orange-theme .draw-card.selected *{color:#fff!important}.terminal-mode .entry-toolbar .entry-running-total output,.terminal-mode .ticket-total-bar b,.terminal-mode .recent-ticket-top b{color:#167ec1!important}.terminal-mode .ticket-total-bar{background:#e9f7fd!important;border-color:#b9e6f6!important}
body.terminal-mode .entry-toolbar .entry-field,body.terminal-mode .entry-toolbar .entry-field input{background:#fff!important;color:#172b4d!important;border-color:#d9e1ea!important} body.terminal-mode .entry-toolbar .entry-field input::placeholder{color:#607089!important;opacity:.72!important}

/* Canonical seller UI theme. This final scoped layer intentionally replaces
   the earlier visual experiments without changing the POS DOM or grid. */
body.terminal-mode{
  --seller-bg:#f8fafc;
  --seller-surface:#ffffff;
  --seller-text:#1e293b;
  --seller-muted:#475569;
  --seller-border:#cbd5e1;
  --seller-soft:#f1f5f9;
  --seller-cta:#2563eb;
  --seller-cta-hover:#1d4ed8;
  background:var(--seller-bg)!important;
  color:var(--seller-text)!important;
  font-size:16px;
}
body.terminal-mode *,body.terminal-mode *::before,body.terminal-mode *::after{
  box-shadow:none!important;
  text-shadow:none!important;
  background-image:none!important;
}
body.terminal-mode h1{font-size:32px!important;line-height:1.2}
body.terminal-mode h2{font-size:24px!important;line-height:1.25}
body.terminal-mode h3{font-size:20px!important;line-height:1.3}
body.terminal-mode p,body.terminal-mode label,body.terminal-mode input,
body.terminal-mode select,body.terminal-mode button,body.terminal-mode .button,
body.terminal-mode th,body.terminal-mode td{font-size:16px}
body.terminal-mode small,body.terminal-mode .small,body.terminal-mode .muted{font-size:14px;color:var(--seller-muted)!important}
body.terminal-mode>header{
  background:var(--seller-cta)!important;
  border-color:var(--seller-cta)!important;
  color:#fff!important;
}
body.terminal-mode .app-logo{filter:none!important;mix-blend-mode:normal!important}
body.terminal-mode #identity,body.terminal-mode .terminal-status strong{color:#fff!important}
body.terminal-mode main,body.terminal-mode .pos-workspace,
body.terminal-mode .draw-strip,body.terminal-mode .pos-action-row{background:var(--seller-bg)!important}
body.terminal-mode .draw-strip,body.terminal-mode .pos-action-row{border:0!important}
body.terminal-mode .nav-toggle,body.terminal-mode .language-toggle,
body.terminal-mode .header-live,body.terminal-mode .header-qr,
body.terminal-mode .pos-action-row .pos-icon-action,
body.terminal-mode .recent-ticket-actions button{
  background:var(--seller-surface)!important;
  border:1px solid var(--seller-border)!important;
  color:var(--seller-text)!important;
}
body.terminal-mode .nav-toggle:hover,body.terminal-mode .language-toggle:hover,
body.terminal-mode .header-live:hover,body.terminal-mode .pos-action-row .pos-icon-action:hover,
body.terminal-mode .recent-ticket-actions button:hover{background:var(--seller-soft)!important}
body.terminal-mode .draw-card{
  background:var(--seller-surface)!important;
  border:1px solid var(--seller-border)!important;
  color:var(--seller-text)!important;
}
body.terminal-mode .draw-card *,body.terminal-mode .draw-card-name{color:var(--seller-text)!important}
body.terminal-mode .draw-card.selected{
  background:var(--seller-cta)!important;
  border-color:var(--seller-cta)!important;
  color:#fff!important;
}
body.terminal-mode .draw-card.selected *{color:#fff!important}
body.terminal-mode .action-pay,body.terminal-mode .primary.action-pay{
  background:var(--seller-cta)!important;
  border-color:var(--seller-cta)!important;
  color:#fff!important;
}
body.terminal-mode .action-pay:hover,body.terminal-mode .primary.action-pay:hover{background:var(--seller-cta-hover)!important}
body.terminal-mode .entry-toolbar .entry-field,
body.terminal-mode .entry-toolbar .entry-field input,
body.terminal-mode .entry-toolbar .availability,
body.terminal-mode .entry-toolbar .entry-running-total{
  background:var(--seller-surface)!important;
  border-color:var(--seller-border)!important;
  color:var(--seller-text)!important;
}
body.terminal-mode .entry-toolbar input::placeholder{color:var(--seller-muted)!important;opacity:1!important}
body.terminal-mode input:focus,body.terminal-mode select:focus{
  outline:2px solid var(--seller-text)!important;
  outline-offset:2px;
}
body.terminal-mode .entry-toolbar .availability strong,
body.terminal-mode .entry-toolbar .entry-running-total,
body.terminal-mode .entry-toolbar .entry-running-total span,
body.terminal-mode .entry-toolbar .entry-running-total output{color:var(--seller-text)!important}
body.terminal-mode .pos-number-panel,body.terminal-mode .pos-ticket-information,
body.terminal-mode .table-scroll,body.terminal-mode .recent-tickets,
body.terminal-mode .recent-ticket-row{
  background:var(--seller-surface)!important;
  border-color:var(--seller-border)!important;
  color:var(--seller-text)!important;
}
body.terminal-mode .ticket-table-title,body.terminal-mode .direct-ticket-title,
body.terminal-mode .pos-ticket-information .ticket-table-title{
  background:var(--seller-cta)!important;
  border-color:var(--seller-cta)!important;
  color:#fff!important;
}
body.terminal-mode .ticket-table-title *,body.terminal-mode .direct-ticket-title *{color:#fff!important}
body.terminal-mode .direct-ticket-table th{
  background:var(--seller-soft)!important;
  color:var(--seller-text)!important;
  border-color:var(--seller-border)!important;
}
body.terminal-mode .pos-table{color:var(--seller-text)!important}
body.terminal-mode .pos-table td{background:#fff!important;border-color:var(--seller-border)!important;color:var(--seller-text)!important}
body.terminal-mode .direct-ticket-table .repeated-play td{
  background:var(--seller-soft)!important;
  color:var(--seller-text)!important;
  font-weight:700;
}
body.terminal-mode .line-remove,body.terminal-mode .table-clear{color:inherit!important}
body.terminal-mode .ticket-total-bar{
  background:var(--seller-surface)!important;
  border-color:var(--seller-border)!important;
  color:var(--seller-text)!important;
}
body.terminal-mode .ticket-total-bar b,body.terminal-mode .recent-ticket-top strong,
body.terminal-mode .recent-ticket-top b{color:var(--seller-text)!important}
body.terminal-mode .pos-footer{background:var(--seller-bg)!important;border-color:var(--seller-border)!important;color:var(--seller-muted)!important}
body.terminal-mode .pos-sidebar-inner{background:var(--seller-surface)!important;border-color:var(--seller-border)!important}
body.terminal-mode .pos-nav-link{background:transparent!important;color:var(--seller-text)!important}
body.terminal-mode .pos-nav-link:hover,body.terminal-mode .pos-nav-link.active{background:var(--seller-soft)!important;color:var(--seller-text)!important}

/* Preserve the established header controls and simplify the opened menu. */
body.terminal-mode .header-qr{
  display:grid!important;
  width:38px!important;
  height:38px!important;
  min-width:38px!important;
  padding:0!important;
  place-items:center;
  border:0!important;
  border-radius:0!important;
  background:transparent!important;
  color:#fff!important;
}
body.terminal-mode .header-qr svg{width:30px;height:30px;fill:none;stroke:currentColor;stroke-width:2.25;stroke-linecap:round;stroke-linejoin:round;filter:none!important}
body.terminal-mode .header-qr:hover{background:transparent!important;color:#fff!important;opacity:.82}
body.terminal-mode .header-live{
  display:inline-flex!important;
  min-width:126px!important;
  min-height:40px!important;
  padding:0 18px!important;
  align-items:center;
  justify-content:center;
  border:2px solid #991b1b!important;
  border-radius:999px!important;
  background:#dc2626!important;
  color:#fff!important;
  font-size:14px!important;
  font-weight:900!important;
  letter-spacing:.02em;
}

/* Canonical master administration theme. It uses the same clean blue, white,
   slate, and red/green action language as the seller workspace. */
body.admin-mode{
  --admin-blue:#167ec1;
  --admin-blue-dark:#0d5f9e;
  --admin-surface:#fff;
  --admin-bg:#f7f9fc;
  --admin-text:#1e293b;
  --admin-muted:#607089;
  --admin-border:#d9e1ea;
  background:var(--admin-bg)!important;
  color:var(--admin-text)!important;
  font-size:16px;
}
body.admin-mode>header{height:98px!important;min-height:98px!important;padding:0 24px!important;background:var(--admin-blue)!important;border:0!important;color:#fff!important;box-shadow:none!important}
body.admin-mode>header .app-logo{mix-blend-mode:normal!important;filter:none!important}
body.admin-mode .nav-toggle{display:grid!important;width:44px;height:44px;padding:0!important;place-items:center;border:1px solid #ffffff70!important;border-radius:12px!important;background:#fff!important;color:var(--admin-blue)!important;box-shadow:none!important}
body.admin-mode .nav-toggle::before{content:'☰';display:block;color:var(--admin-blue)!important;font-size:25px;font-weight:900;line-height:1}
body.admin-mode .header-right{gap:12px!important;color:#fff!important}
body.admin-mode #identity{font-size:16px;font-weight:800;color:#fff!important}
body.admin-mode .language-toggle{min-height:42px;border:1px solid #ffffff70!important;background:#fff!important;color:var(--admin-text)!important;box-shadow:none!important}
body.admin-mode #change-password,body.admin-mode #logout{min-height:42px;border:1px solid #ffffff70!important;background:transparent!important;color:#fff!important;box-shadow:none!important}
body.admin-mode #change-password:hover,body.admin-mode #logout:hover{background:#ffffff20!important}
body.admin-mode main{max-width:1440px!important;margin:auto!important;padding:14px 32px 50px!important;background:var(--admin-bg)!important}
body.admin-mode .page-heading{margin:0 0 14px!important}
body.admin-mode .page-heading .eyebrow{margin-bottom:6px!important;color:var(--admin-blue)!important;font-size:11px!important;font-weight:900!important;letter-spacing:.16em!important}
body.admin-mode h1{margin:0!important;color:var(--admin-text)!important;font-size:32px!important;font-weight:850!important;letter-spacing:-.025em!important}
body.admin-mode h2{color:var(--admin-text)!important;font-size:21px!important;font-weight:800!important}
.admin-shell{grid-template-columns:238px minmax(0,1fr)!important;gap:24px!important;align-items:start}
.admin-sidebar{position:sticky;top:18px;padding:8px 0!important;background:transparent!important}
.admin-sidebar>p,.admin-sidebar nav{width:238px!important}
.admin-sidebar>.eyebrow{margin:0 12px 10px!important;color:var(--admin-blue)!important}
.admin-sidebar nav{gap:5px!important}
body.admin-mode .admin-sidebar nav button{min-height:46px;padding:11px 13px!important;border:0!important;border-left:4px solid transparent!important;border-radius:9px!important;background:transparent!important;color:var(--admin-text)!important;font-size:14px!important;font-weight:750!important;box-shadow:none!important}
body.admin-mode .admin-sidebar nav button:hover{background:#eaf4fb!important;color:var(--admin-blue-dark)!important}
body.admin-mode .admin-sidebar nav button.active{border-left-color:var(--admin-blue)!important;background:#e3f2fb!important;color:var(--admin-blue-dark)!important}
body.admin-mode .admin-icon{font-size:20px!important}
body.admin-mode .admin-content{min-width:0}
body.admin-mode .panel,body.admin-mode .stat{padding:24px!important;border:1px solid var(--admin-border)!important;border-radius:14px!important;background:var(--admin-surface)!important;color:var(--admin-text)!important;box-shadow:none!important}
body.admin-mode .panel .muted,body.admin-mode .panel small,body.admin-mode td small{color:var(--admin-muted)!important}
body.admin-mode .section-title{min-height:48px;margin-bottom:18px!important;align-items:flex-start!important}
body.admin-mode .section-title h2{margin:0!important}
body.admin-mode button,body.admin-mode .button{min-height:42px;border:1px solid var(--admin-border)!important;border-radius:9px!important;background:#fff!important;color:var(--admin-text)!important;font-size:14px!important;font-weight:750!important;box-shadow:none!important}
body.admin-mode button:hover,body.admin-mode .button:hover{border-color:#9bcde9!important;background:#eef8fd!important;color:var(--admin-blue-dark)!important}
body.admin-mode .primary{border-color:var(--admin-blue)!important;background:var(--admin-blue)!important;color:#fff!important}
body.admin-mode .primary:hover{background:var(--admin-blue-dark)!important;color:#fff!important}
body.admin-mode input,body.admin-mode select{min-height:44px;border:1px solid #bdcad8!important;background:#fff!important;color:var(--admin-text)!important}
body.admin-mode input:focus,body.admin-mode select:focus{outline:3px solid #35a8e840!important;border-color:var(--admin-blue)!important}
body.admin-mode .table-wrap{overflow:auto;border:1px solid var(--admin-border)!important;border-radius:12px!important;background:#fff!important}
body.admin-mode table{color:var(--admin-text)!important;font-size:14px!important}
body.admin-mode th{height:48px;padding:12px 14px!important;border-color:var(--admin-border)!important;background:#edf5fa!important;color:#334155!important;font-size:11px!important;font-weight:900!important;letter-spacing:.08em!important}
body.admin-mode td{padding:14px!important;border-color:#e6ebf1!important;background:#fff!important;color:var(--admin-text)!important;vertical-align:middle!important}
body.admin-mode tbody tr:hover td{background:#f8fbfd!important}
body.admin-mode .device-actions{gap:8px!important}
body.admin-mode .device-icon-button{width:38px!important;min-width:38px!important;height:38px!important;min-height:38px!important;padding:0!important;border:0!important;border-radius:9px!important;color:#fff!important;font-size:19px!important}
body.admin-mode .device-icon-button.approve{background:#11875d!important}
body.admin-mode .device-icon-button.delete{background:#d43d4f!important}
body.admin-mode .device-icon-button:hover{filter:brightness(.92)}
body.admin-mode .device-toolbar-view{border-color:#9bcde9!important;background:#e9f6fc!important;color:var(--admin-blue-dark)!important}
body.admin-mode .device-toolbar-clear{border-color:#efb3bb!important;background:#fff1f3!important;color:#b42335!important}
body.admin-mode .device-toolbar-clear:hover{border-color:#d43d4f!important;background:#ffe4e8!important;color:#941b2b!important}
body.admin-mode #device-rows td[colspan]{height:90px;color:var(--admin-muted)!important;text-align:center!important}
body.admin-mode .stats{gap:16px!important}
body.admin-mode .stat{min-height:120px!important;background:#fff!important}
body.admin-mode .stat span{color:var(--admin-muted)!important;font-size:12px!important;font-weight:850!important}
body.admin-mode .stat strong{color:var(--admin-blue-dark)!important;font-size:30px!important}
body.admin-mode dialog,body.admin-mode .terminal-workspace-dialog{border:1px solid var(--admin-border)!important;background:#fff!important;color:var(--admin-text)!important;box-shadow:0 24px 80px #0f315344!important}
body.admin-mode .admin-sidebar-owner{border:1px solid var(--admin-border)!important;background:#fff!important;color:var(--admin-text)!important}

/* Complete admin-page cleanup: remove the remaining legacy dark modules and
   give every administration view the same flat visual language as the POS. */
body.admin-mode .admin-columns{grid-template-columns:minmax(0,1fr)!important;gap:20px!important}
body.admin-mode .admin-columns>.panel{height:auto!important}
body.admin-mode .settings-panel{max-width:none!important;gap:18px!important}
body.admin-mode .settings-page-heading{padding:0!important}
body.admin-mode .settings-section{
  gap:16px!important;
  padding:24px!important;
  border:1px solid var(--admin-border)!important;
  border-radius:12px!important;
  background:#fff!important;
  color:var(--admin-text)!important;
}
body.admin-mode .settings-section h3{margin:0!important;color:var(--admin-text)!important;font-size:19px!important}
body.admin-mode .settings-section .eyebrow{color:var(--admin-blue)!important}
body.admin-mode .settings-schedule{border-color:#b8dcef!important;background:#f5fbfe!important}
body.admin-mode .settings-schedule .daily-time-controls label{
  padding:14px!important;
  border:1px solid var(--admin-border)!important;
  border-radius:10px!important;
  background:#fff!important;
}
body.admin-mode .settings-schedule .daily-time-controls label>span{color:var(--admin-text)!important}
body.admin-mode .settings-schedule .fixed-game-card,
body.admin-mode .settings-schedule .extra-game-card{display:grid;align-content:start;gap:7px;min-width:0;padding:16px;border:1px solid var(--admin-border);border-radius:10px;background:#fff}
body.admin-mode .settings-schedule .fixed-game-card strong{font-size:16px;color:var(--admin-text)}
body.admin-mode .settings-schedule .fixed-game-card span{font-size:20px;font-weight:800;color:var(--admin-blue)}
body.admin-mode .settings-schedule .fixed-game-card small,
body.admin-mode .settings-schedule .extra-game-card small{color:var(--admin-muted)}
body.admin-mode .settings-schedule .extra-games-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;padding-top:12px;border-top:1px solid var(--admin-border)}
body.admin-mode .settings-schedule .extra-games-heading p{margin:5px 0 0}
body.admin-mode .settings-schedule .extra-game-card label{display:grid;gap:6px;padding:0!important;border:0!important;background:transparent!important}
body.admin-mode .settings-schedule .extra-game-remove{justify-self:start;color:#a62636;border-color:#dc8791;background:#fff}
@media(max-width:650px){body.admin-mode .settings-schedule .extra-games-heading{align-items:stretch;flex-direction:column}}
body.admin-mode input[type=time]{color-scheme:light!important}
body.admin-mode .share-preview{
  border:1px solid var(--admin-border)!important;
  background:#f8fafc!important;
  color:var(--admin-text)!important;
}
body.admin-mode .settings-disclosure{
  border:1px solid var(--admin-border)!important;
  background:#fff!important;
  color:var(--admin-text)!important;
}
body.admin-mode .settings-disclosure>summary{background:#f1f5f9!important;color:var(--admin-text)!important}
body.admin-mode .settings-disclosure[open]>summary{border-bottom:1px solid var(--admin-border)!important;background:#eaf4fb!important;color:var(--admin-blue-dark)!important}
body.admin-mode .settings-exposure{background:#fff!important}
body.admin-mode .settings-save{
  border:1px solid var(--admin-border)!important;
  background:#f8fafc!important;
  box-shadow:none!important;
  backdrop-filter:none!important;
}
body.admin-mode .exposure-table{overflow:auto;border:1px solid var(--admin-border)!important;border-radius:10px!important}
body.admin-mode .label-row{min-height:68px;padding:12px 0!important;border-color:var(--admin-border)!important}
body.admin-mode .label-copy strong{color:var(--admin-text)!important}
body.admin-mode .recovery-codes{border:1px solid var(--admin-border)!important;background:#f8fafc!important;color:var(--admin-text)!important}
body.admin-mode #notice:not(:empty){border:1px solid #9bcde9!important;background:#e9f6fc!important;color:var(--admin-blue-dark)!important}
body.admin-mode #notice.error{border-color:#efb3bb!important;background:#fff1f3!important;color:#9f2032!important}
.action-feedback{position:fixed;z-index:5000;right:max(18px,env(safe-area-inset-right));bottom:max(18px,env(safe-area-inset-bottom));display:flex;align-items:center;gap:12px;width:min(440px,calc(100vw - 36px));min-height:58px;padding:12px 14px;border:1px solid #4cbe91;border-radius:12px;background:#102d30;color:#f4fff9;box-shadow:0 16px 40px #0007;font-size:14px;font-weight:650;line-height:1.35;animation:action-feedback-in .2s ease-out}
.action-feedback.is-error{border-color:#f68b98;background:#451d2a;color:#fff7f8}
.action-feedback-icon{display:grid;place-items:center;flex:none;width:28px;height:28px;border-radius:50%;background:#44df9b;color:#0b2921;font-size:18px;font-weight:900}
.action-feedback.is-error .action-feedback-icon{background:#f68b98;color:#451d2a}
.action-feedback-close{display:grid;place-items:center;flex:none;margin-left:auto;width:32px;height:32px;padding:0;border:0;border-radius:7px;background:transparent;color:inherit;font-size:22px}
.action-feedback-close:hover{background:#ffffff24}
.single-manager-group #terminal-form~.table-wrap th:nth-child(2),.single-manager-group #terminal-form~.table-wrap td:nth-child(2){display:none}
@keyframes action-feedback-in{from{opacity:0;transform:translateY(12px)}to{opacity:1;transform:translateY(0)}}
@media(max-width:600px){.action-feedback{left:18px;right:18px;bottom:max(18px,env(safe-area-inset-bottom));width:auto}}
@media(prefers-reduced-motion:reduce){.action-feedback{animation:none}}
body.admin-mode .chart-legend{color:var(--admin-muted)!important}
body.admin-mode .chart-bars{border-color:var(--admin-border)!important;background:none!important}
body.admin-mode .chart-value,body.admin-mode .chart-day small{color:var(--admin-muted)!important}
body.admin-mode .chart-bar{border-radius:4px 4px 0 0!important;background-image:none!important}
body.admin-mode .chart-bar.sales{background:#167ec1!important}
body.admin-mode .chart-bar.winnings{background:#d43d4f!important}
body.admin-mode .chart-bar.balance{background:#138451!important}
body.admin-mode .sales-value{color:#0b7652!important}
body.admin-mode .winnings-value{color:#b42335!important}
body.admin-mode .inline-form{padding:2px 0 18px!important;gap:14px!important}
body.admin-mode .inline-form label{margin:0!important}
body.admin-mode .inline-form button{margin:0!important}
body.admin-mode output{color:var(--admin-text)!important}
body.admin-mode details p{color:var(--admin-muted)!important}
body.admin-mode hr{border-color:var(--admin-border)!important}
body.admin-mode .terminal-launcher{grid-template-columns:repeat(auto-fill,minmax(170px,1fr))!important;gap:24px!important}
body.admin-mode .terminal-launcher-card,body.admin-mode .terminal-launcher-card.master{
  min-height:190px!important;
  border:0!important;
  background:transparent!important;
  color:var(--admin-text)!important;
  box-shadow:none!important;
}
body.admin-mode .terminal-launcher-card:hover,body.admin-mode .terminal-launcher-card.master:hover{background:#eef8fd!important;transform:translateY(-2px)}
body.admin-mode .terminal-manager-name{color:var(--admin-text)!important}
body.admin-mode .terminal-group-name{color:var(--admin-muted)!important}
body.admin-mode .terminal-group-name::before{color:var(--admin-muted)!important}
html[lang="es"] body.admin-mode .terminal-group-name::before{content:'Grupo · '}
body.admin-mode .direct-terminals .terminal-group-name::before{content:''!important}
body.admin-mode .terminal-avatar{border-color:#fff!important;box-shadow:0 0 0 1px var(--admin-border)!important}
body.admin-mode .number-sales-page{color:var(--admin-text)!important}
body.admin-mode .number-sale{border:1px solid var(--admin-border)!important;background:#fff!important;color:var(--admin-text)!important}
body.admin-mode .number-sale-number{color:var(--admin-blue-dark)!important}
body.admin-mode .number-sale-amount{color:var(--admin-text)!important}
body.admin-mode .number-sale small{color:var(--admin-muted)!important}
body.admin-mode #admin-page-records>h2{margin-bottom:8px!important}
body.admin-mode #admin-page-records>p{max-width:850px;color:var(--admin-muted)!important}
body.admin-mode #admin-page-records>select{width:min(420px,100%);margin:0 10px 18px 0}
body.admin-mode #admin-page-records>button{margin:0 8px 18px 0}
body.admin-mode #admin-page-records>div>.panel{display:grid;grid-template-columns:minmax(0,1fr) auto auto;align-items:center;gap:12px;padding:18px!important}
body.admin-mode #admin-page-records>div>.panel p{grid-column:1/-1;margin:0;color:var(--admin-muted)!important}
body.admin-mode .redemption-dialog,body.admin-mode .redemption-dialog *{color:var(--admin-text)!important}
body.admin-mode .ticket-search{padding:20px!important;margin:18px 0;background:#fff!important}
body.admin-mode .overview-group-link{border:0!important;background:transparent!important;padding:4px 2px!important;color:var(--admin-blue-dark)!important;font-weight:800;text-align:left;text-decoration:underline;text-underline-offset:3px;cursor:pointer}
body.admin-mode .overview-group-link:hover,body.admin-mode .overview-group-link:focus-visible{color:#0b6cb3!important;text-decoration-thickness:2px}
body.admin-mode .device-actions .device-icon-button{width:auto!important;min-width:90px!important;min-height:42px!important;padding:0 12px!important;font-size:.83rem!important;font-weight:800!important}
body.admin-mode .ticket-search-controls{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}
body.admin-mode .ticket-search-field{display:grid;gap:7px;min-width:0;font-weight:700;color:var(--admin-text)}
body.admin-mode .ticket-search-field select,body.admin-mode .ticket-search-field input{width:100%;min-width:0;height:44px;box-sizing:border-box}
body.admin-mode .ticket-search-actions,body.admin-mode .ticket-search-pager,body.admin-mode .ticket-record-actions{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
body.admin-mode .ticket-search-actions{margin-top:18px}
body.admin-mode .ticket-search-message{margin:12px 0;color:var(--admin-muted)}
body.admin-mode .ticket-record-list{display:grid;gap:10px}
body.admin-mode .ticket-record-row{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:6px 16px;align-items:center;padding:16px 20px!important;margin:0!important}
body.admin-mode .ticket-record-identity{display:flex;align-items:center;gap:12px;flex-wrap:wrap;color:var(--admin-text)}
body.admin-mode .ticket-record-identity strong{font-size:1.1rem}
body.admin-mode .ticket-record-status{border:1px solid var(--admin-border);border-radius:20px;padding:3px 9px;font-size:.8rem}
body.admin-mode .ticket-record-row p{grid-column:1;margin:0;color:var(--admin-muted)!important}
body.admin-mode .ticket-record-actions{grid-column:2;grid-row:1/4;justify-content:flex-end}
body.admin-mode .ticket-search-pager{margin-top:16px}
body.admin-mode .sales-history-controls,.seller-sales-history .sales-history-controls{display:grid;grid-template-columns:repeat(3,minmax(0,1fr)) auto;gap:14px;align-items:end;margin:18px 0}
.sales-history-field{display:grid;gap:7px;min-width:0;font-weight:700}
.sales-history-field input,.sales-history-field select{width:100%;height:44px;box-sizing:border-box}
.sales-history-controls>button{min-height:44px}
.sales-history-hero{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin:18px 0 24px}
.sales-history-total{display:grid;gap:7px;padding:20px;border:1px solid #d7e1eb;border-radius:12px;background:#f5f9fc}
.sales-history-total span{font-size:.8rem;font-weight:800;text-transform:uppercase;letter-spacing:.08em;color:#52657b}
.sales-history-total strong{font-size:clamp(1.35rem,2vw,2rem);font-variant-numeric:tabular-nums;color:#142b49}
.sales-history-total.balanceUnits{background:#e9f2fa;border-color:#b9d2e8}
.sales-history-table{width:100%;font-variant-numeric:tabular-nums}
.sales-history-table th,.sales-history-table td{padding:13px 16px;text-align:left}
body.admin-mode .sales-history-controls{grid-template-columns:repeat(2,minmax(0,1fr)) auto}
.sales-history-group-labels,.sales-history-group>summary{display:grid;grid-template-columns:minmax(240px,2fr) repeat(3,minmax(110px,1fr));align-items:center;gap:12px;padding:14px 18px}
.sales-history-group-labels{color:#52657b;font-size:.8rem;font-weight:800;text-transform:uppercase;letter-spacing:.06em}
.sales-history-group{margin:8px 0;border:1px solid #d7e1eb;border-radius:10px;background:#fff;overflow:hidden}
.sales-history-group>summary{cursor:pointer;font-weight:800;list-style:none;background:#f3f7fb}
.sales-history-group>summary::-webkit-details-marker{display:none}
.sales-history-group>summary:hover{background:#e9f2fa}
.sales-history-group>summary:focus-visible{outline:3px solid #4789ca;outline-offset:-3px}
.sales-history-group>summary>span:not(:first-child){text-align:right;font-variant-numeric:tabular-nums}
.sales-history-group-name:before{content:'▸';display:inline-block;margin-right:10px;color:#386aa0}
.sales-history-group[open] .sales-history-group-name:before{content:'▾'}
.sales-history-group .sales-history-table{margin:0;width:100%}
.sales-history-group .sales-history-table th:first-child,.sales-history-group .sales-history-table td:first-child{width:40%}
.sales-history-group .sales-history-table th:not(:first-child),.sales-history-group .sales-history-table td:not(:first-child){text-align:right}
.sales-history-group .sales-history-table td small{display:block;margin-top:3px;color:#52657b}
.sales-history-name-button{padding:0;border:0;background:transparent;color:#173b65;font:inherit;font-weight:800;text-align:left;cursor:pointer;text-decoration:none}
.sales-history-name-button:hover{text-decoration:underline;color:#0d66a1}
.sales-history-name-button:focus-visible{outline:3px solid #4789ca;outline-offset:3px;border-radius:3px}
.sales-history-back{margin:8px 0 14px}
.sales-history-summary>h2{margin:8px 0 0}
.sales-history-summary>.sales-history-table td small{display:block;color:#52657b}
.sales-history-day-labels,.sales-history-day>summary{display:grid;grid-template-columns:minmax(150px,1.5fr) 90px repeat(3,minmax(110px,1fr));gap:12px;align-items:center;padding:12px 16px}
.sales-history-day-labels{font-size:.8rem;font-weight:800;letter-spacing:.06em;text-transform:uppercase;color:#52657b}
.sales-history-day{border:1px solid #d7e1eb;border-radius:10px;margin:8px 0;overflow:hidden;background:#fff}
.sales-history-day>summary{cursor:pointer;list-style:none;font-weight:800;background:#f3f7fb}
.sales-history-day>summary::-webkit-details-marker{display:none}
.sales-history-day>summary:focus-visible{outline:3px solid #4789ca;outline-offset:-3px}
.sales-history-day>summary span:not(:first-child){text-align:right;font-variant-numeric:tabular-nums}
.sales-history-day>summary strong:before{content:'▸';display:inline-block;margin-right:10px;color:#386aa0}
.sales-history-day[open]>summary strong:before{content:'▾'}
.sales-history-day-tickets{padding:4px 16px}
.sales-history-ticket{display:grid;grid-template-columns:minmax(150px,1fr) minmax(170px,1.4fr) 100px minmax(110px,1fr);gap:12px;align-items:center;padding:12px 0;border-bottom:1px solid #e1e8ef;font-variant-numeric:tabular-nums}
.sales-history-ticket:last-child{border-bottom:0}
.sales-history-ticket-pager{display:flex;gap:8px;justify-content:flex-end;padding:8px 16px 16px}
.sales-history-ticket-section{min-width:0;margin-top:18px}
.sales-history-ticket-section h3{margin:0 0 8px;color:#17324c}
.sales-history-ticket-status{min-height:1.4em;margin:0 0 10px;color:#52657b}
.sales-history-ticket-table{min-width:780px}
.sales-history-ticket-table th,.sales-history-ticket-table td{padding:10px 12px;vertical-align:middle}
.sales-history-ticket-table th:nth-child(n+4):nth-child(-n+6),.sales-history-ticket-table td:nth-child(n+4):nth-child(-n+6){text-align:right;white-space:nowrap}
.sales-history-ticket-pager{display:flex;align-items:center;justify-content:flex-end;gap:12px;padding:12px 0}
body.admin-mode #overview-stats strong.balance-positive{color:#138451!important}
body.admin-mode #overview-stats strong.balance-negative{color:#b42335!important}
.seller-sales-history{padding:8px 18px 18px;background:#fff;color:#172b45}
.action-calculator{font-size:1.35rem;min-width:44px;min-height:44px}
.post-calculator{width:min(330px,92vw);padding:20px;background:#f8fbff;color:#142b49;border:1px solid #c5d5e7;border-radius:16px}
.calculator-header{display:flex;align-items:center;justify-content:space-between;margin-bottom:14px}
.calculator-header h2{margin:0}.calculator-header button{font-size:1.5rem;min-width:40px;min-height:40px}
.calculator-display{display:block;padding:16px;text-align:right;font-size:2rem;font-weight:800;font-variant-numeric:tabular-nums;background:#e9f1fa;border-radius:10px;overflow:hidden}
.calculator-keys{display:grid;grid-template-columns:repeat(4,1fr);gap:8px;margin:14px 0}
.calculator-key{min-height:48px;font-size:1.1rem;font-weight:750}.calculator-key.operator{background:#dceafa;color:#0d416f}
.post-calculator>p{margin:6px 0 0;font-size:.8rem;color:#54677b}
.seller-sales-history h2{margin:12px 0 4px}
.seller-sales-history>p,.sales-history-message{color:#4b617a}
.sales-daily-details{margin:10px 18px 18px;padding:12px;border-top:1px solid #d7e1eb}
.sales-daily-details>summary{cursor:pointer;font-weight:800}
.sales-report-dialog:has(.seller-sales-history){width:min(920px,96vw);max-width:920px}
@media(max-width:900px){body.admin-mode .ticket-search-controls{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:900px){body.admin-mode .sales-history-controls,.seller-sales-history .sales-history-controls{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:900px){.sales-history-group-labels,.sales-history-group>summary{grid-template-columns:minmax(150px,1.5fr) repeat(3,minmax(80px,1fr));gap:6px;padding:12px;font-size:.84rem}}
@media(max-width:900px){.sales-history-day-labels,.sales-history-day>summary{grid-template-columns:minmax(110px,1.3fr) 60px repeat(3,minmax(80px,1fr));gap:6px;padding:12px;font-size:.84rem}}
@media(max-width:650px){
  body.admin-mode .settings-section{padding:18px!important}
  body.admin-mode .inline-form{display:grid!important;grid-template-columns:1fr!important}
  body.admin-mode .inline-form>*{width:100%!important}
  body.admin-mode #admin-page-records>div>.panel{grid-template-columns:1fr!important}
  body.admin-mode .ticket-search-controls{grid-template-columns:1fr}
  body.admin-mode .ticket-record-row{grid-template-columns:1fr}
  body.admin-mode .ticket-record-actions{grid-column:1;grid-row:auto;justify-content:flex-start}
  body.admin-mode .ticket-record-actions button{min-height:44px}
  body.admin-mode .sales-history-controls,.seller-sales-history .sales-history-controls{grid-template-columns:1fr}
  .sales-history-group-labels{display:none}
  .sales-history-group>summary{grid-template-columns:1fr 1fr;gap:8px}
  .sales-history-group>summary .sales-history-group-name{grid-column:1/-1}
  .sales-history-day-labels{display:none}
  .sales-history-day>summary{grid-template-columns:repeat(2,1fr)}
  .sales-history-day>summary strong{grid-column:1/-1}
  .sales-history-ticket{grid-template-columns:1fr 1fr}
  .sales-history-hero{grid-template-columns:1fr}
}

/* Final Users & Terminals alignment. Keep every launcher tile, field and
   action on one predictable grid regardless of its label length. */
body.admin-mode .attendant-launcher-panel .section-title{
  display:grid!important;
  grid-template-columns:minmax(0,1fr) auto!important;
  align-items:center!important;
  column-gap:24px!important;
  row-gap:6px!important;
  min-height:56px!important;
}
body.admin-mode .attendant-launcher-panel .section-title h2{
  grid-column:1!important;
  margin:0!important;
  line-height:1.2!important;
}
body.admin-mode .attendant-launcher-panel .section-title .muted{
  grid-column:1!important;
  margin:0!important;
  line-height:1.45!important;
}
body.admin-mode .attendant-launcher-panel .create-manager-button{
  grid-column:2!important;
  grid-row:1/3!important;
  align-self:center!important;
  min-width:150px!important;
  min-height:44px!important;
  margin:0!important;
}
body.admin-mode .terminal-launcher{
  display:grid!important;
  grid-template-columns:repeat(auto-fill,180px)!important;
  justify-content:start!important;
  align-items:start!important;
  gap:28px 24px!important;
  margin:22px 0 4px!important;
}
body.admin-mode .terminal-launcher-card,
body.admin-mode .terminal-launcher-card.master{
  display:grid!important;
  grid-template-rows:108px 24px 20px!important;
  place-items:center!important;
  align-content:start!important;
  width:180px!important;
  height:184px!important;
  min-height:184px!important;
  padding:8px 10px!important;
  gap:5px!important;
  border-radius:12px!important;
  overflow:hidden!important;
}
body.admin-mode .terminal-avatar{
  width:104px!important;
  height:104px!important;
  margin:0!important;
}
body.admin-mode .terminal-manager-name,
body.admin-mode .terminal-group-name{
  display:block!important;
  width:100%!important;
  margin:0!important;
  overflow:hidden!important;
  text-align:center!important;
  text-overflow:ellipsis!important;
  white-space:nowrap!important;
}
body.admin-mode .terminal-manager-name{font-size:16px!important;line-height:24px!important}
body.admin-mode .terminal-group-name{font-size:13px!important;line-height:20px!important}
body.admin-mode .terminal-workspace-dialog{
  width:min(1200px,calc(100vw - 40px))!important;
  padding:28px!important;
  border-radius:14px!important;
}
body.admin-mode .terminal-workspace-dialog .section-title{
  display:flex!important;
  min-height:48px!important;
  align-items:center!important;
  justify-content:space-between!important;
  gap:16px!important;
  padding-right:48px!important;
}
body.admin-mode .terminal-workspace-dialog #terminal-form{
  display:grid!important;
  grid-template-columns:repeat(4,minmax(0,1fr))!important;
  align-items:start!important;
  gap:16px!important;
  padding:18px 0!important;
}
body.admin-mode .terminal-workspace-dialog #terminal-form label{
  display:grid!important;
  grid-template-rows:24px 46px minmax(18px,auto)!important;
  align-content:start!important;
  gap:6px!important;
  width:100%!important;
  min-width:0!important;
  font-size:14px!important;
  line-height:20px!important;
}
body.admin-mode .terminal-workspace-dialog #terminal-form input,
body.admin-mode .terminal-workspace-dialog #terminal-form select,
body.admin-mode .terminal-workspace-dialog #terminal-form button{
  width:100%!important;
  height:46px!important;
  min-height:46px!important;
  margin:0!important;
}
body.admin-mode .terminal-workspace-dialog #terminal-form button{
  align-self:end!important;
  font-size:14px!important;
  white-space:normal!important;
}
body.admin-mode .terminal-workspace-dialog .table-wrap table{table-layout:fixed!important}
body.admin-mode .terminal-workspace-dialog .table-wrap th:nth-child(1){width:22%!important}
body.admin-mode .terminal-workspace-dialog .table-wrap th:nth-child(2){width:20%!important}
body.admin-mode .terminal-workspace-dialog .table-wrap th:nth-child(3){width:12%!important}
body.admin-mode .terminal-workspace-dialog .table-wrap th:nth-child(4){width:46%!important}
body.admin-mode .terminal-workspace-dialog .table-wrap th,
body.admin-mode .terminal-workspace-dialog .table-wrap td{
  padding:12px 14px!important;
  line-height:1.35!important;
}
body.admin-mode .terminal-workspace-dialog .table-wrap td:last-child{
  display:flex!important;
  flex-wrap:wrap!important;
  align-items:center!important;
  gap:8px!important;
}
body.admin-mode .terminal-workspace-dialog .table-wrap td:last-child button{
  min-height:38px!important;
  margin:0!important;
  padding:8px 12px!important;
  font-size:13px!important;
}
body.admin-mode #station-detail>.stats,
body.admin-mode .station-fields{grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:16px!important}
body.admin-mode .station-fields label:last-child{grid-column:auto!important}
@media(max-width:900px){
  body.admin-mode .terminal-workspace-dialog #terminal-form{grid-template-columns:repeat(2,minmax(0,1fr))!important}
  body.admin-mode .terminal-workspace-dialog .table-wrap table{min-width:820px!important}
  body.admin-mode #station-detail>.stats,body.admin-mode .station-fields{grid-template-columns:1fr!important}
}
@media(max-width:600px){
  body.admin-mode .attendant-launcher-panel .section-title{grid-template-columns:1fr!important}
  body.admin-mode .attendant-launcher-panel .create-manager-button{grid-column:1!important;grid-row:auto!important;width:100%!important}
  body.admin-mode .terminal-launcher{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:18px 12px!important}
  body.admin-mode .terminal-launcher-card,body.admin-mode .terminal-launcher-card.master{width:100%!important}
  body.admin-mode .terminal-workspace-dialog{width:calc(100vw - 20px)!important;padding:18px!important}
  body.admin-mode .terminal-workspace-dialog #terminal-form{grid-template-columns:1fr!important}
}

/* Keep the master hierarchy intentionally simple: one centered root and a
   centered row of managers. Decorative connector rules caused overlap in
   some screen sizes, so the hierarchy is expressed through placement. */
body.admin-mode .terminal-tree-root::after,
body.admin-mode .terminal-tree-branches::before,
body.admin-mode .terminal-tree-branches>.terminal-launcher-card::before{display:none!important}
body.admin-mode .terminal-tree-root{
  display:flex!important;
  width:100%!important;
  min-height:0!important;
  justify-content:center!important;
  align-items:center!important;
  margin:0 auto 30px!important;
}
body.admin-mode .terminal-tree-root .terminal-launcher-card{flex:0 0 180px!important}
body.admin-mode .terminal-tree-branches{
  display:flex!important;
  width:100%!important;
  max-width:900px!important;
  margin:0 auto!important;
  padding:0!important;
  flex-wrap:wrap!important;
  justify-content:center!important;
  align-items:flex-start!important;
  gap:24px!important;
}
body.admin-mode .terminal-tree-branches>.terminal-launcher-card{
  position:static!important;
  flex:0 0 180px!important;
}
@media(max-width:600px){
  body.admin-mode .terminal-tree-root{margin-bottom:20px!important}
  body.admin-mode .terminal-tree-branches{gap:16px 12px!important}
  body.admin-mode .terminal-tree-branches>.terminal-launcher-card{flex:0 1 calc(50% - 6px)!important}
}

/* Terminal directory: readable list rows with compact, self-explaining actions. */
body.admin-mode .terminal-workspace-dialog .table-wrap{
  border:1px solid var(--admin-border)!important;
  border-radius:10px!important;
  overflow-x:auto!important;
}
body.admin-mode .terminal-workspace-dialog .table-wrap thead{
  background:#f4f8fb!important;
}
body.admin-mode .terminal-workspace-dialog .terminal-list-row{
  background:#fff!important;
  border-bottom:1px solid var(--admin-border)!important;
}
body.admin-mode .terminal-workspace-dialog .terminal-list-row:last-child{border-bottom:0!important}
body.admin-mode .terminal-workspace-dialog .terminal-list-row:hover{background:#f8fbfd!important}
body.admin-mode .terminal-workspace-dialog .terminal-list-row td{
  height:64px!important;
  border-bottom:1px solid var(--admin-border)!important;
  font-size:15px!important;
}
body.admin-mode .terminal-workspace-dialog .terminal-list-row:last-child td{border-bottom:0!important}
body.admin-mode .terminal-workspace-dialog .terminal-list-row td:first-child small{
  display:block!important;
  margin-top:3px!important;
  color:var(--admin-muted)!important;
  font-size:12px!important;
}
body.admin-mode .terminal-status-cell{
  color:var(--admin-muted)!important;
  font-size:12px!important;
  font-weight:800!important;
  letter-spacing:.04em!important;
}
body.admin-mode .terminal-status-cell.is-active{color:#087a50!important}
body.admin-mode .terminal-status-cell.is-suspended{color:#a85a00!important}
body.admin-mode .terminal-row-actions{
  display:flex!important;
  height:64px!important;
  flex-wrap:nowrap!important;
  align-items:center!important;
  justify-content:flex-start!important;
  gap:7px!important;
  white-space:nowrap!important;
}
body.admin-mode .terminal-row-action{
  display:inline-grid!important;
  place-items:center!important;
  flex:0 0 36px!important;
  width:36px!important;
  min-width:36px!important;
  height:36px!important;
  min-height:36px!important;
  margin:0!important;
  padding:0!important;
  border:1px solid #cbd7e0!important;
  border-radius:8px!important;
  background:#fff!important;
  color:#245d80!important;
  box-shadow:none!important;
  font-family:Arial,"Segoe UI Symbol",sans-serif!important;
  font-size:18px!important;
  font-weight:800!important;
  line-height:1!important;
  cursor:pointer!important;
}
body.admin-mode .terminal-row-action:hover,
body.admin-mode .terminal-row-action:focus-visible{
  border-color:#229bd2!important;
  background:#eaf7fd!important;
  color:#0f6e99!important;
  transform:none!important;
}
body.admin-mode .terminal-row-action[data-action="activate"]{color:#087a50!important}
body.admin-mode .terminal-row-action[data-action="suspend"]{color:#a85a00!important}
body.admin-mode .terminal-row-action[data-action="delete"]{
  border-color:#efc2c7!important;
  color:#c52233!important;
  flex-basis:78px!important;
  width:78px!important;
  min-width:78px!important;
  font-size:13px!important;
  gap:3px!important;
}
body.admin-mode .terminal-row-action[data-action="delete"]:hover{background:#fff0f1!important;border-color:#d43d4f!important}
body.admin-mode .terminal-workspace-dialog .terminal-list-row td{height:104px!important}
body.admin-mode .terminal-person-card{
  display:grid!important;
  grid-template-rows:50px 22px 18px!important;
  place-items:center!important;
  width:150px!important;
  min-width:150px!important;
  min-height:92px!important;
  margin:0!important;
  padding:2px 8px!important;
  border:0!important;
  border-radius:8px!important;
  background:transparent!important;
  color:var(--admin-text)!important;
  text-decoration:none!important;
  box-shadow:none!important;
}
body.admin-mode .terminal-person-card:hover:not(:disabled){background:#eaf7fd!important}
body.admin-mode .terminal-person-card:disabled{opacity:1!important;cursor:default!important}
body.admin-mode .terminal-person-icon{
  display:grid!important;
  place-items:center!important;
  width:46px!important;
  height:46px!important;
  border:1px solid #b9d9e8!important;
  border-radius:50%!important;
  background:#eaf7fd!important;
  font-size:25px!important;
  line-height:1!important;
}
body.admin-mode .terminal-person-card strong{
  display:block!important;
  width:100%!important;
  overflow:hidden!important;
  color:var(--admin-text)!important;
  font-size:15px!important;
  font-weight:800!important;
  line-height:22px!important;
  text-align:center!important;
  text-overflow:ellipsis!important;
  white-space:nowrap!important;
}
body.admin-mode .terminal-person-card small{
  display:block!important;
  width:100%!important;
  margin:0!important;
  overflow:hidden!important;
  color:var(--admin-muted)!important;
  font-size:11px!important;
  line-height:18px!important;
  text-align:center!important;
  text-overflow:ellipsis!important;
  white-space:nowrap!important;
}
body.admin-mode .terminal-row-actions{height:104px!important}

/* Master user hierarchy: the master account sits above every manager group. */
body.admin-mode .terminal-launcher{
  display:block!important;
  position:relative!important;
  margin:26px 0 6px!important;
}
body.admin-mode .terminal-tree-root{
  position:relative!important;
  display:grid!important;
  width:100%!important;
  place-items:center!important;
  min-height:190px!important;
  margin:0 auto!important;
}
body.admin-mode .terminal-tree-root::after{
  position:absolute!important;
  top:184px!important;
  width:2px!important;
  height:28px!important;
  background:#9fc9de!important;
  content:''!important;
}
body.admin-mode .terminal-tree-root .terminal-launcher-card{
  position:relative!important;
  z-index:1!important;
  justify-self:center!important;
  background:#f5fbfe!important;
}
body.admin-mode .terminal-tree-branches{
  position:relative!important;
  display:grid!important;
  width:min(100%,900px)!important;
  margin:0 auto!important;
  grid-template-columns:repeat(auto-fill,180px)!important;
  justify-content:center!important;
  gap:28px 24px!important;
  padding-top:38px!important;
}
body.admin-mode .terminal-tree-branches::before{
  position:absolute!important;
  top:10px!important;
  left:12%!important;
  right:12%!important;
  height:2px!important;
  background:#9fc9de!important;
  content:''!important;
}
body.admin-mode .terminal-tree-branches>.terminal-launcher-card::before{
  position:absolute!important;
  top:-30px!important;
  left:50%!important;
  width:2px!important;
  height:30px!important;
  background:#9fc9de!important;
  content:''!important;
}
@media(max-width:600px){
  body.admin-mode .terminal-tree-branches{grid-template-columns:repeat(2,minmax(0,1fr))!important;justify-content:stretch!important}
  body.admin-mode .terminal-tree-branches::before{left:50%!important;right:auto!important;width:2px!important;height:20px!important;top:10px!important}
}

/* The master navigation behaves like the seller menu: it floats above the
   page, opens from the menu control, and never pushes the working area. */
body.admin-mode .admin-shell,
body.admin-mode .admin-shell.sidebar-closed{
  display:block!important;
  position:relative;
  grid-template-columns:none!important;
  gap:0!important;
}
body.admin-mode .admin-content{width:100%!important}
body.admin-mode .admin-sidebar{
  position:fixed!important;
  z-index:80;
  top:98px;
  bottom:0;
  left:0;
  width:270px!important;
  max-height:none;
  padding:20px 14px!important;
  overflow:auto!important;
  border:0!important;
  border-right:1px solid var(--admin-border)!important;
  border-radius:0!important;
  background:#fff!important;
  box-shadow:none!important;
  opacity:1;
  visibility:visible;
  transform:translateX(0);
  transition:opacity .16s ease,transform .16s ease,visibility .16s ease!important;
}
body.admin-mode .admin-shell.sidebar-closed .admin-sidebar{
  display:block!important;
  opacity:0;
  visibility:hidden;
  pointer-events:none;
  transform:translateX(-14px);
}
body.admin-mode .admin-sidebar>p,body.admin-mode .admin-sidebar nav{width:100%!important}
@media(max-width:650px){
  body.admin-mode .admin-sidebar{top:132px;bottom:0;left:0;width:min(300px,86vw)!important;max-height:none}
  body.admin-mode .admin-sidebar nav{grid-template-columns:1fr!important}
}

/* Identical menu and language controls in the seller and master headers. */
body.terminal-mode .nav-toggle,body.admin-mode .nav-toggle{
  display:grid!important;
  flex:0 0 42px!important;
  width:42px!important;
  height:42px!important;
  min-height:42px!important;
  padding:0!important;
  place-items:center!important;
  border:1px solid #cbd5e1!important;
  border-radius:11px!important;
  background:#fff!important;
  color:#1e293b!important;
  box-shadow:none!important;
}
body.terminal-mode .nav-toggle:hover,body.admin-mode .nav-toggle:hover{border-color:#9bcde9!important;background:#eef8fd!important}
body.admin-mode .nav-toggle::before{content:none!important}
.menu-3d{display:grid;width:22px;gap:4px;transform:none!important}
.menu-3d i{display:block;width:100%;height:3px;border-radius:999px;background:#167ec1;box-shadow:none!important}
.menu-3d i:nth-child(2){width:16px;justify-self:end}
body.terminal-mode .language-toggle,body.admin-mode .language-toggle{
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  gap:7px!important;
  min-width:70px!important;
  width:auto!important;
  height:34px!important;
  min-height:34px!important;
  padding:3px 10px!important;
  border:1px solid #cbd5e1!important;
  border-radius:999px!important;
  background:#fff!important;
  color:#1e293b!important;
  font-size:12px!important;
  font-weight:900!important;
  letter-spacing:.08em!important;
  box-shadow:none!important;
}
body.terminal-mode .language-toggle:hover,body.admin-mode .language-toggle:hover{border-color:#9bcde9!important;background:#eef8fd!important}
body.terminal-mode .language-toggle #language-flag,body.admin-mode .language-toggle #language-flag{
  display:grid!important;width:24px!important;height:24px!important;place-items:center!important;
  border-radius:50%!important;background:#fff!important;font-size:17px!important;line-height:1!important;box-shadow:0 0 0 1px #d9e1ea!important;
}
body.terminal-mode .language-toggle #language-code,body.admin-mode .language-toggle #language-code{display:block!important;font-size:12px!important;line-height:1!important}
@media(max-width:1000px){.admin-shell{grid-template-columns:200px minmax(0,1fr)!important}.admin-sidebar>p,.admin-sidebar nav{width:200px!important}}
@media(max-width:650px){body.admin-mode>header{min-height:132px!important}body.admin-mode main{padding:18px!important}.admin-shell{grid-template-columns:1fr!important}.admin-sidebar{position:static}.admin-sidebar>p,.admin-sidebar nav{width:100%!important}.admin-sidebar nav{grid-template-columns:1fr 1fr!important}.admin-content{grid-column:1}.admin-shell.sidebar-closed .admin-sidebar{display:none}.admin-shell.sidebar-closed{grid-template-columns:1fr!important}}

/* Final, conflict-free master hierarchy alignment. */
body.admin-mode .terminal-tree-root::after,
body.admin-mode .terminal-tree-branches::before,
body.admin-mode .terminal-tree-branches>.terminal-launcher-card::before{display:none!important}
body.admin-mode .terminal-tree-root{display:flex!important;width:100%!important;min-height:0!important;justify-content:center!important;align-items:center!important;margin:0 auto 30px!important}
body.admin-mode .terminal-tree-root .terminal-launcher-card{flex:0 0 180px!important;justify-self:auto!important}
body.admin-mode .terminal-tree-branches{display:flex!important;width:100%!important;max-width:900px!important;margin:0 auto!important;padding:0!important;flex-wrap:wrap!important;justify-content:center!important;align-items:flex-start!important;gap:24px!important}
body.admin-mode .terminal-tree-branches>.terminal-launcher-card{position:static!important;flex:0 0 180px!important}
@media(max-width:600px){body.admin-mode .terminal-tree-root{margin-bottom:20px!important}body.admin-mode .terminal-tree-branches{gap:16px 12px!important}body.admin-mode .terminal-tree-branches>.terminal-launcher-card{flex:0 1 calc(50% - 6px)!important}}
/* Keep the admin identity clear of the logo and make the terminal dialog stable. */
@media(min-width:801px){
  body.admin-mode>header .brand{position:static!important;flex:0 1 300px;min-width:0;margin:0 auto 0 0!important;transform:none!important}
  body.admin-mode>header .app-logo{width:100%;max-width:300px;height:78px}
  body.admin-mode>header .header-right{flex:0 0 auto}
}
body.admin-mode .terminal-launcher-card.master .terminal-group-name::before{content:''!important}
body.admin-mode .terminal-workspace-dialog .section-title{
  display:grid!important;grid-template-columns:minmax(0,1fr) auto!important;
  align-items:center!important;column-gap:20px!important;row-gap:4px!important;
}
body.admin-mode .terminal-workspace-dialog .section-title h2{grid-column:1!important;grid-row:1!important;white-space:nowrap!important}
body.admin-mode .terminal-workspace-dialog .section-title .muted{grid-column:1!important;grid-row:2!important;margin:0!important}
body.admin-mode .terminal-workspace-dialog .section-title #terminal-manager-filter{grid-column:2!important;grid-row:1/3!important;max-width:230px!important}
body.admin-mode .terminal-workspace-dialog #terminal-form label{grid-template-rows:minmax(40px,auto) 46px minmax(36px,auto)!important}
@media(max-width:600px){
  body.admin-mode .terminal-workspace-dialog .section-title{grid-template-columns:1fr!important;padding-right:40px!important}
  body.admin-mode .terminal-workspace-dialog .section-title #terminal-manager-filter{grid-column:1!important;grid-row:3!important;max-width:none!important}
}
body.admin-mode .terminal-workspace-dialog .manager-limit-panel{margin:0 0 20px!important;padding:16px 18px!important;border:1px solid var(--admin-border)!important;border-radius:10px!important;background:#f8fbfd!important}
body.admin-mode .manager-limit-panel h3{margin:0 0 4px!important;font-size:17px!important}
body.admin-mode .manager-limit-panel p{margin:0 0 12px!important}
body.admin-mode .manager-limit-panel .inline-form{display:flex!important;align-items:end!important;gap:12px!important;padding:0!important}
body.admin-mode .manager-limit-panel label{width:150px!important}
body.admin-mode .manager-limit-panel input,body.admin-mode .manager-limit-panel button{height:42px!important;min-height:42px!important;margin:0!important}
@media(max-width:600px){body.admin-mode .manager-limit-panel .inline-form{display:grid!important;grid-template-columns:1fr!important}body.admin-mode .manager-limit-panel label{width:100%!important}}

/* Organization chart: administrator → managers → every assigned terminal. */
body.admin-mode .terminal-launcher.family-tree{display:block!important;overflow-x:auto!important;margin:18px 0 0!important;padding:6px 8px 18px!important}
body.admin-mode .family-tree .terminal-tree-root{position:relative!important;display:flex!important;justify-content:center!important;margin:0 0 38px!important}
body.admin-mode .family-tree:not(.family-tree-empty) .terminal-tree-root::after{content:''!important;display:block!important;position:absolute;left:50%;top:100%;height:38px;width:2px;background:#70829a}
body.admin-mode .family-tree .terminal-launcher-card{display:grid!important;grid-template-columns:72px minmax(0,1fr)!important;grid-template-rows:1fr 1fr!important;align-items:center!important;align-content:center!important;justify-items:stretch!important;gap:0 10px!important;width:220px!important;height:92px!important;min-height:92px!important;padding:8px!important;border:0!important;background:transparent!important;box-shadow:none!important;text-align:left!important}
body.admin-mode .family-tree .terminal-launcher-card .terminal-avatar{grid-column:1!important;grid-row:1/3!important;width:72px!important;height:72px!important;border-width:2px!important}
body.admin-mode .family-tree .terminal-launcher-card .terminal-avatar-head{left:21px!important;bottom:15px!important;width:29px!important;height:36px!important}
body.admin-mode .family-tree .terminal-launcher-card .terminal-avatar-head:before,body.admin-mode .family-tree .terminal-launcher-card .terminal-avatar-head:after{top:16px!important;width:3px!important;height:3px!important}
body.admin-mode .family-tree .terminal-launcher-card .terminal-avatar-head:before{left:8px!important}body.admin-mode .family-tree .terminal-launcher-card .terminal-avatar-head:after{right:8px!important}
body.admin-mode .family-tree .terminal-launcher-card .terminal-avatar-hair{left:17px!important;bottom:39px!important;width:36px!important;height:23px!important}
body.admin-mode .family-tree .terminal-launcher-card .terminal-avatar-shirt{left:11px!important;bottom:-10px!important;width:48px!important;height:34px!important}
body.admin-mode .family-tree .terminal-launcher-card .terminal-avatar-shirt:after{left:18px!important;width:12px!important;height:18px!important}
body.admin-mode .family-tree .terminal-launcher-card .terminal-manager-name{grid-column:2!important;grid-row:1!important;align-self:end!important;font-size:17px!important;line-height:22px!important;text-align:left!important}
body.admin-mode .family-tree .terminal-launcher-card .terminal-group-name{grid-column:2!important;grid-row:2!important;align-self:start!important;font-size:12px!important;line-height:19px!important;text-align:left!important}
body.admin-mode .family-tree .terminal-launcher-card{grid-template-columns:1fr!important;grid-template-rows:72px 25px 19px!important;justify-items:center!important;gap:3px!important;width:200px!important;height:130px!important;min-height:130px!important;text-align:center!important}
body.admin-mode .family-tree .terminal-launcher-card .terminal-avatar{grid-column:1!important;grid-row:1!important}
body.admin-mode .family-tree .terminal-launcher-card .terminal-manager-name{grid-column:1!important;grid-row:2!important;align-self:center!important;text-align:center!important}
body.admin-mode .family-tree .terminal-launcher-card .terminal-group-name{grid-column:1!important;grid-row:3!important;align-self:center!important;text-align:center!important}
body.admin-mode .family-tree-branches{position:relative;display:grid!important;grid-template-columns:repeat(var(--family-branch-count),minmax(230px,1fr))!important;gap:16px!important;width:max-content!important;min-width:min(100%,720px)!important;max-width:none!important;margin:0 auto!important;padding:20px 0 0!important}
body.admin-mode .family-tree-branches::before{content:''!important;display:block!important;position:absolute;top:0;left:calc(100% / (2 * var(--family-branch-count)));right:calc(100% / (2 * var(--family-branch-count)));height:2px;background:#70829a}
body.admin-mode .family-tree-branches .family-branch{position:relative;display:flex;flex-direction:column;align-items:center;min-width:230px}
body.admin-mode .family-tree-branches .family-branch::before{content:'';position:absolute;top:-20px;left:50%;height:20px;width:2px;background:#70829a}
body.admin-mode .family-direct-branch .family-members{margin-top:0!important}
body.admin-mode .family-direct-branch .family-members::before{display:none!important}
body.admin-mode .family-add-user{min-height:38px;padding:8px 13px;border:1px solid #397db0;border-radius:8px;background:#eaf6ff;color:#155480;font-weight:700;cursor:pointer}
body.admin-mode .terminal-delete-confirm-row td{height:auto!important;padding:14px 16px!important;background:#fff8f8!important;border-top:2px solid #dc6a74!important}
body.admin-mode .terminal-delete-confirm{display:grid;gap:10px;max-width:640px}
body.admin-mode .terminal-delete-confirm h3,body.admin-mode .terminal-delete-confirm p{margin:0}
body.admin-mode .terminal-delete-confirm label{display:grid;gap:6px;font-weight:700}
body.admin-mode .terminal-delete-confirm input{width:min(100%,360px);min-height:42px;padding:9px 11px;border:1px solid #b7c8d8;border-radius:8px}
body.admin-mode .terminal-delete-confirm-actions{display:flex;flex-wrap:wrap;gap:10px}
body.admin-mode .terminal-delete-confirm-actions button{min-height:40px;padding:8px 14px}
body.admin-mode .terminal-delete-confirm-actions .primary{background:#b42335!important;border-color:#b42335!important;color:#fff!important}
body.admin-mode .family-branch .family-members{position:relative;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));align-content:start;gap:12px 6px;width:100%;min-height:115px;margin-top:12px;padding:20px 12px;border:4px solid #5594d1;border-radius:30px}

/* A new post needs one visible field; login defaults remain editable on demand. */
#terminal-form .user-create-manager{display:none!important}
body.admin-mode .terminal-workspace-dialog #terminal-form .user-create-manager{display:none!important}
#terminal-form .user-create-options{grid-column:span 2;min-width:0;margin:0;padding:0;border:1px solid #c8d8e6;border-radius:10px;background:#f6fbff;color:#18334e}
#terminal-form .user-create-options summary{min-height:46px;display:flex;align-items:center;padding:10px 14px;color:#17608d;font-weight:750;cursor:pointer}
#terminal-form .user-create-options[open]{padding:0 14px 14px}
#terminal-form .user-create-options[open] summary{margin:0 -14px 10px;border-bottom:1px solid #d4e1ed}
#terminal-form .user-create-options label{display:grid!important;grid-template-rows:auto 46px auto!important;gap:6px;margin:0 0 12px!important}
#terminal-form .user-create-options button{width:100%;min-height:46px;margin:0!important}
.terminal-delete-dialog{width:min(440px,calc(100vw - 24px));max-height:calc(100dvh - 24px);overflow:auto}
.terminal-delete-dialog>div{display:grid;gap:14px}
.terminal-delete-dialog h2,.terminal-delete-dialog p{margin:0}
.terminal-delete-dialog .terminal-delete-confirm-actions{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.terminal-delete-dialog .terminal-delete-confirm-actions button{min-height:48px}
@media(max-width:700px){
  body.admin-mode #admin-page-overview:has(#manager-overview-stats)>.section-title,body.admin-mode #admin-page-overview:has(#manager-overview-stats)>.panel>h2{text-align:center;justify-content:center}
  #terminal-form .user-create-options{grid-column:1/-1}
  body.admin-mode .terminal-workspace-dialog{width:calc(100vw - 12px)!important;max-height:calc(100dvh - 12px)!important;padding:14px!important}
  body.admin-mode .terminal-workspace-dialog #terminal-form{grid-template-columns:1fr!important;gap:12px!important}
  body.admin-mode .terminal-workspace-dialog #terminal-form>button,
  body.admin-mode .terminal-workspace-dialog #terminal-form input,
  body.admin-mode .terminal-workspace-dialog #terminal-form summary{min-height:52px!important}
  body.admin-mode .terminal-workspace-dialog .terminal-row-actions button,
  body.admin-mode .admin-sidebar nav button,
  body.terminal-mode .pos-nav-link{min-height:48px!important}
}

/* User management: readable actions and distinct ticket, sign-in, and group names. */
body.admin-mode .terminal-workspace-dialog .terminal-row-actions{
  height:auto!important;
  min-height:64px!important;
  flex-wrap:wrap!important;
  white-space:normal!important;
  padding-block:10px!important;
}
body.admin-mode .terminal-workspace-dialog .terminal-row-action{
  display:inline-flex!important;
  flex:0 1 auto!important;
  width:auto!important;
  min-width:0!important;
  height:auto!important;
  min-height:42px!important;
  padding:8px 11px!important;
  gap:6px!important;
  font-size:13px!important;
  line-height:1.2!important;
  white-space:nowrap!important;
}
body.admin-mode .terminal-workspace-dialog .terminal-row-action[data-action="remove-user"]{
  border-color:#efc2c7!important;
  color:#b42335!important;
}
body.admin-mode .terminal-workspace-dialog .terminal-row-action[data-action="remove-user"]:hover{background:#fff0f1!important}
body.admin-mode .terminal-workspace-dialog .terminal-list-row td{height:auto!important;min-height:72px!important}
body.admin-mode .terminal-workspace-dialog .manager-limit-panel>button{margin:0 8px 10px 0!important}
body.admin-mode .terminal-workspace-dialog .manager-limit-panel{padding:16px 18px!important}
body.admin-mode .terminal-workspace-dialog .manager-settings-form{display:grid!important;grid-template-columns:minmax(180px,230px) auto!important;align-items:end!important;justify-content:start!important;gap:8px 12px!important}
body.admin-mode .terminal-workspace-dialog .manager-settings-form .muted{grid-column:1/-1!important}
body.admin-mode .terminal-workspace-dialog .manager-settings-form>label{width:100%!important}
body.admin-mode .terminal-workspace-dialog #terminal-form>button[type="submit"]{background:#237db2!important;color:#fff!important;border-color:#237db2!important;font-weight:800!important}
@media(max-width:700px){
  body.admin-mode .terminal-workspace-dialog .table-wrap{overflow:visible!important;border:0!important}
  body.admin-mode .terminal-workspace-dialog .table-wrap table{display:block!important;min-width:0!important;width:100%!important}
  body.admin-mode .terminal-workspace-dialog .table-wrap thead{display:none!important}
  body.admin-mode .terminal-workspace-dialog .table-wrap tbody{display:grid!important;gap:12px!important}
  body.admin-mode .terminal-workspace-dialog .terminal-list-row{display:block!important;border:1px solid var(--admin-border)!important;border-radius:10px!important;overflow:hidden!important}
  body.admin-mode .terminal-workspace-dialog .terminal-list-row td{display:block!important;width:100%!important;min-height:0!important;padding:10px 14px!important}
  body.admin-mode .terminal-workspace-dialog .terminal-list-row td:nth-child(2)::before{content:'Group: ';font-weight:700}
  body.admin-mode .terminal-workspace-dialog .terminal-list-row td:nth-child(3)::before{content:'Status: ';font-weight:700}
  body.admin-mode .terminal-workspace-dialog .terminal-list-row .terminal-row-actions{display:flex!important;gap:8px!important}
  body.admin-mode .terminal-workspace-dialog .terminal-row-action{min-height:48px!important;white-space:normal!important}
  body.admin-mode .terminal-workspace-dialog .manager-settings-form{grid-template-columns:1fr!important}
  body.admin-mode .terminal-workspace-dialog .manager-settings-form .muted{grid-column:1!important}
}

/* Printing is a separate surface: never print the POS header or its dark theme. */
@media print{
  @page{size:80mm auto;margin:0}
  html,body{width:80mm!important;max-width:80mm!important;margin:0!important;padding:0!important}
  body:has(>#receipt-paper)>:not(#receipt-paper){display:none!important}
  /* Leave 5 mm inside the Star's nominal 72 mm area; the physical sample clips its right edge. */
  html:has(body>#receipt-paper){width:67mm!important;max-width:100%!important;min-width:0!important;margin:0!important;padding:0!important}
  body:has(>#receipt-paper){width:100%!important;max-width:100%!important;min-width:0!important;margin:0!important;padding:0!important}
  body>#receipt-paper{display:block!important;width:100%!important;max-width:100%!important;box-sizing:border-box!important;margin:0!important;overflow:visible!important;background:#fff!important;color:#000!important;box-shadow:none!important}
  body>#receipt-paper .receipt-page{display:block!important;width:100%!important;max-width:100%!important;padding:3mm 1mm 3mm!important;background:#fff!important;color:#000!important;box-shadow:none!important;filter:none!important}
  /* Receipt drivers trim trailing white pixels. A short cut mark preserves the footer gap. */
  body>#receipt-paper .receipt-page::after{content:"";display:block;width:3mm;height:0;margin:8mm auto 0;border-top:.2mm solid #000}
  body>#receipt-paper .receipt-custom-footer{padding-bottom:0!important;margin-bottom:0!important}
  body>#receipt-paper .receipt-page *{color:#000!important;background:transparent!important;box-shadow:none!important;text-shadow:none!important;filter:none!important}
  body>#receipt-paper .receipt-header{display:grid!important;width:100%!important;grid-template-columns:minmax(0,1fr)!important;min-height:0!important;height:auto!important;align-content:center!important;justify-content:center!important;justify-items:center!important;margin:0 0 3mm!important;padding:0!important;border:0!important;background:#fff!important;line-height:1.1!important}
  body>#receipt-paper .receipt-title .receipt-brand{font-size:34px!important;letter-spacing:.2px!important;font-weight:1000!important;text-align:center!important}
  body>#receipt-paper .receipt-title .receipt-brand-line{display:flex!important;width:100%!important;justify-content:center!important;align-items:baseline!important;gap:2mm!important;white-space:nowrap!important;text-align:center!important}
  body>#receipt-paper .receipt-title .receipt-origin-group{font-size:17px!important}
  body>#receipt-paper .receipt-title .receipt-origin-post{font-size:13px!important}
  body>#receipt-paper .receipt-title .receipt-group{font-size:13px!important;letter-spacing:0!important;overflow-wrap:anywhere!important}
  body>#receipt-paper .receipt-title .receipt-brand,body>#receipt-paper .receipt-title .receipt-group{display:block!important;box-sizing:border-box!important;width:100%!important;margin:0!important;padding:0!important;text-align:center!important}
  body>#receipt-paper .receipt-brand-line .receipt-brand{display:block!important;width:100%!important;text-align:center!important}
  body>#receipt-paper .receipt-title .receipt-brand,body>#receipt-paper .receipt-title .receipt-group,body>#receipt-paper .receipt-draw-summary,body>#receipt-paper .receipt-total{font-weight:900!important}
  body>#receipt-paper .receipt-meta{font-size:16px!important;font-weight:400!important;white-space:normal!important;line-height:1.3!important}
  body>#receipt-paper .receipt-ticket-code{font-weight:400!important}
  body>#receipt-paper .receipt-plays th{padding-top:0!important;padding-bottom:1.1mm!important;border:0!important;color:#000!important;background:#fff!important;font-size:16px!important;font-weight:700!important}
  body>#receipt-paper .receipt-plays td{padding-top:1.1mm!important;padding-bottom:1.1mm!important;border:0!important;color:#000!important;background:#fff!important;font-size:22px!important;font-weight:700!important}
  body>#receipt-paper .receipt-plays:not(.receipt-real-plays) :is(th,td){padding-left:.2mm!important;padding-right:.2mm!important}
  body>#receipt-paper .receipt-plays:not(.receipt-real-plays) :is(th,td):nth-child(odd){width:30%!important}
  body>#receipt-paper .receipt-plays:not(.receipt-real-plays) :is(th,td):nth-child(even){width:20%!important}
  body>#receipt-paper .receipt-plays:not(.receipt-real-plays) :is(th,td):nth-child(2){padding-right:1mm!important}
  body>#receipt-paper .receipt-plays:not(.receipt-real-plays) :is(th,td):nth-child(3){padding-left:1mm!important}
  body>#receipt-paper .receipt-plays:not(.receipt-real-plays) th{font-size:15px!important;letter-spacing:0}
  body>#receipt-paper .receipt-plays:not(.receipt-real-plays) td{letter-spacing:-1.5px}
  body>#receipt-paper .receipt-amount-value{display:block;width:max-content;position:relative;left:100%;transform:translateX(-100%)}
  body>#receipt-paper .receipt-divider{border-top:1px dashed #000!important}
  body>#receipt-paper .receipt-draw-summary{margin-bottom:2mm!important}
  body>#receipt-paper .receipt-heading-divider{margin:0 0 2mm!important}
  body>#receipt-paper .receipt-heading-divider-before{margin:2mm 0 2mm!important}
  body>#receipt-paper .receipt-total{font-size:28px!important;line-height:1.2!important}
  /* The TM-T20 uses 80 mm paper with a narrower physical print area. Keep a
     balanced 6 mm safety gutter on both sides while using the center 68 mm. */
  html:has(body>#receipt-paper.receipt-compact){width:80mm!important;max-width:80mm!important}
  body>#receipt-paper.receipt-compact{width:68mm!important;max-width:68mm!important;margin-left:6mm!important;margin-right:6mm!important}
  body>#receipt-paper.receipt-compact .receipt-page{width:68mm!important;max-width:68mm!important;box-sizing:border-box!important;padding-left:2.5mm!important;padding-right:2.5mm!important;overflow:hidden!important}
  body>#receipt-paper.receipt-compact .receipt-meta,
  body>#receipt-paper.receipt-compact .receipt-ticket-code,
  body>#receipt-paper.receipt-compact .receipt-payment-code{overflow-wrap:anywhere!important}
  body>#receipt-paper.receipt-compact .receipt-plays:not(.receipt-real-plays) :is(th,td):nth-child(1){width:64%!important;text-align:left!important;letter-spacing:0!important}
  body>#receipt-paper.receipt-compact .receipt-plays:not(.receipt-real-plays) :is(th,td):nth-child(2){width:36%!important;padding-right:.5mm!important;text-align:right!important;letter-spacing:0!important}
}
.receipt-page .receipt-fastcash33-label .receipt-group-name{display:block!important;font-size:22px!important;line-height:1.12!important;font-weight:900!important;letter-spacing:0!important;white-space:nowrap!important;text-align:center!important}
.receipt-page .receipt-fastcash33-label .receipt-post-code{display:block!important;font-size:13px!important;line-height:1.2!important;margin-top:1mm!important;text-align:center!important}
.account-printer-setting{display:flex!important;align-items:center;gap:10px}.account-printer-setting input{width:20px;height:20px;margin:0}.account-printer-setting span{font-weight:800}
body.admin-mode .family-branch-1 .family-members{border-color:#e95a52}body.admin-mode .family-branch-2 .family-members{border-color:#e4cb26}
body.admin-mode .family-members::before{content:'';position:absolute;left:50%;top:-16px;height:14px;width:2px;background:#70829a}
body.admin-mode .family-member{position:relative;display:grid;justify-items:center;align-content:start;gap:5px;min-width:0;min-height:99px;padding:0 4px!important;border:0!important;background:transparent!important;box-shadow:none!important}
body.admin-mode .family-member .terminal-avatar{width:66px!important;height:66px!important;margin:0!important;border:2px solid #fff!important}
body.admin-mode .family-member .terminal-avatar-head{left:19px!important;bottom:14px!important;width:27px!important;height:34px!important}
body.admin-mode .family-member .terminal-avatar-head:before,body.admin-mode .family-member .terminal-avatar-head:after{top:15px!important;width:3px!important;height:3px!important}
body.admin-mode .family-member .terminal-avatar-head:before{left:7px!important}body.admin-mode .family-member .terminal-avatar-head:after{right:7px!important}
body.admin-mode .family-member .terminal-avatar-hair{left:15px!important;bottom:36px!important;width:35px!important;height:21px!important}
body.admin-mode .family-member .terminal-avatar-shirt{left:10px!important;bottom:-9px!important;width:44px!important;height:32px!important}
body.admin-mode .family-member .terminal-avatar-shirt:after{left:17px!important;width:11px!important;height:17px!important}
body.admin-mode .family-member-name{display:block;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--admin-text);font-size:12px;font-weight:700;text-align:center}
body.admin-mode .language-toggle,body.terminal-mode .language-toggle{border-color:#365478!important;background:linear-gradient(145deg,#203b5a,#11273f)!important;color:#eaf5ff!important;box-shadow:inset 0 1px #c8e4ff33,0 2px 5px #0004!important}
body.admin-mode .language-toggle:hover,body.terminal-mode .language-toggle:hover{border-color:#5d85ae!important;background:linear-gradient(145deg,#2a5079,#173553)!important}
body.admin-mode #manager-form[hidden]{display:none!important}
body.terminal-mode .header-qr img{display:block!important;width:28px!important;height:28px!important;max-width:100%!important;object-fit:contain!important}
body.terminal-mode #terminal-clock{display:flex!important;align-items:baseline!important;gap:6px!important;white-space:nowrap!important}
body.terminal-mode>header .header-multi{display:inline-flex!important;align-items:center!important;justify-content:center!important;width:auto!important;min-width:88px!important;height:38px!important;padding:0 12px!important;border:1px solid #ffffff70!important;border-radius:999px!important;background:#143f8b!important;color:#fff!important}
body.terminal-mode>header .header-multi .header-multi-label{display:block!important;margin:0!important;padding:0!important;background:transparent!important;color:#fff!important;font-size:11px!important;font-weight:800!important}
@media(max-width:800px){
  body.admin-mode>header{display:grid!important;grid-template-columns:44px minmax(0,1fr)!important;grid-template-rows:66px auto!important;align-items:center!important;column-gap:10px!important;row-gap:2px!important;height:auto!important;min-height:118px!important;padding:8px 16px 12px!important}
  body.admin-mode>header .nav-toggle{grid-column:1!important;grid-row:1!important}
  body.admin-mode>header .brand{position:static!important;grid-column:2!important;grid-row:1!important;justify-self:start!important;min-width:0!important;max-width:220px!important;margin:0!important;transform:none!important}
  body.admin-mode>header .app-logo{display:block!important;width:100%!important;max-width:220px!important;height:auto!important;max-height:65px!important;object-fit:contain!important}
  body.admin-mode>header .header-right{grid-column:1/3!important;grid-row:2!important;justify-self:end!important;margin:0!important;gap:8px!important}
}
@media(max-width:600px){
  body.admin-mode .admin-content .section-title{display:flex!important;flex-direction:column!important;align-items:flex-start!important;justify-content:flex-start!important;gap:6px!important}
  body.admin-mode .admin-content .section-title h2{width:100%!important;margin:0!important}
  body.admin-mode .admin-content .section-title .muted{max-width:100%!important;margin:0!important}
  body.admin-mode #admin-page-terminals .create-manager-button{width:100%!important;margin-top:8px!important}
}
@media(max-width:600px){
  body.terminal-mode>header{display:grid!important;grid-template-columns:44px minmax(0,1fr) auto!important;grid-template-rows:60px 48px 40px!important;align-items:center!important;gap:4px 8px!important;height:auto!important;min-height:168px!important;padding:8px 16px 12px!important}
  body.terminal-mode>header .brand{position:static!important;grid-column:1/4!important;grid-row:1!important;justify-self:center!important;width:190px!important;height:auto!important;margin:0!important;transform:none!important}
  body.terminal-mode>header .app-logo{width:100%!important;max-width:190px!important;height:auto!important;max-height:58px!important;object-fit:contain!important}
  body.terminal-mode>header .nav-toggle{grid-column:1!important;grid-row:2!important;margin:0!important}
  body.terminal-mode>header .terminal-status{position:static!important;grid-column:2/4!important;grid-row:2!important;justify-self:end!important;display:flex!important;align-items:center!important;gap:6px!important;width:auto!important;height:auto!important;margin:0!important;padding:0!important}
  body.terminal-mode>header .terminal-status>div{width:74px!important;max-width:74px!important;min-width:0!important;text-align:right!important}
  body.terminal-mode>header .terminal-status strong{display:block!important;font-size:11px!important;line-height:1.15!important;white-space:normal!important;overflow-wrap:anywhere!important}
  body.terminal-mode>header .terminal-status .terminal-date{display:none!important}
  body.terminal-mode>header .terminal-status .terminal-time{white-space:nowrap!important;font-size:12px!important}
  body.terminal-mode>header .header-qr{flex:0 0 34px!important;width:34px!important;height:34px!important;min-width:34px!important;padding:0!important}
  body.terminal-mode>header .header-live{flex:0 0 auto!important;min-width:0!important;min-height:34px!important;padding:0 8px!important;font-size:10px!important}
  body.terminal-mode>header .header-right{grid-column:1/4!important;grid-row:3!important;justify-self:end!important;width:auto!important;min-width:0!important;margin:0!important}
  body.terminal-mode>header .language-toggle{min-width:50px!important;padding:3px 9px!important}
  body.terminal-mode>header .language-toggle #language-flag{display:none!important}
  body.terminal-mode>header .header-multi{width:auto!important;min-width:70px!important;height:34px!important;min-height:34px!important;padding:0 9px!important;border-radius:999px!important}
  body.terminal-mode>header .header-multi .header-multi-label{display:block!important;margin:0!important;padding:0!important;border:0!important;background:transparent!important;color:#fff!important;font-size:11px!important;font-weight:800!important}
}
body.admin-mode .family-empty{grid-column:1/-1;margin:auto;color:var(--admin-muted);font-size:12px;text-align:center}
body.admin-mode .family-tree-empty .family-tree-branches{display:flex!important;justify-content:center;min-width:0!important;padding-top:0!important}
body.admin-mode .family-tree-empty .family-tree-branches::before{display:none!important}
body.admin-mode .family-empty-tree{margin:0;color:var(--admin-muted);font-size:13px;text-align:center}
@media(max-width:700px){body.admin-mode .family-tree-branches{min-width:0!important}body.admin-mode .family-tree .terminal-tree-root{margin-bottom:30px!important}}
/* Phone attendants see only their own cash summary; the selling workspace stays desktop-sized. */
body.terminal-mode #mobile-pos-summary[hidden],body.terminal-mode #pos-shell[hidden],body.terminal-mode .nav-toggle[hidden],body.terminal-mode .terminal-status[hidden]{display:none!important}
@media screen and (max-width:800px){
  body.terminal-mode{overflow:auto!important;background:#f5f7fb!important;color:#152b45!important}
  body.terminal-mode>header{display:flex!important;align-items:center!important;justify-content:space-between!important;gap:12px!important;height:auto!important;min-height:76px!important;padding:10px 16px!important}
  body.terminal-mode>header .brand{position:static!important;display:block!important;flex:0 1 190px!important;width:auto!important;max-width:190px!important;height:auto!important;margin:0!important;transform:none!important}
  body.terminal-mode>header .app-logo{width:100%!important;height:auto!important;max-height:58px!important;object-fit:contain!important}
  body.terminal-mode>header .header-right{display:flex!important;align-items:center!important;gap:8px!important;min-width:0!important;margin:0!important}
  body.terminal-mode>header .header-multi{display:none!important}
  body.terminal-mode>main{height:auto!important;min-height:calc(100dvh - 76px)!important;overflow:visible!important;background:#f5f7fb!important}
  body.terminal-mode #workspace,body.terminal-mode #terminal{height:auto!important;min-height:0!important}
  body.terminal-mode #identity{display:none!important}
  body.terminal-mode .mobile-pos-summary{display:grid;gap:18px;width:min(100%,520px);margin:22px auto;padding:22px;border:1px solid #dce5f0;border-radius:18px;background:#fff;color:#152b45;box-shadow:0 14px 35px #1c375416}
  body.terminal-mode .mobile-pos-summary [hidden]{display:none!important}
  body.terminal-mode .mobile-pos-menu{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
  body.terminal-mode .mobile-pos-menu button{min-width:0;min-height:52px;padding:8px;border:1px solid #b7cceb;border-radius:11px;background:#f2f7fd;color:#173b65;font-size:13px;font-weight:800;line-height:1.2}
  body.terminal-mode .mobile-pos-menu button[aria-current="page"]{border-color:#197bb6;background:#dfedf9;color:#104a78;box-shadow:inset 0 -3px #197bb6}
  body.terminal-mode .mobile-pos-menu #mobile-pos-account,body.terminal-mode .mobile-pos-menu #mobile-pos-logout{min-height:52px;margin:0;padding:8px;border:1px solid #b7cceb;border-radius:11px;background:#f2f7fd;color:#173b65;font-size:13px;font-weight:800;line-height:1.2}
  body.terminal-mode .mobile-pos-menu-toggle{display:grid;place-items:center;width:48px;height:44px;margin:0;padding:9px;border:1px solid #b7cceb;border-radius:10px;background:#f2f7fd;color:#173b65}
  body.terminal-mode .mobile-menu-bars{display:grid;gap:5px;width:24px}
  body.terminal-mode .mobile-menu-bars i{height:3px;border-radius:3px;background:currentColor}
  body.terminal-mode .mobile-pos-menu-backdrop{position:fixed;z-index:2998;inset:0;width:100vw;height:100dvh;margin:0;padding:0;border:0;border-radius:0;background:#061b32a6}
  body.terminal-mode .mobile-pos-menu{position:fixed;z-index:2999;top:0;bottom:0;left:0;display:flex;flex-direction:column;align-items:stretch;gap:8px;width:min(290px,85vw);max-height:100dvh;overflow-y:auto;padding:calc(22px + env(safe-area-inset-top)) 14px 22px;border-right:1px solid #c6d8e9;background:#f8fbff;box-shadow:14px 0 35px #061b3240}
  body.terminal-mode .mobile-pos-menu-title{margin:0 4px 13px;color:#173b65;font-size:17px;text-align:left}
  body.terminal-mode .mobile-pos-menu button,body.terminal-mode .mobile-pos-menu #mobile-pos-account,body.terminal-mode .mobile-pos-menu #mobile-pos-logout{min-height:50px;margin:0;padding:10px 12px;border:1px solid #b7cceb;border-radius:9px;background:#f2f7fd;color:#173b65;font-size:14px;text-align:left}
  body.terminal-mode .mobile-pos-menu button[aria-current="page"]{border-color:var(--draw-deep,#197bb6);background:color-mix(in srgb,var(--draw-pastel,#dfedf9) 60%,white);color:#104a78;box-shadow:inset 4px 0 var(--draw-deep,#197bb6)}
  body.terminal-mode .mobile-pos-summary-heading h2{margin:3px 0 6px;color:#152b45;font-size:28px}
  body.terminal-mode .mobile-pos-summary-heading{text-align:center}
  body.terminal-mode .mobile-pos-balance{text-align:center}
  body.terminal-mode .mobile-pos-date-range{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
  body.terminal-mode .mobile-pos-date-range label{display:grid;gap:7px;min-width:0;margin:0;color:#334d6d;font-size:13px;font-weight:700}
  body.terminal-mode .mobile-pos-date-range input{width:100%;min-width:0;min-height:46px;padding:8px;border:1px solid #b7cceb;border-radius:9px;background:#fff;color:#152b45;font-size:13px}
  body.terminal-mode .mobile-pos-balance{display:grid;gap:9px;padding:20px;border:1px solid #b7cceb;border-radius:14px;background:linear-gradient(140deg,#eaf3ff,#f7fbff)}
  body.terminal-mode .mobile-pos-balance span{font-size:13px;font-weight:800;letter-spacing:.03em;text-transform:uppercase}
  body.terminal-mode .mobile-pos-balance strong{color:#123f77;font-size:clamp(34px,10vw,52px);line-height:1;font-variant-numeric:tabular-nums}
  body.terminal-mode .mobile-pos-balance-with-prizes{display:grid;gap:6px;margin-top:8px;padding-top:14px;border-top:1px solid #b7cceb}
  body.terminal-mode .mobile-pos-balance-with-prizes strong{font-size:clamp(22px,7vw,30px)}
  body.terminal-mode .mobile-pos-balance strong.is-positive{color:#138451}
  body.terminal-mode .mobile-pos-balance strong.is-negative{color:#b42335}
  body.terminal-mode .mobile-pos-breakdown{display:grid;gap:10px;padding:14px 0;border-block:1px solid #e0e7f0}
  body.terminal-mode .mobile-pos-breakdown>div{display:flex;justify-content:space-between;align-items:baseline;gap:14px;color:#334d6d;font-size:13px}
  body.terminal-mode .mobile-pos-breakdown strong{flex:none;color:#152b45;font-size:15px;font-variant-numeric:tabular-nums}
  body.terminal-mode .mobile-pos-breakdown>div:last-child{color:#765415;font-weight:700}
  body.terminal-mode .mobile-pos-breakdown>div:last-child strong{color:#765415}
  body.terminal-mode .mobile-weekly-values>div{display:flex;justify-content:space-between;align-items:center;gap:12px;color:#334d6d;font-size:13px}
  body.terminal-mode .mobile-weekly-values strong{color:#123f77;font-size:17px;font-variant-numeric:tabular-nums}
  body.terminal-mode .mobile-weekly{display:grid;gap:14px;padding-top:18px;border-top:1px solid #e0e7f0}
  body.terminal-mode .mobile-weekly h3{margin:0;color:#152b45;font-size:20px}
  body.terminal-mode #mobile-pos-view-weekly{min-height:44px;border-color:#b3c9e4;background:#edf5ff;color:#123f77;font-weight:800}
  body.terminal-mode .mobile-weekly-values{display:grid;gap:10px}
  body.terminal-mode .mobile-daily{display:grid;gap:14px}
  body.terminal-mode .mobile-daily h3{margin:0;text-align:center;color:#152b45;font-size:20px}
  body.terminal-mode .mobile-daily-date{display:grid;gap:7px;margin:0;color:#334d6d;font-size:13px;font-weight:700}
  body.terminal-mode .mobile-daily-date input{width:100%;min-height:46px;padding:8px;border:1px solid #b7cceb;border-radius:9px;background:#fff;color:#152b45}
  body.terminal-mode .mobile-sales-history-days{display:grid;gap:10px}
  body.terminal-mode .mobile-sales-day{padding:12px;border:1px solid #d8e4f1;border-radius:12px;background:#fff}
  body.terminal-mode .mobile-sales-day h4{margin:0 0 4px;color:#152b45}
  body.terminal-mode .mobile-sales-day>.mobile-weekly-values{margin-top:10px}
  body.terminal-mode .mobile-weekly-values>div{min-height:58px;padding:10px 14px;border:1px solid #d8e4f1;border-radius:11px;background:#f5f9fe;font-weight:800}
  body.terminal-mode .mobile-weekly-values>div:last-child{border-color:#afcce9;background:#eaf3ff}
  html[lang="es"] body.terminal-mode .mobile-weekly-in-label::after{content:"Entrada"}
  html[lang="es"] body.terminal-mode .mobile-weekly-out-label::after{content:"Salida"}
  html[lang="es"] body.terminal-mode .mobile-weekly-in-label,html[lang="es"] body.terminal-mode .mobile-weekly-out-label{font-size:0}
  html[lang="es"] body.terminal-mode .mobile-weekly-in-label::after,html[lang="es"] body.terminal-mode .mobile-weekly-out-label::after{font-size:13px}
  body.terminal-mode #mobile-pos-updated{min-height:18px;margin:0;color:#52677f}
  body.terminal-mode #mobile-pos-updated:empty{display:none}
  body.terminal-mode #mobile-pos-refresh{min-height:46px;border-color:#b3c9e4;background:#edf5ff;color:#123f77;font-weight:800}
  body.terminal-mode .mobile-pos-actions{display:flex;justify-content:flex-end}
  body.terminal-mode #mobile-pos-logout{min-height:46px;border-color:#d5dfeb;background:#fff;color:#334d6d;font-weight:800}
  body.terminal-mode .mobile-pos-summary>.muted:last-child{margin:0;color:#52677f;text-align:center}
}
@media screen and (max-width:400px){body.terminal-mode .mobile-pos-summary{width:auto;margin:12px;padding:17px}body.terminal-mode>header .brand{max-width:150px!important}}
@media(max-width:800px){
  body.terminal-mode .mobile-pending{display:grid;gap:9px;padding-top:18px;border-top:1px solid #e0e7f0;color:#152b45}
  body.terminal-mode .mobile-pending-heading{display:flex;align-items:baseline;justify-content:space-between;gap:12px}
  body.terminal-mode .mobile-pending-heading h3{margin:0;color:#152b45;font-size:20px}
  body.terminal-mode .mobile-pending-heading strong{color:#123f77;font-size:20px;font-variant-numeric:tabular-nums}
  body.terminal-mode #mobile-pending-status{margin:0;color:#52677f}
  body.terminal-mode #mobile-pending-status:empty{display:none}
  body.terminal-mode .mobile-pending-list{border:1px solid #dce5f0;border-radius:11px;overflow:hidden;background:#fff}
  body.terminal-mode .mobile-pending-ticket{display:grid;gap:7px;padding:12px 14px;color:#152b45;font-size:13px}
  body.terminal-mode .mobile-pending-ticket+ .mobile-pending-ticket{border-top:1px solid #e5ebf3}
  body.terminal-mode .mobile-pending-ticket-heading,body.terminal-mode .mobile-pending-ticket-amounts{display:flex;align-items:baseline;justify-content:space-between;gap:10px}
  body.terminal-mode .mobile-pending-ticket-heading strong{color:#123f77}
  body.terminal-mode .mobile-pending-ticket-details{display:flex;align-items:baseline;justify-content:space-between;flex-wrap:wrap;gap:4px 10px;color:#52677f;font-weight:700}
  body.terminal-mode .mobile-pending-ticket .mobile-weekly-values{gap:7px}
  body.terminal-mode .mobile-pending-ticket .mobile-weekly-values>div{min-height:42px;padding:8px 10px}
  body.terminal-mode .mobile-ticket-actions{display:flex;justify-content:flex-end;gap:7px;margin-top:4px}
  body.terminal-mode .mobile-ticket-action{display:grid;place-items:center;width:40px;min-width:40px;height:40px;min-height:40px;padding:0;border:1px solid #b7cceb;border-radius:9px;background:#edf5ff;color:#123f77;font-size:19px;line-height:1}
  body.terminal-mode .mobile-ticket-action:disabled{opacity:.5;cursor:not-allowed}
  body.terminal-mode .mobile-pending-ticket-heading time,body.terminal-mode .mobile-pending-ticket-amounts span{color:#52677f}
  body.terminal-mode .mobile-pending-ticket-amounts strong{color:#123f77;font-variant-numeric:tabular-nums}
  body.terminal-mode .mobile-pending-pages{display:flex;justify-content:space-between;align-items:center;gap:8px;padding:10px 14px;border-top:1px solid #e5ebf3;color:#52677f;font-size:12px}
  body.terminal-mode .mobile-pending-pages button{padding:8px 10px;border-color:#b7cceb;color:#123f77;font-size:12px}
}
/* Balance badges sit below each person's existing icon and name. */
body.admin-mode .family-tree .terminal-launcher-card{grid-template-rows:72px 25px 19px 24px!important;height:157px!important;min-height:157px!important}
body.admin-mode .family-tree .terminal-launcher-card .hierarchy-balance{grid-column:1!important;grid-row:4!important}
body.admin-mode .family-member{min-height:123px}
body.admin-mode .hierarchy-balance{display:inline-block;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;padding:3px 8px;border:1px solid #c8d9e8;border-radius:999px;background:#edf6fd;color:#174f76;font-size:11px;font-weight:800;line-height:16px;font-variant-numeric:tabular-nums}
body.terminal-mode .is-positive,body.admin-mode .hierarchy-balance.is-positive,body.admin-mode .station-balance-panel.is-positive .station-balance-value{color:#1255a1!important}
body.terminal-mode .is-negative,body.admin-mode .hierarchy-balance.is-negative,body.admin-mode .station-balance-panel.is-negative .station-balance-value{color:#b42333!important}
body.admin-mode .hierarchy-balance.is-negative{border-color:#efbec5;background:#fff0f1}
body.admin-mode .station-payment-form{display:flex;align-items:end;flex-wrap:wrap;gap:10px}
body.admin-mode .station-payment-form label{display:grid;gap:5px;min-width:170px}
body.admin-mode .station-balance-value{display:block;margin:8px 0;font-size:28px;font-variant-numeric:tabular-nums}
/* Keep the desktop station header on three intentional axes. */
@media screen and (min-width:1000px){
  body.terminal-mode>header{display:grid!important;grid-template-columns:minmax(0,1fr) 270px minmax(0,1fr)!important;align-items:center!important;height:112px!important;min-height:112px!important;padding:0 18px!important}
  body.terminal-mode>header .nav-toggle{position:static!important;grid-column:1!important;grid-row:1!important;justify-self:start!important;margin:0!important}
  body.terminal-mode>header .header-right{position:static!important;grid-column:1!important;grid-row:1!important;justify-self:start!important;display:flex!important;align-items:center!important;gap:10px!important;margin:0 0 0 57px!important;padding:0!important}
  body.terminal-mode>header .brand{position:static!important;grid-column:2!important;grid-row:1!important;justify-self:center!important;width:270px!important;max-width:270px!important;height:auto!important;margin:0!important;transform:none!important}
  body.terminal-mode>header .app-logo{display:block!important;width:100%!important;max-width:270px!important;height:auto!important;max-height:96px!important;object-fit:contain!important}
  body.terminal-mode>header .terminal-status{position:static!important;grid-column:3!important;grid-row:1!important;justify-self:end!important;display:flex!important;flex-direction:row!important;align-items:center!important;gap:10px!important;width:auto!important;height:auto!important;margin:0!important;padding:0!important;text-align:right!important}
  body.terminal-mode>header .terminal-status>div{width:auto!important;min-width:0!important}
  body.terminal-mode>main{height:calc(100dvh - 112px)!important}
}
/* Use the actual height of the entry fields so the ticket panels sit directly beneath them. */
@media screen and (min-width:801px){
  body.terminal-mode #ticket-form{grid-template-rows:50px auto 62px minmax(0,1fr) 36px!important}
  body.terminal-mode .entry-toolbar{height:auto!important;min-height:0!important;align-items:start!important}
}
/* Final station header: fixed columns at compact desktop widths, no overlaps. */
body.terminal-mode>header #see-results,
body.terminal-mode>header #see-results span{white-space:nowrap!important}
body.terminal-mode>header #see-results{font-size:12px!important}
.pos-results-heading-actions{display:flex;align-items:center;gap:10px}
.pos-results-live-link{display:inline-flex;align-items:center;justify-content:center;min-height:36px;padding:0 12px;border:1px solid #8dd8ff;border-radius:999px;background:#0b416d;color:#fff;font-size:12px;font-weight:800;text-decoration:none;white-space:nowrap}
.pos-results-live-link:hover,.pos-results-live-link:focus-visible{background:#126398;color:#fff}
@media(max-width:520px){.pos-results-heading{flex-wrap:wrap;gap:6px;padding:12px}.pos-results-heading h2{flex:1 1 100%;font-size:19px}.pos-results-heading-actions{width:100%;justify-content:flex-end;gap:5px}.pos-results-live-link{padding:0 8px;font-size:11px}}
@media screen and (min-width:801px) and (max-width:999px){
  body.terminal-mode>header{display:grid!important;grid-template-columns:minmax(0,1fr) minmax(0,1fr)!important;grid-template-rows:58px 62px!important;align-items:center!important;height:120px!important;min-height:120px!important;padding:0 14px!important}
  body.terminal-mode>header .nav-toggle{position:static!important;grid-column:1!important;grid-row:2!important;justify-self:start!important;margin:0!important}
  body.terminal-mode>header .header-right{position:static!important;grid-column:1!important;grid-row:2!important;justify-self:start!important;display:flex!important;align-items:center!important;gap:7px!important;margin:0 0 0 53px!important;padding:0!important}
  body.terminal-mode>header .brand{position:static!important;grid-column:1/3!important;grid-row:1!important;justify-self:center!important;width:250px!important;max-width:250px!important;height:auto!important;margin:0!important;transform:none!important}
  body.terminal-mode>header .app-logo{display:block!important;width:100%!important;max-width:250px!important;height:auto!important;max-height:58px!important;object-fit:contain!important}
  body.terminal-mode>header .terminal-status{position:static!important;grid-column:2!important;grid-row:2!important;justify-self:end!important;display:flex!important;flex-direction:row!important;align-items:center!important;gap:7px!important;width:auto!important;height:auto!important;margin:0!important;padding:0!important;text-align:right!important}
  body.terminal-mode>header .terminal-status>div{width:auto!important;min-width:0!important}
  body.terminal-mode>header .terminal-clock{font-size:12px!important}
  body.terminal-mode>header #multi-lottery{font-size:11px!important;padding-left:9px!important;padding-right:9px!important}
  body.terminal-mode>main{height:calc(100dvh - 120px)!important}
}
@media screen and (min-width:890px) and (max-width:999px){
  body.terminal-mode>header{grid-template-columns:minmax(286px,1fr) 200px minmax(0,372px)!important;grid-template-rows:106px!important;height:106px!important;min-height:106px!important}
  body.terminal-mode>header .nav-toggle,body.terminal-mode>header .header-right,body.terminal-mode>header .terminal-status{grid-row:1!important}
  body.terminal-mode>header .brand{grid-column:2!important;grid-row:1!important;width:200px!important;max-width:200px!important}
  body.terminal-mode>header .app-logo{max-width:200px!important;max-height:82px!important}
  body.terminal-mode>header .terminal-status{grid-column:3!important}
  body.terminal-mode>main{height:calc(100dvh - 106px)!important}
}
@media screen and (min-width:1000px){
  body.terminal-mode>header{grid-template-columns:minmax(255px,1fr) clamp(310px,31vw,340px) minmax(365px,1fr)!important;height:124px!important;min-height:124px!important}
  body.terminal-mode>header .brand{width:100%!important;max-width:340px!important}
  body.terminal-mode>header .app-logo{width:100%!important;max-width:340px!important;max-height:115px!important}
body.terminal-mode>header .terminal-status{gap:8px!important}

  body.terminal-mode>header #terminal-clock{font-size:12px!important}
  body.terminal-mode>main{height:calc(100dvh - 124px)!important}
}
@media screen and (min-width:801px) and (max-width:999px){
  body.terminal-mode>header .brand{width:270px!important;max-width:270px!important}
  body.terminal-mode>header .app-logo{max-width:270px!important;max-height:82px!important}
}
@media screen and (min-width:890px) and (max-width:999px){
  body.terminal-mode>header .brand{width:200px!important;max-width:200px!important}
  body.terminal-mode>header .app-logo{max-width:200px!important;max-height:82px!important}
}
@media screen and (max-width:800px){
  body.terminal-mode>header .brand{flex:0 1 220px!important;max-width:220px!important}
  body.terminal-mode>header .app-logo{max-height:70px!important}
}
/* One selected language at a time, with a flag and a soft cross-slide. */
body.login-mode>header .language-toggle,
body.admin-mode>header .language-toggle,
body.terminal-mode>header .language-toggle,
body.terminal-mode.orange-theme>header .language-toggle{
  display:block!important;width:104px!important;min-width:104px!important;height:40px!important;min-height:40px!important;
  padding:0!important;border:0!important;background:transparent!important;box-shadow:none!important;
}
body.login-mode>header .language-switch,
body.admin-mode>header .language-switch,
body.terminal-mode>header .language-switch,
body.terminal-mode.orange-theme>header .language-switch{
  position:relative;display:block!important;width:104px!important;min-width:104px!important;height:40px!important;min-height:40px!important;
  padding:0!important;border:2px solid #5b86c7!important;border-radius:999px!important;
  overflow:hidden;cursor:pointer;color:#173b76!important;
  background:linear-gradient(130deg,#fff,#eef4ff)!important;
  box-shadow:0 2px 7px #0d285349!important;
  transition:background .32s ease,border-color .32s ease,box-shadow .32s ease;
}
body>header .language-toggle[data-selected="es"] .language-switch{
  border-color:#d66d78!important;background:linear-gradient(130deg,#fff,#fff0f2)!important;
  color:#842538!important;
}
body>header .language-switch:hover{box-shadow:0 3px 10px #0d285365!important}
body>header .language-face{
  position:absolute;inset:0;display:flex;align-items:center;justify-content:center;gap:7px;
  color:inherit;font-size:12px;font-weight:850;letter-spacing:.01em;white-space:nowrap;
  transition:opacity .28s ease,transform .32s cubic-bezier(.22,.8,.22,1);
}
body>header .language-face img{display:block;flex:none;width:22px;height:16px;object-fit:cover;border-radius:2px;box-shadow:0 0 0 1px #183c7530}
body>header .language-toggle[data-selected="en"] .language-face-en,
body>header .language-toggle[data-selected="es"] .language-face-es{opacity:1;transform:translateX(0)}
body>header .language-toggle[data-selected="en"] .language-face-es{opacity:0;transform:translateX(12px)}
body>header .language-toggle[data-selected="es"] .language-face-en{opacity:0;transform:translateX(-12px)}
@media(prefers-reduced-motion:reduce){body>header .language-switch,body>header .language-face{transition:none}}
/* Multi-draw mode: one compact toggle with an unmistakable selected check. */
body.terminal-mode>header #multi-lottery{
  position:relative;display:inline-flex!important;align-items:center!important;justify-content:center!important;
  gap:7px!important;width:110px!important;min-width:110px!important;height:40px!important;min-height:40px!important;
  margin:0!important;padding:0 10px!important;border:1px solid #ffffff84!important;border-radius:999px!important;
  background:#173d82!important;color:#fff!important;box-shadow:inset 0 1px 2px #0b24544a!important;
  transition:background .22s ease,color .22s ease,border-color .22s ease,box-shadow .22s ease;
}
body.terminal-mode>header #multi-lottery:hover{background:#214e9a!important}
body.terminal-mode>header #multi-lottery.active{
  border-color:#90e4cb!important;background:#f4fffb!important;color:#155e50!important;
  box-shadow:0 2px 8px #0c4e4a38!important;
}
body.terminal-mode>header #multi-lottery>span{
  margin:0!important;padding:0!important;border:0!important;border-radius:0!important;
  background:transparent!important;color:inherit!important;box-shadow:none!important;
}
body.terminal-mode>header #multi-lottery .multi-grid-icon{display:grid!important;grid-template-columns:repeat(2,6px);grid-template-rows:repeat(2,6px);gap:2px;width:14px;height:14px;flex:none}
body.terminal-mode>header #multi-lottery .multi-grid-icon i{display:block;width:6px;height:6px;border:1.5px solid currentColor;border-radius:2px}
body.terminal-mode>header #multi-lottery.active .multi-grid-icon i{background:#1aa77d;border-color:#1aa77d}
body.terminal-mode>header #multi-lottery .header-multi-label{display:block!important;font-size:12px!important;font-weight:850!important;letter-spacing:.01em!important}
body.terminal-mode>header #multi-lottery .multi-selected-mark{
  display:grid!important;place-items:center;width:18px;height:18px;flex:none;border-radius:50%!important;
  background:#1aa77d!important;color:#fff!important;font-size:12px!important;font-weight:900!important;
  opacity:0;transform:scale(.6);transition:opacity .22s ease,transform .22s ease;
}
body.terminal-mode>header #multi-lottery.active .multi-selected-mark{opacity:1;transform:scale(1)}
body.terminal-mode>header #multi-lottery:focus-visible{outline:3px solid #8bdcff;outline-offset:3px}
@media(prefers-reduced-motion:reduce){body.terminal-mode>header #multi-lottery,body.terminal-mode>header #multi-lottery .multi-selected-mark{transition:none}}
/* Enlarge the artwork itself by cropping its transparent top/bottom padding. */
@media screen and (min-width:1070px){
  body.terminal-mode>header .brand{
    position:absolute!important;grid-column:1/-1!important;grid-row:1!important;left:50%!important;top:50%!important;
    width:400px!important;max-width:400px!important;height:120px!important;
    margin:0!important;overflow:hidden!important;transform:translate(-50%,-50%)!important;
  }
  body.terminal-mode>header .app-logo{
    display:block!important;width:400px!important;max-width:none!important;
    height:120px!important;max-height:none!important;object-fit:cover!important;
    object-position:center 35%!important;
  }
}
/* Final alignment pass: keep the phone summary inside the viewport. */
@media screen and (max-width:800px){
  body.terminal-mode>header #multi-lottery{display:none!important}
}
/* Line up labels, inputs, and actions in the existing terminal form row. */
@media screen and (min-width:1200px){
  body.admin-mode #admin-page-terminals>.panel>#terminal-form{align-items:flex-start!important}
  body.admin-mode #admin-page-terminals>.panel>#terminal-form>label{
    display:grid!important;grid-template-rows:40px 46px minmax(36px,auto)!important;
    align-content:start!important;gap:6px!important;
  }
  body.admin-mode #admin-page-terminals>.panel>#terminal-form>button{
    align-self:flex-start!important;margin-top:46px!important;
  }
}

/* Resolution-independent sizing. Existing grids, order, and controls stay intact. */
:root{font-size:16px}
*,*::before,*::after{box-sizing:border-box}
body:not(.broadcast-page) img{max-width:100%;height:auto}
body:not(.broadcast-page) canvas,body:not(.broadcast-page) video{max-width:100%}
main>*,#workspace,#admin,#terminal,#pos-shell,.pos-workspace{min-width:0}
body.admin-mode>main{width:100%;max-width:90rem!important}
body.admin-mode h1{font-size:clamp(1.75rem,2vw,2rem)!important}
body.admin-mode h2{font-size:clamp(1.25rem,1.5vw,1.3125rem)!important}
body.admin-mode .stat strong{font-size:clamp(1.5rem,2vw,2rem)!important}
body.terminal-mode .entry-running-total output{font-size:clamp(1.875rem,2.4vw,2.625rem)}
@media(min-width:1000px){
  body.terminal-mode>main{width:100%!important;max-width:none!important;margin-inline:0!important}
  body.terminal-mode>header,body.admin-mode>header{padding-inline:max(1.125rem,calc((100vw - 90rem)/2 + 1.125rem))!important}
}
@media(max-width:360px){
  body.terminal-mode>header .brand{flex:0 1 145px!important;max-width:145px!important}
  body.terminal-mode>header .app-logo{max-width:145px!important}
  body.terminal-mode>header .header-right{flex:0 0 104px!important;min-width:104px!important}
}
.pos-action-row .copy-3d-icon{position:relative;display:block;width:20px;height:20px;color:currentColor}
.pos-action-row .copy-3d-icon::before,.pos-action-row .copy-3d-icon::after{content:"";position:absolute;width:13px;height:13px;border:2px solid currentColor;border-radius:2px}
.pos-action-row .copy-3d-icon::before{left:1px;top:5px}
.pos-action-row .copy-3d-icon::after{left:6px;top:1px;background:#fff}
/* Device avatars distinguish the master's direct terminals from people. */
body.admin-mode .terminal-device-icon{position:relative;display:block;width:72px;height:72px;overflow:hidden;border:2px solid #fff;border-radius:50%;background:var(--avatar-bg,#d7e9f8);box-shadow:0 0 0 1px var(--admin-border)}
body.admin-mode .family-tree .terminal-launcher-card .terminal-device-icon{grid-column:1;grid-row:1}
body.admin-mode .family-member .terminal-device-icon{width:66px;height:66px}
body.admin-mode .terminal-device-screen{position:absolute;left:18%;top:23%;width:64%;height:43%;border:3px solid #244b72;border-radius:5px;background:linear-gradient(145deg,#a6d9f4,#568bc1);box-shadow:inset 0 2px 0 #ffffff88}
body.admin-mode .terminal-device-screen::after{content:"";position:absolute;right:4px;top:4px;width:5px;height:5px;border-radius:50%;background:#dff6ff}
body.admin-mode .terminal-device-stand{position:absolute;left:46%;top:66%;width:8%;height:14%;border-radius:1px;background:#244b72}
body.admin-mode .terminal-device-stand::after{content:"";position:absolute;left:-130%;bottom:-2px;width:360%;height:4px;border-radius:3px;background:#244b72}
/* Center the brand independently of the menu and account controls. */
body.admin-mode>header .brand{position:absolute!important;left:50%!important;top:50%!important;width:270px!important;max-width:270px!important;flex:none!important;margin:0!important;transform:translate(-50%,-50%)!important}
body.admin-mode>header .app-logo{display:block!important;width:100%!important;max-width:270px!important;height:auto!important;max-height:78px!important;object-fit:contain!important}
@media (min-width:801px) and (max-width:980px){
  body.admin-mode>header{height:128px!important;min-height:128px!important}
  body.admin-mode>header .brand{top:38px!important}
  body.admin-mode>header .header-right{position:absolute!important;right:18px;bottom:8px}
}
@media (max-width:800px){
  body.admin-mode>header .brand{grid-column:auto!important;grid-row:auto!important;left:50%!important;top:41px!important;width:min(210px,calc(100vw - 140px))!important;max-width:210px!important;justify-self:auto!important}
  body.admin-mode>header .app-logo{max-width:100%!important;max-height:65px!important}
}
body.terminal-mode #clear-ticket,body.terminal-mode #clear-pair-ticket{right:.5rem;width:2rem;height:2rem;border:1px solid #f0a6af;border-radius:.5rem;background:#fff4f5;color:#bf2037!important;box-shadow:0 2px 7px #16335a33;transition:background .16s ease,box-shadow .16s ease,transform .16s ease}
body.terminal-mode #clear-ticket:hover,body.terminal-mode #clear-pair-ticket:hover{background:#ffe0e4;box-shadow:0 3px 9px #16335a4d;transform:translateY(-1px)}
body.terminal-mode #clear-ticket:focus-visible,body.terminal-mode #clear-pair-ticket:focus-visible{outline:2px solid #fff;outline-offset:2px}
body.terminal-mode #clear-ticket svg,body.terminal-mode #clear-pair-ticket svg{width:1.15rem;height:1.15rem;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
body.terminal-mode #clear-ticket svg path,body.terminal-mode #clear-pair-ticket svg path{fill:none!important;stroke:#bf2037!important;stroke-width:2.2!important;stroke-linecap:round;stroke-linejoin:round}
body.login-mode .login-logo{display:block;width:min(22rem,100%);height:6.5rem;margin-inline:auto;padding:0;border:2px solid #e4b349;border-radius:.9rem;background:#167ec1;object-fit:cover;object-position:center;box-shadow:0 .65rem 1.5rem #071a3366,0 0 0 4px #fff8e8;filter:none}
body.terminal-mode .account-settings-actions{display:flex;flex-wrap:wrap;gap:8px;justify-content:flex-end}
body.terminal-mode .account-settings-actions button{margin:0}
@media(max-width:800px){
  body.terminal-mode .mobile-pos-actions{gap:8px;flex-wrap:wrap}
  body.terminal-mode #mobile-pos-account{min-height:46px;border-color:#d5dfeb;background:#fff;color:#334d6d;font-weight:800}
}
body.admin-mode .approval-notice{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:0 0 18px;padding:12px 16px;border:1px solid #cc9341;border-radius:10px;background:#fff4dc;color:#573706;font-size:14px;font-weight:800}
body.admin-mode .approval-notice:not([hidden]){box-shadow:0 0 0 3px #ffcf7566,0 8px 24px #57370622}
body.admin-mode .approval-notice button{flex:none;margin:0;padding:8px 12px;border-color:#8e5817;background:#74440e;color:#fff}
body.admin-mode .admin-sidebar .approval-badge{display:inline-grid;place-items:center;min-width:23px;height:23px;margin-left:auto;padding:0 6px;border-radius:999px;background:#ffbf4c;color:#35210a;font-size:12px;font-weight:900}
body.admin-mode>header .nav-toggle{position:relative}
body.admin-mode>header .nav-toggle[data-pending-approvals]::after{content:attr(data-pending-approvals);position:absolute;top:-8px;right:-8px;display:grid;place-items:center;min-width:19px;height:19px;padding:0 4px;border-radius:999px;background:#ffbf4c;color:#35210a;font-size:11px;font-weight:900;box-shadow:0 0 0 2px #477caf}
body.admin-mode>header .admin-live-button{display:inline-flex;align-items:center;justify-content:center;min-height:38px;padding:8px 14px!important;white-space:nowrap;border:1px solid #62c5ec!important;border-radius:9px;background:#0d6fac!important;color:#fff!important;font-size:12px;font-weight:800}
body.admin-mode>header .admin-live-button:hover{background:#09588b!important}
@media(max-width:600px){body.admin-mode>header .admin-live-button{padding:7px 9px!important;font-size:11px}}
@media(max-width:600px){body.admin-mode .approval-notice{align-items:stretch;flex-direction:column}body.admin-mode .approval-notice button{width:100%}}
body.admin-mode .balance-positive{color:#138451!important}
body.admin-mode .balance-negative{color:#d93245!important}
body.admin-mode .hierarchy-balance.is-positive{color:#138451!important}
body.admin-mode .hierarchy-balance.is-negative{color:#d93245!important}
.balance-collect-button{display:inline-flex;align-items:center;margin-inline-start:.6rem;padding:.28rem .55rem;border:1px solid currentColor;border-radius:.55rem;background:transparent;color:inherit;font:inherit;font-size:.78rem;font-weight:650;cursor:pointer;white-space:nowrap}
.balance-collect-button:hover{background:color-mix(in srgb,currentColor 9%,transparent)}
.pending-manager-dialog{width:min(92vw,42rem);max-height:min(85vh,48rem);overflow:auto}
.pending-manager-list{display:grid;gap:.55rem;margin:1rem 0}
.pending-manager-ticket{display:flex;align-items:flex-start;gap:.65rem;padding:.65rem .75rem;border:1px solid #d8e3ec;border-radius:.65rem;line-height:1.45;cursor:pointer}
.pending-manager-ticket input{margin-top:.2rem;flex:none}
.pending-manager-actions{display:flex;flex-wrap:wrap;gap:.5rem;margin-top:1rem}
/* Make the shared Sòlèy artwork the focal point of every signed-in page. */
body.admin-mode>header,body.terminal-mode>header{position:relative!important}
body.admin-mode>header .brand,body.terminal-mode>header .brand{position:absolute!important;left:50%!important;top:50%!important;display:block!important;width:clamp(19rem,27vw,24rem)!important;max-width:24rem!important;height:6rem!important;margin:0!important;overflow:hidden!important;transform:translate(-50%,-50%)!important;z-index:1}
body.admin-mode>header .app-logo,body.terminal-mode>header .app-logo{display:block!important;width:100%!important;max-width:none!important;height:100%!important;max-height:none!important;object-fit:cover!important;object-position:center 46%!important}
body.admin-mode>header .nav-toggle,body.terminal-mode>header .nav-toggle,body.admin-mode>header .header-right,body.terminal-mode>header .header-right{position:relative;z-index:2}
@media (min-width:801px) and (max-width:1199px){
  body.admin-mode>header,body.terminal-mode>header{height:8.25rem!important;min-height:8.25rem!important}
  body.admin-mode>header .brand,body.terminal-mode>header .brand{top:3rem!important;width:21.5rem!important;max-width:21.5rem!important;height:5.8rem!important}
  body.admin-mode>header .header-right,body.terminal-mode>header .header-right{position:absolute!important;right:1.25rem!important;bottom:.5rem!important}
}
@media (max-width:800px){
body.admin-mode>header .brand,body.terminal-mode>header .brand{left:50%!important;top:2.7rem!important;width:min(15rem,calc(100vw - 8.5rem))!important;max-width:15rem!important;height:4.8rem!important;transform:translate(-50%,-50%)!important}
  body.admin-mode>header .app-logo,body.terminal-mode>header .app-logo{max-width:none!important;max-height:none!important}
}
/* Consistent controls and spacing without moving the existing page sections. */
body.admin-mode .admin-content{min-width:0}
body.admin-mode .admin-content .panel{padding:clamp(16px,2vw,24px)!important}
body.admin-mode .admin-content .panel h2{line-height:1.25!important;letter-spacing:-.015em!important}
body.admin-mode .admin-content .section-title{column-gap:16px!important;row-gap:8px!important}
body.admin-mode .admin-content .muted{line-height:1.5!important}
body.admin-mode .admin-content :is(button,.button,input,select){min-height:44px}
body.admin-mode .admin-content :is(button,.button){padding:8px 14px!important;line-height:1.25!important}
body.admin-mode .admin-content .sales-history-name-button{display:inline-flex;flex-direction:column;align-items:flex-start;gap:2px;min-height:0;padding:2px 0!important;border:0!important;background:transparent!important;box-shadow:none!important;color:#173b65!important;line-height:1.25!important;text-align:left;text-decoration:none}
body.admin-mode .admin-content .sales-history-name-button:hover{color:#0d66a1!important;text-decoration:underline}
body.admin-mode .admin-content .sales-history-name-button small{display:block;font-size:.76em;font-weight:500;color:#52657b;text-decoration:none}
body.admin-mode .overview-group-link{display:inline-flex;flex-direction:column;align-items:flex-start;gap:2px;line-height:1.25}
body.admin-mode .overview-group-link small{display:block;font-size:.76em;font-weight:500;color:#52657b;text-decoration:none}
body.admin-mode .admin-content :is(input,select){padding:8px 12px!important}
body.admin-mode .admin-content :is(button,.button,input,select):focus-visible,
body.admin-mode dialog :is(button,input,select):focus-visible{outline:3px solid #167ec180!important;outline-offset:2px!important}
body.admin-mode .admin-content .table-wrap :is(th,td){padding:12px 16px!important;line-height:1.45!important}
body.admin-mode #device-rows .device-kind{display:block;margin-top:3px;color:#52657b;font-size:12px;font-weight:600}
body.admin-mode .inline-person-icon{display:inline-block;flex:none;width:46px!important;height:46px!important;margin-right:8px;vertical-align:middle;border:2px solid #fff!important;background:radial-gradient(circle at 31% 19%,#fff9 0 7%,transparent 29%),var(--avatar-bg)!important}
body.admin-mode .inline-person-icon .terminal-avatar-head{left:13px!important;bottom:10px!important;width:19px!important;height:24px!important}
body.admin-mode .inline-person-icon .terminal-avatar-head:before,body.admin-mode .inline-person-icon .terminal-avatar-head:after{top:11px!important;width:2px!important;height:2px!important}
body.admin-mode .inline-person-icon .terminal-avatar-head:before{left:5px!important}
body.admin-mode .inline-person-icon .terminal-avatar-head:after{right:5px!important}
body.admin-mode .inline-person-icon .terminal-avatar-hair{left:10px!important;bottom:25px!important;width:25px!important;height:13px!important}
body.admin-mode .inline-person-icon .terminal-avatar-shirt{left:6px!important;bottom:-7px!important;width:32px!important;height:24px!important}
body.admin-mode .inline-person-icon .terminal-avatar-shirt:after{left:12px!important;width:8px!important;height:12px!important}
body.admin-mode #manager-overview-rows .user-identity{display:grid!important;grid-template-columns:46px minmax(0,1fr);align-items:center;column-gap:9px!important}
body.admin-mode #manager-overview-rows .user-identity .inline-person-icon{grid-row:1/3;margin:0}
body.admin-mode #manager-overview-rows .user-identity small{color:#52657b;font-weight:500}
body.admin-mode #manager-overview-rows .manager-employee-actions{white-space:nowrap;text-align:center}
body.admin-mode #manager-overview-rows .manager-employee-actions button{width:38px;height:38px;min-height:38px;margin:2px;padding:4px;border:1px solid #bed3e6;border-radius:9px;background:#eef6fd;color:#124c7b;font-size:17px;vertical-align:middle}
body.admin-mode #manager-overview-rows .manager-employee-actions button:hover{background:#d8ecfb}
@media(max-width:700px){
  body.admin-mode .table-wrap table:has(#manager-overview-rows){display:block!important;width:100%!important;min-width:0!important;table-layout:auto!important}
  body.admin-mode .table-wrap table:has(#manager-overview-rows) thead{display:none!important}
  body.admin-mode .table-wrap:has(#manager-overview-rows){overflow:visible!important;border:0!important;background:transparent!important}
  body.admin-mode #manager-overview-stats{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:7px!important}
  body.admin-mode #manager-overview-stats .stat{min-width:0!important;min-height:85px!important;padding:10px!important}
  body.admin-mode #manager-overview-stats .stat{text-align:center}
  body.admin-mode #manager-overview-stats .stat span{font-size:11px!important}
  body.admin-mode #manager-overview-stats .stat strong{overflow-wrap:anywhere;font-size:clamp(15px,4vw,22px)!important}
  body.admin-mode #manager-overview-rows{display:grid!important;gap:10px!important;min-width:0!important}
  body.admin-mode #manager-overview-rows tr{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px;padding:12px;border:1px solid #dce5f0;border-radius:11px;background:#fff}
  body.admin-mode #manager-overview-rows td{display:grid!important;gap:3px;min-width:0;padding:0!important;border:0!important;white-space:normal!important;overflow-wrap:anywhere}
  body.admin-mode #manager-overview-rows td{justify-items:center;text-align:center;background:transparent!important}
  body.admin-mode #manager-overview-rows .user-identity{grid-template-columns:1fr;justify-items:center;gap:3px!important}
  body.admin-mode #manager-overview-rows .user-identity .inline-person-icon{grid-row:auto}
  body.admin-mode #manager-overview-rows td:first-child,body.admin-mode #manager-overview-rows td:nth-child(4),body.admin-mode #manager-overview-rows td:nth-child(5){grid-column:1/-1}
  body.admin-mode #manager-overview-rows td:nth-child(5){display:flex!important;justify-content:center;gap:5px}
  body.admin-mode #manager-overview-rows td:first-child{font-weight:800}
  body.admin-mode #manager-overview-rows td:nth-child(2)::before{content:'Sales'}
  body.admin-mode #manager-overview-rows td:nth-child(3)::before{content:'Money out'}
  body.admin-mode #manager-overview-rows td:nth-child(4)::before{content:'Balance'}
  html[lang="es"] body.admin-mode #manager-overview-rows td:nth-child(2)::before{content:'Venta'}
  html[lang="es"] body.admin-mode #manager-overview-rows td:nth-child(3)::before{content:'Salida'}
  body.admin-mode #manager-overview-rows td:nth-child(n+2)::before{font-size:11px;font-weight:700;color:#52657b}
  body.admin-mode #manager-overview-rows td button{justify-self:start;max-width:100%;white-space:normal}
}
body.admin-mode .admin-content .stat{min-height:112px!important}
body.admin-mode .attendant-launcher-panel .section-title{grid-template-columns:minmax(0,1fr) auto auto!important}
body.admin-mode .attendant-launcher-panel #add-user-button{grid-column:2!important;grid-row:1/3!important}
body.admin-mode .attendant-launcher-panel #create-manager-button{grid-column:3!important;grid-row:1/3!important}
body.admin-mode .manager-create-dialog{width:min(94vw,540px);max-height:90vh;overflow:auto}
body.admin-mode .manager-create-dialog form{gap:12px;padding:20px}
body.admin-mode .manager-create-dialog form>label{margin:0;gap:6px;color:var(--admin-text)}
body.admin-mode .manager-create-dialog button.primary{margin-top:0}
body.admin-mode .manager-role-note{margin:0;padding:14px 16px;border:1px solid #bed9e9;border-radius:10px;background:#eef7fc;color:var(--admin-blue-dark);font-size:14px;font-weight:650;line-height:1.5}
body.admin-mode .manager-settings-form{display:grid;gap:12px;justify-items:start}
body.admin-mode .manager-settings-form>label{display:grid;gap:6px;width:min(100%,200px)!important}
body.admin-mode .manager-settings-form>button{min-height:44px}
body.admin-mode .terminal-tree-root .terminal-launcher-card.master{flex-basis:230px!important;width:230px!important;max-width:min(230px,100%)!important}
body.admin-mode .terminal-tree-root .terminal-group-name{max-width:100%;white-space:normal!important;overflow:visible!important;text-overflow:clip!important;line-height:1.35!important}
body.admin-mode .first-login-dialog{width:min(94vw,440px)}
body.admin-mode .first-login-dialog form,body.login-mode .first-login-dialog form{display:grid;gap:12px}
body.admin-mode .first-login-dialog label,body.login-mode .first-login-dialog label{margin:0}
@media(max-width:700px){
  body.admin-mode .attendant-launcher-panel .section-title{grid-template-columns:repeat(2,minmax(0,1fr))!important}
  body.admin-mode .attendant-launcher-panel .section-title :is(h2,.muted){grid-column:1/-1!important}
  body.admin-mode .attendant-launcher-panel #add-user-button{grid-column:1!important;grid-row:auto!important;min-width:0!important;width:100%!important}
  body.admin-mode .attendant-launcher-panel #create-manager-button{grid-column:2!important;grid-row:auto!important;min-width:0!important;width:100%!important}
}
@media(max-width:800px){
  body.admin-mode>header .brand,body.terminal-mode>header .brand{top:2.25rem!important;width:min(15rem,calc(100vw - 8.5rem))!important;max-width:15rem!important;height:4.5rem!important;overflow:visible!important}
  body.admin-mode>header .app-logo,body.terminal-mode>header .app-logo{width:100%!important;height:100%!important;object-fit:contain!important;object-position:center!important}
  body.admin-mode>header{grid-template-rows:76px auto 42px!important;row-gap:8px!important}
  body.admin-mode>header .brand{position:relative!important;grid-column:2!important;grid-row:1!important;left:auto!important;top:auto!important;justify-self:center!important;width:min(17rem,100%)!important;max-width:17rem!important;height:76px!important;transform:none!important}
  body.admin-mode>header .admin-live-button{grid-column:1/-1!important;grid-row:3!important;justify-self:stretch!important;width:100%!important;min-height:42px!important}
}
/* Fixed prize schedule: display the contractual rates without edit controls. */
body.admin-mode .fixed-prize-rates{grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}
body.admin-mode .fixed-prize-rates>div{display:grid;gap:9px;align-content:center;min-height:98px;padding:20px 24px;border:1px solid var(--admin-border);border-radius:12px;background:#fff}
body.admin-mode .fixed-prize-rates strong{color:var(--admin-muted);font-size:13px;font-weight:800}
body.admin-mode .fixed-prize-rates span{color:var(--admin-blue-dark);font-size:20px;font-weight:850}
@media(max-width:780px){body.admin-mode .fixed-prize-rates{grid-template-columns:1fr}}
@media(min-width:1000px){body.admin-mode .settings-schedule #daily-time-controls{grid-template-columns:repeat(5,minmax(0,1fr))}}
/* Results use a dark panel; keep its selected date and controls legible. */
.pos-results-dialog .pos-results-navigation strong{color:#fff}
.pos-results-dialog .pos-results-navigation button{color:#f4f8ff;background:#163a5d;border:1px solid #6c96bc}
.pos-results-dialog .pos-results-navigation button:hover{background:#275579}
.pos-results-dialog time{color:#dce9f8}
.admin-page-back{display:inline-flex;align-items:center;justify-content:center;min-height:44px;margin:0 0 16px;padding:9px 16px;border:1px solid #a8bfd7;border-radius:9px;background:#fff;color:#173d65;font-weight:750;cursor:pointer}
.admin-page-back:hover,.admin-page-back:focus-visible{background:#eaf3fc;border-color:#3974aa}
.admin-page-back[hidden]{display:none}
.commission-value,#house-percent-value{display:inline-block;margin-left:8px;color:#174f85;font-weight:850;font-variant-numeric:tabular-nums}
.manager-settings-form input[type=range],.terminal-action-dialog input[type=range],#house-percent{display:block;width:100%;min-height:36px;accent-color:#176aaa;cursor:pointer}
.single-manager-group>.section-title>.muted{display:none}
.report-close.report-back{width:auto;height:44px;min-width:76px;padding:0 14px!important;border-radius:9px!important;font-size:14px!important;font-weight:800}

body.terminal-mode>header .seller-guide-button{display:grid!important;flex:0 0 40px!important;width:40px!important;min-width:40px!important;height:40px!important;min-height:40px!important;padding:0!important;place-items:center!important;border:0!important;border-radius:50%!important;background:transparent!important;box-shadow:none!important;color:#fff!important;font-size:25px!important;font-weight:900!important;line-height:1!important;cursor:pointer}
body.terminal-mode>header .seller-guide-button:hover{background:#ffffff1c!important;color:#ffe5a1!important}
body.terminal-mode>header .seller-guide-button:focus-visible,.seller-guide-close:focus-visible{outline:3px solid #e8b84e!important;outline-offset:3px}
.seller-guide-dialog{width:min(650px,calc(100vw - 24px));max-width:min(650px,calc(100vw - 24px));max-height:calc(100dvh - 24px);padding:0;border:1px solid #d7e1eb;border-radius:20px;background:#fff;color:#172b4d;box-shadow:0 24px 70px #07172980;overflow:auto}
.seller-guide-dialog::backdrop{background:#071528b8;backdrop-filter:blur(4px)}
.seller-guide-content{position:relative;padding:clamp(24px,4vw,36px);font:16px/1.5 system-ui,sans-serif}
.seller-guide-eyebrow{margin:0 0 4px;color:#aa7925;font-size:12px;font-weight:900;letter-spacing:.15em}
.seller-guide-content h2{margin:0 48px 20px 0;color:#172b4d;font-size:clamp(26px,4vw,32px);line-height:1.2}
.seller-guide-content ol{display:grid;gap:14px;margin:0;padding-left:26px}
.seller-guide-content li{padding-left:4px}.seller-guide-content li::marker{color:#0878b7;font-weight:900}
.seller-guide-content li strong{display:block;color:#122b4d;font-size:16px}.seller-guide-content li span{display:block;color:#405872;font-size:15px;line-height:1.5}
.seller-guide-note{margin:22px 0 0;padding:14px 16px;border:1px solid #ecd79a;border-radius:12px;background:#fff8e5;color:#624513;font-size:14px;font-weight:700;line-height:1.5}
.seller-guide-close{position:absolute;top:20px;right:20px;display:grid;width:40px;height:40px;place-items:center;border:1px solid #cbd8e5;border-radius:10px;background:#f1f5f9;color:#172b4d;font-size:27px;cursor:pointer}

/* Keep the post logo and controls in separate rows at compact desktop widths. */
@media (min-width:801px) and (max-width:1199px){
  body.terminal-mode>header .brand{position:absolute!important;grid-column:auto!important;grid-row:auto!important;justify-self:auto!important;left:50%!important;top:40px!important;width:390px!important;max-width:390px!important;height:78px!important;transform:translate(-50%,-50%)!important;overflow:visible!important}
  body.terminal-mode>header .app-logo{width:100%!important;height:100%!important;object-fit:contain!important;object-position:center!important}
  body.terminal-mode>header .nav-toggle{position:absolute!important;left:18px!important;bottom:10px!important;grid-column:auto!important;grid-row:auto!important}
  body.terminal-mode>header .header-right{position:absolute!important;left:72px!important;right:auto!important;bottom:10px!important;grid-column:auto!important;grid-row:auto!important;margin:0!important}
  body.terminal-mode>header .terminal-status{position:absolute!important;left:auto!important;right:18px!important;bottom:10px!important;grid-column:auto!important;grid-row:auto!important;margin:0!important}
}

/* Admin uses the same compact customer QR shortcut as the seller post. */
body.admin-mode>header .admin-customer-qr{display:grid!important;place-items:center!important;flex:0 0 38px!important;width:38px!important;height:38px!important;min-width:38px!important;padding:0!important;border:0!important;border-radius:0!important;background:transparent!important;box-shadow:none!important}
body.admin-mode>header .admin-customer-qr img{display:block;width:28px;height:28px;object-fit:contain}
body.admin-mode>header .admin-customer-qr:hover{opacity:.82}
body.admin-mode>header .admin-customer-qr:focus-visible{outline:2px solid #fff!important;outline-offset:3px!important}
@media(max-width:800px){body.admin-mode>header .admin-customer-qr{grid-column:1!important;grid-row:2!important;justify-self:start!important;align-self:center!important}}

/* A crisp calculator glyph with no button tile in the seller action row. */
body.terminal-mode .pos-action-row #calculator-button{background:transparent!important;border-color:transparent!important;box-shadow:none!important}
body.terminal-mode .pos-action-row #calculator-button:hover{background:rgba(23,43,77,.07)!important}
body.terminal-mode .pos-action-row #calculator-button:focus-visible{outline:2px solid currentColor!important;outline-offset:2px!important}
.pos-action-row #calculator-button .calculator-icon{display:block;width:26px;height:26px;flex:none}

/* The selected drawing colors the post without changing its layout. */
body.terminal-mode{--draw-pastel:#b8cff4;--draw-deep:#315b9f}
body.terminal-mode[data-active-draw-slot="2"]{--draw-pastel:#afe0dd;--draw-deep:#276d73}
body.terminal-mode[data-active-draw-slot="3"]{--draw-pastel:#d5c2ef;--draw-deep:#675395}
body.terminal-mode[data-active-draw-slot="4"]{--draw-pastel:#f3cfb8;--draw-deep:#935b43}
body.terminal-mode[data-active-draw-slot="5"]{--draw-pastel:#efc1d7;--draw-deep:#914d70}
body.terminal-mode[data-active-draw-slot="6"]{--draw-pastel:#bee2c7;--draw-deep:#397751}
body.terminal-mode .draw-card:nth-child(1){--lottery-pastel:#b8cff4;--lottery-deep:#315b9f}
body.terminal-mode .draw-card:nth-child(2){--lottery-pastel:#afe0dd;--lottery-deep:#276d73}
body.terminal-mode .draw-card:nth-child(3){--lottery-pastel:#d5c2ef;--lottery-deep:#675395}
body.terminal-mode .draw-card:nth-child(4){--lottery-pastel:#f3cfb8;--lottery-deep:#935b43}
body.terminal-mode .draw-card:nth-child(5){--lottery-pastel:#efc1d7;--lottery-deep:#914d70}
body.terminal-mode .draw-card:nth-child(6){--lottery-pastel:#bee2c7;--lottery-deep:#397751}
body.terminal-mode .draw-card{transition:background-color .35s ease,border-color .35s ease,color .35s ease,box-shadow .35s ease}
body.terminal-mode .draw-card .draw-card-name{transition:color .35s ease}
body.terminal-mode .draw-card.selected{background:var(--lottery-pastel)!important;border-color:var(--lottery-deep)!important;color:#17324c!important;box-shadow:0 0 0 1px var(--lottery-deep)!important}
body.terminal-mode .draw-card.selected *{color:#17324c!important}
body.terminal-mode>header{background:var(--draw-deep)!important;border-color:var(--draw-deep)!important;transition:background-color .35s ease,border-color .35s ease}
body.terminal-mode .ticket-table-title,body.terminal-mode .direct-ticket-title,body.terminal-mode .pos-ticket-information .ticket-table-title{background:var(--draw-pastel)!important;border-color:var(--draw-pastel)!important;color:#17324c!important;transition:background-color .35s ease,border-color .35s ease,color .35s ease}
body.terminal-mode .ticket-table-title *,body.terminal-mode .direct-ticket-title *{color:#17324c!important}
body.terminal-mode .action-pay,body.terminal-mode .primary.action-pay{background:var(--draw-pastel)!important;border-color:var(--draw-deep)!important;color:#17324c!important;transition:background-color .35s ease,border-color .35s ease,color .35s ease}
body.terminal-mode .entry-toolbar .entry-running-total output,body.terminal-mode .ticket-total-bar b,body.terminal-mode .recent-ticket-top b{color:var(--draw-deep)!important;transition:color .35s ease}
@media(prefers-reduced-motion:reduce){body.terminal-mode .draw-card,body.terminal-mode .draw-card .draw-card-name,body.terminal-mode>header,body.terminal-mode .ticket-table-title,body.terminal-mode .direct-ticket-title,body.terminal-mode .pos-ticket-information .ticket-table-title,body.terminal-mode .action-pay,body.terminal-mode .primary.action-pay,body.terminal-mode .entry-toolbar .entry-running-total output,body.terminal-mode .ticket-total-bar b,body.terminal-mode .recent-ticket-top b{transition:none}}

/* Seller menu SVGs should render as readable line icons, not filled shapes. */
body.terminal-mode .nav-mini-icon,body.terminal-mode .pos-nav-link.active .nav-mini-icon{background:transparent!important;color:var(--seller-text)!important}
body.terminal-mode .nav-mini-icon svg{display:block;width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}

/* Seller menu pages follow the selected drawing's pastel palette. */
body.terminal-mode .pos-nav-link:hover,body.terminal-mode .pos-nav-link.active{background:var(--draw-pastel)!important;color:#17324c!important}
body.terminal-mode :is(.pos-results-dialog,.number-sales-dialog,.sales-report-dialog,.pending-ticket-dialog,.account-settings-dialog){background:#fff!important;border-color:var(--draw-deep)!important;color:#17324c!important;transition:border-color .35s ease}
body.terminal-mode :is(.pos-results-heading,.report-dialog-heading){background:var(--draw-pastel)!important;border-color:var(--draw-deep)!important;color:#17324c!important;transition:background-color .35s ease,border-color .35s ease}
body.terminal-mode :is(.pos-results-heading,.report-dialog-heading) h2{color:#17324c!important}
body.terminal-mode .pos-results-navigation{background:color-mix(in srgb,var(--draw-pastel) 35%,white)!important}
body.terminal-mode .pos-results-navigation strong,body.terminal-mode .pos-results-dialog time,body.terminal-mode .pos-result-item small{color:#17324c!important}
body.terminal-mode .pos-results-navigation button,body.terminal-mode .pos-results-dialog .report-close,body.terminal-mode .report-dialog-heading .report-close{background:#fff!important;border:1px solid var(--draw-deep)!important;color:#17324c!important}
body.terminal-mode .pos-results-navigation button:hover,body.terminal-mode .pos-results-dialog .report-close:hover,body.terminal-mode .report-dialog-heading .report-close:hover{background:var(--draw-pastel)!important}
body.terminal-mode .pos-results-live-link{background:var(--draw-deep)!important;border-color:var(--draw-deep)!important;color:#fff!important}
body.terminal-mode .pos-results-empty{color:#50677e!important}
body.terminal-mode .pos-results-row{border-color:#dce5ee!important}
body.terminal-mode .number-sales-dialog>.number-sales-page{background:#fff!important;color:#17324c!important}
body.terminal-mode .number-sales-dialog :is(input,select){background:#fff!important;border-color:#bdcbd9!important;color:#17324c!important}
body.terminal-mode .number-sales-dialog :is(label,h2,.number-sales-summary){color:#17324c!important}
body.terminal-mode .number-sales-dialog .number-sale{background:color-mix(in srgb,var(--draw-pastel) 25%,white)!important;border-color:var(--draw-pastel)!important;color:#17324c!important}
body.terminal-mode .number-sales-dialog .number-sale-number,body.terminal-mode .number-sales-dialog .number-sale small{color:var(--draw-deep)!important}
body.terminal-mode .sales-report-dialog .seller-sales-history{background:#fff!important;color:#17324c!important}
body.terminal-mode .sales-report-dialog .sales-history-field,body.terminal-mode .sales-report-dialog .sales-history-field span{color:#405872!important}
body.terminal-mode :is(.number-sales-dialog,.sales-report-dialog,.pending-ticket-dialog) :is(input,select){background:#fff!important;border-color:#b9cadb!important;color:#17324c!important;color-scheme:light}
body.terminal-mode :is(.number-sales-dialog,.sales-report-dialog,.pending-ticket-dialog) button:not(.report-close):not(.pending-print):not(.primary){background:#fff!important;border-color:#b9cadb!important;color:#17324c!important}
body.terminal-mode :is(.number-sales-dialog,.sales-report-dialog,.pending-ticket-dialog) :is(.primary,.pending-print,button[type="submit"]){background:var(--draw-deep)!important;border-color:var(--draw-deep)!important;color:#fff!important}
body.terminal-mode .sales-history-total.balanceUnits{background:color-mix(in srgb,var(--draw-pastel) 36%,white)!important;border-color:var(--draw-pastel)!important}
body.terminal-mode .sales-report-dialog .report-status,body.terminal-mode .sales-report-summary h3{color:#17324c!important}
body.terminal-mode .sales-report-hero{background:color-mix(in srgb,var(--draw-pastel) 35%,white)!important;border-color:var(--draw-pastel)!important}
body.terminal-mode .sales-report-hero span,body.terminal-mode .sales-report-hero strong{color:#17324c!important}
body.terminal-mode .sales-report-table th,body.terminal-mode .sales-report-table td{background:#fff!important;border-color:#dce5ee!important;color:#17324c!important}
/* Keep the seller report's two dates and action on one aligned row. */
.seller-sales-history .sales-history-controls{grid-template-columns:repeat(2,minmax(0,1fr)) minmax(170px,.95fr);align-items:end}
.seller-sales-history .sales-history-controls .sales-history-field{margin:0;align-self:end}
.seller-sales-history .sales-history-controls .sales-history-field input{height:44px;margin:0}
.seller-sales-history .sales-history-controls>button{height:44px;min-height:44px;margin:0;align-self:end}
@media(max-width:700px){.seller-sales-history .sales-history-controls{grid-template-columns:repeat(2,minmax(0,1fr))}.seller-sales-history .sales-history-controls>button{grid-column:1/-1}}
@media(max-width:460px){.seller-sales-history .sales-history-controls{grid-template-columns:1fr}.seller-sales-history .sales-history-controls>button{grid-column:1}}
body.terminal-mode .pair-row-draws{white-space:nowrap;font-size:11px;font-weight:700}
/* In the post preview, the title shows the live play count and the trash sits above its action column. */
body.terminal-mode .ticket-table-title .title-play-count{position:absolute;right:14px;display:grid;min-width:30px;height:30px;padding:0 6px;place-items:center;border-radius:8px;background:#fff;color:#17324c!important;font-size:15px;font-weight:900;font-variant-numeric:tabular-nums}
body.terminal-mode .ticket-table-title .title-play-count:empty{display:none}
body.terminal-mode :is(.direct-ticket-table,.pair-ticket-table) thead th:last-child{padding:3px 5px;text-align:center}
body.terminal-mode :is(.direct-ticket-table,.pair-ticket-table) thead th:last-child .table-clear{position:static;display:grid;margin:0 auto}

/* Post ticket monitor: full information density without the reference image's empty canvas. */
.ticket-monitor-dialog{width:min(1120px,96vw);max-width:1120px;max-height:92vh;padding:0;overflow:auto;border:1px solid #b9cadb;border-radius:14px;background:#fff;color:#17324c;box-shadow:0 20px 55px #091e385c}
.ticket-monitor-dialog::backdrop{background:#091e3880}
.ticket-monitor-header{position:sticky;top:0;z-index:2;display:flex;align-items:center;gap:12px;min-height:68px;padding:14px 22px;border-bottom:1px solid #d5e1ed;background:var(--draw-pastel,#dfeaf8);color:#17324c}
body.terminal-mode dialog.ticket-monitor-dialog .ticket-monitor-header{height:auto;background:var(--draw-pastel,#dfeaf8)!important;color:#17324c!important}
body.terminal-mode dialog.ticket-monitor-dialog .ticket-monitor-date{color:#405872!important}
.ticket-monitor-header h2{flex:1;margin:0;font-size:23px;font-weight:850}
.ticket-monitor-demo{padding:6px 10px;border:1px solid #8ca9c7;border-radius:7px;background:#fff;color:#334f6b;font-size:11px;font-weight:850;letter-spacing:.04em}
.ticket-monitor-close{width:38px;height:38px;margin:0;padding:0;border-radius:50%;background:#fff;color:#17324c;font-size:25px;line-height:1}
.ticket-monitor-body{padding:20px 22px 24px}
.ticket-monitor-controls{display:flex;align-items:end;gap:14px}
.ticket-monitor-date{display:grid;gap:6px;width:min(240px,100%);margin:0;color:#405872;font-weight:750}
.ticket-monitor-date input{height:44px;margin:0;background:#fff;color:#17324c;color-scheme:light}
.ticket-monitor-tabs{display:flex;flex-wrap:wrap;gap:5px;margin:18px 0 20px}
.ticket-monitor-tab{min-height:40px;margin:0;padding:8px 12px;border:1px solid #b5ced9;background:#f6fbfc;color:#34546c;font-size:12px;font-weight:800}
.ticket-monitor-tab.active,.ticket-monitor-tab:hover{border-color:#357d91;background:#d8f0ef;color:#163f4c}
.ticket-monitor-summary{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin-bottom:18px}
.ticket-monitor-total{display:grid;gap:7px;min-width:0;padding:16px 18px;border:1px solid #cbdde8;border-radius:10px;background:#f3f8fb}
.ticket-monitor-total span{font-size:12px;font-weight:800;color:#4b6980}
.ticket-monitor-total strong{font-size:clamp(19px,2vw,28px);font-variant-numeric:tabular-nums;overflow-wrap:anywhere;color:#1c5272}
.ticket-monitor-toolbar{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:8px}
.ticket-monitor-print{min-height:42px;margin:0;border-color:#e2b351;background:#f6d37e;color:#382705;font-weight:850}
.ticket-monitor-toolbar input{width:min(280px,100%);height:42px;margin:0;background:#fff;color:#17324c}
.ticket-monitor-status{min-height:18px;margin:8px 0;color:#50657b;font-size:12px}
.ticket-monitor-table-wrap{max-height:min(49vh,520px);overflow:auto;border:1px solid #d6e2ed;border-radius:9px}
.ticket-monitor-table{width:100%;table-layout:fixed;border-collapse:collapse;font-variant-numeric:tabular-nums}
.ticket-monitor-table th:nth-child(1){width:11%}.ticket-monitor-table th:nth-child(2){width:19%}.ticket-monitor-table th:nth-child(3),.ticket-monitor-table th:nth-child(4){width:10%}.ticket-monitor-table th:nth-child(5){width:18%}.ticket-monitor-table th:nth-child(6){width:18%}.ticket-monitor-table th:nth-child(7){width:14%}
.ticket-monitor-table th{position:sticky;top:0;z-index:1;padding:11px 8px;background:#eaf0f6;color:#17324c;text-align:left;font-size:11px;line-height:1.3;white-space:normal}
.ticket-monitor-table td{padding:11px 8px;border-top:1px solid #e3eaf1;color:#18334e;vertical-align:middle;font-size:12px}
.ticket-monitor-table td:nth-child(2),.ticket-monitor-table td:nth-child(5){white-space:normal}
.ticket-monitor-when span{display:block;white-space:nowrap}
.ticket-monitor-table tbody tr:nth-child(even){background:#f8fafc}
.ticket-monitor-table td:first-child{font-weight:850;white-space:nowrap}
.ticket-monitor-state{display:inline-block;padding:5px 8px;border-radius:999px;background:#eaf0f6;color:#405b73;font-size:11px;font-weight:800;white-space:nowrap}
.ticket-monitor-table th:nth-child(6),.ticket-monitor-table td:nth-child(6){text-align:center}
.ticket-monitor-table .ticket-monitor-state{display:inline-flex;align-items:center;justify-content:center;width:min(100%,142px);min-height:28px;margin:0;gap:0;text-align:center}
.ticket-monitor-state.winners,.ticket-monitor-state.paid{background:#e3f4e6;color:#28643a}
.ticket-monitor-state.lost{background:#fde6e6;color:#a12b32}
.ticket-monitor-state.cancelled{background:#f9e5e7;color:#9b3240}
.ticket-monitor-state.awaiting{background:#fff2d6;color:#75551a}
.ticket-monitor-actions{white-space:nowrap}
.ticket-monitor-actions button{width:30px;height:30px;margin:0 3px 0 0;padding:0;border-radius:6px;background:#fff;color:#236d93;font-size:19px}
.ticket-monitor-actions button:last-child{color:#bd5b3f}
.ticket-monitor-pager{display:flex;justify-content:flex-end;gap:8px;margin-top:12px}
.ticket-monitor-pager button{margin:0}
.ticket-monitor-paper{display:none}
.ticket-monitor-print-preview{width:min(460px,96vw);max-height:92vh;padding:0;overflow:hidden;border:1px solid #c9d7e4;border-radius:12px;background:#edf3f8;color:#17324c;box-shadow:0 20px 55px #091e385c}
.ticket-monitor-print-preview::backdrop{background:#091e3880}
.ticket-monitor-preview-header,.ticket-monitor-preview-actions{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 16px;background:#fff}
.ticket-monitor-preview-header h2{margin:0;font-size:19px;color:#17324c}
.ticket-monitor-preview-scroll{max-height:calc(92vh - 130px);overflow:auto;padding:18px}
.ticket-monitor-preview-actions{justify-content:flex-end;border-top:1px solid #d6e2ed}
.ticket-monitor-preview-actions button{min-height:40px;margin:0}
.ticket-monitor-preview-actions button:last-child{background:#236d93;color:#fff}
body.terminal-mode dialog.ticket-monitor-print-preview .ticket-monitor-preview-header{height:auto;min-height:58px;padding:10px 16px;background:#fff!important;border-bottom:1px solid #d6e2ed;color:#17324c!important;justify-content:space-between}
body.terminal-mode dialog.ticket-monitor-print-preview .ticket-monitor-preview-header h2{color:#17324c!important}
body.terminal-mode dialog.ticket-monitor-print-preview .ticket-monitor-preview-actions{display:flex!important;height:auto;padding:12px 16px;background:#fff!important;color:#17324c!important}
body.terminal-mode dialog.ticket-monitor-print-preview .ticket-monitor-sheet-heading{display:block!important;height:auto!important;padding:0 0 3mm!important;background:#fff!important;border:0!important;border-bottom:1px dashed #000!important;box-shadow:none!important;text-align:center!important}
body.terminal-mode dialog.ticket-monitor-print-preview .ticket-monitor-sheet-total{display:flex!important;padding:3mm 0 0!important;color:#000!important}
body.terminal-mode #ticket-monitor-paper .ticket-monitor-sheet-heading{display:block!important;height:auto!important;padding:0 0 3mm!important;background:#fff!important;border:0!important;border-bottom:1px dashed #000!important;box-shadow:none!important;text-align:center!important}
body.terminal-mode #ticket-monitor-paper .ticket-monitor-sheet-total{display:flex!important;padding:3mm 0 0!important;color:#000!important}
.ticket-monitor-sheet{box-sizing:border-box;width:80mm;max-width:100%;margin:0 auto;padding:4mm;background:#fff;color:#000;font:12px/1.4 'Courier New',monospace;box-shadow:0 4px 15px #091e3830}
.ticket-monitor-sheet *{box-sizing:border-box;color:#000!important}
.ticket-monitor-sheet-heading{text-align:center;border-bottom:1px dashed #000;padding-bottom:3mm}
.ticket-monitor-sheet-heading strong{display:block;font-size:17px}
.ticket-monitor-sheet-heading h2{margin:2mm 0 1mm;font-size:13px;line-height:1.3}
.ticket-monitor-sheet-heading p{margin:0;font-size:11px}
.ticket-monitor-sheet-heading .ticket-monitor-sample{margin-top:2mm;font-weight:bold}
.ticket-monitor-sheet-columns,.ticket-monitor-sheet-line{display:grid;grid-template-columns:minmax(0,1.15fr) minmax(0,.75fr) minmax(0,.85fr) minmax(0,.85fr);align-items:baseline;gap:1mm;text-align:right}
.ticket-monitor-sheet-columns{margin-top:2mm;font-size:10px;font-weight:bold}
.ticket-monitor-sheet-columns span:first-child,.ticket-monitor-sheet-line strong:first-child{text-align:left}
.ticket-monitor-sheet-row{padding:2mm 0;border-bottom:1px dotted #999;break-inside:avoid}
.ticket-monitor-sheet-line strong{font-size:12px;white-space:nowrap}
.ticket-monitor-sheet-total{display:flex;align-items:baseline;justify-content:space-between;gap:3mm}
.ticket-monitor-sheet-row small{display:block;margin-top:1mm;font-size:10px}
.ticket-monitor-sheet-total{padding-top:3mm;font-weight:bold;border-top:1px dashed #000}
.ticket-monitor-sheet-total strong{font-size:13px;white-space:nowrap}
.pos-results-print{display:grid;place-items:center;width:38px;height:38px;margin:0;padding:0;border:1px solid #8ab9d7;border-radius:8px;background:#fff;color:#17324c}
.pos-results-print svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.9;stroke-linejoin:round;stroke-linecap:round}
.pos-results-print:disabled{opacity:.45}
.pos-results-demo{display:block;margin-top:4px;color:#345a78;font-size:10px;font-weight:800;letter-spacing:.06em}
.pos-results-print-sample{margin-top:2mm!important;font-weight:bold}
.pos-results-print-preview{width:min(460px,96vw);max-height:92vh;padding:0;overflow:hidden;border:1px solid #c9d7e4;border-radius:12px;background:#edf3f8;color:#17324c;box-shadow:0 20px 55px #091e385c}
.pos-results-print-preview::backdrop{background:#091e3880}
.pos-results-print-preview-heading,.pos-results-print-preview-actions{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 16px;background:#fff}
.pos-results-print-preview-heading h2{margin:0;color:#17324c;font-size:19px}
.pos-results-print-preview-scroll{max-height:calc(92vh - 130px);overflow:auto;padding:18px}
.pos-results-print-preview-actions{justify-content:flex-end;border-top:1px solid #d6e2ed}
.pos-results-print-preview-actions button{min-height:40px;margin:0}
.pos-results-print-preview-actions button:last-child{background:#236d93;color:#fff}
.pos-results-print-sheet{box-sizing:border-box;width:80mm;max-width:100%;margin:0 auto;padding:4mm;background:#fff;color:#000;font:12px/1.4 'Courier New',monospace;box-shadow:0 4px 15px #091e3830}
.pos-results-print-sheet *{box-sizing:border-box;color:#000!important}
.pos-results-print-sheet-heading{text-align:center;padding-bottom:3mm;border-bottom:1px dashed #000}
.pos-results-print-sheet-heading strong{display:block;font-size:17px}
.pos-results-print-sheet-heading h2{margin:1mm 0;font-size:13px}
.pos-results-print-sheet-heading p{margin:0;font-size:11px;line-height:1.3}
.pos-results-print-row{padding:2mm 0;border-bottom:1px dotted #999;break-inside:avoid}
.pos-results-print-game{display:flex;justify-content:space-between;gap:2mm;font-size:11px}
.pos-results-print-game strong{max-width:68%;overflow-wrap:anywhere}
.pos-results-print-game span{white-space:nowrap}
.pos-results-print-numbers{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:1mm;margin-top:1mm;text-align:center;font-size:14px;font-weight:bold}
.pos-results-track{display:grid;gap:4px;min-width:0}
.pos-results-track strong{font-size:13px;line-height:1.25;overflow-wrap:anywhere}
.pos-results-track time{display:block}
body.terminal-mode .pos-results-track strong{color:#17324c!important}
.pos-results-dialog{width:min(540px,94vw);max-width:540px}
.pos-results-dialog .pos-results-content{padding:2px 14px 14px}
.pos-results-dialog .pos-results-row{grid-template-columns:150px minmax(0,1fr);gap:8px;padding:11px 4px}
.pos-results-dialog .pos-results-track{gap:7px}
.pos-results-dialog .pos-results-track strong{font-size:15px;line-height:1.2}
.pos-results-dialog .pos-results-track time{font-size:16px;line-height:1.2;font-weight:900;font-variant-numeric:tabular-nums}
.pos-results-dialog .pos-results-balls{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:4px;justify-items:center}
.pos-results-dialog .pos-result-item{gap:6px}
.pos-results-dialog .pos-result-item small{min-width:36px;padding:3px 6px;border:1px solid #9cb9d1;border-radius:999px;background:#e7f3fb;color:#17324c;font-size:13px;line-height:1.2;text-align:center}
@media(max-width:520px){.pos-results-dialog .pos-results-row{grid-template-columns:1fr;gap:10px}.pos-results-dialog .pos-results-track{display:flex;align-items:baseline;justify-content:space-between;gap:10px}.pos-results-dialog .pos-results-balls{width:100%}.pos-results-dialog .pos-result-ball{width:52px;height:52px}}
@media(min-width:760px){.pos-results-dialog.many-results{width:min(930px,96vw);max-width:930px;max-height:90vh}.pos-results-dialog.many-results .pos-results-content{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 18px}.pos-results-dialog.many-results .pos-results-row{grid-template-columns:130px minmax(0,1fr);gap:4px;min-width:0}.pos-results-dialog.many-results .pos-results-track strong{font-size:14px}.pos-results-dialog.many-results .pos-results-track time{font-size:16px}.pos-results-dialog.many-results .pos-result-ball{width:50px;height:50px;font-size:20px}}
#results-paper{display:none}
body.terminal-mode dialog.pos-results-print-preview .pos-results-print-preview-actions{display:flex!important;color:#17324c!important}
@media(max-width:700px){.ticket-monitor-body{padding:14px}.ticket-monitor-header{padding:12px 14px}.ticket-monitor-header h2{font-size:19px}.ticket-monitor-summary{grid-template-columns:1fr}.ticket-monitor-toolbar{align-items:stretch;flex-direction:column}.ticket-monitor-toolbar input{width:100%}.ticket-monitor-tabs{flex-wrap:nowrap;overflow:auto;padding-bottom:4px}.ticket-monitor-tab{flex:none}}
@media print{body:has(>#ticket-monitor-paper)>:not(#ticket-monitor-paper){display:none!important}body>#ticket-monitor-paper{display:block!important;width:80mm!important;max-width:80mm!important;margin:0!important;padding:4mm!important;background:#fff!important;color:#000!important;box-shadow:none!important}}
@media print{body:has(>#results-paper)>:not(#results-paper){display:none!important}body>#results-paper{display:block!important;width:80mm!important;max-width:80mm!important;margin:0!important;padding:4mm!important;background:#fff!important;color:#000!important;box-shadow:none!important}}
body.terminal-mode .pending-payment-intro,body.terminal-mode .pending-payment-message{color:#405872!important}
body.terminal-mode .pending-payment-summary{background:color-mix(in srgb,var(--draw-pastel) 28%,white)!important;border-color:var(--draw-pastel)!important}
body.terminal-mode .pending-payment-summary>div{border-color:var(--draw-pastel)!important}
body.terminal-mode .pending-payment-summary span,body.terminal-mode .pending-payment-summary strong,body.terminal-mode .pending-payment-summary .pending-total-main strong{color:#17324c!important}
/* Financial totals keep the same meaning on seller, manager, and owner pages. */
.money-in,body.terminal-mode .money-in,body.admin-mode .money-in,body.terminal-mode .is-positive{color:#137348!important}
.money-out,body.terminal-mode .money-out,body.admin-mode .money-out,body.terminal-mode .is-negative{color:#b42335!important}
body.terminal-mode .sales-report-hero strong.money-in{color:#137348!important}
body.terminal-mode .sales-report-hero strong.money-out{color:#b42335!important}
.pending-payment-summary>div:first-child strong,body.terminal-mode .pending-payment-summary>div:first-child strong,.pending-payment-table td:nth-child(4),body.terminal-mode .pending-payment-table td:nth-child(4){color:#137348!important}
.pending-payment-summary>div:not(:first-child) strong,body.terminal-mode .pending-payment-summary>div:not(:first-child) strong,.pending-payment-table td:nth-child(5),body.terminal-mode .pending-payment-table td:nth-child(5){color:#b42335!important}
.sales-report-table .report-pending{color:#b42335!important}
body.admin-mode #overview-managers td:nth-child(3),body.admin-mode #manager-overview-rows td:nth-child(5),body.admin-mode #manager-overview-rows td:nth-child(6),body.admin-mode #manager-overview-rows td:nth-child(7){color:#b42335!important}
body.terminal-mode .pending-payment-table-wrap{border-color:#dce5ee!important}
body.terminal-mode .pending-payment-table{background:#fff!important}
body.terminal-mode .pending-payment-table th{background:var(--draw-pastel)!important;color:#17324c!important}
body.terminal-mode .pending-payment-table td{background:#fff!important;border-color:#dce5ee!important;color:#17324c!important}
.pending-row-actions button[aria-label*="lost ticket"],.pending-row-actions button[aria-label*="ticket perdido"]{color:#9b3042}
.lost-ticket-review{margin-bottom:16px}.lost-ticket-review h3{margin:0 0 8px}.lost-ticket-review-row{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:12px 0;border-top:1px solid #dce5ee}.lost-ticket-review-row>div:first-child{display:grid;gap:4px}.lost-ticket-review-row span{font-size:13px}.lost-ticket-review-actions{display:flex;gap:8px;flex-wrap:wrap}.lost-ticket-review-actions button{min-width:100px}@media(max-width:700px){.lost-ticket-review-row{align-items:stretch;flex-direction:column}}
body.terminal-mode .account-settings-dialog :is(h2,label,p){color:#17324c!important}
body.terminal-mode .account-settings-dialog input{background:#fff!important;border-color:#bdcbd9!important;color:#17324c!important}
body.terminal-mode .account-settings-dialog button:not(.primary){background:#fff!important;border-color:var(--draw-deep)!important;color:#17324c!important}
body.terminal-mode .account-settings-dialog .primary{background:var(--draw-deep)!important;border-color:var(--draw-deep)!important;color:#fff!important}

/* Seller menu data screens share one responsive canvas and header rhythm. */
body.terminal-mode :is(.number-sales-dialog,.sales-report-dialog,.ticket-monitor-dialog){
  box-sizing:border-box;
  width:min(1120px,calc(100% - 24px));
  max-width:calc(100% - 24px);
  max-height:calc(100vh - 24px);
  max-height:calc(100dvh - 24px);
  overflow-x:hidden;
  overflow-y:auto;
  overscroll-behavior:contain;
}
@media(min-width:701px){
  body.terminal-mode :is(.number-sales-dialog,.sales-report-dialog,.ticket-monitor-dialog){
    height:min(680px,calc(100dvh - 32px));
  }
}
body.terminal-mode .pending-ticket-dialog{
  box-sizing:border-box;
  width:min(1050px,calc(100% - 24px));
  max-width:calc(100% - 24px);
  height:fit-content;
  max-height:calc(100dvh - 32px);
  overflow-x:hidden;
  overflow-y:auto;
  overscroll-behavior:contain;
}
body.terminal-mode .number-sales-dialog>.number-sales-page{padding:0!important}
body.terminal-mode .number-sales-dialog .section-title{
  min-height:78px;
  margin:0;
  padding:18px 28px;
  border-bottom:1px solid var(--draw-deep);
  background:var(--draw-pastel);
}
body.terminal-mode .number-sales-dialog :is(.number-sales-filters,.number-sales-summary,.number-sales-grid){margin-right:28px;margin-left:28px}
body.terminal-mode .number-sales-dialog .number-sales-filters{margin-top:20px}
body.terminal-mode .number-sales-dialog .number-sales-grid{margin-bottom:28px}
body.terminal-mode .number-sales-dialog .number-sales-page>p{margin:0 28px}
body.terminal-mode .report-dialog-heading,body.terminal-mode .ticket-monitor-header{min-height:78px;box-sizing:border-box}
body.terminal-mode :is(.number-sales-dialog,.sales-report-dialog,.pending-ticket-dialog,.ticket-monitor-dialog) :is(.number-sales-page,.seller-sales-history,.ticket-monitor-body){min-width:0}
@media(max-width:700px){
  body.terminal-mode :is(.number-sales-dialog,.sales-report-dialog,.pending-ticket-dialog,.ticket-monitor-dialog){width:calc(100% - 16px);max-width:calc(100% - 16px);max-height:calc(100dvh - 16px)}
  body.terminal-mode .number-sales-dialog .section-title{padding:14px 18px;min-height:66px}
  body.terminal-mode .number-sales-dialog :is(.number-sales-filters,.number-sales-summary,.number-sales-grid){margin-right:18px;margin-left:18px}
  body.terminal-mode .number-sales-dialog .number-sales-page>p{margin:0 18px}
}

/* A stored-ticket view uses the same paper layout as the first print. */
.receipt-ticket-preview-dialog{box-sizing:border-box;width:min(460px,calc(100% - 24px));max-width:calc(100% - 24px);max-height:calc(100dvh - 24px);padding:0;overflow:auto;border:1px solid #b9cadb;border-radius:12px;background:#f1f5f8;color:#17324c}
.receipt-ticket-preview-heading{display:flex;align-items:center;gap:10px;min-height:62px;padding:10px 16px;border-bottom:1px solid #cbdbe8;background:var(--draw-pastel,#dfeaf8)}
.receipt-ticket-preview-heading h2{flex:1;margin:0;color:#17324c;font-size:19px}
.receipt-ticket-preview-heading .report-close{flex:none;background:#fff;color:#17324c}
.receipt-ticket-preview-sample{padding:5px 8px;border:1px solid #9db9d2;border-radius:6px;background:#fff;color:#35566f;font-size:10px;font-weight:850;white-space:nowrap}
.receipt-ticket-preview-dialog .receipt-preview-paper{padding:18px;background:#f1f5f8}
.receipt-payment-mask{display:inline-block;filter:blur(3px);user-select:none;-webkit-user-select:none}
body.admin-mode .redemption-dialog .receipt-preview-paper .receipt-page,body.admin-mode .redemption-dialog .receipt-preview-paper .receipt-page *{color:#000!important}

/* Screen ticket previews use the same 80 mm typography and spacing as print. */
.receipt-preview-paper .receipt-page{box-sizing:border-box!important;width:80mm!important;max-width:100%!important;min-height:0!important;margin:0 auto!important;padding:3mm 3mm 10mm!important;background:#fff!important;color:#000!important;font:700 17px/1.3 "Courier New","Liberation Mono",monospace!important;box-shadow:0 5px 20px #0002!important;text-align:left!important}
.receipt-preview-paper .receipt-page h2,.receipt-preview-paper .receipt-page h3{font-family:"Courier New","Liberation Mono",monospace!important}
.receipt-preview-paper .receipt-page *{color:#000!important;text-shadow:none!important;filter:none}
.receipt-preview-paper .receipt-header{display:grid!important;width:100%!important;grid-template-columns:minmax(0,1fr)!important;min-height:0!important;height:auto!important;align-content:center!important;justify-content:center!important;justify-items:center!important;margin:0 0 3mm!important;padding:0!important;border:0!important;background:#fff!important;line-height:1.1!important}
.receipt-preview-paper .receipt-title .receipt-brand-line{display:flex!important;width:100%!important;justify-content:center!important;align-items:baseline!important;gap:2mm!important;white-space:nowrap!important;text-align:center!important}
.receipt-preview-paper .receipt-title .receipt-brand{display:inline!important;width:auto!important;margin:0!important;padding:0!important;font-size:34px!important;font-weight:900!important;letter-spacing:0!important;text-align:center!important}
.receipt-preview-paper .receipt-title .receipt-group{display:block!important;box-sizing:border-box!important;width:100%!important;margin:0!important;padding:0!important;font-size:13px!important;font-weight:900!important;letter-spacing:0!important;text-align:center!important;overflow-wrap:anywhere!important}
.receipt-preview-paper .receipt-page p{margin:0 0 2mm!important;line-height:1.35!important;overflow-wrap:anywhere!important}
.receipt-preview-paper .receipt-meta{font-size:16px!important;white-space:nowrap!important;line-height:1.3!important}
.receipt-preview-paper .receipt-page table{width:100%!important;border-collapse:collapse!important;font-size:14px!important}
.receipt-preview-paper .receipt-plays th{padding-top:0!important;padding-bottom:1.2mm!important;border:0!important;background:#fff!important;font-size:16px!important;font-weight:700!important}
.receipt-preview-paper .receipt-plays td{padding-top:1.1mm!important;padding-bottom:1.1mm!important;border:0!important;background:#fff!important;font-size:22px!important;font-weight:700!important}
.receipt-preview-paper .receipt-divider{border-top:1px dashed #000!important}
.receipt-preview-paper .receipt-draw-summary{margin:0 0 2mm!important;font-size:22px!important;font-weight:900!important;line-height:1.25!important;letter-spacing:0!important}
.receipt-preview-paper .receipt-heading-divider{margin:0 0 2mm!important}
.receipt-preview-paper .receipt-heading-divider-before{margin:2mm 0 2mm!important}
.receipt-preview-paper .receipt-total{margin:0 0 3mm!important;font-size:28px!important;font-weight:900!important;line-height:1.2!important;letter-spacing:0!important}
.receipt-preview-paper .receipt-plays td.receipt-winner{background:#fff29a!important;color:#171717!important}
.receipt-preview-paper .receipt-payment-mask{filter:blur(3px)!important}
.wording-ticket-footer{white-space:pre-line!important}.wording-inspector textarea{box-sizing:border-box;width:100%;min-height:124px;resize:vertical}

/* Payment and ticket lookup windows share the seller's current pastel palette. */
body.terminal-mode :is(.receipt-dialog,.redemption-confirm){box-sizing:border-box;width:min(460px,calc(100% - 24px));max-width:calc(100% - 24px);max-height:calc(100dvh - 24px);overflow:auto;background:#fff!important;border-color:var(--draw-deep)!important;color:#17324c!important}
body.terminal-mode :is(.receipt-dialog,.redemption-confirm) h2{margin:-24px -24px 18px;padding:17px 24px;background:var(--draw-pastel)!important;border-bottom:1px solid var(--draw-deep);color:#17324c!important;font-size:22px}
body.terminal-mode :is(.receipt-dialog,.redemption-confirm) :is(label,p,strong,small){color:#17324c!important}
body.terminal-mode .receipt-dialog :is(input,select){min-height:44px;background:#fff!important;border-color:#b9cadb!important;color:#17324c!important}
body.terminal-mode .receipt-dialog select{display:block;width:100%;margin-top:8px}
body.terminal-mode .receipt-dialog .dialog-actions{flex-wrap:wrap}
body.terminal-mode .receipt-dialog .dialog-actions button{white-space:nowrap}
body.terminal-mode :is(.receipt-dialog,.redemption-confirm) button:not(.primary){background:#fff!important;border-color:#b9cadb!important;color:#17324c!important}
body.terminal-mode :is(.receipt-dialog,.redemption-confirm) .primary{background:var(--draw-deep)!important;border-color:var(--draw-deep)!important;color:#fff!important}
body.terminal-mode .receipt-dialog .receipt-preview-paper{background:#f1f5f8}
@media(max-width:480px){.receipt-ticket-preview-heading{padding:8px 10px}.receipt-ticket-preview-heading h2{font-size:17px}.receipt-ticket-preview-dialog .receipt-preview-paper{padding:10px}}

/* Results stays red on hover. The five-minute live state is driven by updateCountdown. */
body.terminal-mode>header #see-results:hover,
body.terminal-mode>header #see-results:focus-visible{background:#c91f23!important;border-color:#991b1b!important;color:#fff!important}
body.terminal-mode>header #see-results.is-live{background:#dc2626!important;border-color:#ffe3a3!important;color:#fff!important;animation:header-live-pulse .85s ease-in-out infinite}
body.terminal-mode>header #see-results.is-live:hover,
body.terminal-mode>header #see-results.is-live:focus-visible{background:#c91f23!important}
html[lang="es"] body.terminal-mode>header #see-results.is-live span::after{content:" EN VIVO"}
html[lang="en"] body.terminal-mode>header #see-results.is-live span::after{content:" LIVE"}
@media(prefers-reduced-motion:reduce){body.terminal-mode>header #see-results.is-live{animation:none}}

body.terminal-mode .cancel-ticket-dialog{box-sizing:border-box;width:min(460px,calc(100% - 24px));max-width:calc(100% - 24px);max-height:calc(100dvh - 24px);overflow:auto;background:#fff!important;border-color:var(--draw-deep)!important;color:#17324c!important}
body.terminal-mode .cancel-ticket-dialog h2{margin:-24px -24px 18px;padding:17px 24px;background:var(--draw-pastel)!important;border-bottom:1px solid var(--draw-deep);color:#17324c!important;font-size:22px}
body.terminal-mode .cancel-ticket-dialog :is(label,p){color:#17324c!important}
body.terminal-mode .cancel-ticket-dialog input{min-height:44px;background:#fff!important;border-color:#b9cadb!important;color:#17324c!important}
body.terminal-mode .cancel-ticket-dialog button:not(.primary){background:#fff!important;border-color:#b9cadb!important;color:#17324c!important}
body.terminal-mode .cancel-ticket-dialog .primary{background:var(--draw-deep)!important;border-color:var(--draw-deep)!important;color:#fff!important}
body.terminal-mode .receipt-dialog .dialog-actions{background:#fff!important;border-top:1px solid #dce5ee;position:static;padding:12px 0 0}
body.terminal-mode .receipt-dialog .reward-total{background:color-mix(in srgb,var(--draw-pastel) 30%,white)!important;border-color:var(--draw-deep)!important}
body.terminal-mode .receipt-dialog .reward-total strong{color:#137348!important}
body.terminal-mode .receipt-dialog .reward-results span{background:#fff!important;border-color:#b9cadb!important;color:#17324c!important}
/* Column headers and the multi-draw control follow the chosen draw, too. */
body.terminal-mode :is(.direct-ticket-table,.pair-ticket-table) thead th{background:color-mix(in srgb,var(--draw-pastel) 35%,white)!important;border-color:#dce5ee!important;color:#17324c!important;transition:background-color .35s ease}
body.terminal-mode>header #multi-lottery{background:var(--draw-deep)!important;border-color:var(--draw-deep)!important;color:#fff!important;transition:background-color .35s ease,border-color .35s ease}
body.terminal-mode>header #multi-lottery:hover{background:color-mix(in srgb,var(--draw-deep) 85%,black)!important}
@media(prefers-reduced-motion:reduce){body.terminal-mode :is(.direct-ticket-table,.pair-ticket-table) thead th,body.terminal-mode>header #multi-lottery{transition:none}}
/* Financial colors: incoming and positive balances are blue; payouts and losses are red. */
.money-in,body.terminal-mode .money-in,body.admin-mode .money-in,body.terminal-mode .is-positive,
body.terminal-mode .sales-report-hero strong.money-in,
.pending-payment-summary>div:first-child strong,body.terminal-mode .pending-payment-summary>div:first-child strong,
.pending-payment-table td:nth-child(4),body.terminal-mode .pending-payment-table td:nth-child(4){color:#0b6cb5!important}
body.admin-mode .sales-value,body.admin-mode .balance-positive,
body.admin-mode #overview-stats strong.balance-positive,
body.admin-mode .hierarchy-balance.is-positive{color:#61b7ff!important}
body.admin-mode .chart-bar.balance{background:#208ecb!important}
body.terminal-mode .receipt-dialog .reward-total strong{color:#b42335!important}

/* Keep the draw-close alert centered over the receipts pane on the seller screen. */
@media(min-width:801px){
  body.terminal-mode #ticket-form{position:relative}
  body.terminal-mode .closing-warning{position:absolute;left:85%;right:auto;bottom:58px;transform:translateX(-50%)}
}
body.admin-mode .admin-content .chart-drilldown{display:flex;flex:1;flex-direction:column;align-items:center;justify-content:flex-end;min-width:0;min-height:0;margin:0;padding:20px 0 0!important;border:0!important;border-radius:0;background:transparent!important;box-shadow:none;color:inherit;cursor:pointer}
body.admin-mode .chart-drilldown:hover,body.admin-mode .chart-drilldown:focus-visible{background:transparent!important}
body.admin-mode .chart-drilldown:hover .chart-bar,body.admin-mode .chart-drilldown:focus-visible .chart-bar{filter:brightness(1.18);outline:2px solid #3d6d9c;outline-offset:2px}
body.admin-mode .chart-drilldown:focus-visible{outline:2px solid #2479b5;outline-offset:2px}
body.admin-mode .chart-detail-table{width:100%;font-variant-numeric:tabular-nums}
body.admin-mode .chart-detail-table th:not(:first-child),body.admin-mode .chart-detail-table td:not(:first-child){text-align:right}
body.admin-mode .chart-detail-table td:first-child{min-width:160px}
body.admin-mode .chart-bar.positive{background:#138451!important}
body.admin-mode .chart-bar.negative{background:#d43d4f!important}
body.admin-mode .chart-positive-label{color:#138451!important}
body.admin-mode #overview-stats .stat strong.winnings-value{color:#b42335!important}
body.admin-mode #manager-overview-stats{grid-template-columns:repeat(4,minmax(0,1fr))!important}
body.admin-mode #manager-overview-stats.has-commission{grid-template-columns:repeat(5,minmax(0,1fr))!important}
body.admin-mode #manager-overview-stats .stat strong.money-in,body.admin-mode #manager-overview-stats .stat strong.balance-positive{color:#0b6cb5!important}
body.admin-mode #manager-overview-stats .stat strong.money-out,body.admin-mode #manager-overview-stats .stat strong.balance-negative{color:#b42335!important}
@media(max-width:700px){body.admin-mode #manager-overview-stats{grid-template-columns:repeat(2,minmax(0,1fr))!important}}
body.terminal-mode .pending-payment-table td:nth-child(4){color:#0b6cb5!important;font-weight:800}
body.terminal-mode .pending-payment-table td:nth-child(5){color:#b42335!important;font-weight:800}
/* Keep the user hierarchy inside its panel instead of forcing a horizontal scrollbar. */
body.admin-mode .terminal-launcher.family-tree{overflow-x:hidden!important}
body.admin-mode .family-tree-branches{width:100%!important;min-width:0!important;grid-template-columns:repeat(auto-fit,minmax(min(205px,100%),1fr))!important}
body.admin-mode .family-tree-branches .family-branch{min-width:0!important}
body.admin-mode .family-branch .family-members{min-width:0!important;padding-inline:7px!important}
body.admin-mode .family-member-name{white-space:normal!important;overflow:visible!important;text-overflow:clip!important;overflow-wrap:anywhere;line-height:1.2;min-height:28px}
/* The admin's post balance is sales less awarded prizes and recorded collections. */
body.admin-mode .terminal-workspace-dialog .table-wrap th:nth-child(1){width:20%!important}
body.admin-mode .terminal-workspace-dialog .table-wrap th:nth-child(2){width:16%!important}
body.admin-mode .terminal-workspace-dialog .table-wrap th:nth-child(3){width:10%!important}
body.admin-mode .terminal-workspace-dialog .table-wrap th:nth-child(4){width:15%!important}
body.admin-mode .terminal-workspace-dialog .table-wrap th:nth-child(5){width:39%!important}
body.admin-mode .terminal-workspace-dialog .terminal-balance-cell{font-weight:800!important;font-variant-numeric:tabular-nums;white-space:nowrap;color:#174f76!important}
body.admin-mode .terminal-workspace-dialog .terminal-balance-cell.is-positive{color:#1255a1!important}
body.admin-mode .terminal-workspace-dialog .terminal-balance-cell.is-negative{color:#b42335!important}
@media(max-width:700px){
  body.admin-mode .terminal-workspace-dialog .terminal-balance-cell::before{content:'Balance: ';color:var(--admin-text);font-weight:700}
}
/* Every saved employee icon is a person portrait, with a stable color choice. */
body.admin-mode .post-user-icon{flex:none}
body.admin-mode .terminal-person-card .post-user-icon{width:46px!important;height:46px!important;border:2px solid #fff!important;background:radial-gradient(circle at 31% 19%,#fff9 0 7%,transparent 29%),var(--avatar-bg)!important}
body.admin-mode .terminal-person-card .post-user-icon .terminal-avatar-head{left:13px!important;bottom:10px!important;width:19px!important;height:24px!important}
body.admin-mode .terminal-person-card .post-user-icon .terminal-avatar-head:before,body.admin-mode .terminal-person-card .post-user-icon .terminal-avatar-head:after{top:11px!important;width:2px!important;height:2px!important}
body.admin-mode .terminal-person-card .post-user-icon .terminal-avatar-head:before{left:5px!important}
body.admin-mode .terminal-person-card .post-user-icon .terminal-avatar-head:after{right:5px!important}
body.admin-mode .terminal-person-card .post-user-icon .terminal-avatar-hair{left:10px!important;bottom:25px!important;width:25px!important;height:13px!important}
body.admin-mode .terminal-person-card .post-user-icon .terminal-avatar-shirt{left:6px!important;bottom:-7px!important;width:32px!important;height:24px!important}
body.admin-mode .terminal-person-card .post-user-icon .terminal-avatar-shirt:after{left:12px!important;width:8px!important;height:12px!important}
body.admin-mode .post-icon-picker select{min-width:170px}
/* The manager's net balance and weekly commission remain visible together. */
body.admin-mode .family-tree .terminal-launcher-card{grid-template-rows:72px 25px 19px 24px 24px!important;height:184px!important;min-height:184px!important}
body.admin-mode .family-tree .terminal-launcher-card .hierarchy-commission{grid-column:1;grid-row:5;align-self:center;max-width:100%;padding:3px 8px;border:1px solid #efbec5;border-radius:999px;background:#fff0f1;color:#b42335;font-size:11px;font-weight:800;line-height:16px;white-space:nowrap;font-variant-numeric:tabular-nums}
body.admin-mode .family-member{min-height:146px}
body.admin-mode .family-seller-name{display:block;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#5a6c7d;font-size:11px;line-height:14px;text-align:center}
body.admin-mode .terminal-workspace-dialog .terminal-row-action{display:grid!important;place-items:center!important;flex:0 0 40px!important;width:40px!important;min-width:40px!important;height:40px!important;min-height:40px!important;padding:0!important;font-size:20px!important}
body.admin-mode .terminal-workspace-dialog .terminal-row-action .terminal-action-icon{display:block;line-height:1}
body.admin-mode #station-detail .station-summary{grid-template-columns:repeat(3,minmax(0,1fr))}
body.admin-mode #station-detail .station-summary .stat{min-height:96px;text-align:center}
body.admin-mode #station-detail .station-summary strong{font-variant-numeric:tabular-nums}
body.admin-mode .station-settings{margin:14px 0;border:1px solid #c8d9e8;border-radius:12px;background:#f4faff;overflow:hidden}
body.admin-mode .station-settings>summary{padding:14px 18px;color:#174f76;font-weight:800;cursor:pointer}
body.admin-mode .station-settings>form{margin:0;border:0;border-top:1px solid #c8d9e8;border-radius:0}
body.admin-mode .station-settings-actions{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:16px}
body.admin-mode .station-settings-actions button{min-height:40px;padding:8px 12px;border:1px solid #b9cede;border-radius:9px;background:#fff;color:#174f76;font-weight:700}
body.admin-mode .station-settings-actions button.active{border-color:#208ecb;background:#e8f5ff;color:#1255a1}
body.admin-mode .station-settings .station-fields label[hidden]{display:none!important}
body.admin-mode .station-tickets-heading{display:flex;align-items:end;justify-content:space-between;gap:16px;margin-bottom:16px}
body.admin-mode .station-tickets-heading h2{margin:0}
body.admin-mode .station-tickets-heading label{display:grid;gap:4px;min-width:160px;color:#174f76;font-weight:700}
body.admin-mode .station-tickets-heading input{min-height:42px}
body.admin-mode .station-ticket-actions{white-space:nowrap;text-align:center}
body.admin-mode .station-ticket-actions button{width:36px;min-width:36px;min-height:36px;margin:0 2px;padding:5px;border-radius:8px;font-size:18px}
body.admin-mode .station-ticket-actions button:disabled{opacity:.4;cursor:not-allowed}
@media(max-width:700px){body.admin-mode #station-detail .station-summary{grid-template-columns:repeat(3,minmax(0,1fr))}body.admin-mode .station-tickets-heading{align-items:stretch;flex-direction:column}body.admin-mode .station-tickets-heading label{min-width:0}}
.pending-payment-filters{grid-template-columns:minmax(0,1fr) auto!important}
.pending-payment-filters input{min-width:0}
@media(max-width:700px){.pending-payment-filters{grid-template-columns:minmax(0,1fr) auto!important}}
body.terminal-mode .post-hours-panel{display:grid;min-height:calc(100dvh - 60px);place-items:center;padding:24px;background:#f7f9fc;color:#172b4d;text-align:center}
#overview-week-range{text-align:right;margin:0 2px 8px;color:#293d51;font-weight:700;font-variant-numeric:tabular-nums}
body.admin-mode #overview-managers .overview-commission{color:#b42335!important;font-weight:700}
body.admin-mode .family-member .hierarchy-balance{max-width:100%;overflow:visible;text-overflow:clip;white-space:normal;overflow-wrap:anywhere;padding-inline:4px;font-size:10px}
body.terminal-mode .post-hours-panel[hidden]{display:none!important}
.post-hours-panel>div{width:min(100%,520px);padding:42px 30px;border:1px solid #d9e4ee;border-radius:18px;background:#fff;box-shadow:0 20px 50px #183b5b18}
.post-hours-panel .post-hours-clock{display:grid;width:62px;height:62px;margin:0 auto 18px;place-items:center;border-radius:50%;background:#e8f5ff;color:#167ec1;font-size:42px;line-height:1}
.post-hours-panel h2{margin:0 0 9px;color:#172b4d;font-size:clamp(23px,4vw,30px);font-weight:850}
.post-hours-panel p{max-width:37ch;margin:0 auto;color:#52677f;font-size:15px;line-height:1.5}

/* Manager dashboard and user detail pages share the master's light bubble grid. */
body.admin-mode #manager-week-range{text-align:right;margin:0 2px 8px;color:#293d51;font-weight:700;font-variant-numeric:tabular-nums}
body.admin-mode #manager-overview-stats{grid-template-columns:repeat(3,minmax(0,1fr))!important}
body.admin-mode #manager-overview-stats .stat{min-width:0;text-align:center}
body.admin-mode #manager-overview-stats .overview-commission{display:block;margin-top:8px;color:#b42335!important;font-size:13px;font-weight:800}
body.admin-mode #manager-overview-stats .stat strong.commission{color:#15805b!important}
body.admin-mode #manager-overview-stats .manager-balance-caption{display:block;margin-top:6px;color:#435c73!important;font-size:12px;font-weight:700}
body.admin-mode #manager-weekly-chart .chart-bar.commission{background:#15805b!important}
body.admin-mode .commission-value{color:#15805b!important}
body.admin-mode #manager-weekly-chart{grid-template-columns:repeat(var(--visible-days,7),minmax(0,1fr))}
body.admin-mode #manager-current-due{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:0 0 18px;padding:14px 18px;border:1px solid #c9dce9;border-radius:16px;background:#f1f8fe;color:#284962;font-weight:750}
body.admin-mode #manager-current-due strong{font-size:22px;font-variant-numeric:tabular-nums}
body.admin-mode #admin-page-user-group>.panel{display:grid;grid-template-columns:minmax(280px,0.9fr) minmax(0,1.1fr);align-items:start;gap:16px;margin:0;padding:0;border:0;background:transparent;box-shadow:none}
body.admin-mode #admin-page-user-group>.panel>.section-title,body.admin-mode #admin-page-user-group>.panel>.manager-limit-panel,body.admin-mode #admin-page-user-group>.panel>#terminal-form,body.admin-mode #admin-page-user-group>.panel>.table-wrap{min-width:0;margin:0!important;padding:20px!important;border:1px solid #d5e2ec!important;border-radius:18px!important;background:#fff!important;box-shadow:0 8px 22px #153c5c0c}
body.admin-mode #admin-page-user-group>.panel>.section-title,body.admin-mode #admin-page-user-group>.panel>.table-wrap{grid-column:1/-1}
body.admin-mode #admin-page-user-group>.panel>.section-title{display:flex!important;align-items:center;justify-content:center;min-height:72px}
body.admin-mode #admin-page-user-group>.panel>.section-title h2{text-align:center;margin:0!important}
body.admin-mode #admin-page-user-group>.panel>.manager-limit-panel{grid-column:1;display:flex;flex-wrap:wrap;align-content:start;gap:8px;min-height:310px}
body.admin-mode #admin-page-user-group>.panel>.manager-limit-panel>p,body.admin-mode #admin-page-user-group>.panel>.manager-limit-panel>form{flex-basis:100%}
body.admin-mode #admin-page-user-group>.panel>.manager-limit-panel>button{margin:0!important;min-height:40px}
body.admin-mode #admin-page-user-group>.panel>.manager-limit-panel .manager-settings-form{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:end;gap:10px}
body.admin-mode #admin-page-user-group>.panel>.manager-limit-panel .manager-settings-form>span,body.admin-mode #admin-page-user-group>.panel>.manager-limit-panel .manager-settings-form>label{grid-column:1/-1;width:100%!important}
body.admin-mode #admin-page-user-group>.panel>.manager-limit-panel .manager-settings-form input{width:100%;height:auto!important;min-height:28px!important}
body.admin-mode #admin-page-user-group>.panel>#terminal-form{grid-column:2;display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr));align-items:end;gap:14px;min-height:310px}
body.admin-mode #admin-page-user-group>.panel:not(:has(>.manager-limit-panel))>#terminal-form{grid-column:1/-1;grid-template-columns:repeat(3,minmax(0,1fr))}
body.admin-mode #admin-page-user-group #terminal-form>label,body.admin-mode #admin-page-user-group #terminal-form>details,body.admin-mode #admin-page-user-group #terminal-form>button{width:100%!important;min-width:0;margin:0!important}
body.admin-mode #admin-page-user-group #terminal-form>label{display:flex!important;flex-direction:column;align-items:stretch;justify-content:end;gap:6px}
body.admin-mode #admin-page-user-group #terminal-form>label[hidden]{display:none!important}
body.admin-mode #admin-page-user-group #terminal-form input,body.admin-mode #admin-page-user-group #terminal-form select{width:100%!important;min-width:0;min-height:42px}
body.admin-mode #admin-page-user-group #terminal-form>button{min-height:44px}
body.admin-mode #admin-page-user-group>.panel>.table-wrap{overflow-x:auto}

/* Keep the approved-computers page readable without a horizontal desktop scroll. */
body.admin-mode #admin-page-devices>.panel:first-child>.table-wrap table{table-layout:fixed!important;min-width:0!important}
body.admin-mode #admin-page-devices>.panel:first-child>.table-wrap th:nth-child(1){width:16%}
body.admin-mode #admin-page-devices>.panel:first-child>.table-wrap th:nth-child(2){width:10%}
body.admin-mode #admin-page-devices>.panel:first-child>.table-wrap th:nth-child(3){width:22%}
body.admin-mode #admin-page-devices>.panel:first-child>.table-wrap th:nth-child(4),
body.admin-mode #admin-page-devices>.panel:first-child>.table-wrap th:nth-child(5){width:17%}
body.admin-mode #admin-page-devices>.panel:first-child>.table-wrap th:nth-child(6){width:18%}
body.admin-mode #admin-page-devices .device-results-posts{min-width:0!important}
body.admin-mode #admin-page-devices .device-actions{display:table-cell!important;min-width:0}
body.admin-mode #admin-page-devices .device-actions .device-icon-button{display:block!important;width:100%!important;min-width:0!important;min-height:32px!important;margin:0 0 5px!important;background:#356fa9!important;color:#fff!important}
body.admin-mode #admin-page-devices .device-actions .device-icon-button.approve{background:#11875d!important}
body.admin-mode #admin-page-devices .device-actions .device-icon-button.delete{background:#d43d4f!important}

body.admin-mode #simple-device-panel{display:grid;gap:20px}
body.admin-mode #simple-device-panel h3{margin:0 0 10px;color:#eaf5ff}
body.admin-mode .device-enrollment-card,body.admin-mode .device-simple-section{padding:18px;border:1px solid #274766;border-radius:16px;background:#0a1c31}
body.admin-mode .device-enrollment-result{display:grid;justify-items:start;gap:10px;margin-top:14px}
body.admin-mode .device-enrollment-result img{max-width:240px;width:100%;height:auto;padding:8px;border-radius:12px;background:#fff}
body.admin-mode .device-simple-list{display:grid;gap:10px}
body.admin-mode .device-simple-card{padding:14px;border:1px solid #294864;border-radius:12px;background:#10263d}
body.admin-mode .device-simple-summary{display:flex;align-items:center;justify-content:space-between;gap:14px}
body.admin-mode .device-simple-summary>div:first-child{display:grid;gap:4px}
body.admin-mode .device-simple-card details{margin-top:10px;color:#bcd0e4}
body.admin-mode .device-simple-card summary{cursor:pointer;font-weight:700;color:#8fcbff}
body.admin-mode .device-details{display:flex;flex-wrap:wrap;align-items:center;gap:8px 14px;padding-top:10px}
body.admin-mode .device-details p{margin:0;font-size:.85rem}
body.admin-mode #simple-device-panel button.approve{background:#11875d}
body.admin-mode #simple-device-panel button.delete{background:#d43d4f}
@media(max-width:680px){body.admin-mode .device-simple-summary{align-items:flex-start;flex-direction:column}body.admin-mode .device-simple-summary .device-actions{display:flex!important;width:100%}body.admin-mode .device-simple-summary .device-actions button{flex:1}}
body.admin-mode #admin-page-devices>.panel:first-child>.table-wrap :is(th,td){padding:10px 9px!important;overflow-wrap:anywhere}
@media(max-width:720px){
 body.admin-mode #admin-page-devices>.panel:first-child>.table-wrap{overflow:visible!important;border:0!important}
 body.admin-mode #admin-page-devices>.panel:first-child>.table-wrap table{display:block!important;width:100%!important}
 body.admin-mode #admin-page-devices>.panel:first-child>.table-wrap thead{display:none!important}
 body.admin-mode #admin-page-devices>.panel:first-child>.table-wrap tbody{display:grid!important;gap:12px}
 body.admin-mode #admin-page-devices>.panel:first-child>.table-wrap tr{display:grid!important;grid-template-columns:1fr 1fr;padding:14px;border:1px solid var(--admin-border);border-radius:14px;background:#fff}
 body.admin-mode #admin-page-devices>.panel:first-child>.table-wrap td{display:grid!important;gap:3px;padding:9px!important;border:0!important}
 body.admin-mode #admin-page-devices>.panel:first-child>.table-wrap td::before{content:attr(data-title)}
 body.admin-mode #admin-page-devices>.panel:first-child>.table-wrap td::before{color:var(--admin-muted);font-size:.68rem;font-weight:900;letter-spacing:.08em}
 body.admin-mode #admin-page-devices>.panel:first-child>.table-wrap td:nth-child(3),
 body.admin-mode #admin-page-devices>.panel:first-child>.table-wrap td:nth-child(6){grid-column:1/-1}
 body.admin-mode #admin-page-devices .device-actions{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
 body.admin-mode #admin-page-devices .device-actions .device-icon-button{margin:0!important}
}
body.admin-mode #admin-page-user-post #station-detail{display:grid;grid-template-columns:repeat(12,minmax(0,1fr));align-items:start;gap:16px}
body.admin-mode #admin-page-user-post #station-detail>.section-title,body.admin-mode #admin-page-user-post #station-detail>.station-summary,body.admin-mode #admin-page-user-post #station-detail>.station-balance-panel,body.admin-mode #admin-page-user-post #station-detail>.station-settings,body.admin-mode #admin-page-user-post #station-detail>.station-tickets,body.admin-mode #admin-page-user-post #station-detail>[role="status"]{grid-column:1/-1;margin:0!important}
body.admin-mode #admin-page-user-post #station-detail>h2,body.admin-mode #admin-page-user-post #station-detail>p.muted.small{min-width:0;min-height:72px;margin:0!important;padding:18px 20px;border:1px solid #d5e2ec;border-radius:18px;background:#fff;box-shadow:0 8px 22px #153c5c0c}
body.admin-mode #admin-page-user-post #station-detail>h2{grid-column:1/8;display:flex;align-items:center;justify-content:center;gap:8px;text-align:center}
body.admin-mode #admin-page-user-post #station-detail>p.muted.small{grid-column:8/-1;display:flex;align-items:center;justify-content:center;text-align:center}
body.admin-mode #admin-page-user-post #station-detail>.station-summary .stat,body.admin-mode #admin-page-user-post #station-detail>.station-balance-panel,body.admin-mode #admin-page-user-post #station-detail>.station-settings,body.admin-mode #admin-page-user-post #station-detail>.station-tickets{border-radius:18px!important;box-shadow:0 8px 22px #153c5c0c}
body.admin-mode #admin-page-user-post #station-detail>.section-title{display:flex;justify-content:flex-end}
body.admin-mode .pos-results-dialog .pos-results-track time,body.terminal-mode .pos-results-dialog .pos-results-track time{color:#294965!important;text-shadow:none!important}
body.admin-mode #admin-page-user-group>.panel>#user-group-weekly,body.admin-mode #admin-page-user-post #station-detail>.station-weekly-summary{grid-column:1/-1;min-width:0}
body.admin-mode .user-weekly-summary{display:grid;gap:14px}
body.admin-mode .weekly-user-range{text-align:right;color:#294965;font-weight:750;font-variant-numeric:tabular-nums}
body.admin-mode #overview-stats,body.admin-mode .weekly-user-stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin:0 0 24px!important}
body.admin-mode #overview-stats .stat,body.admin-mode .weekly-user-stats .stat{background:#fff!important}
body.admin-mode #overview-stats .commission-total,body.admin-mode .weekly-user-stats .commission-total{background:transparent!important;color:#0b6cb5!important}
body.admin-mode #overview-managers .overview-commission-cell{background:#fff!important;color:#0b6cb5!important;font-weight:700}
@media(max-width:800px){body.admin-mode #overview-stats,body.admin-mode .weekly-user-stats{grid-template-columns:repeat(2,minmax(0,1fr))!important}}
@media(max-width:420px){body.admin-mode #overview-stats{grid-template-columns:1fr!important}}
body.admin-mode .weekly-user-stats .stat{min-width:0;text-align:center;border-radius:18px;background:#fff!important;border:1px solid #d5e2ec!important;box-shadow:0 8px 22px #153c5c0c}
body.admin-mode .weekly-user-stats .stat span{color:#294965!important}
body.admin-mode .weekly-user-stats .stat strong{font-variant-numeric:tabular-nums}
body.admin-mode .weekly-user-stats .stat strong.money-in,body.admin-mode .weekly-user-stats .stat strong.balance-positive{color:#0b6cb5!important}
body.admin-mode .weekly-user-stats .stat strong.money-out,body.admin-mode .weekly-user-stats .stat strong.balance-negative{color:#b42335!important}
body.admin-mode .weekly-user-stats .overview-commission{display:block;margin-top:7px;color:#b42335!important;font-weight:750}
body.admin-mode .weekly-user-chart{min-width:0;margin:0!important;border-radius:18px!important;background:#fff!important;border:1px solid #d5e2ec!important;box-shadow:0 8px 22px #153c5c0c}
body.admin-mode .weekly-user-chart h2{text-align:center;color:#243f57}
body.admin-mode .weekly-user-chart .chart-legend{justify-content:center;flex-wrap:wrap}
body.admin-mode .weekly-user-chart .chart-day-label{color:#294965}
body.admin-mode .weekly-user-chart .weekly-chart{grid-template-columns:repeat(var(--visible-days,7),minmax(0,1fr))}
body.admin-mode #admin-page-user-post #station-detail>p.muted.small{color:#39556d!important;font-weight:650}
@media(max-width:850px){body.admin-mode #admin-page-user-group>.panel{grid-template-columns:1fr}body.admin-mode #admin-page-user-group>.panel>.manager-limit-panel,body.admin-mode #admin-page-user-group>.panel>#terminal-form{grid-column:1/-1;min-height:0}body.admin-mode #admin-page-user-post #station-detail>h2,body.admin-mode #admin-page-user-post #station-detail>p.muted.small{grid-column:1/-1}}
@media(max-width:1050px){body.admin-mode #manager-overview-stats,body.admin-mode #manager-overview-stats.has-commission{grid-template-columns:repeat(3,minmax(0,1fr))!important}}
@media(max-width:560px){body.admin-mode #manager-overview-stats,body.admin-mode #manager-overview-stats.has-commission{grid-template-columns:repeat(2,minmax(0,1fr))!important}body.admin-mode #manager-overview-stats.has-commission .stat:last-child{grid-column:1/-1}body.admin-mode #manager-current-due{flex-wrap:wrap;justify-content:center;text-align:center}body.admin-mode #admin-page-user-group>.panel>#terminal-form,body.admin-mode #admin-page-user-group>.panel:not(:has(>.manager-limit-panel))>#terminal-form{grid-template-columns:1fr}body.admin-mode #admin-page-user-post #station-detail{gap:10px}body.admin-mode #admin-page-user-post #station-detail>h2,body.admin-mode #admin-page-user-post #station-detail>p.muted.small{min-height:0}body.admin-mode .weekly-user-stats{grid-template-columns:1fr}}

/* Entry availability stays on the seller screen; never on receipt templates. */
.terminal-mode #number-availability.play-unavailable{border-color:#b42332;background:#fff0f1}
.terminal-mode #number-availability.play-unavailable strong,.terminal-mode #number-availability.play-unavailable small{color:#991b2c}
.terminal-mode #number-availability strong{font-size:16px;text-align:center;overflow-wrap:anywhere}
.terminal-mode #number-availability small{text-align:center;font-size:11px;padding:2px 4px}
.terminal-mode #play-number[aria-invalid="true"]{border:2px solid #b42332}


.receipt-page .receipt-draw-summary.receipt-combined-heading,body>#receipt-paper .receipt-page .receipt-draw-summary.receipt-combined-heading{font-size:20px!important;white-space:nowrap;letter-spacing:-.3px}

body.admin-mode .user-delete-action{margin-left:auto;color:#a32836!important;background:#fff0f1!important;border:1px solid #e7a7ae!important;font-weight:700}body.admin-mode .user-delete-action:hover{background:#ffe1e5!important}body.admin-mode .user-delete-action:focus-visible{outline:2px solid #a32836;outline-offset:3px}#station-detail>.section-title{flex-wrap:wrap;gap:10px}
.user-recovery-dialog{max-height:85vh;overflow:auto}.user-recovery-row{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:12px 0;border-bottom:1px solid #dce3ec}.user-recovery-row p{margin:4px 0;overflow-wrap:anywhere}.user-recovery-row>div{min-width:0}.user-recovery-row>button{flex-shrink:0}
/* User pages fit the available desktop width; controls wrap instead of clipping. */
body.admin-mode .admin-page,body.admin-mode .admin-page>.panel,body.admin-mode #station-detail{min-width:0;max-width:100%}
body.admin-mode #admin-page-user-group>.panel{grid-template-columns:minmax(0,.9fr) minmax(0,1.1fr)}
body.admin-mode #admin-page-user-group #terminal-form :is(label,details,summary,button){min-width:0;max-width:100%;white-space:normal;overflow-wrap:anywhere}
body.admin-mode #admin-page-user-group .table-wrap table{width:100%!important;min-width:0!important;table-layout:fixed}
body.admin-mode #admin-page-user-group .table-wrap :is(td,th){min-width:0!important;white-space:normal!important;overflow-wrap:anywhere;padding:10px 8px!important}
body.admin-mode #admin-page-user-group .terminal-row-actions{display:table-cell!important;height:auto!important;white-space:normal!important}
body.admin-mode #admin-page-user-group .terminal-row-action{display:inline-grid!important;margin:3px!important;vertical-align:middle}
body.admin-mode #admin-page-user-group .terminal-person-card{min-width:0!important;max-width:100%!important;width:100%!important;white-space:normal!important}
body.admin-mode #admin-page-user-group .terminal-person-card :is(strong,small){white-space:normal!important;overflow-wrap:anywhere}
body.admin-mode #station-detail .station-fields{grid-template-columns:minmax(0,1fr)!important}
body.admin-mode #station-detail :is(input,select){min-width:0;max-width:100%}
body.admin-mode #station-detail .station-settings-actions button{max-width:100%;white-space:normal}
body.admin-mode .family-direct-branch .family-members{margin-top:20px!important}
body.admin-mode .family-direct-branch .terminal-group-name::before{content:none!important}
body.admin-mode .admin-sidebar{box-sizing:border-box}
body.admin-mode .admin-sidebar button{min-width:0;max-width:100%;white-space:normal}
html[lang="es"] .header-live.is-live span::after{content:" EN VIVO"}
html[lang="en"] .header-live.is-live span::after{content:" LIVE"}
@media(min-width:721px){
 body.admin-mode .table-wrap table{min-width:0!important;width:100%;table-layout:fixed}
 body.admin-mode .table-wrap :is(th,td){white-space:normal;overflow-wrap:anywhere}
 body.admin-mode .table-wrap :is(input,select,button){max-width:100%;min-width:0}
}
@media(max-width:1000px){body.admin-mode #admin-page-user-group>.panel{grid-template-columns:minmax(0,1fr)}body.admin-mode #admin-page-user-group>.panel>#terminal-form,body.admin-mode #admin-page-user-group>.panel>.manager-limit-panel{grid-column:1/-1}}
/* One chart palette for master, managers, posts and mobile summaries. */
body .chart-bar.sales{background:#167ec1!important}
body .chart-bar.positive,body .chart-bar.balance,body.admin-mode .chart-bar.balance{background:#138451!important}
body .chart-positive-label,body.admin-mode .chart-positive-label{color:#138451!important}
body .chart-bar.negative,body .chart-bar.winnings{background:#d43d4f!important}
/* Shared money theme: entrada blue, salida red, balance green (losses red). */
body.admin-mode #workspace .money-in,body.admin-mode #workspace .sales-value,body.terminal-mode .money-in,body .sales-history-dialog .money-in{color:#0b6cb5!important}
body.admin-mode #workspace :is(.balance-positive,.balance-total:not(.balance-negative),.weekly-balance:not(.balance-negative),.house-balance:not(.balance-negative),.hierarchy-balance:not(.is-negative),.terminal-balance-cell:not(.is-negative),.station-balance-panel:not(.is-negative) .station-balance-value),body .balance-positive,body.terminal-mode #mobile-pos-cash:not(.is-negative){color:#138451!important}
body.admin-mode #workspace :is(.money-out,.winnings-value,.balance-negative,.hierarchy-balance.is-negative,.terminal-balance-cell.is-negative,.station-balance-panel.is-negative .station-balance-value),body .balance-negative,body.terminal-mode .money-out,body.terminal-mode #mobile-pos-cash.is-negative{color:#b42335!important}
body.admin-mode>header .admin-live-button{border:1px solid #ff7b7b!important;border-radius:999px!important;background:linear-gradient(180deg,#ff463e,#df0505 70%,#a80000)!important;box-shadow:inset 0 2px #fff5,inset 0 -3px #820000,0 3px 0 #690000;color:#fff!important}
body.admin-mode>header .admin-live-button:hover,body.admin-mode>header .admin-live-button:focus-visible{background:#c91f23!important;border-color:#991b1b!important;color:#fff!important}
body.admin-mode>header .admin-live-button.is-live{background:#dc2626!important;border-color:#ffe3a3!important;animation:header-live-pulse .85s ease-in-out infinite}
body.admin-mode .family-direct-branch .terminal-group-name{white-space:normal!important;overflow:visible!important;text-overflow:clip!important}
@media(prefers-reduced-motion:reduce){body.admin-mode>header .admin-live-button.is-live{animation:none}}
body.admin-mode .admin-sidebar>nav,body.admin-mode .admin-sidebar>p{box-sizing:border-box;min-width:0;max-width:100%}
body.admin-mode .family-direct-branch>.family-manager-card{min-height:0!important;padding:14px 8px!important;margin-top:0!important;border:0!important;background:transparent!important;box-shadow:none!important}
.ticket-approval-group + .ticket-approval-group{margin-top:20px;padding-top:12px;border-top:1px solid #dce4ef}
.ticket-approval-group h3{margin:10px 0;color:#263c52}
.ticket-approval-toolbar,.ticket-approval-group-header{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.ticket-approval-toolbar{padding:12px 0;border-bottom:1px solid #dce4ef}
.ticket-approval-group-header{justify-content:space-between}
.ticket-approval-select{display:inline-flex;align-items:center;gap:6px;white-space:nowrap;cursor:pointer}
.ticket-approval-select input,.ticket-approvals td input[type=checkbox]{width:18px;height:18px;accent-color:#117a4d;cursor:pointer}
.ticket-approval-selection{font-weight:700;color:#263c52}
.ticket-approval-actions button{display:inline-grid;place-items:center;min-height:36px;margin:2px;padding:4px 8px}
.ticket-approvals table{width:100%;table-layout:fixed}
.ticket-approvals th,.ticket-approvals td{text-align:center;overflow-wrap:anywhere}
.ticket-approvals th:first-child{width:34px}
.ticket-approvals th:last-child{width:210px}
@media(max-width:650px){.ticket-approval-toolbar button{flex:1 1 100%;min-width:0}.ticket-approvals th:nth-child(4),.ticket-approvals td:nth-child(4){display:none}.ticket-approvals th:last-child{width:132px}.ticket-approval-actions button{font-size:12px;min-height:32px;padding:3px 5px;margin:1px}.ticket-approvals th,.ticket-approvals td{padding:5px 2px;font-size:12px}}
.direct-post-arrow{display:block;font-size:34px;font-weight:800;line-height:1;color:#287ba7;text-align:center}
body.admin-mode header .approval-bell{position:relative;display:inline-grid;place-items:center;flex:0 0 44px;width:44px;height:44px;padding:8px;border:0;background:transparent;box-shadow:none;color:#68788d;cursor:pointer;overflow:visible}
body.admin-mode header .approval-bell.has-pending{color:#d83f4b}
body.admin-mode header .approval-bell svg{width:28px;height:28px;fill:currentColor}
body.admin-mode header .approval-bell:hover{background:#d83f4b12;border-radius:12px}
.approval-bell-count{position:absolute;right:-4px;top:-2px;display:grid;place-items:center;min-width:21px;height:21px;padding:0 4px;border-radius:20px;background:#dc152d;color:white;font-size:12px;font-weight:800;line-height:1}
.approval-bell-count[hidden]{display:none}
.approval-announcement{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}

body.admin-mode header .admin-account-stack{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;flex:0 0 auto}
body.admin-mode header #approval-bell{position:relative;display:grid;place-items:center;width:44px;height:44px;min-height:44px;min-width:44px;padding:0!important;margin:0!important;background:transparent!important;border:0!important;box-shadow:none!important;overflow:visible}
body.admin-mode header #approval-bell img{display:block;width:44px;height:44px;object-fit:contain}
body.admin-mode header #approval-bell .approval-bell-count{top:0;right:-3px;background:#e00020;color:#fff;min-width:20px;height:20px;font-size:12px;border:1px solid #fff}
body.admin-mode header #approval-bell:focus-visible{outline:2px solid white;outline-offset:2px}

/* Shared admin and manager header: separate navigation, brand, account controls. */
body.admin-mode>header{display:grid!important;grid-template-columns:minmax(220px,1fr) minmax(180px,240px) minmax(370px,1fr)!important;grid-template-rows:auto!important;gap:16px!important;align-items:center!important;height:auto!important;min-height:108px!important;padding:10px 20px!important}
body.admin-mode>header .admin-header-navigation{display:flex;align-items:center;gap:12px;min-width:0;grid-column:1;grid-row:1}
body.admin-mode>header .admin-header-navigation>*:not(#approval-bell){position:static!important;transform:none!important;margin:0!important;flex-shrink:0}
body.admin-mode>header .brand{position:static!important;grid-column:2!important;grid-row:1!important;left:auto!important;top:auto!important;transform:none!important;justify-self:center!important;width:100%!important;max-width:240px!important;height:80px!important;overflow:visible!important}
body.admin-mode>header .app-logo{object-fit:contain!important;object-position:center!important}
body.admin-mode>header .header-right{position:static!important;grid-column:3!important;grid-row:1!important;display:flex!important;align-items:center!important;justify-content:flex-end!important;gap:10px!important;left:auto!important;right:auto!important;bottom:auto!important;margin:0!important;min-width:0}
body.admin-mode>header #change-password,body.admin-mode>header #logout{white-space:nowrap;padding:10px 12px!important;min-height:38px!important}
@media(max-width:980px){body.admin-mode>header{grid-template-columns:minmax(0,1fr) minmax(180px,240px)!important;row-gap:4px!important}body.admin-mode>header .header-right{grid-column:1/-1!important;grid-row:2!important;justify-content:flex-end!important}body.admin-mode>header .brand{height:66px!important}body.admin-mode>header .admin-live-button{width:auto!important;min-height:38px!important}}
@media(max-width:520px){body.admin-mode>header{padding:8px 12px!important;grid-template-columns:1fr!important}body.admin-mode>header .brand{grid-column:1!important;grid-row:1!important;width:210px!important;height:64px!important}body.admin-mode>header .admin-header-navigation{grid-column:1!important;grid-row:2!important;justify-content:center}body.admin-mode>header .header-right{grid-column:1!important;grid-row:3!important;justify-content:center!important;flex-wrap:wrap!important;gap:8px!important}body.admin-mode>header #change-password,body.admin-mode>header #logout{font-size:11px!important}}

.direct-post-icon{display:block;width:48px;height:48px;object-fit:contain;margin:5px auto 0}

body.admin-mode .family-direct-branch .direct-post-icon{width:66px;height:66px;object-fit:contain}

body.admin-mode #admin-sidebar{overflow-x:hidden!important;top:var(--admin-header-height,108px)!important}
body.admin-mode #admin-sidebar>p{width:auto!important;max-width:100%!important;margin-right:12px!important}

.approval-confirmation{width:min(440px,calc(100vw - 32px))}.approval-confirmation-actions{display:flex;justify-content:flex-end;gap:10px;flex-wrap:wrap}
/* Temporary support sessions are visible at all times so they cannot be mistaken for the seller's own session. */
.support-session-banner{position:sticky;top:0;z-index:10000;padding:10px 16px;background:#f5c542;color:#181818;text-align:center;font-weight:900;letter-spacing:.04em;border-bottom:3px solid #171717}.support-consent-dialog{max-width:520px}.support-consent-dialog::backdrop{background:#07192dcc}.user-support-action{background:#e8f4ff;color:#07588f;border-color:#8cc8ec;font-weight:800}

/* The entry screen stays neutral; branding returns after sign-in. */
body.login-mode .login-card{width:min(390px,100%);padding:38px 36px 34px;border:1px solid #d7e4f0;border-radius:20px;box-shadow:0 24px 70px #07355745}
.login-card .login-heading{margin:0 0 4px;color:#173b5d;font-size:clamp(26px,6vw,32px);font-weight:800;letter-spacing:-.025em}
.login-card .login-subheading{margin:0 0 28px;color:#60788e;font-size:14px}
/* Existing broadcast identity, quietly carried onto the sign-in screen. */
.login-watermark{position:fixed;right:max(20px,env(safe-area-inset-right));bottom:max(18px,env(safe-area-inset-bottom));width:clamp(96px,12vw,170px);height:auto;max-height:18vh;object-fit:contain;opacity:.12;filter:brightness(0) invert(1);pointer-events:none;user-select:none;z-index:0}
body.login-mode .login-card{position:relative;z-index:1}
@media(max-width:520px){body.login-mode .login-card{padding:32px 25px}}

/* Shared forms follow the light application theme, including Doubles. */
body:is(.terminal-mode,.admin-mode) .pair-dialog{background:#fff;color:#17324c;border-color:#ccd9e6;border-radius:16px;box-shadow:0 18px 60px #17324c30;max-height:calc(100dvh - 32px);overflow:auto}
body:is(.terminal-mode,.admin-mode) .pair-dialog :is(h2,label){color:#17324c}
body:is(.terminal-mode,.admin-mode) .pair-dialog .eyebrow{color:#35658b;line-height:1.6}
body:is(.terminal-mode,.admin-mode) .pair-dialog .muted{color:#586c7d}
body:is(.terminal-mode,.admin-mode) .pair-dialog :is(input,select){min-height:44px;background:#f8fafc;color:#17324c;border-color:#bdcbd9}
body:is(.terminal-mode,.admin-mode) .pair-dialog button{min-height:44px;background:#f1f5f9;color:#17324c;border-color:#c4d3e0;border-radius:9px}
body:is(.terminal-mode,.admin-mode) .pair-dialog .primary{background:var(--draw-pastel,#d9eafa);color:#17324c;border-color:#a6bfd5;font-weight:800}
body:is(.terminal-mode,.admin-mode) .pair-dialog::backdrop{background:#152b455c}
.weekly-split-dialog{width:min(520px,calc(100% - 24px));padding:0;border:1px solid #9fb7ca;border-radius:18px;background:#fff;color:#17324c;box-shadow:0 22px 70px #07192d55}
.weekly-history-dialog h2{margin:0;padding:24px 28px 12px}.weekly-split-history{display:grid;gap:10px;padding:12px 28px 24px;max-height:60vh;overflow:auto}.weekly-split-history button{min-height:44px;text-align:left}
.weekly-split-dialog::backdrop{background:#07192dcc}.weekly-split-sheet{padding:28px}.weekly-split-kicker{margin:0;text-align:center;font-weight:900;letter-spacing:.12em;color:#0b6cb5}.weekly-split-sheet h2{margin:7px 0 2px;text-align:center}.weekly-split-range,.weekly-split-manager{text-align:center;margin:4px 0;color:#586c7d}.weekly-split-grid{display:grid;gap:10px;margin:24px 0}.weekly-split-row{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:10px;padding:13px 15px;border:1px solid #d5e2ec;border-radius:12px}.weekly-split-row strong{font-size:20px;color:#0b6cb5}.weekly-split-row b{font-size:20px;font-variant-numeric:tabular-nums}.weekly-split-note{font-size:13px;color:#586c7d}.weekly-split-actions{display:flex;justify-content:flex-end;gap:10px;padding:16px 28px;border-top:1px solid #d5e2ec}.weekly-split-actions button{min-height:44px}
.weekly-split-row.split-rojo strong,.weekly-split-row.split-rojo b{color:#b42335}
.weekly-split-row.split-azul strong,.weekly-split-row.split-azul b{color:#0b6cb5}.weekly-split-row.split-zero strong,.weekly-split-row.split-zero b{color:#6e8190}
.weekly-split-row.split-balance{grid-template-columns:minmax(0,1fr) auto;background:#f2f7fa}.weekly-split-row.split-balance strong{font-size:16px}

/* Match the red Results action; a gentle halo keeps the timer readable. */
.pos-footer.status-unavailable .ready-dot{background:#dc2626;box-shadow:0 0 9px #dc262666}
.station-lottery-panel{grid-column:1/-1;min-width:0;margin-top:16px}
.station-lottery-panel table{width:100%;table-layout:fixed}
.station-lottery-panel :is(th,td){padding:12px 8px;overflow-wrap:anywhere}
.station-lottery-panel :is(th,td):first-child{width:34%;text-align:left}
.station-lottery-panel :is(th,td):not(:first-child){text-align:right;font-variant-numeric:tabular-nums}
.station-lottery-panel tfoot{font-weight:800;border-top:2px solid #d7e4ef}
@media(max-width:520px){.station-lottery-panel :is(th,td){padding:10px 4px;font-size:12px}.station-lottery-panel .station-tickets-heading{flex-wrap:wrap;gap:10px}}
body.terminal-mode .closing-warning{background:#dc2626;border-color:#b91c1c;color:#fff;box-shadow:0 8px 24px #dc262633;animation:closing-results-pulse 1.8s ease-in-out infinite}
body.terminal-mode .closing-warning :is(span,strong,small){color:#fff}
body.terminal-mode .closing-warning strong{font-size:36px}
body.terminal-mode .draw-card.closing-soon{border-color:var(--draw-deep,#35658b);box-shadow:inset 0 0 0 1px var(--draw-deep,#35658b)}
body.terminal-mode .draw-card-countdown{color:#17324c;background:#ffffffd9;border-radius:5px;padding:3px 6px;letter-spacing:.04em}
@keyframes closing-results-pulse{0%,100%{box-shadow:0 8px 24px #dc262633,0 0 0 0 #dc262600}50%{box-shadow:0 8px 28px #dc262650,0 0 0 5px #dc262626}}
@media(prefers-reduced-motion:reduce){body.terminal-mode .closing-warning{animation:none}}

body.terminal-mode .weekly-split-actions .primary{background:#0b6cb5!important;border-color:#0b6cb5!important;color:#fff!important}

/* Final weekly closeout: same sheet in the modal and a dedicated print surface. */
.weekly-split-row b{min-width:0;overflow-wrap:anywhere;text-align:right}
.weekly-split-sheet h2{overflow-wrap:anywhere}
#weekly-split-print-paper{display:none}
@media(max-width:420px){.weekly-split-sheet{padding:18px}.weekly-split-row{padding:12px 9px;gap:8px}.weekly-split-row b{font-size:18px}.weekly-split-range{font-size:13px}}
@media print{
  html:has(body.printing-weekly-split>#weekly-split-print-paper),body.printing-weekly-split:has(>#weekly-split-print-paper){width:80mm!important;max-width:80mm!important;min-width:0!important;margin:0!important;padding:0!important}
  body.printing-weekly-split:has(>#weekly-split-print-paper)>:not(#weekly-split-print-paper){display:none!important}
  body.printing-weekly-split:has(>#weekly-split-print-paper)>#weekly-split-print-paper{display:block!important;box-sizing:border-box!important;width:72mm!important;max-width:72mm!important;margin:0 auto!important;padding:4mm 2mm!important;background:#fff!important;color:#000!important;overflow:visible!important;font:14px/1.35 Arial,sans-serif!important}
  body.printing-weekly-split .weekly-split-dialog{display:none!important}
  .weekly-split-dialog::backdrop{display:none!important}
  #weekly-split-print-paper :is(h2,p,strong,b){color:#000!important;background:transparent!important;text-shadow:none!important;box-shadow:none!important}
  #weekly-split-print-paper h2{font-size:18px!important;margin:2mm 0!important;text-align:center!important}
  #weekly-split-print-paper .weekly-split-kicker{font-size:13px!important;letter-spacing:.03em!important}
  #weekly-split-print-paper .weekly-split-range{font-size:12px!important;margin:1mm 0!important}
  #weekly-split-print-paper .weekly-split-grid{display:grid!important;gap:0!important;margin:4mm 0!important}
  #weekly-split-print-paper .weekly-split-row{display:grid!important;grid-template-columns:minmax(0,1fr) auto!important;gap:2mm!important;margin:0!important;padding:3mm 1mm!important;border:0!important;border-bottom:1px dashed #666!important;border-radius:0!important;background:#fff!important;break-inside:avoid!important}
  #weekly-split-print-paper .weekly-split-row :is(strong,b){font-size:16px!important}
}
/* Per-post switches show the saved server state, with explicit ON/OFF text. */
body.admin-mode .terminal-setting-switch{display:flex!important;align-items:center!important;gap:8px!important;min-width:0;margin:7px 3px;white-space:normal!important;font-size:12px}
body.admin-mode .terminal-setting-switch>span{flex:1;min-width:0}
body.admin-mode .terminal-setting-switch>b{width:30px;text-align:left;color:#586c7d;font-size:11px}
body.admin-mode .terminal-setting-switch>.terminal-switch{position:relative!important;display:block!important;flex:0 0 42px!important;width:42px!important;min-width:42px!important;height:24px!important;min-height:24px!important;padding:0!important;margin:0!important;border:1px solid #a9b7c4!important;border-radius:20px!important;background:#c5cdd5!important;box-shadow:none!important}
body.admin-mode .terminal-switch.is-on{background:#0b6cb5!important;border-color:#0b6cb5!important}
body.admin-mode .terminal-switch-thumb{position:absolute;top:2px;left:2px;width:18px;height:18px;border-radius:50%;background:#fff;transition:transform .12s}
body.admin-mode .terminal-switch.is-on .terminal-switch-thumb{transform:translateX(18px)}
body.admin-mode .terminal-switch:focus-visible{outline:3px solid #6eb8ed!important;outline-offset:3px}
body.admin-mode .terminal-switch:disabled{opacity:.55;cursor:wait}
/* Pending-payments view emphasizes only the cash still owed. */
.pending-payment-summary{grid-template-columns:minmax(0,1fr)!important;width:min(560px,calc(100% - 32px));margin:18px auto!important;background:#eef7fc!important;border:2px solid #76b6d4!important;border-radius:14px!important;box-shadow:0 8px 22px #17324c18!important}
.pending-payment-summary>div{display:grid!important;justify-items:center;gap:8px;padding:18px!important;border:0!important}
.pending-payment-summary .pending-total-main span{font-size:15px;font-weight:800;letter-spacing:.08em;text-transform:uppercase}
.pending-payment-summary .pending-total-main strong{margin:0!important;color:#a32135!important;font-size:clamp(36px,7vw,54px)!important;line-height:1.05;font-weight:900}
.pending-payment-table td:nth-child(4),body.terminal-mode .pending-payment-table td:nth-child(4){color:#a32135!important;font-weight:900!important}
.pending-payment-table td:nth-child(5){color:inherit!important}
body.terminal-mode .recent-ticket-more>summary{background:color-mix(in srgb,var(--draw-pastel,#dce8fb) 58%,white)!important;border-color:var(--draw-deep,#315b9f)!important;color:var(--draw-deep,#315b9f)!important}
body.terminal-mode .recent-ticket-more>summary:hover{background:color-mix(in srgb,var(--draw-pastel,#dce8fb) 78%,white)!important}
body.terminal-mode .pending-payment-summary{background:#fff4f3!important;border-color:#e6a5a2!important}
body.terminal-mode .pending-payment-summary .pending-total-main strong{color:#b42335!important}

/* Gentle sizing pass: retain the existing Sòlèy palette and components while
   bringing oversized spacing and card heights back into balance. */
:root{--page-space:20px;--surface-space:18px;--grid-gap:12px;--control-height:42px}
.panel,.draw-strip,.pos-number-panel,.pos-ticket-information,.stat{border-radius:8px}
.admin-columns,.stats{gap:12px}
.stats>.stat{min-height:112px}
.table-wrap th{height:42px}
.table-wrap td{min-height:48px}
.draw-cards{gap:10px}
.draw-card{min-height:92px}
.pos-ticket-workspace{gap:10px}
.pos-action-row{gap:8px}
.entry-toolbar{gap:12px}
.pending-payment-summary{width:min(380px,calc(100% - 32px))!important;border-width:1px!important;border-radius:8px!important}
.pending-payment-summary>div{padding:12px!important}
.pending-payment-summary .pending-total-main span{font-size:13px!important}
.pending-payment-summary .pending-total-main strong{color:#b42335!important;font-size:clamp(28px,4vw,34px)!important}
.pending-payment-summary>div:first-child strong,body.terminal-mode .pending-payment-summary>div:first-child strong{color:#b42335!important;font-size:clamp(28px,4vw,34px)!important}
@media(min-width:801px){
  body.terminal-mode{--pos-header:96px;--pos-type:clamp(13px,.9vw,16px)}
  body.terminal-mode>header{height:104px!important;min-height:104px!important}
  body.terminal-mode>header .brand{top:42px!important;width:min(460px,40vw)!important;max-width:min(460px,40vw)!important;height:74px!important}
  body.terminal-mode>header .app-logo{width:100%!important;height:100%!important;object-fit:contain!important}
  body.terminal-mode>header #identity{top:76px!important;font-size:12px}
  body.terminal-mode>header .terminal-status{bottom:8px}
  body.terminal-mode .entry-toolbar input{height:46px;font-size:22px}
  body.terminal-mode .entry-toolbar .availability{height:48px}
  body.terminal-mode .entry-toolbar .availability strong{font-size:21px}
  body.terminal-mode .entry-toolbar .entry-running-total output{font-size:32px}
  body.terminal-mode .pos-table{font-size:clamp(16px,1.05vw,20px)}
  body.terminal-mode .pos-table th{padding:8px 10px}
  body.terminal-mode .pos-table td{padding:8px 10px}
  body.terminal-mode .ticket-total-bar{min-height:50px;font-size:22px}
  body.terminal-mode .recent-ticket-top strong{font-size:16px}
}
@media(max-width:700px){:root{--page-space:16px;--surface-space:16px;--grid-gap:10px}.stats{gap:10px}.stats>.stat{min-height:96px}.draw-cards{gap:8px}}
#pos-sidebar #sidebar-home{display:none}
body.terminal-mode #all-pairs{display:none!important}
body.terminal-mode .pending-payment-summary{width:min(300px,calc(100% - 32px))!important;margin:12px auto!important}
body.terminal-mode .pending-payment-summary>div{display:flex!important;align-items:center;justify-content:space-between;gap:10px;padding:8px 12px!important}
body.terminal-mode .pending-payment-summary .pending-total-main span{font-size:11px!important;font-weight:700;letter-spacing:.04em}
body.terminal-mode .pending-payment-summary .pending-total-main strong{font-size:26px!important;line-height:1.1}
.cutoff-choice .cutoff-countdown{color:#b42332;font-size:32px;font-weight:700;line-height:1.2;font-variant-numeric:tabular-nums;margin:12px 0;}
body.terminal-mode>header .header-calculator{display:inline-flex;align-items:center;justify-content:center;width:38px;min-width:38px;height:38px;min-height:38px;padding:7px;border:1px solid #ffffff70;border-radius:6px;background:transparent;color:#fff}
.header-calculator .calculator-icon{display:block;width:24px;height:24px}
.pos-action-row #multi-lottery{display:inline-flex;align-items:center;justify-content:center;gap:5px;min-width:60px;height:38px;min-height:38px;padding:5px 8px;border-radius:6px}
.pos-action-row #multi-lottery .header-multi-label{display:inline;font-size:12px}
.pos-action-row #multi-lottery>span{margin:0;padding:0;background:transparent;border-radius:0}
.pos-action-row #multi-lottery .multi-grid-icon,.pos-action-row #multi-lottery .multi-selected-mark{display:none}
.pos-action-row #multi-lottery .header-multi-label{color:inherit;font-size:12px;font-weight:650;white-space:nowrap}
body.terminal-mode .pos-action-row #multi-lottery[aria-pressed="true"]{background:#e2edf8!important;color:#183f66!important;border-color:#527798!important;box-shadow:inset 0 0 0 1px #527798!important}
body.terminal-mode .pos-action-row #multi-lottery[aria-pressed="true"] .multi-selected-mark{display:inline;color:inherit;font-size:12px;font-weight:800}

body.terminal-mode>header .header-calculator{width:42px;min-width:42px;height:40px;min-height:40px;padding:5px;border-color:#ffffff8c;background:#ffffff14}
body.terminal-mode>header .header-calculator .calculator-icon{width:30px;height:30px}
body.terminal-mode>header .header-calculator:hover{background:#ffffff26}
body.terminal-mode>header .header-calculator:focus-visible{outline:2px solid #fff;outline-offset:3px}
.seller-guide-table-wrap{overflow-x:auto}
.seller-guide-examples{width:100%;border-collapse:collapse;font-size:13px;line-height:1.4}
.seller-guide-examples th,.seller-guide-examples td{text-align:left;padding:7px 9px;border-bottom:1px solid #dbe2eb;vertical-align:top}
.seller-guide-examples code{font-size:13px;white-space:nowrap;font-weight:650}
body.terminal-mode .pos-action-row #multi-lottery{height:42px;min-height:42px;width:64px;min-width:64px;border-radius:6px}
body.terminal-mode .pos-action-row #multi-lottery .header-multi-label{font-weight:800}
.seller-guide-dialog{border-radius:8px}
.seller-guide-content{padding:20px 24px;font-size:14px;line-height:1.45}
.seller-guide-content h2{font-size:22px;margin-bottom:12px}
.seller-guide-content p{margin:10px 0}
.seller-guide-section{border-top:1px solid #dbe2eb;padding:10px 0}
.seller-guide-section>summary{cursor:pointer;font-size:14px;font-weight:700;color:#172b4d}
.seller-guide-section[open]>summary{margin-bottom:8px}
.seller-guide-section>summary:focus-visible{outline:2px solid #527798;outline-offset:3px}

/* Seller screen only; showPrint never enables winning-play highlights. */
.receipt-award-amount{display:block;font:700 12px/1.3 Arial,sans-serif;color:#174d31;margin-top:4px;white-space:normal}
.reward-preview>.receipt-preview-paper{justify-self:start}.reward-preview>.reward-total{margin-top:16px}
.managed-local{border:1px solid #72839b;border-radius:12px;padding:14px;margin:14px 0}
.managed-local-heading,.managed-device{display:flex;gap:12px;align-items:center;justify-content:space-between;flex-wrap:wrap}
.managed-device{border-top:1px solid #65758b;padding:12px 0}.managed-device>div:first-child{display:grid;gap:5px}
.managed-device-rows{margin:8px 0}.managed-local-heading h3{margin:0}

.reward-preview>.receipt-preview-paper{margin-left:0;margin-right:auto}

.reward-preview .reward-total{color:#f0fff8}.reward-preview .reward-total>span{color:#f0fff8}

/* On-screen prize receipt only. Never used by showPrint. */
.reward-preview.seller-prize-paper{display:block;width:min(100%,620px);box-sizing:border-box;margin:0 auto 0 0;padding:28px 24px;background:#fffef8;color:#111;border:1px solid #d6d4cb;border-radius:2px;font-family:ui-monospace,SFMono-Regular,Menlo,monospace}
.seller-prize-paper .seller-prize-brand{font-size:30px;text-align:center;margin:0 0 20px;color:#111}
.seller-prize-sample,.seller-prize-draw,.seller-prize-status{text-align:center;display:block;margin:16px 0;color:#111}
.seller-prize-status{font-size:23px;margin-bottom:28px}
.seller-prize-table{width:100%;border-collapse:separate;border-spacing:0 7px;background:transparent;color:#111}
.seller-prize-table th,.seller-prize-table td{padding:10px 8px;border:0;background:transparent;color:#111;font-family:inherit}
.seller-prize-table th{font-size:17px}.seller-prize-table th:first-child,.seller-prize-table td:first-child{text-align:left}
.seller-prize-table th:not(:first-child),.seller-prize-table td:not(:first-child){text-align:right}
.seller-prize-table .seller-prize-winning>td{background:#fff29a!important;color:#111!important;font-weight:700}
.seller-prize-table .receipt-award-amount{display:table-cell;font:700 20px/1.3 ui-monospace,SFMono-Regular,Menlo,monospace;margin:0}
.seller-prize-table .seller-prize-detail{font-size:13px;text-align:center!important;padding:4px 8px 10px}
.seller-prize-paper .seller-prize-total{display:flex;justify-content:center;align-items:center;flex-wrap:wrap;gap:8px;margin:22px 0 0;padding:20px 0 0;border:0;border-top:2px solid #222;background:transparent;border-radius:0;color:#111}
.seller-prize-paper .seller-prize-total>span,.seller-prize-paper .seller-prize-total>strong{font-size:24px;color:#111}
.seller-prize-summary,.seller-prize-payment-note{display:block;flex-basis:100%;text-align:center;color:#111;font-size:13px;margin-top:14px}
@media(max-width:480px){.reward-preview.seller-prize-paper{padding:20px 10px}.seller-prize-table th,.seller-prize-table td{padding:8px 4px}.seller-prize-table .receipt-award-amount{font-size:17px}.seller-prize-paper .seller-prize-total>span,.seller-prize-paper .seller-prize-total>strong{font-size:20px}}

.seller-prize-table{border-collapse:collapse;border-spacing:0}.seller-prize-table td{font-size:20px}.seller-prize-table .seller-prize-detail{font-size:13px}.seller-prize-table tr.seller-prize-winning:not(.receipt-winner)>td{border-bottom:8px solid #fffef8}.seller-prize-table .receipt-winner>td{padding-bottom:5px}
@media(max-width:480px){.seller-prize-table td{font-size:17px}.seller-prize-table .seller-prize-detail{font-size:12px}}

/* Repeated draft numbers must remain visible in every seller theme. */
body.terminal-mode .direct-ticket-table tr.repeated-play td,
body.terminal-mode.orange-theme .direct-ticket-table tr.repeated-play td{background:#ffe2e5!important;color:#7a2030!important;border-color:#f2b4bd!important;font-weight:800}
body.terminal-mode .direct-ticket-table tr.repeated-play .line-remove,
body.terminal-mode.orange-theme .direct-ticket-table tr.repeated-play .line-remove{color:#7a2030!important}

/* Compact thermal tickets: two plays per row; wider game labels stay separate. */
@media print {
  body>#receipt-paper .receipt-plays:not(.receipt-real-plays) :is(th,td):nth-child(odd){width:22%!important;text-align:left!important;letter-spacing:0!important;padding-left:.2mm!important;padding-right:.2mm!important;white-space:normal!important;overflow-wrap:anywhere!important}
  body>#receipt-paper .receipt-plays:not(.receipt-real-plays) :is(th,td):nth-child(even){width:28%!important;text-align:right!important;letter-spacing:0!important;padding-left:.2mm!important;padding-right:.2mm!important;white-space:nowrap!important}
  body>#receipt-paper .receipt-plays:not(.receipt-real-plays) th{font-size:11px!important}
  body>#receipt-paper .receipt-plays:not(.receipt-real-plays) td{font-size:14px!important}
  body>#receipt-paper .receipt-plays:not(.receipt-real-plays) td.receipt-amount{font-size:11px!important}
  body>#receipt-paper .receipt-plays:not(.receipt-real-plays) :is(th,td):nth-child(2){padding-right:1mm!important}
  body>#receipt-paper .receipt-plays:not(.receipt-real-plays) :is(th,td):nth-child(3){padding-left:1mm!important;border-left:1px dotted #999!important}
  body>#receipt-paper .receipt-real-plays :is(th,td):first-child{width:70%!important;white-space:normal!important;overflow-wrap:anywhere!important}
  body>#receipt-paper .receipt-real-plays :is(th,td):last-child{width:30%!important;white-space:nowrap!important;text-align:right!important}
  body>#receipt-paper .receipt-real-plays td{font-size:14px!important;letter-spacing:0!important}
}

/* Professional compact specimen: consistent thermal typography, monochrome. */
@media print {
  body>#receipt-paper .receipt-page{font-family:"Courier New","Liberation Mono",monospace!important;font-size:12px!important;line-height:1.25!important;font-weight:700!important;font-variant-numeric:tabular-nums!important;padding-top:2mm!important;padding-bottom:3mm!important}
  body>#receipt-paper .receipt-title{min-height:0!important;gap:.8mm!important;margin:0 0 2mm!important}
  body>#receipt-paper .receipt-title .receipt-brand{font-size:22px!important;line-height:1.1!important;font-weight:700!important;letter-spacing:0!important}
  body>#receipt-paper .receipt-title .receipt-group{font-size:11px!important;line-height:1.2!important;font-weight:700!important;letter-spacing:0!important}
  body>#receipt-paper :is(.receipt-meta,.receipt-ticket-code,.receipt-payment-code){font-size:11px!important;line-height:1.3!important;font-weight:400!important;letter-spacing:0!important;margin-bottom:1mm!important}
  body>#receipt-paper .receipt-payment-code{font-weight:700!important}
  body>#receipt-paper .receipt-draw-summary{font-size:14px!important;line-height:1.2!important;font-weight:700!important;letter-spacing:0!important}
  body>#receipt-paper .receipt-plays th{font-family:"Courier New","Liberation Mono",monospace!important;font-size:10px!important;font-weight:700!important;line-height:1.25!important;padding-top:.6mm!important;padding-bottom:.9mm!important;letter-spacing:0!important}
  body>#receipt-paper .receipt-plays td,
  body>#receipt-paper .receipt-plays:not(.receipt-real-plays) td.receipt-amount{font-family:"Courier New","Liberation Mono",monospace!important;font-size:12px!important;font-weight:700!important;line-height:1.25!important;font-variant-numeric:tabular-nums!important;letter-spacing:0!important;padding-top:.8mm!important;padding-bottom:.8mm!important}
  body>#receipt-paper .receipt-total{font-size:16px!important;line-height:1.25!important;font-weight:700!important;letter-spacing:0!important;margin-top:1mm!important}
  body>#receipt-paper .receipt-custom-footer{font-size:10px!important;line-height:1.3!important;font-weight:400!important;margin-top:2mm!important;padding-bottom:0!important}
  body>#receipt-paper .receipt-divider{border-color:#888!important;margin:1.5mm 0!important}
  body>#receipt-paper .receipt-plays:not(.receipt-real-plays) :is(th,td):nth-child(3){border-left-color:#bbb!important}
}

@media print {
  body>#receipt-paper .receipt-plays:not(.receipt-real-plays) td,
  body>#receipt-paper .receipt-real-plays td{font-size:12px!important;font-weight:700!important;line-height:1.25!important;letter-spacing:0!important}
}

@media print {
 body>#receipt-paper .receipt-draw-summary.receipt-combined-heading{font-size:14px!important;line-height:1.2!important;white-space:normal!important;letter-spacing:0!important}
 body>#receipt-paper .receipt-custom-footer.receipt-thanks{white-space:normal!important;overflow-wrap:anywhere!important;font-size:10px!important}
}

/* User reference: dense paired thermal rows, consistent numeric typography. */
@media print {
 body>#receipt-paper .receipt-page{line-height:1.1!important}
 body>#receipt-paper .receipt-plays:not(.receipt-real-plays) :is(th,td):nth-child(odd){width:26%!important}
 body>#receipt-paper .receipt-plays:not(.receipt-real-plays) :is(th,td):nth-child(even){width:24%!important}
 body>#receipt-paper .receipt-plays:not(.receipt-real-plays) :is(th,td):nth-child(3){border-left:0!important;padding-left:1mm!important}
 body>#receipt-paper .receipt-plays th{font-size:11px!important;font-weight:400!important;line-height:1.1!important;padding-top:.5mm!important;padding-bottom:.7mm!important}
 body>#receipt-paper .receipt-plays:not(.receipt-real-plays) td,
 body>#receipt-paper .receipt-plays:not(.receipt-real-plays) td.receipt-amount,
 body>#receipt-paper .receipt-real-plays td{font-size:13px!important;font-weight:400!important;line-height:1.1!important;padding-top:.35mm!important;padding-bottom:.35mm!important}
 body>#receipt-paper .receipt-divider{height:0!important;border:0!important;border-top:3px double #777!important;margin:1.5mm 0!important}
 body>#receipt-paper .receipt-total{font-size:18px!important;font-weight:700!important;line-height:1.15!important;margin-top:1mm!important}
 body>#receipt-paper .receipt-title .receipt-brand{font-size:20px!important;font-weight:700!important}
 body>#receipt-paper .receipt-title .receipt-group{font-size:13px!important;font-weight:400!important}
 body>#receipt-paper .receipt-draw-summary{font-size:14px!important;font-weight:400!important}
}

/* Final requested local specimen: larger uniform digits, space-only pairing. */
@media print {
 body>#receipt-paper .receipt-page{padding-left:1mm!important;padding-right:1mm!important}
 body>#receipt-paper .receipt-plays:not(.receipt-real-plays) :is(th,td):nth-child(odd){width:24%!important}
 body>#receipt-paper .receipt-plays:not(.receipt-real-plays) :is(th,td):nth-child(even){width:26%!important}
 body>#receipt-paper .receipt-plays:not(.receipt-real-plays) :is(th,td):nth-child(2){padding-right:.2mm!important}
 body>#receipt-paper .receipt-plays:not(.receipt-real-plays) :is(th,td):nth-child(3){border:0!important;padding-left:1mm!important}
 body>#receipt-paper .receipt-plays:not(.receipt-real-plays) td,
 body>#receipt-paper .receipt-plays:not(.receipt-real-plays) td.receipt-amount{font-size:17px!important;font-weight:700!important;line-height:1.15!important;padding-top:.5mm!important;padding-bottom:.5mm!important;white-space:nowrap!important}
}

@media print {
 body>#receipt-paper .receipt-plays:not(.receipt-real-plays) :is(th,td):nth-child(3){padding-left:2mm!important;border:0!important}
}

@media print { html:has(body>#receipt-paper){width:80mm!important;max-width:80mm!important} body>#receipt-paper{width:68mm!important;max-width:68mm!important;margin-left:6mm!important;margin-right:6mm!important} body>#receipt-paper .receipt-page{width:68mm!important;max-width:68mm!important;box-sizing:border-box!important} }

/* Keep paired plays legible on 80mm paper without changing receipt data. */
@media print {
 body>#receipt-paper:is(.receipt-compact,:not(.receipt-compact)) .receipt-page{padding-left:1mm!important;padding-right:1mm!important}
 body>#receipt-paper:is(.receipt-compact,:not(.receipt-compact)) .receipt-plays:not(.receipt-real-plays){table-layout:fixed!important;width:100%!important;border-collapse:collapse!important}
 body>#receipt-paper:is(.receipt-compact,:not(.receipt-compact)) .receipt-plays:not(.receipt-real-plays) :is(th,td):nth-child(odd){width:27%!important}
 body>#receipt-paper:is(.receipt-compact,:not(.receipt-compact)) .receipt-plays:not(.receipt-real-plays) :is(th,td):nth-child(even){width:23%!important}
 /* A blank gutter replaces the divider, separating amount from the next play. */
 body>#receipt-paper:is(.receipt-compact,:not(.receipt-compact)) .receipt-plays:not(.receipt-real-plays) :is(th,td):nth-child(2){padding-right:2mm!important}
 body>#receipt-paper:is(.receipt-compact,:not(.receipt-compact)) .receipt-plays:not(.receipt-real-plays) :is(th,td):nth-child(3){padding-left:2mm!important;border-left:0!important}
 body>#receipt-paper:is(.receipt-compact,:not(.receipt-compact)) .receipt-custom-footer.receipt-thanks{font:700 12px/1.5 Arial,Helvetica,sans-serif!important;letter-spacing:0!important;white-space:pre-line!important;overflow-wrap:normal!important;word-break:normal!important;text-align:center!important;color:#000!important;margin:2mm 0 0!important}
}

/* 80mm thermal paper: use the 72mm print head, keeping only hardware margins.
   Equal half-ticket tracks retain a blank central gutter and two plays per row. */
@media print {
 body>#receipt-paper:is(.receipt-compact,:not(.receipt-compact)){width:72mm!important;max-width:72mm!important;margin-left:4mm!important;margin-right:4mm!important}
 body>#receipt-paper:is(.receipt-compact,:not(.receipt-compact)) .receipt-page{width:72mm!important;max-width:72mm!important;padding-left:0!important;padding-right:0!important;color:#000!important}
 body>#receipt-paper:is(.receipt-compact,:not(.receipt-compact)) .receipt-plays:not(.receipt-real-plays) :is(th,td):nth-child(2){padding-right:1mm!important}
 body>#receipt-paper:is(.receipt-compact,:not(.receipt-compact)) .receipt-plays:not(.receipt-real-plays) :is(th,td):nth-child(3){padding-left:1mm!important;border-left:0!important}
 body>#receipt-paper:is(.receipt-compact,:not(.receipt-compact)) .receipt-plays:not(.receipt-real-plays) td{font:700 19px/1.2 Arial,Helvetica,sans-serif!important;font-variant-numeric:tabular-nums!important;letter-spacing:0!important;color:#000!important}
 body>#receipt-paper:is(.receipt-compact,:not(.receipt-compact)) .receipt-plays th{font:700 13px/1.3 Arial,Helvetica,sans-serif!important;color:#000!important}
 body>#receipt-paper:is(.receipt-compact,:not(.receipt-compact)) .receipt-title .receipt-brand{font-size:25px!important}
 body>#receipt-paper:is(.receipt-compact,:not(.receipt-compact)) :is(.receipt-meta,.receipt-ticket-code,.receipt-payment-code){font:700 13px/1.3 Arial,Helvetica,sans-serif!important;color:#000!important}
 body>#receipt-paper:is(.receipt-compact,:not(.receipt-compact)) .receipt-draw-summary{font:700 17px/1.3 Arial,Helvetica,sans-serif!important;color:#000!important}
 body>#receipt-paper:is(.receipt-compact,:not(.receipt-compact)) .receipt-total{font-size:23px!important;color:#000!important}
 body>#receipt-paper:is(.receipt-compact,:not(.receipt-compact)) .receipt-custom-footer.receipt-thanks{font-size:14px!important;line-height:1.4!important}
}

/* Match the existing compact Results actions. */
@media screen { .pos-results-tv{display:inline-flex;align-items:center;justify-content:center;gap:5px;min-height:36px;padding:6px 10px;border:1px solid #cbd5e1;border-radius:6px;background:transparent;color:inherit;font:600 13px/1.2 system-ui;cursor:pointer}.pos-results-tv svg{flex:none}.seller-tv-dialog::backdrop{background:#0006} }

/* Preserve large digits and physical margins; give paired entries a clear center gap. */
@media print {
 body>#receipt-paper:is(.receipt-compact,:not(.receipt-compact)) .receipt-plays:not(.receipt-real-plays) :is(th,td):nth-child(2){padding-right:2mm!important}
 body>#receipt-paper:is(.receipt-compact,:not(.receipt-compact)) .receipt-plays:not(.receipt-real-plays) :is(th,td):nth-child(3){padding-left:2mm!important}
}
@media print {
 body>#receipt-paper:is(.receipt-compact,:not(.receipt-compact)) .receipt-plays:not(.receipt-real-plays) :is(th,td):nth-child(n){width:25%!important}
}

/* Center within the printer's available area, not a fixed left offset.
   Drivers may expose 72mm rather than the full 80mm roll width. */
@media print {
 html:has(body>#receipt-paper){width:auto!important;max-width:100%!important;margin:0!important;padding:0!important}
 body:has(>#receipt-paper){width:100%!important;margin:0!important;padding:0!important}
 body>#receipt-paper:is(.receipt-compact,:not(.receipt-compact)){width:calc(100% - 4mm)!important;max-width:72mm!important;margin-left:auto!important;margin-right:auto!important;box-sizing:border-box!important}
 body>#receipt-paper:is(.receipt-compact,:not(.receipt-compact)) .receipt-page{width:100%!important;max-width:72mm!important}
}
@media print {
 body>#receipt-paper:is(.receipt-compact,:not(.receipt-compact)){container-type:inline-size}
 @container (max-width:69mm) {
  body>#receipt-paper:is(.receipt-compact,:not(.receipt-compact)) .receipt-plays:not(.receipt-real-plays) td{font-size:18px!important}
 }
}

/* Override the legacy compact-profile 80mm root too: it must fit the driver. */
@media print {
 html:has(body>#receipt-paper:is(.receipt-compact,:not(.receipt-compact))){width:auto!important;max-width:100%!important;min-width:0!important;margin:0!important;padding:0!important}
 body:has(>#receipt-paper:is(.receipt-compact,:not(.receipt-compact))){width:100%!important;max-width:100%!important;min-width:0!important;margin:0!important;padding:0!important}
}
@media print {
 @container (max-width:65mm) {
  body>#receipt-paper:is(.receipt-compact,:not(.receipt-compact)) .receipt-plays:not(.receipt-real-plays) td{font-size:17px!important}
 }
}

/* v106: layout inside the printer's 72mm head, not the nominal 80mm roll.
   Do not center a 72mm block in an 80mm driver canvas: the final amount can
   then exceed the print head. Reserve 2mm inside each side of the head. */
@media print {
 body>#receipt-paper[data-printer-profile]:is(.receipt-compact,:not(.receipt-compact)){
   width:min(100%,var(--receipt-printable-width,72mm))!important;
   max-width:var(--receipt-printable-width,72mm)!important;
   margin:0!important;padding:0 2mm!important;box-sizing:border-box!important;
 }
 body>#receipt-paper[data-printer-profile]:is(.receipt-compact,:not(.receipt-compact)) .receipt-page{
   width:100%!important;max-width:100%!important;margin:0!important;
   padding-left:0!important;padding-right:0!important;box-sizing:border-box!important;
 }
 body>#receipt-paper[data-printer-profile]:is(.receipt-compact,:not(.receipt-compact)) .receipt-plays:not(.receipt-real-plays) td{font-size:18px!important}
 body>#receipt-paper[data-printer-profile]:is(.receipt-compact,:not(.receipt-compact)) .receipt-plays th{font-size:12px!important}
 body>#receipt-paper[data-printer-profile]:is(.receipt-compact,:not(.receipt-compact)) .receipt-plays:not(.receipt-real-plays) :is(th,td):nth-child(2){padding-right:1mm!important}
 body>#receipt-paper[data-printer-profile]:is(.receipt-compact,:not(.receipt-compact)) .receipt-plays:not(.receipt-real-plays) :is(th,td):nth-child(3){padding-left:1mm!important}
 body>#receipt-paper[data-printer-profile]:is(.receipt-compact,:not(.receipt-compact)) :is(.receipt-meta,.receipt-ticket-code,.receipt-payment-code){min-height:1.3em;white-space:nowrap!important}
}

/* Star-specific driver allowance: preserve the digit size, constrain the
   document canvas too, and avoid inherited centering in a wider driver page. */
@media print{
 html:has(body>#receipt-paper[data-printer-profile="STAR_TSP143IIIU"]){width:68mm!important;max-width:100%!important;min-width:0!important;margin:0!important;padding:0!important}
 body:has(>#receipt-paper[data-printer-profile="STAR_TSP143IIIU"]){width:100%!important;max-width:100%!important;min-width:0!important;margin:0!important;padding:0!important}
 body>#receipt-paper[data-printer-profile="STAR_TSP143IIIU"]:is(.receipt-compact,:not(.receipt-compact)){
  width:100%!important;max-width:68mm!important;box-sizing:border-box!important;margin:0!important;padding:0 2mm!important;
 }
 body>#receipt-paper[data-printer-profile="STAR_TSP143IIIU"]:is(.receipt-compact,:not(.receipt-compact)) .receipt-page{
  width:100%!important;max-width:100%!important;min-width:0!important;box-sizing:border-box!important;padding-left:0!important;padding-right:0!important;
 }
}

/* Star / Chrome 72mm: reserve a further 2mm at each table edge. Keep the
   existing 18px digits; let complete amounts size their columns instead of
   positioning a span past a percentage-sized table cell. The empty middle
   track separates paired plays without adding a printed divider. */
@media print{
 @page soley-star-receipt{size:auto;margin:0}
 html:has(body>#receipt-paper[data-printer-profile="STAR_TSP143IIIU"]),body:has(>#receipt-paper[data-printer-profile="STAR_TSP143IIIU"]){background:#fff!important}
 body>#receipt-paper[data-printer-profile="STAR_TSP143IIIU"]{page:soley-star-receipt}
 body>#receipt-paper[data-printer-profile="STAR_TSP143IIIU"]:is(.receipt-compact,:not(.receipt-compact)) .receipt-plays:not(.receipt-real-plays){
  display:grid!important;width:calc(100% - 4mm)!important;max-width:calc(100% - 4mm)!important;margin-left:2mm!important;margin-right:2mm!important;
  grid-template-columns:minmax(0,1fr) max-content 1mm minmax(0,1fr) max-content;column-gap:.2mm;align-items:start;
 }
 body>#receipt-paper[data-printer-profile="STAR_TSP143IIIU"]:is(.receipt-compact,:not(.receipt-compact)) .receipt-plays:not(.receipt-real-plays) :is(thead,tbody,tr){display:contents!important}
 body>#receipt-paper[data-printer-profile="STAR_TSP143IIIU"]:is(.receipt-compact,:not(.receipt-compact)) .receipt-plays:not(.receipt-real-plays) :is(th,td):nth-child(n){
  display:block!important;width:auto!important;min-width:0!important;padding-left:0!important;padding-right:0!important;letter-spacing:0!important;white-space:nowrap!important;
 }
 body>#receipt-paper[data-printer-profile="STAR_TSP143IIIU"]:is(.receipt-compact,:not(.receipt-compact)) .receipt-plays:not(.receipt-real-plays) :is(th,td):nth-child(1){grid-column:1}
 body>#receipt-paper[data-printer-profile="STAR_TSP143IIIU"]:is(.receipt-compact,:not(.receipt-compact)) .receipt-plays:not(.receipt-real-plays) :is(th,td):nth-child(2){grid-column:2}
 body>#receipt-paper[data-printer-profile="STAR_TSP143IIIU"]:is(.receipt-compact,:not(.receipt-compact)) .receipt-plays:not(.receipt-real-plays) :is(th,td):nth-child(3){grid-column:4}
 body>#receipt-paper[data-printer-profile="STAR_TSP143IIIU"]:is(.receipt-compact,:not(.receipt-compact)) .receipt-plays:not(.receipt-real-plays) :is(th,td):nth-child(4){grid-column:5}
 body>#receipt-paper[data-printer-profile="STAR_TSP143IIIU"]:is(.receipt-compact,:not(.receipt-compact)) .receipt-amount-value{position:static;left:auto;transform:none;margin-left:auto}
}

/* Collection closeout: one palette; only the amount due gets visual emphasis. */
.sales-history-admin-balances{grid-template-columns:repeat(4,minmax(0,1fr))}
.sales-history-admin .sales-history-group-labels,.sales-history-admin .sales-history-group>summary{grid-template-columns:minmax(180px,2fr) repeat(4,minmax(100px,1fr))}
@media(max-width:900px){
 .sales-history-admin-balances{grid-template-columns:repeat(2,minmax(0,1fr))}
 .sales-history-admin .sales-history-group-labels,.sales-history-admin .sales-history-group>summary{grid-template-columns:minmax(140px,1.5fr) repeat(4,minmax(75px,1fr))}
}
@media(max-width:600px){
 .sales-history-admin-balances{grid-template-columns:1fr}
 .sales-history-admin .sales-history-group-labels{display:none}
 .sales-history-admin .sales-history-group>summary{grid-template-columns:1fr 1fr}
 .sales-history-admin .sales-history-group>summary .sales-history-group-name{grid-column:1/-1}
}
.weekly-split-with-collection :is(.weekly-split-kicker,h2,.weekly-split-range){color:#17324c}
.weekly-split-with-collection .weekly-split-row{background:#fff;border-color:#d5e2ec}
.weekly-split-with-collection .weekly-split-row:not(.split-rojo) :is(strong,b){color:#17324c}
.weekly-split-with-collection .weekly-split-row strong{font-size:16px;line-height:1.4}
.weekly-split-with-collection .weekly-split-row b{font-size:20px}
.weekly-split-with-collection .split-collection-total{margin-top:8px;padding:20px 16px;background:#17324c;border:2px solid #17324c}
.weekly-split-with-collection .split-collection-total:not(.split-rojo) :is(strong,b){color:#fff}
.weekly-split-with-collection .split-collection-total strong{font-size:17px;font-weight:800}
.weekly-split-with-collection .split-collection-total b{font-size:32px;font-weight:900;white-space:nowrap}
@media(max-width:420px){
 .weekly-split-with-collection .split-collection-total{padding:16px 10px;grid-template-columns:1fr}
 .weekly-split-with-collection .split-collection-total b{font-size:32px;text-align:right}
}
@media print{
 #weekly-split-print-paper .split-collection-total{border:2px solid #000!important;padding:3mm 1mm!important;grid-template-columns:1fr!important}
 #weekly-split-print-paper .split-collection-total b{font-size:24px!important;font-weight:900!important;white-space:nowrap!important}
}
