@font-face{font-family:VoteThai;src:url('/vote/admin/assets/fonts/NotoSansThai-variable.ttf') format('truetype');font-weight:100 900;font-display:swap}
:root{--vt-navy:#0b2c55;--vt-ink:#0d2a66;--vt-blue:#0a84e8;--vt-muted:#5a7190;--vt-line:#dbe7f3}
body{font-family:VoteThai,Tahoma,sans-serif;background:#eef4fb;color:var(--vt-ink);min-height:100vh;display:flex;flex-direction:column}
button,input,select,textarea,.swal2-popup{font-family:inherit}
.vt-top{background:linear-gradient(100deg,#0647a8 0%,#0a78dc 55%,#5cc3f3 100%);color:#fff;box-shadow:0 2px 10px rgba(6,60,130,.18)}
.vt-top-in{max-width:560px;margin:0 auto;padding:.9rem 1rem;display:flex;align-items:center;gap:.8rem}
.vt-top img{height:46px;filter:brightness(0) invert(1)}
.vt-top strong{display:block;font-size:1.05rem;line-height:1.3}.vt-top span{display:block;font-size:.8rem;opacity:.9}
.vt-wrap{flex:1;width:100%;max-width:560px;margin:0 auto;padding:1.25rem 1rem 2rem}
.vt-wrap .card{border:1px solid var(--vt-line);border-radius:14px;box-shadow:0 2px 8px rgba(13,42,102,.06)}
.vt-wrap .card-body{padding:1.4rem}
.vt-title{font-size:1.3rem;font-weight:700;margin:0 0 .25rem}.vt-sub{color:var(--vt-muted);font-size:.92rem;margin-bottom:1.1rem}
.vt-wrap h6{font-weight:700;font-size:1.1rem}
.vt-wrap label{font-weight:600;font-size:.95rem}
.vt-wrap .form-control{height:calc(1.6em + 1rem + 2px);border-radius:10px;border-color:#c9d8ea;font-size:1.05rem}
.vt-wrap .form-control:focus{border-color:var(--vt-blue);box-shadow:0 0 0 .2rem rgba(10,132,232,.18)}
.vt-wrap .btn{border-radius:10px;font-weight:600}.vt-wrap .btn-primary{background:var(--vt-blue);border-color:var(--vt-blue);padding:.65rem 1rem;font-size:1.05rem}
.vt-wrap .alert{border-radius:10px}
.vt-round{display:block;border:1px solid var(--vt-line);border-radius:12px;padding:1rem;margin-bottom:.75rem;background:#fff}
.vt-round h2{font-size:1.05rem;font-weight:700;margin:0 0 .2rem}.vt-round .small{color:var(--vt-muted)}
.vt-badge{display:inline-block;font-size:.75rem;font-weight:600;padding:.15rem .55rem;border-radius:99px;background:#e6f6ec;color:#17693a}
.vt-badge.wait{background:#fff6e0;color:#7a5200}.vt-badge.off{background:#eef2f8;color:#5a7190}
.vt-msg{text-align:center}.vt-msg i{font-size:2.6rem;color:var(--vt-blue)}
.vt-foot{text-align:center;font-size:.8rem;color:var(--vt-muted);padding:1rem}
.vt-pw{position:relative}.vt-pw button{position:absolute;right:.35rem;top:50%;transform:translateY(-50%);border:0;background:none;color:var(--vt-muted);padding:.4rem .6rem}
/* flow v2 */
html.vt-large{font-size:118%}
.vt-tools{margin-left:auto}.vt-tools button{background:rgba(255,255,255,.18);border:1px solid rgba(255,255,255,.4);color:#fff;border-radius:8px;padding:.2rem .55rem;font-weight:700}
.vt-steps{background:#fff;border:1px solid var(--vt-line);border-radius:14px;padding:.9rem 1rem;margin-bottom:1rem}
.vt-steps-top{display:flex;justify-content:space-between;align-items:baseline;font-size:.85rem;color:var(--vt-muted)}.vt-steps-top strong{color:var(--vt-ink);font-size:1rem}
.vt-steps-bar{height:8px;background:#e6eef8;border-radius:99px;margin:.5rem 0 .6rem;overflow:hidden}.vt-steps-bar span{display:block;height:100%;background:linear-gradient(90deg,#0a84e8,#35b36b);border-radius:99px}
.vt-steps ol{display:flex;justify-content:space-between;list-style:none;padding:0;margin:0;font-size:.7rem;color:#9aa9bd;gap:.2rem}.vt-steps li{flex:1;text-align:center}.vt-steps li.done{color:#17693a}.vt-steps li.now{color:var(--vt-blue);font-weight:700}
.vt-id{letter-spacing:.12em;font-size:1.25rem!important;text-align:center;font-variant-numeric:tabular-nums}   /* equal-width digits: the centred number does not shift while typing */
.vt-dob{display:grid;grid-template-columns:1fr 1.6fr 1.2fr;gap:.5rem}
.vt-who{background:#f4f8fd;border:1px solid var(--vt-line);border-radius:12px;padding:1rem;margin-bottom:1rem}.vt-who dt{font-size:.8rem;color:var(--vt-muted);font-weight:500}.vt-who dd{font-size:1.15rem;font-weight:700;margin-bottom:.5rem}
.vt-otp{font-size:2rem!important;letter-spacing:.6em;text-align:center;font-weight:700;height:auto!important;padding:.5rem 0 .5rem .6em!important}
.vt-timer{display:flex;align-items:center;justify-content:center;gap:.5rem;color:var(--vt-muted);font-size:.9rem;margin:.6rem 0}.vt-timer strong{font-variant-numeric:tabular-nums;color:var(--vt-ink)}
.vt-ref{display:inline-block;background:#eef4fb;border-radius:6px;padding:.1rem .45rem;font-weight:700;letter-spacing:.08em;color:var(--vt-ink)}
.vt-dev{background:#fff6e0;border:1px dashed #e0a800;border-radius:10px;padding:.6rem .8rem;font-size:.9rem;margin-bottom:1rem}
.vt-terms{background:#f8fbff;border:1px solid var(--vt-line);border-radius:12px;padding:1rem;white-space:pre-line;font-size:.95rem;max-height:340px;overflow:auto}
.vt-check{display:flex;gap:.7rem;align-items:flex-start;background:#fff;border:2px solid var(--vt-line);border-radius:12px;padding:.8rem;cursor:pointer;margin:1rem 0 0}.vt-check input{width:1.4rem;height:1.4rem;margin-top:.1rem;flex:0 0 auto}
.vt-sign{border:2px dashed #b9cbe2;border-radius:12px;background:#fff;touch-action:none;width:100%;height:220px;display:block}
.vt-tabs{display:flex;gap:.4rem;margin-bottom:.75rem}.vt-tabs button{flex:1;border:1px solid var(--vt-line);background:#fff;border-radius:10px;padding:.5rem;font-weight:600;color:var(--vt-muted)}.vt-tabs button.on{background:var(--vt-blue);color:#fff;border-color:var(--vt-blue)}
.vt-section{margin-bottom:1.25rem}.vt-section h2{font-size:1.1rem;font-weight:700;margin:0}.vt-section .vt-sub{margin:.1rem 0 .6rem}
.vt-count{position:sticky;top:0;z-index:5;background:#0b2c55;color:#fff;border-radius:10px;padding:.45rem .8rem;font-size:.9rem;display:flex;justify-content:space-between;margin-bottom:.6rem}
.vt-cand{position:relative;display:flex;gap:.8rem;align-items:center;border:2px solid var(--vt-line);border-radius:14px;padding:.7rem;margin-bottom:.6rem;background:#fff;cursor:pointer;transition:border-color .15s,box-shadow .15s}
.vt-cand input{position:absolute;opacity:0;pointer-events:none}
.vt-cand .no{flex:0 0 3.2rem;height:3.2rem;border-radius:12px;background:#eef4fb;display:flex;flex-direction:column;align-items:center;justify-content:center;font-weight:800;font-size:1.5rem;line-height:1;color:var(--vt-ink)}.vt-cand .no small{font-size:.6rem;font-weight:600;color:var(--vt-muted)}
.vt-cand img{width:3.6rem;height:4.4rem;object-fit:cover;border-radius:10px;flex:0 0 auto}
.vt-cand .who{flex:1;min-width:0}.vt-cand .who strong{display:block;font-size:1.05rem}.vt-cand .who span{display:block;font-size:.85rem;color:var(--vt-muted);white-space:pre-line}
.vt-cand .tick{flex:0 0 2rem;height:2rem;border-radius:50%;border:2px solid #c9d8ea;display:flex;align-items:center;justify-content:center;color:transparent}
.vt-cand:has(input:checked){border-color:var(--vt-blue);box-shadow:0 0 0 3px rgba(10,132,232,.15);background:#f5faff}.vt-cand:has(input:checked) .tick{background:var(--vt-blue);border-color:var(--vt-blue);color:#fff}
.vt-cand.abstain .no{background:#f3f4f6}
.vt-review li{display:flex;gap:.7rem;align-items:center;padding:.55rem 0;border-bottom:1px solid var(--vt-line)}.vt-review .no{font-weight:800;font-size:1.3rem;width:2.4rem;text-align:center}
.vt-ok{font-size:3.5rem;color:#1c9a55}
.vt-help{display:flex;gap:.7rem;font-size:.85rem;color:var(--vt-muted);background:#fff;border:1px solid var(--vt-line);border-radius:12px;padding:.8rem;margin-top:1rem}.vt-help i{font-size:1.4rem;color:var(--vt-blue)}
.vt-group{margin-bottom:1rem}.vt-group .vt-count{position:static;background:#e8f0fb;color:#0b2c55;font-weight:600}.vt-group-title{font-weight:700;margin:.8rem 0 .2rem}.vt-group-title small{font-weight:400;color:#5a6b85;margin-left:.4rem}
.vt-top img.vt-coop-logo{filter:none;height:52px;width:52px;border-radius:50%;background:#fff;box-shadow:0 1px 4px rgba(0,0,0,.18)}
.vt-ref-big{display:inline-block;font-size:2rem;font-weight:800;letter-spacing:.25em;background:#fff6e0;color:#7a3d00;border:2px dashed #f1c66b;border-radius:12px;padding:.4rem 1rem;margin:.4rem 0 .8rem}
.vt-dev-logo{display:block;height:36px;width:auto;margin:.5rem auto 0;opacity:.9}
.vt-devby{display:flex;align-items:center;justify-content:center;gap:.5rem;margin-top:.5rem;font-size:.75rem}.vt-devby .vt-dev-logo{margin:0;display:inline-block}

/* Committee ballot as on paper: quota per sangkad, team boxes, independents (sketch 10 Oct 2569) */
.vt-quota{border:2px solid var(--vt-line);border-radius:12px;padding:.5rem .7rem;background:#f8fbff;position:sticky;top:0;z-index:5}
.vt-quota-row{display:flex;justify-content:space-between;gap:.6rem;font-size:.9rem;padding:.2rem 0}.vt-quota-row+.vt-quota-row{border-top:1px dashed #d6e2f0}
.vt-quota-row strong{white-space:nowrap;color:var(--vt-ink)}
.vt-quota-head{border:2px solid var(--vt-line);border-bottom:0;border-radius:12px 12px 0 0;padding:.5rem .7rem .2rem;background:#f8fbff}   /* committee intro (12 Nov 2569): scrolls away */
.vt-quota-head+.vt-quota-list{border-top:0;border-radius:0 0 12px 12px}.vt-quota-list .vt-quota-row{padding-left:.9rem}   /* the numbered quota rows stay pinned */
.vt-block{border:2px solid #c9d8ea;border-radius:16px;padding:.6rem .6rem .1rem;margin:.9rem 0}
.vt-block.vt-indep{border-style:dashed}
.vt-block-title{font-weight:800;margin:0 0 .5rem .2rem}.vt-block-title small{font-weight:400;color:var(--vt-muted);margin-left:.4rem}
.vt-block .vt-cand .tick,[data-committee] .vt-cand.abstain .tick{order:-1;border-radius:6px;width:2.1rem;height:2.1rem;flex-basis:2.1rem}
.vt-round-nav{margin:.4rem 0 .8rem}.vt-round-step{font-weight:700;color:var(--vt-ink);margin-bottom:.5rem;text-align:center}
.vt-section[hidden]{display:none!important}
/* Mark box with an X, like the paper ballot (10 Oct 2569) */
.vt-cand .tick{order:-1;border-radius:6px;width:2.3rem;height:2.3rem;flex:0 0 2.3rem;border:2.5px solid #9fb4cc;background:#fff;font-size:1.5rem}
.vt-cand:has(input:checked) .tick{background:#fff;border-color:var(--vt-ink);color:#c8102e}

/* Callcenter numbers in the help box (29 Oct 2569): two columns on a phone, tap to call */
.vt-callcenter{list-style:none;padding:0;margin:.5rem 0 0;display:grid;grid-template-columns:repeat(auto-fill,minmax(10.5rem,1fr));gap:.35rem .8rem}
.vt-callcenter li{white-space:nowrap}.vt-callcenter a{font-weight:600;color:var(--vt-blue)}.vt-callcenter a i{font-size:.8rem;margin-right:.3rem;color:inherit}
