:root{
  color-scheme:light;--ink:#122943;--navy:#102b46;--blue:#164d76;--muted:#5c6e7f;--line:#dee6ed;--paper:#fff;--background:#f3f6f9;--gold:#e2ab30;--radius:17px;
  font:16px/1.55 "Tahoma","Arial",sans-serif;font-synthesis:none;color:var(--ink);background:var(--background)
}
*{box-sizing:border-box}body{margin:0;min-width:300px}button,input,textarea,select{font:inherit}a{color:var(--blue);text-decoration:none}button,a{touch-action:manipulation}img{max-width:100%}button{cursor:pointer}button:disabled{opacity:.55;cursor:wait}
a:hover{text-decoration:underline}button:focus-visible,a:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible,summary:focus-visible{outline:3px solid #65a9e1;outline-offset:3px}
h1,h2,h3,p{margin:0}h1,h2,h3{line-height:1.27}h1{font-size:clamp(1.8rem,3vw,2.65rem);letter-spacing:-.028em}h2{font-size:1.19rem}.brand{display:block;width:200px;height:auto;aspect-ratio:636/191;object-fit:contain}
.brand-link{display:flex;align-items:center;justify-content:center;flex:none;max-width:100%;border-radius:4px}
.brand-link .brand{max-width:100%;filter:brightness(1.06) contrast(1.18);mix-blend-mode:multiply;mask-image:linear-gradient(transparent,#000 14%)}.actions,.form-actions{display:flex;align-items:center;flex-wrap:wrap;gap:.55rem}.button{min-height:2.65rem;display:inline-flex;align-items:center;justify-content:center;gap:.42rem;border:1px solid transparent;border-radius:9px;padding:.48rem .85rem;font-size:.88rem;font-weight:700;line-height:1.3;white-space:nowrap;text-decoration:none}.button:hover{text-decoration:none}.button svg{width:18px;height:18px}.primary{background:var(--blue);color:#fff}.primary:hover{background:#0e3658}.secondary,.mini,.language{background:#fff;border-color:#d6e0ea;color:var(--blue)}.secondary:hover,.mini:hover,.language:hover{background:#edf4fa}.text-button{color:var(--blue);background:transparent}.text-button:hover{background:#eaf1f7}.mini{min-height:2rem;padding:.34rem .55rem;font-size:.83rem}.danger{color:#9b3041}.icon-button{background:var(--background);color:var(--ink);min-width:40px;padding:0;font-size:1.45rem}
.loading{display:grid;justify-items:center;gap:1rem;padding:18vh 1rem}.loading img{width:230px}.loading p,.pending{color:var(--muted)}
.public-page{min-height:100vh;display:flex;flex-direction:column;max-width:1410px;margin:auto;padding:0 clamp(1rem,4vw,3.5rem)}.public-top{display:flex;justify-content:space-between;align-items:center;gap:1rem;min-height:100px;padding-block:12px}.public-top .brand{width:clamp(150px,19vw,212px)}.public-grid{display:grid;grid-template-columns:minmax(0,1.05fr) minmax(0,1fr);gap:0;margin:auto 0;min-height:540px;border:1px solid #dce6ef;border-radius:24px;overflow:hidden;box-shadow:0 19px 55px #102b4610}.public-art{isolation:isolate;position:relative;overflow:hidden;color:#fff;background:radial-gradient(ellipse at 90% 100%,#1b587d 0%,transparent 55%),linear-gradient(145deg,#102b46,#143b5e);padding:clamp(2rem,6vw,5.3rem);min-height:530px;display:flex;align-items:center}.art-copy{position:relative;z-index:1;max-width:28rem}.art-icon{display:grid;place-items:center;width:57px;height:57px;border-radius:15px;background:#e2ab3024;color:#f4bf56;border:1px solid #e2ab3055;margin-bottom:1.55rem}.art-icon svg{width:30px;height:30px}.art-copy h1{font-size:clamp(2.5rem,5vw,4.9rem);line-height:1.15;letter-spacing:-.042em}.art-copy p{margin-top:1.2rem;font-size:1.06rem;color:#d8e6ef}.parking-lines{position:absolute;inset-inline-end:-105px;bottom:-95px;width:420px;height:305px;transform:rotate(-25deg);display:flex;border-block-start:2px solid #9ccee432;pointer-events:none}.parking-lines i{width:25%;border-inline-start:2px solid #9ccee432}.parking-lines span{color:#b4d4e540;position:absolute;top:45px;left:140px}.parking-lines svg{width:100px;height:100px;stroke-width:.7}.public-card{background:#fff;padding:clamp(1.4rem,4.5vw,4.25rem);align-self:stretch;display:flex;flex-direction:column;justify-content:center;min-width:0}.public-card h2{font-size:clamp(1.7rem,3vw,2.45rem);margin-block:.45rem .55rem;letter-spacing:-.035em}.public-card>p,.success-card p{color:var(--muted);max-width:40ch;margin-bottom:1.3rem}.section-label{font-weight:700;color:var(--blue);font-size:.94rem}.public-foot{display:flex;justify-content:space-between;gap:1rem;padding-block:1.2rem;color:var(--muted);font-size:.85rem}.public-foot a{direction:ltr}.success-card>span{display:grid;place-items:center;background:#e7f6ee;color:#12704e;width:64px;height:64px;border-radius:50%;margin-bottom:1rem}
.form{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.85rem .9rem;align-items:start}.wide{grid-column:1/-1}.field{display:grid;gap:.35rem;min-width:0;color:var(--ink);font-size:.9rem;font-weight:700}.field input,.field select,.field textarea,.search-box input{border:1px solid #cad7e2;color:var(--ink);background:#fff;min-width:0;width:100%;border-radius:9px;padding:.55rem .65rem;height:2.8rem;font-size:1rem;font-weight:400}.field textarea{height:auto;resize:vertical}.field input[type=file]{height:auto;font-size:.88rem;direction:ltr}.field select{appearance:none;padding-inline-end:2rem;background-image:linear-gradient(45deg,transparent 50%,#48647a 50%),linear-gradient(135deg,#48647a 50%,transparent 50%);background-position:right .9rem center,right .65rem center;background-size:4px 4px;background-repeat:no-repeat}html[dir=rtl] .field select{background-position:left .65rem center,left .9rem center}.field input[readonly]{background:#edf2f7}.field input::placeholder,.search-box input::placeholder{color:#6f8193}.form-error{font-size:.87rem;color:#942f41}.form-error:empty{display:none}.check{display:flex;align-items:flex-start;gap:.45rem;font-size:.91rem}.check input{accent-color:var(--blue);margin-top:.3rem}.verified{background:#eef7f4;border:1px solid #cde8dc;border-radius:12px;padding:.85rem}.verified strong{color:#17684e;display:flex;align-items:center;gap:.4rem}.verified dl{display:grid;gap:.35rem;margin:.55rem 0 0}.verified dl div{display:grid;grid-template-columns:minmax(90px,1fr) 2fr;gap:.5rem}.verified dt{color:#42675f;font-size:.87rem}.verified dd{margin:0;font-size:.91rem;font-weight:700}
.staff{min-height:100vh;display:grid;grid-template-columns:248px minmax(0,1fr)}.sidebar{position:sticky;top:0;height:100vh;overflow:auto;background:var(--navy);color:#fff;padding:1.15rem .85rem;display:flex;flex-direction:column;gap:1.15rem}.sidebar-brand{display:grid;gap:.75rem;padding:.1rem .45rem .95rem;border-bottom:1px solid #ffffff25}.sidebar-brand strong{font-size:1rem;color:#eff6fc}.sidebar nav{display:grid;gap:3px}.nav-item{display:flex;align-items:center;gap:.65rem;text-align:start;background:transparent;color:#d4e0ed;border:1px solid transparent;border-radius:9px;padding:.66rem .68rem;font-size:.88rem;line-height:1.3}.nav-item svg{min-width:19px;width:19px;height:19px}.nav-item:hover{background:#ffffff14;color:#fff}.nav-item.selected{background:#ffffff17;border-color:#ffffff1c;color:#fff;box-shadow:inset 3px 0 var(--gold)}html[dir=rtl] .nav-item.selected{box-shadow:inset -3px 0 var(--gold)}.side-bottom{display:flex;align-items:center;gap:.6rem;margin-top:auto;padding:.9rem .45rem 0;border-top:1px solid #ffffff25}.side-bottom b,.side-bottom small{display:block}.side-bottom b{font-size:.88rem}.side-bottom small{color:#b9ccdd;font-size:.8rem}.avatar{width:35px;height:35px;border-radius:50%;background:#e2ab3033;color:#ffd483;display:grid;place-items:center;font-weight:700}.workspace{min-width:0}.topbar{min-height:65px;background:#fff;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;gap:1rem;padding:.65rem clamp(1rem,3vw,2rem)}.top-identity{display:flex;align-items:center;gap:1rem;min-width:0}.top-identity .brand{width:166px}.top-id{border-inline-start:1px solid var(--line);padding-inline-start:1rem;display:flex;align-items:center;gap:.5rem;font-weight:700;color:var(--blue);font-size:.93rem}.staff-main{padding:clamp(1rem,3vw,2rem);max-width:1540px;margin:0 auto}.page-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:1.35rem}.page-head p{color:var(--muted);margin-top:.42rem;font-size:.95rem}
.filters{display:flex;align-items:flex-end;gap:.65rem;flex-wrap:wrap;margin-bottom:1rem}.filters>.field{min-width:145px;max-width:260px;flex:1}.search-box{display:flex;align-items:center;background:#fff;border:1px solid #cad7e2;border-radius:10px;min-width:min(100%,350px);flex:2 1 320px;padding:.18rem .25rem .18rem .45rem;gap:.35rem;height:2.8rem}.search-box>svg{color:var(--blue);flex:none;margin-inline-start:.3rem}.search-box input{border:0;min-width:35px;flex:1;height:100%;border-radius:5px;padding:.4rem .2rem;font-size:.91rem}.search-box .button{min-height:2.1rem}.metrics{display:grid;grid-template-columns:repeat(auto-fit,minmax(170px,1fr));gap:.8rem;margin-bottom:1rem}.metric{padding:1rem;background:#fff;border:1px solid var(--line);border-radius:var(--radius);display:grid;gap:.25rem;min-height:130px}.metric>strong{font-size:1.8rem;line-height:1.1;margin-top:.25rem}.metric>span:last-child{font-size:.86rem;color:var(--muted)}.metric-icon{width:41px;height:41px;border-radius:11px;display:grid;place-items:center}.shade-0{background:#eaf3fb;color:#1e6695}.shade-1{background:#e9f7f2;color:#17705c}.shade-2{background:#fff3d9;color:#8a5d15}.shade-3{background:#edeefa;color:#54549b}.summary-grid,.tools-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1rem}.card{min-width:0;background:#fff;border:1px solid var(--line);border-radius:var(--radius);overflow:hidden}.card-head{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:.55rem;padding:1rem 1.15rem;border-bottom:1px solid #eaf0f4}.card-head h2{font-size:1.02rem}.card-copy{padding:.9rem 1.15rem 0;font-size:.91rem;color:var(--muted)}.pad{padding:1rem 1.15rem}.pad>p{margin-bottom:.8rem;color:var(--muted)}.pending{padding:2rem}.empty{min-height:145px;display:grid;justify-items:center;align-content:center;gap:.55rem;padding:1rem;color:var(--muted);text-align:center;font-size:.9rem}.empty>span{display:grid;place-items:center;width:42px;height:42px;border-radius:12px;background:#edf3f9;color:#4c718e}.progress-row{padding:.8rem 1.1rem;display:grid;gap:.38rem}.progress-row>div{display:flex;justify-content:space-between;gap:.5rem;font-size:.86rem}.progress-row span{direction:ltr;color:var(--muted)}progress{appearance:none;width:100%;height:7px;border:0;border-radius:7px;background:#e6eef6}progress::-webkit-progress-bar{background:#e6eef6;border-radius:7px}progress::-webkit-progress-value{background:var(--blue);border-radius:7px}
.table-wrap{overflow:auto;max-width:100%}table{width:100%;border-collapse:collapse;font-size:.88rem}th,td{padding:.68rem .85rem;border-bottom:1px solid #e8eef3;text-align:start;vertical-align:middle}th{background:#f4f7fa;font-weight:700;color:#3d5971;white-space:nowrap}td{overflow-wrap:anywhere}tr:last-child td{border-bottom:0}td pre{white-space:pre-wrap;max-width:34rem;font-size:.78rem}td a{white-space:nowrap}.cell-actions{flex-wrap:nowrap}.badge{display:inline-flex;align-items:center;justify-content:center;gap:.35rem;border-radius:40px;font-size:.8rem;font-weight:700;padding:.24rem .55rem;white-space:nowrap}.badge::before{content:"";width:6px;height:6px;border-radius:50%;background:currentColor}.on{background:#e8f6ef;color:#146546}.off{background:#edf0f3;color:#536371}.plate{display:inline-grid;gap:.1rem;min-width:77px;border:1px solid #cfdae4;border-radius:6px;white-space:nowrap;text-align:center;padding:.2rem .4rem;background:#fcfdff}.plate small{font-size:.72rem;color:#406381}.pager{padding:.7rem 1rem;display:flex;align-items:center;gap:.7rem;justify-content:center}.pager .button{min-height:2rem}
dialog{border:1px solid var(--line);border-radius:19px;padding:0;max-width:min(590px,calc(100vw - 2rem));width:100%;color:var(--ink);box-shadow:0 22px 80px #07172742;max-height:calc(100dvh - 2rem)}dialog::backdrop{background:#102b4688}.dialog-head{display:flex;align-items:center;justify-content:space-between;gap:1rem;border-bottom:1px solid var(--line);padding:.9rem 1.1rem}.modal-form{padding:1.1rem}.note{background:#f5f7fa;border-radius:9px;padding:.65rem .75rem;color:var(--muted);font-size:.9rem}.copy-field{display:block;white-space:pre-wrap;overflow-wrap:anywhere;background:#eff4f8;padding:.7rem;border-radius:8px;margin-bottom:.75rem;color:var(--blue);font-size:.87rem}#toast{display:none;z-index:20;position:fixed;bottom:1.2rem;inset-inline-end:1rem;max-width:calc(100% - 2rem);padding:.8rem 1rem;border-radius:10px;background:#143b53;color:#fff;box-shadow:0 5px 24px #102b4640;font-weight:700;font-size:.9rem}#toast.visible{display:block}#toast.bad{background:#8e3041}.print-report{background:#fff;padding:2rem;min-height:100vh}.print-report>.brand{margin:1rem 0}.print-report h1{margin-bottom:.5rem}.print-report p{margin-bottom:.8rem}
@media(max-width:960px){.staff{grid-template-columns:197px minmax(0,1fr)}.summary-grid,.tools-grid{grid-template-columns:1fr}.public-art{padding:2.5rem}.public-grid{min-height:480px}}
@media(max-width:690px){.public-top{min-height:75px;gap:.4rem}.public-top .brand{width:clamp(110px,31vw,155px)}.public-top .actions{gap:.2rem}.public-top .button{font-size:.77rem;padding:.4rem .45rem;min-height:2.2rem}.public-grid{grid-template-columns:1fr;border-radius:16px}.public-art{min-height:0;padding:1.35rem 1.1rem;align-items:start}.art-copy h1{font-size:2.1rem}.art-copy h1 br{display:none}.art-copy p{font-size:.86rem;margin-top:.36rem}.art-icon{width:36px;height:36px;margin-bottom:.55rem;border-radius:9px}.art-icon svg{width:21px;height:21px}.parking-lines{transform:scale(.7) rotate(-25deg);bottom:-145px}.public-card{padding:1.2rem}.public-foot{font-size:.72rem}.staff{display:block}.sidebar{position:static;height:auto;padding:.7rem .75rem;gap:.4rem}.sidebar-brand{display:none}.sidebar nav{display:flex;overflow:auto;padding:.1rem 0 .25rem}.nav-item{white-space:nowrap;padding:.5rem .6rem}.side-bottom{display:none}.topbar{padding:.45rem .75rem;min-height:53px}.topbar .button{min-height:2.15rem;font-size:.78rem}.top-id{display:none}.top-identity .brand{width:clamp(125px,39vw,155px)}.staff-main{padding:1rem .75rem}.metrics{grid-template-columns:repeat(2,minmax(0,1fr));gap:.55rem}.metric{min-height:112px;padding:.7rem}.metric>strong{font-size:1.55rem}.metric>span:last-child{font-size:.79rem}.metric-icon{width:34px;height:34px}.metric-icon svg{width:18px;height:18px}td,th{padding:.55rem .65rem}}
@media print{body{background:#fff}.no-print,#toast{display:none!important}.print-report{padding:0}.print-report .table-wrap{overflow:visible}.print-report table{font-size:9pt}.print-report td,.print-report th{padding:.25rem .35rem}.print-report tr{break-inside:avoid}body.print-qr #app,body.print-qr .dialog-head{display:none!important}body.print-qr dialog{position:static;border:0;box-shadow:none;max-width:none;max-height:none;margin:auto;width:100%}body.print-qr dialog::backdrop{display:none}.print-report th{print-color-adjust:exact}}

.building-picker{border:1px solid var(--line);border-radius:9px;margin:0;padding:.65rem .85rem;min-width:0}.building-picker legend{padding:0 .3rem;font-weight:700;font-size:.9rem}.building-picker p{font-size:.85rem;color:var(--muted);margin-bottom:.3rem}.building-picker .check{padding:.35rem .15rem}.building-tag{display:inline-block;padding:.2rem .48rem;margin:.1rem 0;border-radius:6px;background:#edf4fa;color:var(--blue);white-space:nowrap;font-size:.82rem}

.plate-reading{padding:.75rem;border:1px solid var(--line);border-radius:9px;background:#f7fafc}.plate-reading-status{color:var(--muted);font-size:.86rem;margin-top:.4rem}.plate-reading [hidden]{display:none}


.registration-poster {
  max-width: 440px;
  margin-inline: auto;
  padding: clamp(1rem, 4vw, 2rem);
  background: #fff;
  border: 1px solid var(--line);
  border-block-start: 5px solid var(--gold);
  border-radius: 12px;
  text-align: center;
}
.poster-heading .brand { width: min(235px, 100%); margin: 0 auto 1rem; }
.poster-heading h3 { color: var(--navy); font-size: clamp(1.5rem, 4vw, 2.25rem); }
.poster-building { color: var(--blue); font-size: 1rem; font-weight: 700; margin-block-start: .3rem; }
.poster-code { width: min(248px, 100%); margin: .9rem auto; background: #fff; border: 1px solid var(--line); border-radius: 8px; }
.poster-code canvas { display: block; width: 100%; height: auto; }
.poster-steps {
  counter-reset: registration-step;
  list-style: none;
  padding: 0;
  margin: 1rem auto .9rem;
  display: grid;
  gap: .5rem;
  width: fit-content;
  max-width: 100%;
  text-align: start;
}
.poster-steps li { display: flex; align-items: center; gap: .6rem; counter-increment: registration-step; }
.poster-steps li::before {
  content: counter(registration-step);
  display: grid;
  place-items: center;
  width: 1.75em;
  height: 1.75em;
  flex: none;
  border: 1px solid #ead5a0;
  border-radius: 50%;
  color: var(--navy);
  font-weight: 700;
}
.poster-url { display: block; color: var(--muted); font-size: .8rem; overflow-wrap: anywhere; }
.qr-card .form-actions { justify-content: center; margin-block-start: 1rem; }
@page vehicle-qr { size: A4 portrait; margin: 12mm; }
@media print {
  body.print-qr { page: vehicle-qr; }
  body.print-qr dialog { overflow: visible; }
  body.print-qr .qr-card { padding: 0; }
  .registration-poster {
    max-width: 178mm;
    margin: 0 auto;
    padding: 14mm 12mm;
    print-color-adjust: exact;
    -webkit-print-color-adjust: exact;
    break-inside: avoid;
  }
  .poster-heading .brand { width: 76mm; margin-bottom: 9mm; }
  .poster-heading h3 { font-size: 30pt; }
  .poster-building { font-size: 17pt; }
  .poster-code { width: 82mm; margin-block: 8mm; }
  .poster-steps { font-size: 15pt; gap: 3mm; margin-block: 7mm; }
  .poster-url { font-size: 10pt; }
}
