/* ANPR, small touches to match the Time-Lapse look. Same layout, same passage cards and plates.
   Loaded after anpr.css and anpr-ui.css. */
/* 2 · tabs as a pill */
.ax .ax-head{display:flex;align-items:center;gap:10px;border-bottom:0;margin-bottom:16px}
.ax .ax-tabs{gap:4px;padding:4px;border-radius:999px;background:#e3eaef;width:auto}
.ax .ax-tabs button{height:38px;padding:0 18px;border:0;border-radius:999px;margin:0;background:transparent;color:#3f566b;font-size:14px;font-weight:600}
.ax .ax-tabs button:hover{color:#0b2238}
.ax .ax-tabs button[aria-selected=true]{background:#fff;color:#0b2238;font-weight:700;border-bottom:0;box-shadow:0 1px 2px rgba(11,34,56,.12)}
.ax .ax-zone{margin-inline-start:auto;font-size:13.5px;color:#4d6478}
.ax:has(#anprVehiclePanel[hidden]) .ax-head .ax-live{display:none}
/* 5 · search row rounded */
.ax .ax-filters .ax-q input{height:44px!important;border-radius:999px;padding-left:42px;border-color:#dce4ea}
.ax .ax-q svg{left:16px}
.ax .ax-filters .ax-day input{height:44px!important;border-radius:999px;padding:0 16px;width:200px;border-color:#dce4ea}
.ax .ax-filters button{height:44px!important;border-radius:999px;padding:0 22px}
.ax .ax-filters{gap:10px;margin-bottom:16px}
/* 6 · cameras panel corners */
.ax .ax-side{border-radius:24px;border-color:#e3eaee;padding:18px 16px}
/* 1 · the five numbers always in one strip: label and number side by side when there is room,
   label above the number when the column is narrow */
.ax .ax-kpis{display:flex;flex-wrap:nowrap;gap:1px;background:#edf2f5;border:1px solid #e3eaee;border-radius:20px;overflow:hidden;margin-bottom:14px;container-type:inline-size}
.ax .ax-kpi{flex:1 1 auto;min-width:0;height:56px;border:0;border-radius:0;padding:0 14px;gap:10px;background:#fff}
.ax .ax-kpi span{font-size:13.5px}
.ax .ax-kpi b{font-size:20px;letter-spacing:-.3px}
@container (max-width:980px){
  .ax .ax-kpi{flex:1 1 0;flex-direction:column;align-items:flex-start;justify-content:center;gap:3px;height:64px;padding:0 12px}
  .ax .ax-kpi span{font-size:12.5px;max-width:100%}
}
.ax .ax-kpi.bad b{color:#b4233a}.ax .ax-kpi.warn b{color:#8a5200}
.ax .ax-kpi[aria-pressed=true]{background:#0b2238;color:#fff}.ax .ax-kpi[aria-pressed=true] b{color:#fff}
.ax button.ax-kpi:hover{box-shadow:none;background:#f6f9fb}.ax button.ax-kpi[aria-pressed=true]:hover{background:#163a5c}
/* 3 + 4 · one toolbar row: refresh beside the selects, Live on the right */
.ax .ax-viewbar{flex-wrap:wrap;gap:10px}
.ax .ax-viewbar label{white-space:nowrap}
.ax .anpr-view-modes{border:0;border-radius:999px;background:#e3eaef;padding:3px;gap:2px}
.ax .anpr-view-modes button{border:0;border-radius:999px;width:38px;height:32px;background:transparent}
.ax .anpr-view-modes button[aria-pressed=true]{background:#0b2238;color:#fff}
.ax .ax-viewbar select{height:38px;border-radius:999px;padding:0 12px;border-color:#dce4ea}
.ax .ax-icon{width:38px;height:38px;border-radius:50%;border-color:#dce4ea}
.ax .ax-live{height:36px;padding:0 14px;border-radius:999px;font-size:13.5px;font-weight:700;white-space:nowrap}
.ax .ax-live:has(input:checked){color:#0d6b4a}
@media(max-width:640px){.ax .ax-kpis{flex-wrap:wrap}.ax .ax-kpi{flex:1 1 30%}}
@container (max-width:700px){.ax .ax-kpi{padding:0 10px}.ax .ax-kpi span{font-size:11.5px;gap:6px}.ax .ax-kpi b{font-size:18px}}
