:root{
  --green:#006b4f;--green-2:#008b61;--green-3:#0aa36f;--green-dark:#004d3a;
  --mint:#e9f7f1;--bg:#f3f7f6;--text:#172033;--muted:#667085;--line:#dfe8e6;
  --blue:#2f80ed;--orange:#f5a623;--red:#ef3340;--card:#fff;--shadow:0 12px 34px rgba(20,58,48,.09);
}
*{box-sizing:border-box}html,body{margin:0;min-height:100%;font-family:Inter,Segoe UI,Arial,sans-serif;color:var(--text);background:var(--bg)}
a{color:inherit;text-decoration:none}button,input,select,textarea{font:inherit}.icon{flex:0 0 auto}.hidden{display:none!important}
.app-shell{min-height:100vh;display:flex}.sidebar{width:270px;background:linear-gradient(180deg,#006348,#004f3b);color:#fff;padding:18px 14px 14px;display:flex;flex-direction:column;position:fixed;inset:0 auto 0 0;z-index:40;box-shadow:8px 0 28px rgba(0,0,0,.08)}
.brand{display:flex;gap:12px;align-items:center;padding:0 8px 10px}.brand img{width:74px;height:74px;object-fit:contain;border-radius:14px;background:rgba(255,255,255,.06)}.brand strong{font-size:21px;display:block}.brand span{font-size:13px;opacity:.88;display:block;margin-top:3px}
.sidebar-office{text-align:center;border-top:1px solid rgba(255,255,255,.12);border-bottom:1px solid rgba(255,255,255,.12);padding:12px 4px 14px;margin-bottom:10px}.sidebar-office strong,.sidebar-office b{display:block;font-size:12px;line-height:1.35}.sidebar-office b{margin-top:9px}.sidebar-office span{display:block;font-size:11px;opacity:.88;margin-top:2px}
.nav-menu{display:flex;flex-direction:column;gap:5px}.nav-item{display:flex;align-items:center;gap:12px;border-radius:9px;padding:12px 13px;color:#fff;font-size:15px;opacity:.94;transition:.16s ease}.nav-item:hover{background:rgba(255,255,255,.10)}.nav-item.active{background:linear-gradient(90deg,#0aad75,#059565);box-shadow:inset 4px 0 0 #3be4a2;opacity:1}.sidebar-spacer{flex:1}.sidebar-user{display:flex;align-items:center;gap:10px;padding:12px 10px;border-top:1px solid rgba(255,255,255,.15)}.sidebar-user strong,.sidebar-user span{display:block}.sidebar-user span{font-size:12px;opacity:.8}.avatar{display:grid!important;place-items:center;width:40px;height:40px;border-radius:50%;background:#f5fbf8;color:var(--green);font-weight:800;font-size:18px;flex:0 0 auto}
.main-column{margin-left:270px;min-width:0;flex:1;min-height:100vh;display:flex;flex-direction:column}.topbar{height:76px;background:#fff;border-bottom:1px solid var(--line);display:flex;align-items:center;padding:0 28px;position:sticky;top:0;z-index:30}.topbar-brand{display:flex;align-items:center;gap:10px}.topbar-brand img{width:48px;height:48px;object-fit:contain}.topbar-brand strong{font-size:18px;display:block}.topbar-brand span{font-size:13px;color:#2f7464}.topbar-right{margin-left:auto;display:flex;align-items:center;gap:25px}.datetime{display:flex;align-items:center;gap:9px;color:#174c40;font-size:13px;text-align:right}.top-user{display:flex;align-items:center;gap:10px;border-left:1px solid var(--line);padding-left:22px}.top-user strong{display:block;font-size:14px}.top-user span{display:block;font-size:12px;color:var(--muted)}.mobile-menu{display:none}
.content{padding:26px 28px 34px;flex:1;background:radial-gradient(circle at 95% 10%,rgba(0,139,97,.045),transparent 24%),var(--bg)}.footer{display:flex;justify-content:space-between;gap:20px;padding:14px 28px;border-top:1px solid var(--line);background:#fff;color:#667085;font-size:12px}
.page-head{display:flex;align-items:flex-end;justify-content:space-between;gap:20px;margin-bottom:20px}.page-head h1{margin:0;font-size:36px;letter-spacing:-1.2px;color:#101828}.page-head p{margin:5px 0 0;color:#5d6b7d;font-size:16px}.page-actions{display:flex;gap:10px;flex-wrap:wrap}
.card{background:var(--card);border:1px solid var(--line);border-radius:14px;box-shadow:var(--shadow)}.card-pad{padding:20px}.section-title{margin:0 0 4px;font-size:20px}.section-subtitle{margin:0 0 18px;color:var(--muted)}
.grid{display:grid;gap:16px}.grid-4{grid-template-columns:repeat(4,minmax(0,1fr))}.grid-3{grid-template-columns:repeat(3,minmax(0,1fr))}.grid-2{grid-template-columns:repeat(2,minmax(0,1fr))}
.stat{padding:18px;border-radius:12px;color:#fff;min-height:112px;display:flex;flex-direction:column;justify-content:space-between;box-shadow:0 10px 24px rgba(0,0,0,.08)}.stat .value{font-size:32px;font-weight:800}.stat .label{font-size:13px;opacity:.92}.stat.blue{background:linear-gradient(135deg,#2e7df5,#1f69d8)}.stat.green{background:linear-gradient(135deg,#20b36e,#0b9258)}.stat.orange{background:linear-gradient(135deg,#ffad1f,#f38d00)}.stat.red{background:linear-gradient(135deg,#ff455a,#e72539)}
.btn{border:0;border-radius:9px;padding:11px 15px;display:inline-flex;align-items:center;justify-content:center;gap:8px;font-weight:700;cursor:pointer;transition:.15s;min-height:42px}.btn:hover{transform:translateY(-1px)}.btn-primary{background:linear-gradient(180deg,#07985f,#006b4f);color:#fff}.btn-secondary{background:#eef3f2;color:#273444}.btn-blue{background:#2f80ed;color:#fff}.btn-danger{background:#ef3340;color:#fff}.btn-warning{background:#f5a623;color:#fff}.btn-outline{background:#fff;border:1px solid #cfd9d7;color:#344054}.btn-sm{padding:7px 10px;min-height:34px;font-size:13px}.btn-block{width:100%}
.icon-btn{border:0;background:transparent;display:grid;place-items:center;padding:8px;border-radius:8px;cursor:pointer;color:var(--green)}.icon-btn:hover{background:#eef8f4}
.form-row{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.form-group{display:flex;flex-direction:column;gap:7px;margin-bottom:14px}.form-group label{font-weight:700;font-size:13px;color:#344054}.input,.select,.textarea{width:100%;border:1px solid #cfd9df;background:#fff;border-radius:8px;padding:11px 12px;color:#172033;outline:none;transition:.14s}.input:focus,.select:focus,.textarea:focus{border-color:#0aa36f;box-shadow:0 0 0 3px rgba(10,163,111,.11)}.textarea{min-height:100px;resize:vertical}.input-with-icon{position:relative}.input-with-icon .icon{position:absolute;left:12px;top:50%;transform:translateY(-50%);color:#667085}.input-with-icon .input{padding-left:42px}
.alert{border-radius:9px;padding:12px 14px;margin-bottom:16px;border:1px solid}.alert.success{background:#ecfdf3;border-color:#abefc6;color:#05603a}.alert.error{background:#fef3f2;border-color:#fecdca;color:#b42318}.alert.warning{background:#fffaeb;border-color:#fedf89;color:#93370d}.alert.info{background:#eff8ff;border-color:#b2ddff;color:#175cd3}
.table-wrap{overflow:auto;border:1px solid var(--line);border-radius:10px}.table{border-collapse:collapse;width:100%;min-width:820px;background:#fff}.table th,.table td{padding:12px 13px;border-bottom:1px solid #e8efed;text-align:left;font-size:13px;vertical-align:middle}.table th{background:#f6f8f8;font-weight:800;color:#263346}.table tr:last-child td{border-bottom:0}.table tr:hover td{background:#fbfdfc}.token-text{font-weight:800;color:var(--green);font-size:16px}.status{display:inline-flex;align-items:center;gap:7px;padding:5px 10px;border-radius:999px;font-size:12px;font-weight:700}.status:before{content:"";width:7px;height:7px;border-radius:50%;background:currentColor}.status.waiting{background:#fff3d6;color:#b66a00}.status.called,.status.serving,.status.active{background:#daf9e6;color:#078549}.status.completed{background:#e7f0ff;color:#286cc7}.status.inactive,.status.cancelled{background:#f1f3f5;color:#7b8593}.status.skipped{background:#fff0f0;color:#d73545}
.toolbar{display:flex;gap:10px;align-items:center;margin-bottom:14px;flex-wrap:wrap}.toolbar .grow{flex:1;min-width:260px}.tabs{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin-bottom:14px}.tab{padding:12px;border-radius:8px;background:#eef1f2;color:#344054;text-align:center;font-weight:700;border:0;cursor:pointer}.tab.active{background:linear-gradient(180deg,#07985f,#006b4f);color:#fff}.tabs-5{grid-template-columns:repeat(5,1fr)}
.quick-actions{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}.quick-card{border-radius:10px;padding:16px;color:#fff;display:flex;align-items:center;justify-content:space-between;min-height:90px}.quick-card strong{font-size:14px}.quick-card.blue{background:#2f80ed}.quick-card.green{background:#22a85f}.quick-card.orange{background:#f4a11a}.quick-card.red{background:#ef3340}
.chart{height:255px;display:flex;align-items:flex-end;gap:10px;padding:22px 10px 28px;border-left:1px solid #e4ecea;border-bottom:1px solid #e4ecea}.bar-wrap{flex:1;min-width:22px;display:flex;flex-direction:column;justify-content:flex-end;align-items:center;height:100%;gap:5px}.bar{width:70%;max-width:34px;background:linear-gradient(180deg,#22a85f,#087449);border-radius:5px 5px 0 0;min-height:4px}.bar-label{font-size:10px;color:#77818f;white-space:nowrap}
.kpi-line{display:flex;align-items:center;justify-content:space-between;gap:10px}.muted{color:var(--muted)}.small{font-size:12px}.text-right{text-align:right}.text-center{text-align:center}.mt-16{margin-top:16px}.mb-16{margin-bottom:16px}.stack{display:flex;flex-direction:column;gap:10px}
.modal-backdrop{position:fixed;inset:0;background:rgba(7,31,24,.52);display:none;align-items:center;justify-content:center;padding:20px;z-index:80}.modal-backdrop.open{display:flex}.modal{background:#fff;width:min(620px,96vw);max-height:92vh;overflow:auto;border-radius:14px;box-shadow:0 25px 80px rgba(0,0,0,.25)}.modal-head{display:flex;align-items:center;justify-content:space-between;padding:18px 20px;border-bottom:1px solid var(--line)}.modal-head h3{margin:0}.modal-body{padding:20px}.modal-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:16px}
.switch-row{display:flex;align-items:flex-start;gap:12px;margin-bottom:15px}.switch{position:relative;width:47px;height:26px;display:inline-block;flex:0 0 auto}.switch input{opacity:0;width:0;height:0}.switch span{position:absolute;inset:0;background:#b6c2ca;border-radius:999px;transition:.2s}.switch span:before{content:"";position:absolute;width:20px;height:20px;left:3px;top:3px;background:#fff;border-radius:50%;transition:.2s;box-shadow:0 2px 4px rgba(0,0,0,.2)}.switch input:checked+span{background:#07985f}.switch input:checked+span:before{transform:translateX(21px)}.switch-copy strong{display:block}.switch-copy small{display:block;color:var(--muted);margin-top:2px}
.report-options{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:12px}.report-card{color:#fff;border-radius:10px;min-height:215px;padding:20px 15px;display:flex;flex-direction:column;justify-content:flex-end;position:relative;overflow:hidden}.report-card .big-icon{position:absolute;top:25px;left:20px;opacity:.95}.report-card h3{margin:0 0 8px;font-size:18px}.report-card p{font-size:12px;line-height:1.5;opacity:.94}.report-card.blue{background:linear-gradient(150deg,#3788ff,#2a69d4)}.report-card.green{background:linear-gradient(150deg,#24b56f,#0a8e59)}.report-card.orange{background:linear-gradient(150deg,#ffae22,#f58e00)}.report-card.red{background:linear-gradient(150deg,#ff4659,#e92d3f)}
.kiosk-body{min-height:100vh;background:#eef5f2}.kiosk-top{height:72px;background:linear-gradient(90deg,#006b4f,#00523d);color:#fff;display:flex;align-items:center;padding:0 28px;gap:12px}.kiosk-top img{width:48px;height:48px;object-fit:contain}.kiosk-top strong{display:block;font-size:17px}.kiosk-top span{display:block;font-size:12px;opacity:.88}.kiosk-links{margin-left:auto;display:flex;gap:10px}.kiosk-main{width:min(980px,94vw);margin:30px auto;padding-bottom:30px}.service-list{display:grid;gap:10px}.service-option{width:100%;display:flex;align-items:center;gap:14px;background:#fff;border:1px solid var(--line);border-radius:10px;padding:15px 16px;cursor:pointer;text-align:left;box-shadow:0 6px 18px rgba(30,70,58,.05);transition:.15s}.service-option:hover{border-color:#0aa36f;transform:translateY(-1px);box-shadow:0 10px 24px rgba(30,70,58,.09)}.service-badge{width:40px;height:40px;border-radius:50%;display:grid;place-items:center;background:#e5f7ef;color:#08754f}.service-option strong{display:block}.service-option small{display:block;color:var(--muted);margin-top:3px}.service-option .arrow{margin-left:auto;font-size:22px;color:#667085}
.token-card{width:min(720px,96%);margin:24px auto;background:#fff;border:1px solid var(--line);border-radius:14px;padding:25px;box-shadow:var(--shadow);text-align:center}.ticket-shape{border:2px dashed #dce7e3;border-radius:14px;padding:28px}.token-big{font-size:86px;line-height:1;font-weight:900;color:var(--green);letter-spacing:1px;margin:16px 0}.token-meta{display:grid;grid-template-columns:repeat(2,1fr);gap:12px;margin-top:18px}.token-meta>div{background:#eefaf4;border-radius:10px;padding:14px}.token-meta strong{font-size:22px;color:var(--green);display:block}.print-only{display:none}
.live-grid{display:grid;grid-template-columns:1.2fr .8fr;gap:16px}.now-serving{background:linear-gradient(150deg,#07875d,#005c43);color:#fff;border-radius:12px;padding:26px;text-align:center;min-height:300px;display:flex;flex-direction:column;justify-content:center}.now-serving .token{font-size:84px;font-weight:900;line-height:1}.now-serving .counter{font-size:23px;margin-top:10px}.now-serving .service{font-size:16px;opacity:.9;margin-top:10px}.next-list{background:#fff;border:1px solid var(--line);border-radius:12px;overflow:hidden}.next-list h3{margin:0;padding:14px 16px;background:#f7f9f8}.next-item{display:flex;justify-content:space-between;padding:13px 16px;border-top:1px solid var(--line)}.next-item strong{color:var(--green)}.counter-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:12px}.counter-card{background:#fff;border:1px solid var(--line);border-radius:10px;text-align:center;padding:15px}.counter-card span{display:block;color:var(--muted);font-size:11px}.counter-card strong{display:block;font-size:22px;color:var(--green);margin-top:4px}
.login-page{min-height:100vh;background:linear-gradient(rgba(255,255,255,.08),rgba(0,79,59,.05)),url('../img/administration-building.jpg') center/cover no-repeat fixed;display:flex;flex-direction:column;position:relative}.login-page:after{content:"";position:absolute;inset:0;background:linear-gradient(180deg,rgba(255,255,255,.04),rgba(0,76,57,.18));pointer-events:none}.login-hero{position:relative;z-index:1;max-width:780px;margin:18px auto 5px;text-align:center}.login-hero img{width:190px;height:190px;object-fit:contain;filter:drop-shadow(0 8px 18px rgba(0,0,0,.14))}.login-hero h1{margin:0;color:#034b3c;font-size:38px;text-shadow:0 2px 7px #fff}.login-hero h2{margin:5px 0 0;color:#034b3c;font-size:27px}.login-hero p{font-size:18px;margin:6px 0 0}.login-wrap{position:relative;z-index:1;width:min(520px,92vw);margin:12px auto 70px}.login-card{background:rgba(255,255,255,.96);border:1px solid rgba(255,255,255,.8);border-radius:12px;padding:30px 34px;box-shadow:0 20px 60px rgba(0,50,38,.23);backdrop-filter:blur(5px)}.login-card h3{text-align:center;font-size:28px;color:#07553f;margin:0 0 2px}.login-card>p{text-align:center;margin:0 0 20px;color:#4d5c68}.remember-row{display:flex;align-items:center;justify-content:space-between;gap:12px;font-size:13px;margin:3px 0 16px}.login-footer{position:absolute;z-index:1;bottom:0;left:0;right:0;background:#00624b;color:#fff;padding:16px 24px;display:flex;justify-content:center;gap:70px;font-size:12px}
.info-strip{background:#e8f6f0;border:1px solid #d6eee4;padding:13px 16px;border-radius:9px;color:#205d4e}.empty{padding:36px;text-align:center;color:#667085}
.pagination{display:flex;justify-content:flex-end;gap:6px;margin-top:13px}.page-link{padding:8px 11px;border:1px solid var(--line);border-radius:7px;background:#fff}.page-link.active{background:var(--green);color:#fff;border-color:var(--green)}
@media(max-width:1100px){.grid-4{grid-template-columns:repeat(2,1fr)}.report-options{grid-template-columns:repeat(3,1fr)}.quick-actions{grid-template-columns:repeat(2,1fr)}.topbar-brand strong{font-size:15px}.topbar-right{gap:10px}.sidebar{width:235px}.main-column{margin-left:235px}.live-grid{grid-template-columns:1fr}.counter-grid{grid-template-columns:repeat(3,1fr)}}
@media(max-width:820px){.sidebar{transform:translateX(-100%);transition:.22s;width:270px}.sidebar.open{transform:translateX(0)}.main-column{margin-left:0}.mobile-menu{display:grid}.topbar{padding:0 14px}.topbar-brand img{width:40px;height:40px}.topbar-brand strong{font-size:13px}.topbar-brand span{font-size:11px}.top-user,.datetime{display:none}.content{padding:20px 14px}.footer{padding:13px 14px;flex-direction:column}.grid-3,.grid-2,.form-row{grid-template-columns:1fr}.tabs-5{grid-template-columns:1fr 1fr}.report-options{grid-template-columns:1fr 1fr}.page-head{align-items:flex-start;flex-direction:column}.page-head h1{font-size:30px}.counter-grid{grid-template-columns:1fr}.login-hero h1{font-size:28px}.login-hero h2{font-size:21px}.login-hero img{width:150px;height:150px}.login-footer{gap:15px;justify-content:space-between}.token-big{font-size:66px}}
@media(max-width:520px){.grid-4,.quick-actions,.report-options,.token-meta,.tabs,.tabs-5{grid-template-columns:1fr}.login-card{padding:24px 18px}.login-hero{margin-top:8px}.login-hero img{width:125px;height:125px}.login-hero h1{font-size:23px}.login-hero h2{font-size:18px}.login-hero p{font-size:15px}.login-footer{position:relative;margin-top:auto;flex-direction:column;text-align:center}.token-big{font-size:54px}.kiosk-top{padding:0 14px}.kiosk-links .btn span{display:none}}
@media print{.no-print,.sidebar,.topbar,.footer,.page-head .page-actions{display:none!important}.main-column{margin:0}.content{padding:0;background:#fff}.card{box-shadow:none;border-color:#bbb}.print-only{display:block}.token-card{box-shadow:none;border:0}.ticket-shape{border:1px dashed #999}}

body.dark{--bg:#0f1715;--card:#17211e;--text:#eef5f2;--muted:#a9b8b3;--line:#2c3b36;background:#0f1715;color:var(--text)}body.dark .content{background:#0f1715}body.dark .topbar,body.dark .footer,body.dark .card,body.dark .table,body.dark .input,body.dark .select,body.dark .textarea,body.dark .next-list,body.dark .counter-card{background:#17211e;color:#eef5f2;border-color:#2c3b36}body.dark .table th{background:#202d29;color:#eef5f2}body.dark .table tr:hover td{background:#1b2924}body.dark .page-head h1,body.dark .section-title{color:#f6fbf9}body.dark .tab{background:#23312d;color:#d9e5e1}body.dark .btn-outline{background:#17211e;color:#eef5f2;border-color:#3b4d47}body.dark .input,body.dark .select,body.dark .textarea{color:#eef5f2}body.dark .input::placeholder{color:#8fa19b}body.dark .info-strip{background:#193027;border-color:#2d5144;color:#cde9df}

/* V1.2 service token-series badge */
.service-prefix{font-size:22px;font-weight:900;letter-spacing:.04em;color:#fff;background:var(--green);display:grid;place-items:center}

/* V1.3 login, kiosk/tablet and 80mm receipt refinements */
.login-page-clean{justify-content:center;padding:32px 16px;overflow:auto}
.login-page-clean:after{background:linear-gradient(180deg,rgba(255,255,255,.12),rgba(0,76,57,.22))}
.login-wrap-centered{width:min(500px,94vw);margin:auto;display:flex;align-items:center;justify-content:center}
.login-card-clean{width:100%;padding:26px 34px 30px}
.login-logo-wrap{display:flex;justify-content:center;align-items:center;margin:-10px auto 8px;min-height:186px}
.login-card-logo{display:block;width:210px;height:210px;max-width:56vw;max-height:28vh;object-fit:contain;filter:drop-shadow(0 8px 18px rgba(0,70,52,.12))}
.login-card-clean h3{margin-top:0}
.login-link{color:#006b4f;font-weight:700}
.login-secondary-actions{display:flex;gap:8px;margin-top:12px}
.login-secondary-actions .btn{flex:1}
.password-field{position:relative}
.password-field .input{padding-right:48px}
.password-toggle{position:absolute;right:4px;top:50%;transform:translateY(-50%);width:40px;height:40px;border:0;border-radius:8px;background:transparent;color:#52606d;display:grid;place-items:center;cursor:pointer}
.password-toggle:hover,.password-toggle:focus-visible{background:#eef8f4;color:var(--green);outline:none}
.password-toggle .show-icon,.password-toggle .hide-icon{display:grid;place-items:center}
.password-toggle [hidden]{display:none!important}

/* Tablet-first kiosk layout: Android tablets + iPad portrait/landscape */
.kiosk-body{min-height:100dvh;-webkit-text-size-adjust:100%;touch-action:manipulation}
.kiosk-top{min-height:76px;height:auto;padding:max(10px,env(safe-area-inset-top)) max(22px,env(safe-area-inset-right)) 10px max(22px,env(safe-area-inset-left));flex-wrap:wrap}
.kiosk-top img{width:52px;height:52px}
.kiosk-links{align-items:center;flex-wrap:wrap;justify-content:flex-end}
.kiosk-main{width:min(1160px,calc(100vw - 32px));margin:clamp(16px,3vw,32px) auto;padding-bottom:max(30px,env(safe-area-inset-bottom))}
.kiosk-main>.card{border-radius:16px}
.kiosk-main h1{font-size:clamp(28px,4.2vw,42px)!important;line-height:1.1}
.service-list{grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
.service-option{min-height:94px;padding:18px;border-radius:13px;-webkit-tap-highlight-color:transparent}
.service-option:active{transform:scale(.99)}
.service-badge{width:50px;height:50px;flex:0 0 50px}
.service-option strong{font-size:17px}
.service-option small{font-size:13px;line-height:1.35}
.service-option .arrow{font-size:30px}

/* Dedicated counter CRUD */
.counter-kpi{font-size:34px;line-height:1.1;font-weight:900;color:var(--green);margin-top:6px}
.counter-actions{display:flex;gap:6px;flex-wrap:wrap;align-items:center}
.counter-actions form{margin:0}

/* VOZY G80 / generic 80mm thermal receipt */
.receipt-logo{width:82px;height:82px;object-fit:contain}
.receipt-actions{display:flex;gap:10px}
.printer-help{margin:12px auto 0;max-width:620px;line-height:1.45}
.receipt-print-footer{margin-top:3mm;text-align:center;font-size:9.5pt;font-weight:700}
.receipt-cut-feed{height:8mm}

@media (min-width:1180px){
 .service-list{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media (max-width:900px){
 .kiosk-top{gap:10px 12px}
 .kiosk-top>div:nth-child(2){flex:1;min-width:220px}
 .kiosk-links{width:100%;margin-left:64px;justify-content:flex-start}
 .kiosk-links .btn{min-height:46px}
 .service-list{grid-template-columns:repeat(2,minmax(0,1fr))}
 .service-option{min-height:104px}
 .login-page-clean{background-attachment:scroll}
}
@media (max-width:640px){
 .login-page-clean{padding:20px 12px}
 .login-card-clean{padding:22px 18px 24px}
 .login-logo-wrap{min-height:148px}
 .login-card-logo{width:168px;height:168px;max-height:none}
 .login-secondary-actions{flex-direction:column}
 .remember-row{align-items:flex-start;flex-direction:column;gap:9px}
 .kiosk-top{padding:10px 12px}
 .kiosk-top img{width:44px;height:44px}
 .kiosk-top strong{font-size:14px}
 .kiosk-top>div:nth-child(2){min-width:180px}
 .kiosk-links{margin-left:0;justify-content:stretch}
 .kiosk-links .btn{flex:1;padding-inline:10px}
 .service-list{grid-template-columns:1fr}
 .service-option{min-height:88px;padding:14px}
 .receipt-actions{flex-direction:column}
}

@media print{
 html,body.kiosk-body{width:80mm!important;min-width:80mm!important;max-width:80mm!important;margin:0!important;padding:0!important;background:#fff!important}
 body.kiosk-body .kiosk-main.token-page-main{width:80mm!important;max-width:80mm!important;margin:0!important;padding:0!important}
 body.kiosk-body .token-card.receipt-80mm{width:72mm!important;max-width:72mm!important;margin:0 auto!important;padding:2mm!important;border:0!important;border-radius:0!important;box-shadow:none!important;background:#fff!important;color:#000!important}
 body.kiosk-body .ticket-shape{border:0!important;border-radius:0!important;padding:2mm 1.5mm!important}
 body.kiosk-body .receipt-logo{width:22mm!important;height:22mm!important}
 body.kiosk-body .token-big{font-size:34pt!important;line-height:1!important;margin:3mm 0!important;color:#000!important;letter-spacing:.4mm!important}
 body.kiosk-body .ticket-shape h2{font-size:14pt!important;margin:1mm 0!important;color:#000!important}
 body.kiosk-body .ticket-shape p{margin:1.5mm 0!important;font-size:10pt!important;color:#000!important}
 body.kiosk-body .ticket-shape .small{font-size:8.5pt!important;color:#000!important}
 body.kiosk-body .token-meta{grid-template-columns:1fr 1fr!important;gap:1.5mm!important;margin-top:2mm!important}
 body.kiosk-body .token-meta>div{padding:2mm 1mm!important;border:1px solid #bbb!important;border-radius:1mm!important;background:#fff!important;color:#000!important}
 body.kiosk-body .token-meta span{font-size:7.5pt!important;color:#000!important}
 body.kiosk-body .token-meta strong{font-size:12pt!important;color:#000!important;margin-top:.5mm!important}
 body.kiosk-body .receipt-print-footer{display:block!important;color:#000!important}
 body.kiosk-body .receipt-cut-feed{display:block!important;height:8mm!important}
}

/* V1.3.2 exact logo centering + consistent spacing across all system surfaces */
.system-logo{display:block;object-fit:contain;object-position:center center;margin:0 auto;background:transparent!important}

/* Login card: exact horizontal centering and balanced vertical rhythm */
.login-card-clean{display:block;width:100%;padding:28px 34px 30px}
.login-logo-wrap{width:100%;min-height:0;height:auto;display:flex;align-items:center;justify-content:center;margin:0 auto 12px;padding:0;text-align:center}
.login-card-logo{width:220px;height:auto;max-width:min(68vw,220px);max-height:none;aspect-ratio:auto;object-fit:contain;object-position:center;margin:0 auto;filter:drop-shadow(0 8px 18px rgba(0,70,52,.12))}
.login-card-clean h3{text-align:center;margin:0 0 5px;line-height:1.2}
.login-card-clean>p{text-align:center;margin:0 0 22px;line-height:1.45}
.login-card-clean .form-group,.login-card-clean .remember-row{text-align:left}

/* Sidebar brand: logo is centered inside a predictable transparent slot */
.brand{gap:12px;align-items:center;padding:2px 8px 12px}
.brand-logo-wrap{width:76px;height:76px;display:flex;align-items:center;justify-content:center;flex:0 0 76px;padding:2px;background:transparent}
.brand img,.brand-logo{width:72px;height:72px;max-width:100%;max-height:100%;border-radius:0;background:transparent!important;object-fit:contain;object-position:center}

/* Top bar brand */
.topbar-brand{display:flex;align-items:center;gap:10px;min-height:56px}
.topbar-logo-wrap{width:50px;height:50px;display:flex;align-items:center;justify-content:center;flex:0 0 50px;padding:2px}
.topbar-brand img,.topbar-logo{width:46px;height:46px;max-width:100%;max-height:100%;object-fit:contain;object-position:center;margin:0 auto}

/* Kiosk and public queue header */
.kiosk-logo-wrap{width:58px;height:58px;display:flex;align-items:center;justify-content:center;flex:0 0 58px;padding:2px}
.kiosk-top img,.kiosk-logo{width:54px;height:54px;max-width:100%;max-height:100%;object-fit:contain;object-position:center;margin:0 auto}

/* Token/receipt */
.receipt-logo{display:block;width:86px;height:auto;max-height:none;object-fit:contain;object-position:center;margin:0 auto 8px}
.ticket-shape{text-align:center}

/* Forgot/reset password cards */
.auth-page{min-height:100dvh;background:#eef6f3;display:flex;align-items:center;justify-content:center;padding:28px 14px}
.auth-main{width:min(520px,100%);margin:0 auto;padding:0}
.auth-card{width:100%;padding:28px 30px 30px}
.auth-heading{text-align:center;margin:0 0 20px}
.auth-logo-wrap{width:100%;display:flex;align-items:center;justify-content:center;margin:0 auto 10px}
.auth-logo{width:178px;height:auto;max-width:55vw;object-fit:contain;object-position:center;margin:0 auto}
.auth-heading h2{margin:0 0 6px;color:#07553f;line-height:1.2}
.auth-heading p{margin:0;line-height:1.45}

/* Install / update utility pages */
.setup-brand-row{display:flex;align-items:center;gap:15px;margin-bottom:20px}
.setup-logo-wrap{width:90px;height:90px;display:flex;align-items:center;justify-content:center;flex:0 0 90px;padding:2px}
.setup-logo-wrap-sm{width:74px;height:74px;flex-basis:74px}
.setup-logo{width:100%;height:100%;object-fit:contain;object-position:center;margin:auto}

@media(max-width:820px){
 .brand-logo-wrap{width:70px;height:70px;flex-basis:70px}
 .brand img,.brand-logo{width:66px;height:66px}
 .topbar-logo-wrap{width:44px;height:44px;flex-basis:44px}
 .topbar-brand img,.topbar-logo{width:40px;height:40px}
 .kiosk-logo-wrap{width:50px;height:50px;flex-basis:50px}
 .kiosk-top img,.kiosk-logo{width:46px;height:46px}
}
@media(max-width:640px){
 .login-card-clean{padding:24px 18px 26px}
 .login-logo-wrap{min-height:0;margin-bottom:10px}
 .login-card-logo{width:180px;max-width:62vw;height:auto}
 .login-card-clean>p{margin-bottom:18px}
 .auth-page{padding:20px 12px}
 .auth-card{padding:24px 18px 26px}
 .auth-logo{width:150px;max-width:60vw}
 .setup-brand-row{align-items:center;gap:12px}
 .setup-logo-wrap{width:74px;height:74px;flex-basis:74px}
}
@media(max-width:420px){
 .login-card-logo{width:160px;max-width:64vw}
 .auth-logo{width:138px}
 .kiosk-logo-wrap{width:46px;height:46px;flex-basis:46px}
 .kiosk-top img,.kiosk-logo{width:42px;height:42px}
}

@media print{
 body.kiosk-body .receipt-logo{display:block!important;width:22mm!important;height:auto!important;margin:0 auto 2mm!important;object-fit:contain!important;object-position:center!important}
}

/* V1.3.3 HARD LOGO FIX — exact centered geometry + cache-busted assets */
.system-logo{
  display:block!important;
  box-sizing:border-box!important;
  object-fit:contain!important;
  object-position:50% 50%!important;
  background:transparent!important;
  border:0!important;
  border-radius:0!important;
  padding:0!important;
  transform:none!important;
  position:static!important;
}

/* Login: fixed square frame makes optical center independent of image aspect ratio. */
.login-card-clean{
  width:100%!important;
  padding:24px 34px 30px!important;
}
.login-logo-wrap{
  width:224px!important;
  height:224px!important;
  min-width:224px!important;
  min-height:224px!important;
  display:grid!important;
  place-items:center!important;
  margin:0 auto 14px!important;
  padding:0!important;
  line-height:0!important;
  overflow:visible!important;
}
.login-card-logo{
  width:100%!important;
  height:100%!important;
  max-width:100%!important;
  max-height:100%!important;
  margin:0!important;
}
.login-card-clean h3{margin:0 0 6px!important;text-align:center!important}
.login-card-clean>p{margin:0 0 22px!important;text-align:center!important}

/* Password/auth cards */
.auth-heading{display:flex!important;flex-direction:column!important;align-items:center!important;text-align:center!important}
.auth-logo-wrap{
  width:184px!important;height:184px!important;
  display:grid!important;place-items:center!important;
  margin:0 auto 12px!important;padding:0!important;line-height:0!important;
}
.auth-logo{width:100%!important;height:100%!important;max-width:100%!important;max-height:100%!important;margin:0!important}

/* Staff sidebar */
.brand{display:flex!important;align-items:center!important;gap:12px!important}
.brand-logo-wrap{
  width:76px!important;height:76px!important;min-width:76px!important;min-height:76px!important;
  display:grid!important;place-items:center!important;flex:0 0 76px!important;
  margin:0!important;padding:0!important;line-height:0!important;background:transparent!important;
}
.brand-logo,.brand img{width:100%!important;height:100%!important;max-width:100%!important;max-height:100%!important;margin:0!important}

/* Staff topbar */
.topbar-brand{display:flex!important;align-items:center!important;gap:10px!important}
.topbar-logo-wrap{
  width:50px!important;height:50px!important;min-width:50px!important;min-height:50px!important;
  display:grid!important;place-items:center!important;flex:0 0 50px!important;
  margin:0!important;padding:0!important;line-height:0!important;
}
.topbar-logo,.topbar-brand img{width:100%!important;height:100%!important;max-width:100%!important;max-height:100%!important;margin:0!important}

/* Kiosk + live queue + token public header */
.kiosk-logo-wrap{
  width:58px!important;height:58px!important;min-width:58px!important;min-height:58px!important;
  display:grid!important;place-items:center!important;flex:0 0 58px!important;
  margin:0!important;padding:0!important;line-height:0!important;
}
.kiosk-logo,.kiosk-top img{width:100%!important;height:100%!important;max-width:100%!important;max-height:100%!important;margin:0!important}

/* Thermal receipt */
.receipt-logo{
  width:88px!important;height:88px!important;
  max-width:88px!important;max-height:88px!important;
  margin:0 auto 8px!important;
}
.ticket-shape{text-align:center!important}

/* Installer / updater */
.setup-logo-wrap{
  width:90px!important;height:90px!important;min-width:90px!important;min-height:90px!important;
  display:grid!important;place-items:center!important;flex:0 0 90px!important;
  margin:0!important;padding:0!important;line-height:0!important;
}
.setup-logo-wrap-sm{width:76px!important;height:76px!important;min-width:76px!important;min-height:76px!important;flex-basis:76px!important}
.setup-logo{width:100%!important;height:100%!important;max-width:100%!important;max-height:100%!important;margin:0!important}

@media(max-width:820px){
  .login-logo-wrap{width:190px!important;height:190px!important;min-width:190px!important;min-height:190px!important;margin-bottom:12px!important}
  .brand-logo-wrap{width:68px!important;height:68px!important;min-width:68px!important;min-height:68px!important;flex-basis:68px!important}
  .topbar-logo-wrap{width:44px!important;height:44px!important;min-width:44px!important;min-height:44px!important;flex-basis:44px!important}
  .kiosk-logo-wrap{width:50px!important;height:50px!important;min-width:50px!important;min-height:50px!important;flex-basis:50px!important}
}
@media(max-width:520px){
  .login-card-clean{padding:22px 18px 26px!important}
  .login-logo-wrap{width:166px!important;height:166px!important;min-width:166px!important;min-height:166px!important;margin-bottom:10px!important}
  .auth-logo-wrap{width:146px!important;height:146px!important}
  .kiosk-logo-wrap{width:46px!important;height:46px!important;min-width:46px!important;min-height:46px!important;flex-basis:46px!important}
}

@media print{
  body.kiosk-body .receipt-logo{
    width:22mm!important;height:22mm!important;
    max-width:22mm!important;max-height:22mm!important;
    margin:0 auto 2mm!important;
  }
}


/* V1.3.4 receipt color-logo + 80mm autofit */
.receipt-fit{max-width:100%;overflow:hidden}
.receipt-title,.receipt-service,.receipt-message,.receipt-datetime{max-width:100%;overflow-wrap:anywhere;word-break:break-word}
.receipt-title{margin:6px 0 0;font-size:28px;line-height:1.1;color:var(--text)}
.receipt-service{margin:10px 0 0;font-size:22px;line-height:1.2;color:var(--text)}
.receipt-message{margin:8px 0 0;line-height:1.35}
.receipt-datetime{margin-top:8px;line-height:1.35}
.receipt-logo-color{-webkit-print-color-adjust:exact;print-color-adjust:exact;color-adjust:exact}

@media print{
 body.kiosk-body .receipt-80mm,
 body.kiosk-body .receipt-80mm *{-webkit-print-color-adjust:exact!important;print-color-adjust:exact!important;color-adjust:exact!important}
 body.kiosk-body .receipt-fit{max-width:68mm!important;overflow:hidden!important}
 body.kiosk-body .receipt-logo.receipt-logo-color{display:block!important;width:24mm!important;max-width:24mm!important;height:auto!important;margin:0 auto 2mm!important;object-fit:contain!important;object-position:center!important;filter:none!important}
 body.kiosk-body .receipt-title{margin:1.2mm 0 0!important;font-size:12.5pt!important;line-height:1.08!important;color:#000!important;font-weight:800!important}
 body.kiosk-body .receipt-token-no{font-size:33pt!important;line-height:1!important;margin:2.2mm 0 1.6mm!important;color:#000!important;letter-spacing:.3mm!important;font-weight:900!important}
 body.kiosk-body .receipt-service{margin:0!important;font-size:11.5pt!important;line-height:1.18!important;color:#000!important;font-weight:700!important}
 body.kiosk-body .receipt-message{margin:1.8mm 0 0!important;font-size:9.2pt!important;line-height:1.26!important;color:#000!important}
 body.kiosk-body .receipt-datetime{margin-top:1.5mm!important;font-size:8.3pt!important;line-height:1.2!important;color:#000!important}
 body.kiosk-body .token-meta{grid-template-columns:1fr 1fr!important;gap:1.4mm!important;margin-top:2mm!important}
 body.kiosk-body .token-meta>div{padding:1.8mm 1mm!important;border:1px solid #bbb!important;border-radius:1mm!important;background:#fff!important;color:#000!important;min-width:0!important}
 body.kiosk-body .token-meta span{display:block!important;font-size:7.1pt!important;line-height:1.15!important;color:#000!important;overflow-wrap:anywhere!important;word-break:break-word!important}
 body.kiosk-body .token-meta strong{display:block!important;font-size:10.8pt!important;line-height:1.1!important;color:#000!important;margin-top:.6mm!important;overflow-wrap:anywhere!important;word-break:break-word!important}
 body.kiosk-body .receipt-print-footer{margin-top:2.5mm!important;font-size:8.2pt!important;color:#000!important}
 body.kiosk-body .receipt-cut-feed{height:8mm!important}
}

/* V1.3.6 — real 80mm receipt page, never A4 layout in CSS */
.g80-receipt-page{display:none}
@media print{
  @page{size:80mm 78mm!important;margin:0!important}
  html,body,body.kiosk-body{
    width:80mm!important;
    min-width:80mm!important;
    max-width:80mm!important;
    height:78mm!important;
    min-height:78mm!important;
    max-height:78mm!important;
    margin:0!important;
    padding:0!important;
    overflow:hidden!important;
    background:#fff!important;
  }
  body.kiosk-body > *:not(.g80-receipt-page){display:none!important}
  body.kiosk-body .g80-receipt-page{
    display:flex!important;
    width:80mm!important;
    height:78mm!important;
    margin:0!important;
    padding:3mm 4mm 0!important;
    box-sizing:border-box!important;
    background:#fff!important;
    color:#000!important;
    flex-direction:column!important;
    align-items:center!important;
    justify-content:flex-start!important;
    text-align:center!important;
    overflow:hidden!important;
    font-family:Arial,Helvetica,sans-serif!important;
    -webkit-print-color-adjust:exact!important;
    print-color-adjust:exact!important;
    color-adjust:exact!important;
  }
  body.kiosk-body .g80-receipt-logo{
    display:block!important;
    width:23mm!important;
    height:23mm!important;
    max-width:23mm!important;
    max-height:23mm!important;
    margin:0 auto 1.6mm!important;
    object-fit:contain!important;
    object-position:center!important;
    filter:none!important;
    -webkit-print-color-adjust:exact!important;
    print-color-adjust:exact!important;
  }
  body.kiosk-body .g80-receipt-token{
    width:100%!important;
    margin:0!important;
    padding:0!important;
    color:#000!important;
    font-size:31pt!important;
    line-height:.96!important;
    font-weight:900!important;
    letter-spacing:.25mm!important;
    white-space:nowrap!important;
  }
  body.kiosk-body .g80-receipt-service{
    width:100%!important;
    margin:1.5mm 0 0!important;
    color:#000!important;
    font-size:12pt!important;
    line-height:1.08!important;
    font-weight:800!important;
    overflow-wrap:anywhere!important;
    word-break:break-word!important;
  }
  body.kiosk-body .g80-receipt-message{
    width:100%!important;
    margin:2mm 0 0!important;
    color:#000!important;
    font-size:9.2pt!important;
    line-height:1.2!important;
    font-weight:500!important;
    overflow-wrap:anywhere!important;
  }
  body.kiosk-body .g80-receipt-datetime{
    width:100%!important;
    margin:1.6mm 0 0!important;
    color:#000!important;
    font-size:8.1pt!important;
    line-height:1.15!important;
    font-weight:600!important;
    white-space:nowrap!important;
  }
  body.kiosk-body .g80-receipt-cut-space{
    display:block!important;
    width:100%!important;
    height:5mm!important;
    flex:0 0 5mm!important;
  }
}

/* V1.3.7 — VOZY G80 raster receipt printing: one exact image only */
.g80-raster-print{display:none}
@media print{
  @page{size:80mm 70mm!important;margin:0!important}
  html,body,body.kiosk-body{
    width:80mm!important;
    min-width:80mm!important;
    max-width:80mm!important;
    height:70mm!important;
    min-height:70mm!important;
    max-height:70mm!important;
    margin:0!important;
    padding:0!important;
    overflow:hidden!important;
    background:#fff!important;
  }
  body.kiosk-body > *:not(.g80-raster-print){display:none!important}
  body.kiosk-body .g80-raster-print{
    display:flex!important;
    width:80mm!important;
    height:70mm!important;
    margin:0!important;
    padding:0 4mm!important;
    box-sizing:border-box!important;
    align-items:flex-start!important;
    justify-content:center!important;
    overflow:hidden!important;
    background:#fff!important;
  }
  body.kiosk-body .g80-raster-print #g80RasterImg{
    display:block!important;
    width:72mm!important;
    height:70mm!important;
    max-width:72mm!important;
    max-height:70mm!important;
    margin:0 auto!important;
    padding:0!important;
    border:0!important;
    object-fit:fill!important;
    object-position:top center!important;
    filter:none!important;
    -webkit-print-color-adjust:exact!important;
    print-color-adjust:exact!important;
    color-adjust:exact!important;
    image-rendering:auto!important;
  }
}
