/* Kosova Tracker — dizajn profesional (enterprise). Tema e çelët si parazgjedhje, tema e errët opsionale. */
:root {
  --bg: #f4f5f7;
  --panel: #ffffff;
  --panel-2: #f9fafb;
  --panel-3: #f2f4f7;
  --text: #101828;
  --text-2: #344054;
  --muted: #667085;
  --line: #e4e7ec;
  --line-2: #d0d5dd;
  --brand: #4169e1;
  --brand-h: #3456c4;
  --brand-soft: #eef2fd;
  --brand-line: #bfcdf6;
  /* Kosova Tracker: navy si website-i */
  --side: #0a1a3f;
  --side-2: #102659;
  --side-3: #1a3577;
  --side-text: #d3dbf5;
  --side-muted: #8c9ccc;
  --green: #12b76a; --green-t: #067647; --green-b: #ecfdf3; --green-l: #abefc6;
  --amber: #f79009; --amber-t: #b54708; --amber-b: #fffaeb; --amber-l: #fedf89;
  --red: #f04438; --red-t: #b42318; --red-b: #fef3f2; --red-l: #fecdca;
  --blue: #2e90fa; --blue-t: #175cd3; --blue-b: #eff8ff; --blue-l: #b2ddff;
  --purple: #7a5af8; --purple-t: #5925dc; --purple-b: #f4f3ff; --purple-l: #d9d6fe;
  --grey-t: #344054; --grey-b: #f2f4f7; --grey-l: #e4e7ec;
  --radius: 10px;
  --shadow-xs: 0 1px 2px rgba(16, 24, 40, .05);
  --shadow-lg: 0 12px 16px -4px rgba(16, 24, 40, .08), 0 4px 6px -2px rgba(16, 24, 40, .03);
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  /* Zonat e sigurta (notch, shiriti i statusit, home indicator). Android/Capacitor i jep si --safe-area-inset-* */
  --sat: var(--safe-area-inset-top, env(safe-area-inset-top, 0px));
  --sab: var(--safe-area-inset-bottom, env(safe-area-inset-bottom, 0px));
  color-scheme: light;
}
:root[data-theme="dark"] {
  --bg: #0c111d;
  --panel: #161b26;
  --panel-2: #1a202c;
  --panel-3: #1f242f;
  --text: #f5f5f6;
  --text-2: #cecfd2;
  --muted: #94969c;
  --line: #262b36;
  --line-2: #333741;
  --brand: #5b80f0;
  --brand-h: #7393f3;
  --brand-soft: rgba(91, 128, 240, .12);
  --brand-line: rgba(91, 128, 240, .45);
  --side: #050d24;
  --green-t: #75e0a7; --green-b: rgba(18, 183, 106, .12); --green-l: rgba(18, 183, 106, .35);
  --amber-t: #fec84b; --amber-b: rgba(247, 144, 9, .12); --amber-l: rgba(247, 144, 9, .35);
  --red-t: #fda29b; --red-b: rgba(240, 68, 56, .12); --red-l: rgba(240, 68, 56, .35);
  --blue-t: #84caff; --blue-b: rgba(46, 144, 250, .12); --blue-l: rgba(46, 144, 250, .35);
  --purple-t: #bdb4fe; --purple-b: rgba(122, 90, 248, .14); --purple-l: rgba(122, 90, 248, .38);
  --grey-t: #cecfd2; --grey-b: #1f242f; --grey-l: #333741;
  --shadow-xs: 0 1px 2px rgba(0, 0, 0, .3);
  --shadow-lg: 0 12px 24px rgba(0, 0, 0, .45);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body { font: 14px/1.5 var(--font); color: var(--text); background: var(--bg); -webkit-font-smoothing: antialiased; font-feature-settings: "cv11", "ss01"; }
a { color: var(--brand); text-decoration: none; }
h1, h2, h3, h4 { margin: 0; font-weight: 600; letter-spacing: -.01em; }
h2 { font-size: 15px; }
h3 { font-size: 14px; }
small, .muted { color: var(--muted); }
code, pre { font-family: var(--mono); font-size: 12.5px; }
.ic { flex: none; vertical-align: -3px; }
.hidden { display: none !important; }

/* ---------- Shell ---------- */
.app { display: grid; grid-template-columns: 248px 1fr; height: 100vh; height: 100dvh; }
.sidebar { background: var(--side); color: var(--side-text); display: flex; flex-direction: column; overflow-y: auto; border-right: 1px solid rgba(255, 255, 255, .06); }
.brand { display: flex; gap: 11px; align-items: center; padding: 18px 18px 16px; }
.brand .logo { width: 36px; height: 36px; flex: none; }
/* Logoja: "kosova" Helvetica Neue Bold + "tracker" Regular (si te website-i) */
.brand b.wm { font-family: "Helvetica Neue", Helvetica, Arial, sans-serif; font-size: 19px; font-weight: 400; letter-spacing: -.015em; line-height: 1.1; }
.brand b.wm strong { font-weight: 700; }
.brand b { color: #fff; display: block; font-size: 15px; font-weight: 600; }
.brand small { color: var(--side-muted); font-size: 12px; }
.tenant-box { margin: 0 12px 6px; padding: 9px 11px; border-radius: 8px; background: var(--side-2); border: 1px solid rgba(255, 255, 255, .08); font-size: 12.5px; }
.tenant-box .t { color: #fff; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tenant-box .s { color: var(--side-muted); font-size: 11.5px; }
.sidebar nav { padding: 6px 12px 12px; display: flex; flex-direction: column; gap: 1px; }
.sidebar nav a { display: flex; align-items: center; gap: 11px; padding: 8px 10px; border-radius: 6px; color: var(--side-text); font-weight: 500; font-size: 13.5px; }
.sidebar nav a .ic { color: var(--side-muted); }
.sidebar nav a:hover { background: var(--side-2); color: #fff; }
.sidebar nav a.active { background: var(--side-3); color: #fff; }
.sidebar nav a.active .ic { color: #fff; }
.sidebar nav a .count { margin-left: auto; background: #2a2f3a; color: #fff; border-radius: 99px; font-size: 11px; font-weight: 600; padding: 0 7px; line-height: 18px; font-variant-numeric: tabular-nums; }
.sidebar nav a .count.alert { background: var(--red); }
.sidebar nav .sep { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--side-muted); padding: 16px 10px 6px; }
.sidebar-foot { margin-top: auto; padding: 12px; border-top: 1px solid #1f242f; }
.side-user { display: flex; gap: 10px; align-items: center; padding: 8px; border-radius: 8px; }
.side-user .nm { color: #fff; font-weight: 600; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.side-user .rl { color: var(--side-muted); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.side-user .avatar { background: #2a2f3a; color: #fff; }
.side-user button { margin-left: auto; background: none; border: none; color: var(--side-muted); cursor: pointer; padding: 6px; border-radius: 6px; }
.side-user button:hover { color: #fff; background: var(--side-2); }
/* "Llogaria ime": emri poshtë në meny hap faqen e llogarisë */
.side-user .su-me { display: flex; gap: 10px; align-items: center; min-width: 0; flex: 1; color: inherit; text-decoration: none; border-radius: 8px; padding: 2px; margin: -2px; }
.side-user .su-me:hover { background: var(--side-2); }
.acc-hero { display: flex; gap: 14px; align-items: center; margin-bottom: 14px; }
.acc-hero .avatar { width: 52px; height: 52px; font-size: 18px; }
.acc-hero h3 { margin: 0; font-size: 18px; }

main { display: flex; flex-direction: column; min-width: 0; height: 100vh; height: 100dvh; }
.imp-bar { background: var(--amber-b); color: var(--amber-t); border-bottom: 1px solid var(--amber-l); padding: 8px 22px; font-size: 13px; display: flex; gap: 10px; align-items: center; }
.imp-bar .btn { margin-left: auto; }
.demo-bar { background: #eef2ff; color: #28336f; border-bottom-color: #c7d2fe; }
[data-theme="dark"] .demo-bar { background: #1c2451; color: #c7d2fe; border-bottom-color: #2d3a7c; }
.topbar { display: flex; align-items: center; gap: 14px; padding: var(--sat) 24px 0; box-sizing: content-box; background: var(--panel); border-bottom: 1px solid var(--line); min-height: 60px; }
.topbar h1 { font-size: 18px; white-space: nowrap; }
.top-right { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.clock { font-variant-numeric: tabular-nums; color: var(--muted); font-size: 12.5px; white-space: nowrap; display: inline-flex; align-items: center; gap: 6px; padding: 0 6px; }
.clock.srv { color: var(--brand); font-weight: 500; }
.clock.srv .pdot { background: var(--brand); }
.clock .pdot { width: 7px; height: 7px; border-radius: 50%; background: var(--green); animation: pulse 2s infinite; }
@keyframes pulse { 50% { opacity: .35; } }
.avatar { width: 32px; height: 32px; border-radius: 50%; background: var(--brand-soft); color: var(--brand); display: grid; place-items: center; font-weight: 600; font-size: 12px; flex: none; }
#menuBtn { display: none; }
/* Menyja në kompjuter: fshihet/shfaqet me rrëshqitje (☰ lart ose ‹ në menynë); në telefon mbetet siç ishte */
@media (min-width: 901px) {
  #menuBtn { display: grid; margin-left: -8px; }
  .sidebar .side-close { display: grid; margin-left: auto; color: var(--side-muted); }
  .sidebar .side-close:hover { background: var(--side-2); color: #fff; }
  .app { transition: grid-template-columns .22s ease; }
  .sidebar { width: 248px; transition: transform .22s ease, visibility 0s; }
  body.side-off .app { grid-template-columns: 0 1fr; }
  body.side-off .sidebar { transform: translateX(-100%); visibility: hidden; transition: transform .22s ease, visibility 0s .22s; }
}

.view { flex: 1; overflow: auto; padding: 24px; }
.view.full { padding: 0; overflow: hidden; }
.page-h { display: flex; align-items: flex-end; gap: 12px; margin-bottom: 20px; flex-wrap: wrap; }
.page-h p { margin: 4px 0 0; color: var(--muted); }
.page-h .actions { margin-left: auto; display: flex; gap: 8px; }

/* ---------- Controls ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; border: 1px solid var(--line-2); background: var(--panel); color: var(--text-2); padding: 8px 14px; border-radius: 8px; font: inherit; font-weight: 600; font-size: 13.5px; cursor: pointer; white-space: nowrap; box-shadow: var(--shadow-xs); transition: background .12s, border-color .12s; }
.btn:hover { background: var(--panel-2); color: var(--text); }
.btn.primary { background: var(--brand); border-color: var(--brand); color: #fff; }
.btn.primary:hover { background: var(--brand-h); border-color: var(--brand-h); }
.btn.danger { color: var(--red-t); }
.btn.danger:hover { background: var(--red-b); border-color: var(--red-l); }
.btn.ghost { border-color: transparent; box-shadow: none; background: transparent; }
.btn.ghost:hover { background: var(--panel-3); }
.btn.sm { padding: 5px 10px; font-size: 12.5px; border-radius: 7px; }
.btn.block { width: 100%; }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.icon-btn { position: relative; border: 1px solid transparent; background: transparent; color: var(--muted); width: 36px; height: 36px; border-radius: 8px; cursor: pointer; display: grid; place-items: center; }
.icon-btn:hover { background: var(--panel-3); color: var(--text); }
.icon-btn .badge { position: absolute; top: -4px; right: -8px; background: var(--red); color: #fff; border: 2px solid var(--panel); font-size: 10px; border-radius: 99px; padding: 0 5px; font-weight: 700; line-height: 14px; }
input, select, textarea { font: inherit; font-size: 14px; color: var(--text); background: var(--panel); border: 1px solid var(--line-2); border-radius: 8px; padding: 8px 11px; outline: none; box-shadow: var(--shadow-xs); }
input:focus, select:focus, textarea:focus { border-color: var(--brand-line); box-shadow: 0 0 0 4px var(--brand-soft); }
input[type="checkbox"] { width: 16px; height: 16px; accent-color: var(--brand); padding: 0; box-shadow: none; margin: 0; }
input[type="range"] { accent-color: var(--brand); padding: 0; border: none; box-shadow: none; }
input[type="color"] { padding: 3px; height: 38px; }
label.fld { display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: var(--text-2); font-weight: 500; }
label.fld input, label.fld select, label.fld textarea { font-weight: 400; width: 100%; min-width: 0; max-width: 100%; }
select { text-overflow: ellipsis; }
label.fld .row { font-weight: 400; }
.fld-hint { font-size: 12px; color: var(--muted); font-weight: 400; }
.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.form-grid .span2 { grid-column: span 2; }
.form-grid.add-dev { grid-template-columns: repeat(4, minmax(0, 1fr)); align-items: end; }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.row.between { justify-content: space-between; }
.grow { flex: 1; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chip { border: 1px solid var(--line-2); background: var(--panel); border-radius: 7px; padding: 4px 10px; font-size: 12.5px; font-weight: 500; cursor: pointer; color: var(--text-2); display: inline-flex; gap: 6px; align-items: center; }
.chip:hover { background: var(--panel-2); }
.chip b { font-weight: 600; font-variant-numeric: tabular-nums; color: var(--muted); }
.chip.on { background: var(--brand-soft); border-color: var(--brand-line); color: var(--brand); }
.chip.on b { color: var(--brand); }
.tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--line); margin-bottom: 20px; overflow-x: auto; }
.tabs button { background: none; border: none; padding: 10px 12px; font: inherit; font-weight: 600; font-size: 13.5px; color: var(--muted); cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; display: inline-flex; gap: 7px; align-items: center; }
.tabs button:hover { color: var(--text); }
.tabs button.on { color: var(--brand); border-bottom-color: var(--brand); }
.seg { display: inline-flex; border: 1px solid var(--line-2); border-radius: 8px; overflow: hidden; box-shadow: var(--shadow-xs); }
.seg button { border: none; border-right: 1px solid var(--line-2); background: var(--panel); padding: 7px 14px; font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; color: var(--text-2); flex: 1; }
.seg button:last-child { border-right: none; }
.seg button:hover { background: var(--panel-2); }
.seg button.on { background: var(--panel-3); color: var(--text); }
.switch { position: relative; width: 36px; height: 20px; flex: none; }
.switch input { opacity: 0; width: 0; height: 0; position: absolute; }
.switch span { position: absolute; inset: 0; background: var(--line-2); border-radius: 99px; cursor: pointer; transition: background .15s; }
.switch span::before { content: ""; position: absolute; width: 16px; height: 16px; left: 2px; top: 2px; background: #fff; border-radius: 50%; box-shadow: 0 1px 2px rgba(16, 24, 40, .2); transition: transform .15s; }
.switch input:checked + span { background: var(--brand); }
.switch input:checked + span::before { transform: translateX(16px); }
.switch input:disabled + span { opacity: .5; cursor: not-allowed; }

/* ---------- Cards ---------- */
.card { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow-xs); }
.card-h { display: flex; align-items: center; gap: 10px; padding: 14px 18px; border-bottom: 1px solid var(--line); flex-wrap: wrap; min-height: 56px; }
.card-h h2 { display: inline-flex; gap: 8px; align-items: center; }
.card-h h2 .ic { color: var(--muted); }
.card-h .actions { margin-left: auto; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.card-h .actions input, .card-h .actions select { padding: 6px 10px; font-size: 13px; }
.card-b { padding: 18px; }
.doc-body { margin-top: 14px; display: grid; gap: 12px; }
.doc-h { display: flex; justify-content: space-between; gap: 6px 16px; flex-wrap: wrap; align-items: baseline; }
.doc-frame { width: 100%; height: 70vh; border: 1px solid var(--line); border-radius: 10px; background: var(--panel); display: block; }
.doc-pages { display: grid; gap: 14px; }
.doc-pages a { display: grid; gap: 6px; color: var(--muted); font-size: 12.5px; text-decoration: none; }
.doc-pages img { width: 100%; height: auto; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.cfg-top { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: flex-end; }
.cfg-top .fld { min-width: 0; flex: 1 1 260px; max-width: 420px; }
.cfg-dev { font-size: 13px; color: var(--muted); display: inline-flex; gap: 6px; align-items: center; padding-bottom: 8px; }
.cfg-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.cfg-step { display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 12px; padding: 14px; border-bottom: 1px solid var(--line); }
.cfg-step:last-child { border-bottom: 0; }
.cfg-n { width: 28px; height: 28px; border-radius: 50%; background: var(--brand-soft); color: var(--brand); font-weight: 700; display: grid; place-items: center; font-size: 13px; }
.cfg-b { display: grid; gap: 8px; min-width: 0; }
.cfg-b p { margin: 0; font-size: 13.5px; }
.cfg-t { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; }
.cfg-wire { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); }
.cfg-wire i { width: 22px; height: 8px; border-radius: 4px; box-shadow: inset 0 0 0 1px var(--line-2); }
.cfg-acts { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.cfg-acts .btn { max-width: 100%; height: auto; white-space: normal; flex-wrap: wrap; justify-content: flex-start; text-align: left; row-gap: 2px; }
.cfg-acts code { font-family: var(--mono); font-size: 11.5px; color: var(--muted); }
.cfg-acts input { width: 220px; max-width: 100%; }
.cfg-res { display: flex; flex-wrap: wrap; gap: 6px; }
.cfg-st { font-size: 12px; color: var(--muted); background: var(--panel-2); border-radius: 6px; padding: 3px 8px; display: inline-flex; gap: 4px; align-items: center; overflow-wrap: anywhere; }
.cfg-st.ok { color: var(--green-t); background: color-mix(in srgb, var(--green-t) 12%, transparent); }
.cfg-st.err { color: var(--red-t); background: color-mix(in srgb, var(--red-t) 12%, transparent); }
.card-b.flush { padding: 0; }
.grid { display: grid; gap: 20px; }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.g-2-1 { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); }
.g-1-2 { grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); }
.mb { margin-bottom: 20px; }

/* KPI */
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 16px; margin-bottom: 20px; }
.kpi { --c: var(--brand); position: relative; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 18px 20px; box-shadow: var(--shadow-xs); min-height: 108px; }
.kpi .lbl { color: var(--muted); font-size: 13px; font-weight: 500; padding-right: 44px; }
.kpi .lbl .ic { position: absolute; top: 16px; right: 16px; width: 36px; height: 36px; padding: 9px; border-radius: 8px; color: var(--c); background: color-mix(in srgb, var(--c) 11%, transparent); border: 1px solid color-mix(in srgb, var(--c) 22%, transparent); }
.kpi .lbl .dot { display: none; }
.kpi .val { font-size: 26px; font-weight: 600; margin-top: 8px; letter-spacing: -.02em; font-variant-numeric: tabular-nums; line-height: 1.2; }
.kpi .sub { font-size: 12.5px; color: var(--muted); margin-top: 2px; }

/* Tables */
.table-wrap { overflow: auto; }
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 11px 16px; border-bottom: 1px solid var(--line); white-space: nowrap; font-size: 13.5px; }
td { color: var(--text-2); }
td b { color: var(--text); font-weight: 600; }
th { font-size: 12px; color: var(--muted); font-weight: 500; background: var(--panel-2); position: sticky; top: 0; z-index: 1; }
tbody tr:hover { background: var(--panel-2); }
tr.clickable { cursor: pointer; }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }
.pager { display: flex; gap: 8px; align-items: center; justify-content: flex-end; padding: 12px 16px; color: var(--muted); font-size: 12.5px; }
td .ic { color: var(--muted); }

/* Badges & dots */
.badge { display: inline-flex; align-items: center; gap: 5px; padding: 2px 8px; border-radius: 99px; font-size: 12px; font-weight: 500; background: var(--grey-b); border: 1px solid var(--grey-l); color: var(--grey-t); white-space: nowrap; line-height: 18px; }
.badge.green { background: var(--green-b); color: var(--green-t); border-color: var(--green-l); }
.badge.orange { background: var(--amber-b); color: var(--amber-t); border-color: var(--amber-l); }
.badge.red { background: var(--red-b); color: var(--red-t); border-color: var(--red-l); }
.badge.blue { background: var(--blue-b); color: var(--blue-t); border-color: var(--blue-l); }
.badge.grey { background: var(--grey-b); color: var(--grey-t); border-color: var(--grey-l); }
.badge.purple { background: var(--purple-b); color: var(--purple-t); border-color: var(--purple-l); }
.dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; flex: none; vertical-align: 1px; }
.stars { color: #fdb022; letter-spacing: 1px; }

/* ---------- Maps ---------- */
.map { width: 100%; height: 100%; min-height: 300px; border-radius: 12px; z-index: 0; }
.map.flat { border-radius: 0; }
.leaflet-container { font: inherit; background: #e9ecf1; }
:root[data-theme="dark"] .leaflet-container { background: #10141d; }
/* Filtri i errët i hartës kërkon shumë memorie grafike – në aplikacionin Android nuk përdoret (përndryshe WebView nuk e vizaton faqen) */
html:not(.native-android)[data-theme="dark"] .leaflet-container:not(.gbase) .leaflet-tile-pane { filter: invert(1) hue-rotate(180deg) grayscale(.55) brightness(.82) contrast(.9); }
.leaflet-bar { border: 1px solid var(--line-2) !important; border-radius: 8px !important; overflow: hidden; box-shadow: var(--shadow-xs) !important; }
.leaflet-bar a { background: var(--panel) !important; color: var(--text-2) !important; border-color: var(--line) !important; }
.leaflet-control-attribution { font-size: 10px; background: color-mix(in srgb, var(--panel) 80%, transparent) !important; color: var(--muted) !important; }
.leaflet-control-attribution a { color: var(--muted) !important; }
.leaflet-tooltip { background: var(--panel); color: var(--text); border: 1px solid var(--line-2); border-radius: 6px; box-shadow: var(--shadow-lg); font-size: 12px; }
.live { display: grid; grid-template-columns: 340px 1fr; height: 100%; }
.live-side { background: var(--panel); border-right: 1px solid var(--line); display: flex; flex-direction: column; min-height: 0; }
.live-side .head { padding: 14px; border-bottom: 1px solid var(--line); display: flex; flex-direction: column; gap: 10px; }
.vlist { overflow-y: auto; flex: 1; }
.vitem { display: flex; gap: 11px; align-items: center; padding: 10px 14px; border-bottom: 1px solid var(--line); cursor: pointer; }
.vitem:hover { background: var(--panel-2); }
.vitem.sel { background: var(--brand-soft); box-shadow: 3px 0 0 var(--brand) inset; }
.vitem .p { font-weight: 600; font-size: 13.5px; }
.vitem .p small { font-weight: 500; }
.vitem .m { font-size: 12px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vitem .r { margin-left: auto; text-align: right; font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.vitem .r b { color: var(--text); font-size: 13.5px; }
.vitem .r .ic { width: 12px; height: 12px; }
.map-wrap { position: relative; min-width: 0; }
.drawer { position: absolute; top: 12px; right: 12px; bottom: 12px; width: 350px; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow-lg); z-index: 500; display: flex; flex-direction: column; overflow: hidden; }
.drawer .dh { padding: 16px; border-bottom: 1px solid var(--line); display: flex; gap: 10px; align-items: flex-start; }
.drawer .db { padding: 16px; overflow-y: auto; flex: 1; min-height: 0; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }
.drawer .dpeek { display: none; }
.drawer .dact { padding: 12px; border-top: 1px solid var(--line); }
.kv { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 16px; }
.kv > div { display: flex; flex-direction: column; gap: 2px; }
.kv .k { font-size: 12px; color: var(--muted); }
.kv .v { font-weight: 500; font-variant-numeric: tabular-nums; display: inline-flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.kv .v .ic { color: var(--muted); }
.section-t { font-size: 12px; font-weight: 600; color: var(--text-2); margin: 20px 0 10px; padding-bottom: 6px; border-bottom: 1px solid var(--line); }
.legend { position: absolute; left: 12px; bottom: 12px; z-index: 400; background: var(--panel); border: 1px solid var(--line); border-radius: 8px; padding: 7px 12px; display: flex; gap: 14px; font-size: 12px; color: var(--text-2); box-shadow: var(--shadow-xs); flex-wrap: wrap; }
.legend span { display: inline-flex; gap: 6px; align-items: center; }
.legend .lg-h, .map-legend .lg-h { display: inline-flex; gap: 4px; align-items: center; font-weight: 600; color: var(--text); }
.map-legend { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: 12px; color: var(--text-2); }
.map-legend span { display: inline-flex; gap: 6px; align-items: center; }
/* Google Maps: logoja e Google (poshtë majtas) duhet të mbetet e dukshme */
.map.gbase ~ .legend { bottom: 38px; }
.map.gbase ~ #lReplay .replay-bar { bottom: 38px; }
.leaflet-control-layers { border: 1px solid var(--line) !important; border-radius: 8px !important; box-shadow: var(--shadow-xs) !important; background: var(--panel); color: var(--text); }
.leaflet-control-layers-toggle { background-image: none !important; display: grid !important; place-items: center; width: 34px !important; height: 34px !important; color: var(--text); }
.leaflet-control-layers-expanded { padding: 8px 12px 8px 8px; font-size: 13px; }
.leaflet-control-layers label { margin: 3px 0; }
.leaflet-control-layers-separator { border-top-color: var(--line); }
.map-tools { position: absolute; top: 12px; left: 56px; z-index: 400; display: flex; gap: 6px; }
.replay-bar { position: absolute; left: 12px; right: 12px; bottom: 12px; z-index: 450; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 10px 14px; box-shadow: var(--shadow-lg); display: flex; gap: 12px; align-items: center; flex-wrap: wrap; font-size: 13px; }
.replay-bar input[type=range] { flex: 1; min-width: 160px; }
.replay-bar select { padding: 5px 8px; font-size: 13px; }
.veh-arrow { width: 26px; height: 26px; display: grid; place-items: center; }
.veh-arrow svg { filter: drop-shadow(0 1px 2px rgba(16, 24, 40, .35)); }

/* Alarm list */
.alist { display: flex; flex-direction: column; }
.aitem { display: flex; gap: 12px; padding: 12px 18px; border-bottom: 1px solid var(--line); align-items: flex-start; }
.aitem:hover { background: var(--panel-2); }
.aitem > .ic { display: grid; place-items: center; width: 32px; height: 32px; padding: 7px; border-radius: 8px; background: var(--panel-3); color: var(--text-2); flex: none; }
.aitem .t { font-weight: 600; font-size: 13.5px; }
.aitem .d { font-size: 12.5px; color: var(--muted); }
.aitem.warning > .ic { background: var(--amber-b); color: var(--amber-t); }
.aitem.critical > .ic { background: var(--red-b); color: var(--red-t); }
.aitem.info > .ic { background: var(--blue-b); color: var(--blue-t); }
.aitem.critical { box-shadow: 3px 0 0 var(--red) inset; }
.aitem.acked { opacity: .55; }
/* Geofences: grupi "Lagjet e Prishtinës" dhe zonat brenda tij */
.aitem.ghead { background: var(--panel-2); }
.aitem.gsub { padding-left: 34px; }
.aitem.gsub .t { font-weight: 500; }

/* Modal & toasts */
.modal { position: fixed; inset: 0; background: rgba(12, 17, 29, .55); display: flex; align-items: flex-start; justify-content: center; z-index: 2000; padding: 48px 16px; overflow-y: auto; }
.modal.hidden { display: none; }
.modal-box { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; width: min(720px, 100%); position: relative; box-shadow: 0 24px 48px -12px rgba(16, 24, 40, .25); }
.modal-box.wide { width: min(1000px, 100%); }
.modal-close { position: absolute; top: 14px; right: 14px; border: none; background: none; cursor: pointer; color: var(--muted); z-index: 2; width: 32px; height: 32px; border-radius: 8px; display: grid; place-items: center; }
.modal-close:hover { background: var(--panel-3); color: var(--text); }
.modal-h { padding: 20px 24px 16px; border-bottom: 1px solid var(--line); }
.modal-h h2 { font-size: 17px; display: flex; gap: 8px; align-items: center; }
.modal-h .muted { margin-top: 2px; }
.modal-b { padding: 20px 24px; }
.modal-f { padding: 14px 24px; border-top: 1px solid var(--line); display: flex; justify-content: flex-end; gap: 10px; background: var(--panel-2); border-radius: 0 0 14px 14px; }
#toasts { position: fixed; right: 20px; bottom: 20px; z-index: 3000; display: flex; flex-direction: column; gap: 10px; }
.toast { background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px 12px 16px; box-shadow: var(--shadow-lg); width: 360px; cursor: pointer; display: flex; gap: 12px; animation: slidein .2s ease; }
.toast .ti { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; flex: none; background: var(--brand-soft); color: var(--brand); }
.toast.critical .ti { background: var(--red-b); color: var(--red-t); }
.toast.warning .ti { background: var(--amber-b); color: var(--amber-t); }
.toast.ok .ti { background: var(--green-b); color: var(--green-t); }
.toast b { display: block; font-size: 13.5px; }
.toast span { font-size: 13px; }
@keyframes slidein { from { transform: translateY(8px); opacity: 0; } }

/* Rent */
.car-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 16px; }
.car { border: 1px solid var(--line); border-radius: 12px; padding: 16px; background: var(--panel); display: flex; flex-direction: column; gap: 10px; box-shadow: var(--shadow-xs); font-size: 13px; }
.car .t { font-weight: 600; font-size: 14px; }
.bar { height: 6px; background: var(--panel-3); border-radius: 99px; overflow: hidden; }
.bar > i { display: block; height: 100%; background: var(--green); border-radius: 99px; }
.contract { font-size: 13px; line-height: 1.6; }
.contract h2 { text-align: center; margin-bottom: 4px; letter-spacing: .04em; }
.contract table td { white-space: normal; border: 1px solid var(--line-2); }
.sign { display: flex; justify-content: space-between; margin-top: 40px; }
.sign div { border-top: 1px solid var(--text); width: 40%; text-align: center; padding-top: 6px; }

/* Phones */
.phones { display: flex; gap: 32px; flex-wrap: wrap; justify-content: center; }
.phone-col { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.phone-col h3 { color: var(--muted); font-size: 13px; font-weight: 600; }
.phone { width: 330px; height: 660px; border: 10px solid #1d2939; border-radius: 42px; background: var(--bg); overflow: hidden; display: flex; flex-direction: column; box-shadow: var(--shadow-lg); position: relative; }
.phone .notch { position: absolute; top: 6px; left: 50%; transform: translateX(-50%); width: 90px; height: 24px; background: #1d2939; border-radius: 16px; z-index: 5; }
.phone .ph { background: var(--brand); color: #fff; padding: 38px 16px 12px; display: flex; align-items: center; gap: 8px; }
.phone .pb { flex: 1; overflow-y: auto; padding: 12px; display: flex; flex-direction: column; gap: 10px; }
.phone .pnav { display: flex; border-top: 1px solid var(--line); background: var(--panel); }
.phone .pnav button { flex: 1; background: none; border: none; padding: 9px 0 12px; font-size: 11px; font-weight: 500; color: var(--muted); cursor: pointer; display: flex; flex-direction: column; align-items: center; gap: 3px; }
.phone .pnav button.on { color: var(--brand); }
.phone .pcard { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 12px; font-size: 13px; }
.phone .bigbtn { width: 100%; padding: 12px; border-radius: 10px; border: none; font: inherit; font-weight: 600; cursor: pointer; display: inline-flex; gap: 8px; justify-content: center; align-items: center; }
.phone .mini-map { height: 180px; flex: none; border-radius: 12px; border: 1px solid var(--line); }
.phone .seg { display: flex; }
.phone .seg button.on { color: #fff; }
.chat { display: flex; flex-direction: column; gap: 6px; }
.msg { max-width: 85%; padding: 8px 11px; border-radius: 12px; font-size: 13px; }
.msg.me { align-self: flex-end; background: var(--brand); color: #fff; border-bottom-right-radius: 4px; }
.msg.them { align-self: flex-start; background: var(--panel); border: 1px solid var(--line); border-bottom-left-radius: 4px; }

/* API docs */
.endpoint { display: flex; gap: 10px; align-items: center; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 13px; }
.method { font-family: var(--mono); font-size: 11px; font-weight: 600; padding: 2px 6px; border-radius: 5px; min-width: 56px; text-align: center; }
.method.GET { color: var(--green-t); background: var(--green-b); }
.method.POST { color: var(--blue-t); background: var(--blue-b); }
.method.PUT { color: var(--amber-t); background: var(--amber-b); }
.method.DELETE { color: var(--red-t); background: var(--red-b); }
pre.code { background: #0c111d; color: #cecfd2; padding: 16px; border-radius: 10px; overflow: auto; margin: 0; max-height: 360px; border: 1px solid #1f242f; }
.flow { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; justify-content: center; padding: 8px 0; }
.flow .node { border: 1px solid var(--line-2); border-radius: 10px; padding: 12px 16px; background: var(--panel-2); font-weight: 600; text-align: center; font-size: 13px; }
.flow .node small { font-weight: 400; }
.flow .node.main { background: var(--brand); color: #fff; border-color: var(--brand); }
.flow .node.main small { color: rgba(255, 255, 255, .8); }
.flow .arrow { color: var(--muted); }

.empty { padding: 36px; text-align: center; color: var(--muted); }
.hint { font-size: 13px; color: var(--text-2); background: var(--panel-2); border: 1px solid var(--line); padding: 10px 12px; border-radius: 8px; }
.perm td, .perm th { text-align: center; }
.perm td:first-child, .perm th:first-child { text-align: left; }
.perm .ic { color: var(--green); }

/* ---------- Super Admin: modulet ---------- */
.mod-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.mod { display: flex; gap: 12px; align-items: flex-start; padding: 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--panel); }
.mod.on { border-color: var(--brand-line); background: var(--brand-soft); }
.mod .mi { width: 36px; height: 36px; border-radius: 8px; display: grid; place-items: center; background: var(--panel-3); color: var(--text-2); flex: none; }
.mod.on .mi { background: var(--brand); color: #fff; }
.mod .mt { font-weight: 600; font-size: 13.5px; }
.mod .md { font-size: 12.5px; color: var(--muted); }
.mod .switch { margin-left: auto; }
.mod-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 8px; }
.mod-check { display: flex; gap: 8px; align-items: center; padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; font-size: 13px; cursor: pointer; }
.mod-check:has(input:checked) { border-color: var(--brand-line); background: var(--brand-soft); }
.mod-check.dis { opacity: .5; cursor: not-allowed; }
.mod-check .ic { color: var(--muted); }
.mods-inline { display: flex; gap: 4px; flex-wrap: wrap; }
.mods-inline .ic { width: 26px; height: 26px; padding: 5px; border-radius: 6px; background: var(--panel-3); color: var(--text-2); }
.co-cell { display: flex; gap: 10px; align-items: center; }
.co-logo { width: 34px; height: 34px; border-radius: 8px; display: grid; place-items: center; font-weight: 700; font-size: 12px; color: #fff; flex: none; }

/* ---------- Login ---------- */
.login { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); min-height: 100vh; background: var(--panel); }
.login-art { background: radial-gradient(600px 420px at 90% 8%, rgba(65, 105, 225, .45), transparent 60%), radial-gradient(420px 300px at 0% 100%, rgba(232, 182, 76, .16), transparent 60%), #050d24; color: #d3dbf5; padding: 48px 56px; display: flex; flex-direction: column; position: relative; overflow: hidden; }
.login-art svg.routes { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .5; }
.login-art > * { position: relative; }
.login-art .brand { padding: 0; }
.login-art h1 { color: #fff; font-size: 34px; line-height: 1.2; margin: auto 0 16px; max-width: 520px; letter-spacing: -.02em; }
.login-art p { font-size: 15px; color: #9fb0e0; max-width: 480px; margin: 0 0 32px; }
.login-feats { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 24px; max-width: 520px; margin-bottom: auto; }
.login-feats div { display: flex; gap: 10px; align-items: center; font-size: 14px; color: #d3dbf5; }
.login-feats .ic { width: 32px; height: 32px; padding: 7px; border-radius: 8px; background: #102659; border: 1px solid #1a3577; color: #9db4ff; }
.login-art .foot { font-size: 12.5px; color: #6f7fb0; margin-top: 32px; }
.login-form { display: flex; align-items: center; justify-content: center; padding: 48px 24px; background: var(--panel); }
.login-form form { width: min(380px, 100%); display: flex; flex-direction: column; gap: 18px; }
.login-form h2 { font-size: 26px; letter-spacing: -.02em; }
.login-form .err { background: var(--red-b); color: var(--red-t); border: 1px solid var(--red-l); padding: 9px 12px; border-radius: 8px; font-size: 13px; }
.demo-acc { border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.demo-acc .h { padding: 9px 12px; font-size: 12px; font-weight: 600; color: var(--muted); background: var(--panel-2); border-bottom: 1px solid var(--line); }
.demo-acc button { display: flex; width: 100%; align-items: center; gap: 10px; padding: 9px 12px; border: none; border-bottom: 1px solid var(--line); background: var(--panel); cursor: pointer; font: inherit; text-align: left; color: var(--text); }
.demo-acc button:last-child { border-bottom: none; }
.demo-acc button:hover { background: var(--panel-2); }
.demo-acc button small { display: block; }

@media (max-width: 1100px) {
  .g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .g3, .g-2-1, .g-1-2 { grid-template-columns: minmax(0, 1fr); }
  .form-grid.add-dev { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
/* ---------- Telefon & aplikacioni mobil ---------- */
html { -webkit-tap-highlight-color: transparent; }
button, a, .chip, .vitem, tr.clickable { touch-action: manipulation; }
.m-only, .tabbar, .scrim, .side-close { display: none; }
.imp-bar { padding-top: max(8px, var(--sat)); }
.imp-bar:not(.hidden) + .topbar { padding-top: 0; }
.demo-bar:not(.hidden) ~ .topbar { padding-top: 0; }
.demo-bar:not(.hidden) + .imp-bar { padding-top: 8px; }

@media (max-width: 900px) {
  html, body { overscroll-behavior: none; }
  .m-only { display: block; }
  .btn.m-only { display: inline-flex; }
  .d-only { display: none !important; }
  .app { grid-template-columns: 1fr; }
  .sidebar { position: fixed; left: 0; top: 0; bottom: 0; width: min(300px, 86vw); z-index: 1500; transform: translateX(-102%); transition: transform .22s ease; padding-top: var(--sat); padding-bottom: var(--sab); }
  .sidebar.open { transform: none; box-shadow: 0 0 40px rgba(0, 0, 0, .45); }
  .side-close { display: grid; margin-left: auto; color: var(--side-muted); }
  .side-close:hover { background: var(--side-2); color: #fff; }
  .scrim { display: block; position: fixed; inset: 0; background: rgba(12, 17, 29, .5); z-index: 1400; opacity: 0; pointer-events: none; transition: opacity .2s; }
  .scrim.on { opacity: 1; pointer-events: auto; }
  .sidebar nav a { padding: 11px 10px; font-size: 15px; }
  #menuBtn { display: none; }
  .topbar { padding: var(--sat) 12px 0 16px; min-height: 54px; gap: 8px; }
  .topbar h1 { font-size: 17px; overflow: hidden; text-overflow: ellipsis; }
  .clock, #companySel { display: none; }
  .view { padding: 14px 14px 20px; -webkit-overflow-scrolling: touch; }

  /* Shiriti i poshtëm */
  .tabbar { display: flex; flex-direction: row; flex: none; background: var(--panel); border-top: 1px solid var(--line); padding-bottom: var(--sab); z-index: 900; user-select: none; -webkit-user-select: none; }
  .tabbar a, .tabbar button { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; padding: 8px 2px 7px; min-height: 56px; color: var(--muted); font: inherit; font-size: 11px; font-weight: 500; background: none; border: none; cursor: pointer; position: relative; }
  .tabbar span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
  .tabbar .active { color: var(--brand); }
  .tabbar .tb-badge { position: absolute; top: 5px; left: calc(50% + 6px); background: var(--red); color: #fff; font-style: normal; font-size: 10px; font-weight: 700; line-height: 15px; padding: 0 5px; border-radius: 99px; border: 2px solid var(--panel); }

  /* Forma: 16px që iOS të mos zmadhojë faqen */
  input, select, textarea { font-size: 16px; }
  .form-grid { grid-template-columns: minmax(0, 1fr); }
  .form-grid .span2 { grid-column: auto; }
  .form-grid.add-dev { grid-template-columns: minmax(0, 1fr); }
  .g2, .g3, .g4 { grid-template-columns: minmax(0, 1fr); }
  .modal-box { overflow-x: hidden; }
  .kv { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .grid { gap: 14px; }
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-bottom: 14px; }
  .kpi { padding: 14px; min-height: 0; }
  .kpi .lbl { font-size: 12.5px; padding-right: 36px; }
  .kpi .lbl .ic { top: 12px; right: 12px; width: 30px; height: 30px; padding: 7px; }
  .kpi .val { font-size: 21px; }
  .card-h { padding: 12px 14px; }
  .card-h .actions { margin-left: 0; width: 100%; }
  .card-h .actions input, .card-h .actions select { flex: 1; min-width: 0; font-size: 16px; }
  .card-b { padding: 14px; }
  .page-h .actions { margin-left: 0; }
  th, td { padding: 10px 12px; }
  .mb { margin-bottom: 14px; }

  /* Dritaret (modal) në ekran të plotë */
  .modal { padding: 0; align-items: stretch; }
  .modal-box, .modal-box.wide { width: 100%; min-height: 100%; border-radius: 0; border: none; padding-top: var(--sat); display: flex; flex-direction: column; }
  #modalBody { flex: 1; display: flex; flex-direction: column; }
  .modal-b { flex: 1; padding: 16px; }
  .modal-h { padding: 16px 56px 12px 16px; }
  .modal-close { top: calc(10px + var(--sat)); right: 8px; }
  .modal-f { position: sticky; bottom: 0; border-radius: 0; padding: 12px 16px calc(12px + var(--sab)); flex-wrap: wrap; }
  .modal-f .btn { flex: 1; }

  #toasts { left: 12px; right: 12px; bottom: auto; top: calc(10px + var(--sat)); }
  .toast { width: auto; }

  /* Live Map: harta në ekran të plotë, lista si panel */
  .live { grid-template-columns: 1fr; grid-template-rows: 1fr; position: relative; }
  .live .map { min-height: 0; } /* telefon anash: harta (dhe paneli) sa lartësia e dukshme, jo min. 300 px nën shiritin poshtë */
  .live-side { position: absolute; inset: 0; z-index: 700; border: none; transform: translateX(-100%); transition: transform .22s ease; }
  .live.show-list .live-side { transform: none; }
  .map-tools { left: 54px; right: 12px; flex-wrap: wrap; }
  /* Paneli i automjetit: i mbledhur (kryesoret + butonat) që harta të mbetet e lirë; prekje/rrëshqitje lart → të gjitha detajet */
  .drawer { width: auto; left: 8px; right: 8px; top: auto; bottom: 8px; max-height: 72%; border-radius: 16px; }
  .drawer .dh::before { content: ""; position: absolute; top: 6px; left: 50%; width: 36px; height: 4px; margin-left: -18px; border-radius: 4px; background: var(--line-2); }
  .drawer .dh { position: relative; padding: 18px 10px 10px 16px; gap: 4px; cursor: pointer; touch-action: none; }
  .drawer .dh h2 { font-size: 18px; }
  .drawer .icon-btn.m-only { display: grid; }
  .drawer:not(.open) .dh { border-bottom: 0; padding-bottom: 4px; }
  .drawer:not(.open) .db { display: none; }
  .drawer:not(.open) .dpeek { display: flex; }
  .drawer .dpeek { gap: 6px 14px; flex-wrap: wrap; align-items: center; padding: 2px 16px 12px; font-size: 13px; color: var(--text-2); cursor: pointer; touch-action: none; }
  .dpeek > span { display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; }
  .dpeek .ic { color: var(--muted); }
  .dpeek .pk-speed b { font-size: 20px; font-weight: 600; color: var(--text); font-variant-numeric: tabular-nums; }
  .dpeek .pk-more { margin-left: auto; color: var(--brand); font-weight: 600; }
  .dpeek .pk-more .ic { color: inherit; transform: rotate(180deg); }
  .drawer:not(.open) .sheet-tg .ic { transform: rotate(180deg); }
  .drawer .dact { padding: 10px 12px; gap: 8px; }
  .legend { display: none; }
  .replay-bar { left: 8px; right: 8px; bottom: 8px; gap: 8px; }

  /* Faqe specifike */
  .tx-map { height: 340px !important; }
  .tx-orders { height: auto !important; max-height: 70vh; }
  .geo-layout { height: auto !important; min-height: 0 !important; }
  .geo-layout .geo-map { height: 60vh; }
  .dash-map { height: 300px !important; }
  .phones { gap: 20px; }
  .phone { width: 100%; max-width: 360px; height: 620px; border-width: 6px; }
  .car-grid { grid-template-columns: 1fr; }
  .mod-grid, .mod-list { grid-template-columns: 1fr; }
  .imp-bar { flex-wrap: wrap; padding-left: 14px; padding-right: 14px; }
  .imp-bar .btn { margin-left: 0; }
  .endpoint { flex-wrap: wrap; row-gap: 4px; }
  .endpoint > span.muted { margin-left: 0 !important; text-align: left !important; flex-basis: 100%; }
  .endpoint code { word-break: break-all; }

  /* Hyrja */
  .login { grid-template-columns: 1fr; min-height: 100dvh; }
  .login-art { display: none; }
  .login-form { align-items: flex-start; padding: calc(28px + var(--sat)) 20px calc(24px + var(--sab)); }
  .login-form .m-only.brand { display: flex; padding: 0 0 8px; }
  .login-form .brand b { color: var(--text); }
}

@media print {
  :root { --bg: #fff; --panel: #fff; --panel-2: #fff; --text: #000; --muted: #444; --line: #ccc; --line-2: #999; }
  .sidebar, .topbar, .imp-bar, .modal-close, .modal-f, #toasts { display: none !important; }
  .modal { position: static; background: none; padding: 0; }
  .modal-box { box-shadow: none; width: 100%; border: none; }
}

/* Fotot e kamerës (VT200-L) */
.ph-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.ph-grid a { position: relative; display: block; aspect-ratio: 4 / 3; border-radius: 8px; overflow: hidden; background: var(--panel-3); border: 1px solid var(--line); }
.ph-grid img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ph-grid span { position: absolute; left: 4px; bottom: 4px; background: rgba(0, 0, 0, .6); color: #fff; font-size: 11px; padding: 0 5px; border-radius: 4px; }

/* Raporti ditor (udhëtime & ndalesa) */
.dr-bar { display: flex; flex-wrap: wrap; gap: 12px 16px; align-items: flex-end; }
.dr-bar .fld { margin: 0; min-width: 180px; }
.dr-bar input[type=date] { width: 150px; }
.dr-actions { margin-left: auto; gap: 8px; }
.btn.icon { padding: 7px 9px; }
.nowrap { white-space: nowrap; }
.dr-title { align-items: flex-start; }
.dr-title h2 { font-size: 18px; }
.dr-kpis { padding: 16px 16px 0; margin-bottom: 0; grid-template-columns: repeat(6, minmax(0, 1fr)); }
.dr-kpis.f7 { grid-template-columns: repeat(7, minmax(0, 1fr)); } /* + karburanti (OBD) */
@media (max-width: 1280px) { .dr-kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); } .dr-kpis.f7 { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.dr-grid { padding: 16px; display: grid; gap: 16px; }
.dr-mapbox { height: 420px; border-radius: 12px; overflow: hidden; border: 1px solid var(--line); }
.dr-table td { vertical-align: top; }
.dr-table tr[data-i] { cursor: pointer; }
.dr-table tr[data-i]:hover td { background: var(--panel-2); }
.dr-trip td { color: var(--text-2); }
.dr-stop td { background: var(--amber-b); }
.dr-stop.dr-edge td { background: none; color: var(--muted); }
.dr-table td.dr-place { min-width: 240px; white-space: normal; line-height: 1.45; }
.dr-table td:first-child { width: 44px; padding-right: 0; }
.dr-p { display: inline-block; background: #4169e1; color: #fff; border-radius: 6px; padding: 1px 6px; font-size: 11.5px; font-weight: 700; }
.dr-pin { background: #4169e1; color: #fff; border: 2px solid #fff; border-radius: 7px; padding: 1px 6px; font-size: 11.5px; font-weight: 700; box-shadow: 0 1px 4px rgba(0, 0, 0, .35); white-space: nowrap; transform: translate(-50%, -50%); display: inline-block; }
.dr-pin.edge { background: #667085; padding: 2px 3px; line-height: 0; }
tr.on td { background: var(--brand-soft); }
tr.dr-idle td { color: var(--muted); }
.print-only { display: none; }
@media (max-width: 760px) {
  .dr-actions { margin-left: 0; width: 100%; }
  .dr-actions .btn { flex: 1; }
  .dr-mapbox { height: 320px; }
  .dr-kpis { padding: 12px 12px 0; }
  .dr-grid { padding: 12px; }
}
@media print {
  .no-print, .tabbar, .tabs, #rpPeriod, #drDays, .leaflet-control-container { display: none !important; }
  .print-only { display: block; }
  .app, main { display: block !important; height: auto !important; }
  .view { overflow: visible !important; padding: 0 !important; }
  .dr-grid { display: block; padding: 8px 0; }
  .dr-mapbox { height: 300px; margin-bottom: 12px; break-inside: avoid; }
  .dr-table tr { break-inside: avoid; }
  .kpis.dr-kpis { grid-template-columns: repeat(3, 1fr); padding: 8px 0 0; }
  .dr-stop td { background: #fff4e0 !important; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .card { box-shadow: none; }
}

/* Ikonat e veturave në hartë */
.veh-car { background: none; border: 0; }
.veh-car svg { display: block; overflow: visible; filter: drop-shadow(0 1px 2px rgba(11, 23, 51, .45)); transition: transform .6s ease, scale .2s ease; }
.veh-car.sel::before { content: ""; position: absolute; inset: 0; border-radius: 50%; background: rgba(46, 144, 250, .18); border: 2px solid rgba(46, 144, 250, .55); animation: pulse 2s infinite; }
/* Tabela e numrave të taksive (1–80) */
.nboard { display: grid; grid-template-columns: repeat(10, minmax(0, 1fr)); gap: 6px; }
.nt { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 54px; padding: 4px 2px; border: 0; border-radius: 8px; background: var(--c); color: #fff; font: inherit; cursor: pointer; box-shadow: inset 0 -2px 0 rgba(0, 0, 0, .14); transition: transform .12s ease, filter .12s ease; }
.nt b { font-size: 19px; line-height: 1; font-weight: 700; }
.nt small { max-width: 100%; margin-top: 4px; overflow: hidden; font-size: 10.5px; font-weight: 500; opacity: .92; text-overflow: ellipsis; white-space: nowrap; }
.nt:hover { filter: brightness(1.07); transform: translateY(-1px); }
.nt.on { outline: 3px solid var(--text); outline-offset: 2px; }
.nt.empty { background: transparent; color: var(--muted); border: 1.5px dashed var(--line); box-shadow: none; cursor: default; }
.nt.empty b { font-size: 16px; font-weight: 600; }
.nt.empty:hover { filter: none; transform: none; }
.nlegend { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: 12px; color: var(--text-2); }
.nlegend span { display: inline-flex; align-items: center; gap: 5px; }
.nt small.nt-lg { margin-top: 2px; font-size: 9.5px; opacity: .85; }
@media (max-width: 900px) {
  .nboard { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .nt { min-height: 46px; }
  .nt small { display: none; }
  .nt small.nt-lg { display: block; margin-top: 3px; } /* në telefon lagjja në vend të targës */
}
/* Faqja Taxi (09.11.2026): harta sa më e madhe; numrat si panel i vogël mbi hartë (lart djathtas), targa në tooltip, lagjja poshtë numrit */
.tx-big .tx-map { position: relative; height: max(560px, calc(100dvh - 240px)); } /* kartat lart janë kompakte (09.11.2026) */
.tx-big #tMap { border-radius: 0 0 12px 12px; }
.tx-numov { position: absolute; top: 10px; right: 10px; z-index: 450; width: 272px; max-height: calc(100% - 20px); overflow: auto; padding: 8px; border-radius: 10px;
  background: var(--panel); border: 1px solid var(--line); box-shadow: var(--shadow-lg); } /* 09.11.2026: sfond i plotë (në Windows harta dukej përmes panelit) */
.tx-numov .nlegend { margin-bottom: 6px; font-size: 11px; gap: 2px 8px; }
.nboard.sm { grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 3px; }
.nboard.sm .nt { min-height: 30px; padding: 1px; border-radius: 5px; }
.nboard.sm .nt b { font-size: 13px; }
.nboard.sm .nt.empty { border-width: 1px; }
.nboard.sm .nt.empty b { font-size: 11px; }
.nboard.sm .nt small.nt-pl { display: none; }
.nboard.sm .nt small.nt-lg { display: block; margin-top: 1px; font-size: 8px; }
.nboard.sm .nt.on { outline-width: 2px; outline-offset: 1px; }
.tx-big #tNumTg.on { background: var(--brand-soft); color: var(--brand); border-color: var(--brand); }
@media (max-width: 900px) { /* telefon: numrat sipër hartës, jo mbi të */
  .tx-big .tx-map { height: auto !important; display: flex; flex-direction: column; }
  .tx-big #tMap { height: 340px; }
  .tx-numov { position: static; order: -1; width: auto; max-height: none; padding: 10px; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; box-shadow: none; background: var(--panel); backdrop-filter: none; }
  .nboard.sm { gap: 4px; }
  .nboard.sm .nt { min-height: 38px; }
  .nboard.sm .nt b { font-size: 15px; }
}
/* Taxi: taksitë sipas lagjeve të Prishtinës */
.lgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 8px; }
.lgz { padding: 9px 11px; border: 1px solid var(--line); border-left: 4px solid var(--c); border-radius: 8px; background: var(--panel); }
.lgz[data-lg] { cursor: pointer; }
.lgz[data-lg]:hover { background: var(--panel-2); }
.lgz.on { outline: 2px solid var(--c); outline-offset: 1px; }
.lgz.zero { opacity: .55; }
.lgz-h { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.lgz-t { font-weight: 600; font-size: 13.5px; line-height: 1.25; } /* pa prerje: "Kodra e Trimave 1" / "… 2" duhet të dallohen */
.lgz-n { font-size: 20px; line-height: 1; }
.lgz-s { min-height: 15px; font-size: 12px; color: var(--muted); }
.lgz-cars { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 6px; }
.lchip { display: inline-grid; place-items: center; min-width: 26px; height: 22px; padding: 0 5px; border-radius: 6px; background: var(--c); color: #fff; font: 700 12px/1 var(--font); cursor: pointer; }
.lchip:hover { filter: brightness(1.1); }
@media (max-width: 900px) { .lgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.lgz-code { display: inline-block; margin-right: 2px; padding: 0 5px; border-radius: 5px; background: var(--c); color: #fff; font-size: 11.5px; letter-spacing: .03em; vertical-align: 1px; }

/* Ekrani TV i dispeçerisë (#/taxi/tv): pa menynë, shkronja për t'u lexuar nga larg.
   09.11.2026: gjithmonë i çelët (edhe kur aplikacioni është në temë të errët) dhe harta OpenStreetMap pa filtër */
body.tv-mode .app { grid-template-columns: 1fr; }
body.tv-mode .sidebar, body.tv-mode .topbar, body.tv-mode .tabbar, body.tv-mode .imp-bar, body.tv-mode .scrim { display: none !important; }
body.tv-mode .view { padding: 0; overflow: hidden; }
.tv { --tv-bg: #f2f4f7; --tv-panel: #ffffff; --tv-line: #d0d5dd; --tv-text: #101828; --tv-muted: #475467;
  /* ngjyrat e temës së çelët për butonat/zgjedhjen brenda ekranit TV */
  --bg: #f4f5f7; --panel: #ffffff; --panel-2: #f9fafb; --panel-3: #f2f4f7; --text: #101828; --text-2: #344054; --muted: #667085;
  --line: #e4e7ec; --line-2: #d0d5dd; --brand: #4169e1; --brand-h: #3456c4; --brand-soft: #eef2fd; --brand-line: #bfcdf6; color-scheme: light;
  display: flex; flex-direction: column; height: 100%; background: var(--tv-bg); color: var(--tv-text); }
/* 09.11.2026 "optimizo barin qe mos me dal shum i gjere": shiriti lart një rresht i hollë (~38 px), që harta të marrë sa më shumë */
.tv-h { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 16px; padding: 4px 10px; border-bottom: 1px solid var(--tv-line); }
.tv-title { white-space: nowrap; }
.tv-title b { font-size: clamp(14px, 1vw, 22px); }
.tv-title span { margin-left: 8px; color: var(--tv-muted); font-size: clamp(12px, .8vw, 17px); }
.tv-sum { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 14px; font-size: clamp(12px, .8vw, 17px); color: var(--tv-muted); }
.tv-sum b { color: var(--tv-text); font-size: 1.25em; font-variant-numeric: tabular-nums; }
.tv-legend { display: flex; flex-wrap: wrap; gap: 4px 14px; }
.tv-legend span { display: inline-flex; align-items: center; gap: 6px; }
.tv-act { display: flex; align-items: center; gap: 6px; margin-left: auto; }
.tv-act select { height: 28px; }
.tv-act .btn.sm { height: 28px; padding: 0 9px; font-size: 12.5px; }
.tv-clock { margin-right: 4px; font: 700 clamp(15px, 1.15vw, 26px)/1 var(--mono); font-variant-numeric: tabular-nums; }
/* 09.11.2026 "më shumë hartë": pllakat e vogla (vetëm shkurtesa + numri), në horizontal kolonë e ngushtë djathtas,
   në vertikal shirit i hollë lart; butoni "Lagjet" i fsheh krejt */
.tv-body { display: flex; flex: 1; min-height: 0; border-top: 1px solid var(--tv-line); }
.tv-map { position: relative; flex: 1; min-width: 0; }
.tv-map .map { position: absolute; inset: 0; height: 100%; }
.tv-map .leaflet-container { background: #e9ecf1; }
.tv-map .leaflet-tile-pane { filter: none !important; } /* pa errësimin e temës së errët */
.tv-tiles { display: grid; flex: none; width: clamp(160px, 11vw, 240px); grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: max-content; align-content: start; gap: 4px; padding: 6px; overflow: auto; border-left: 1px solid var(--tv-line); }
.tv-tiles[hidden] { display: none; }
.tvt { display: flex; align-items: baseline; justify-content: space-between; gap: 4px; min-width: 0; padding: 2px 6px; overflow: hidden; border: 1px solid var(--tv-line); border-left: 4px solid var(--c); border-radius: 5px; background: var(--tv-panel); }
.tvt.zero { opacity: .42; }
.tvt.extra { background: transparent; border-style: dashed; border-left: 4px solid var(--c); }
.tvt.extra .tvt-c { letter-spacing: 0; }
.tvt-c { overflow: hidden; font: 800 clamp(11px, .75vw, 16px)/1.3 var(--font); letter-spacing: .03em; text-overflow: ellipsis; white-space: nowrap; }
.tvt-n { font: 800 clamp(12px, .85vw, 18px)/1.3 var(--font); font-variant-numeric: tabular-nums; }
.tv-act .btn.on { background: var(--brand-soft); color: var(--brand); border-color: var(--brand); }
/* 09.11.2026 "njëjt si te opsioni Taxi me numra anash" → "leje mi hart anash": tabela e numrave 1–80 si panel mbi hartë,
   lart djathtas (si .tx-numov te faqja Taxi), 8 kolona; numri i madh për t'u lexuar nga larg, poshtë shkurtesa e lagjes */
/* 09.11.2026 "beje me te vogel tabelen anash": ~14 vw (≈270 px në TV 1920) në vend të 21 vw */
.tv-nums { position: absolute; top: 8px; right: 8px; z-index: 450; display: flex; flex-direction: column; gap: 4px; width: clamp(200px, 14vw, 320px); max-height: calc(100% - 16px); overflow: auto; padding: 6px; border: 1px solid var(--tv-line); border-radius: 8px; background: var(--tv-panel); box-shadow: 0 4px 14px rgba(16, 24, 40, .14); }
.tv-nums[hidden] { display: none; }
.tv-nums .nlegend { gap: 1px 8px; font-size: clamp(10px, .55vw, 13px); color: var(--tv-muted); }
.tv-nums .nlegend b { color: var(--tv-text); }
.nboard.tvb { grid-template-columns: repeat(8, minmax(0, 1fr)); gap: clamp(2px, .18vw, 4px); }
.tvb .nt { min-height: clamp(22px, 1.65vw, 38px); padding: 1px; border-radius: 4px; cursor: default; }
.tvb .nt:hover { filter: none; transform: none; }
.tvb .nt b { font-size: clamp(11px, .85vw, 19px); }
.tvb .nt.empty { border-width: 1px; }
.tvb .nt.empty b { font-size: clamp(9px, .62vw, 14px); }
.tvb .nt small.nt-pl { display: none; }
.tvb .nt small.nt-lg { display: block; margin-top: 1px; font-size: clamp(7px, .42vw, 10px); }
@media (orientation: portrait), (max-width: 900px) {
  .tv-body { flex-direction: column; }
  .tv-tiles { order: -1; width: auto; max-height: 30%; grid-template-columns: repeat(auto-fill, minmax(62px, 1fr)); border-left: 0; border-bottom: 1px solid var(--tv-line); }
  .tv-nums { top: 6px; right: 6px; left: 6px; width: auto; max-height: 38%; padding: 5px; }
  .nboard.tvb { grid-template-columns: repeat(10, minmax(0, 1fr)); }
  .tvb .nt { min-height: 24px; }
  .tvb .nt b { font-size: clamp(11px, 2.6vw, 17px); }
  .tvb .nt small.nt-lg { font-size: clamp(7px, 1.5vw, 10px); }
}
@media (prefers-reduced-motion: reduce) { .tv * { transition: none !important; } }

/* Numri i taksisë në lista dhe tituj */
.vno { display: inline-block; min-width: 22px; padding: 0 6px; margin-right: 6px; border-radius: 9px; background: #0b1733; color: #fff; font: 700 12px/18px var(--font); text-align: center; vertical-align: 1px; }
.vno.lg { font-size: 14px; line-height: 22px; min-width: 28px; border-radius: 11px; vertical-align: 2px; }
[data-theme="dark"] .vno { background: #e4e7ec; color: #0b1733; }
/* Numri i taksisë – gjithmonë drejt, sipër veturës */
.veh-car .veh-no { position: absolute; left: 50%; bottom: calc(100% + 1px); transform: translateX(-50%); z-index: 1; min-width: 22px; padding: 0 6px; border-radius: 9px; background: #0b1733; color: #fff; border: 1.5px solid #fff; box-shadow: 0 1px 3px rgba(11, 23, 51, .45); font: 700 12px/17px var(--font); text-align: center; white-space: nowrap; pointer-events: none; }
.veh-car .veh-no[hidden] { display: none; }
/* Nga larg: shenja më të vogla, pa numra */
.z-mid .veh-car svg { scale: .8; }
.z-mid .veh-car .veh-no { bottom: calc(90% + 1px); }
.z-far .veh-car svg { scale: .6; }
.z-far .veh-car .veh-no { display: none; }
/* Numri i taksisë në mes të shenjës (rrethi me ngjyrën e statusit) */
.veh-car .veh-num { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: #fff; font-family: var(--font); font-weight: 800; letter-spacing: -.03em; line-height: 1; text-shadow: 0 1px 1.5px rgba(11, 23, 51, .45); pointer-events: none; font-variant-numeric: tabular-nums; }
.z-mid .veh-car .veh-num { scale: .8; }
.z-far .veh-car .veh-num { scale: .6; }

/* ---------- Analiza e flotës ---------- */
.an-tabs { margin-bottom: 16px; }
.an-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin-bottom: 16px; }
.an-bar input[type=date] { width: 150px; }
.an-bar select { max-width: 260px; }
.an-bar .seg button { white-space: nowrap; }
.an-bar .actions { margin-left: auto; display: flex; gap: 8px; }
.an-grid { display: grid; gap: 20px; margin-bottom: 20px; }
.an-grid.an-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.an-grid.an-top { grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); }
.an-grid.an-top > :only-child { grid-column: 1 / -1; }
.an-grid.an-rep { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; }
.an-card .card-h h2 small { font-weight: 400; margin-left: 4px; }
.an-kpis { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.an-kpis .kpi { min-width: 0; }
.an-kpis .kpi .val { font-size: 22px; }
.an-kpis .kpi .val small { font-size: 13px; font-weight: 500; color: var(--muted); }
.an-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 10px; padding: 16px 18px; }
.card-b .an-tiles { padding: 0 0 14px; }
.an-tile { display: flex; flex-direction: column; gap: 2px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--panel-2); min-width: 0; }
.an-tile b { font-size: 24px; line-height: 1.15; font-weight: 700; font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.an-tile span { font-size: 13px; color: var(--text-2); }
.an-tile small { font-size: 12px; color: var(--muted); }
.an-note { font-size: 12.5px; margin-top: 10px; }
.card-b.an-note { margin: 0; padding-top: 0; }
.an-text { margin: 0 0 6px; font-size: 14.5px; line-height: 1.6; color: var(--text); }
.an-sub { font-size: 11.5px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); margin: 16px 0 8px; }
.an-sub small { text-transform: none; letter-spacing: 0; font-weight: 400; }
.an-att { display: flex; flex-direction: column; gap: 6px; }
.an-ai { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 8px; background: var(--panel-2); border: 1px solid var(--line); font-size: 13.5px; }
.an-ai.critical { border-color: var(--red-l); background: var(--red-b); }
.an-ai.warning { border-color: var(--amber-l); }
.an-ai a { color: var(--text); }
.an-ai a:hover { color: var(--brand); }
.an-ai .badge { min-width: 78px; justify-content: center; }
.an-ok { display: flex; gap: 8px; align-items: center; color: var(--green-t); font-size: 13.5px; }
.an-soc { position: relative; flex: none; width: 70px; height: 8px; border-radius: 4px; background: var(--panel-3); overflow: hidden; }
.an-soc i { position: absolute; inset: 0 auto 0 0; background: var(--amber); border-radius: 4px; }
.an-soc em { position: absolute; top: -2px; bottom: -2px; width: 2px; background: var(--text); }
.an-split { display: flex; height: 14px; border-radius: 7px; overflow: hidden; background: var(--panel-3); gap: 2px; }
.an-split i { display: block; height: 100%; min-width: 3px; }
.an-split.empty { opacity: .6; }
.an-legend { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 10px; font-size: 13px; color: var(--text-2); }
.an-legend span { display: inline-flex; align-items: center; gap: 6px; }
.an-legend i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; flex: none; }
.an-legend b { font-variant-numeric: tabular-nums; }
.an-legend small { color: var(--muted); }
.an-legend.sm { font-size: 12px; gap: 4px 12px; }
.an-chart { position: relative; margin-top: 14px; }
.an-big { display: flex; align-items: baseline; gap: 8px; margin-bottom: 12px; }
.an-big b { font-size: 34px; font-weight: 700; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.an-big span { color: var(--muted); }
.an-hbars { display: flex; flex-direction: column; gap: 6px; }
.an-hb { display: grid; grid-template-columns: minmax(90px, 160px) minmax(0, 1fr) auto; align-items: center; gap: 10px; font-size: 13px; padding: 2px 4px; border-radius: 6px; }
.an-hb.clickable:hover { background: var(--panel-2); }
.an-hb .l { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--text-2); }
.an-hb .b { display: flex; height: 16px; gap: 2px; }
.an-hb .b i { display: block; height: 100%; border-radius: 0 4px 4px 0; }
.an-hb .v { font-variant-numeric: tabular-nums; font-weight: 600; text-align: right; white-space: nowrap; }
.an-hb .v small { font-weight: 400; color: var(--muted); }
.an-score { display: flex; align-items: center; gap: 16px; }
.an-band { font-size: 20px; display: block; }
.an-bands { display: flex; gap: 12px; flex-wrap: wrap; font-weight: 600; font-size: 13px; margin: 4px 0; }
.an-lost > div { display: grid; grid-template-columns: minmax(0, 1fr) auto 52px; gap: 10px; padding: 6px 0; border-bottom: 1px solid var(--line); font-size: 13.5px; }
.an-lost > div:last-child { border-bottom: none; }
.an-lost b { text-align: right; font-variant-numeric: tabular-nums; }
.an-lost b.neg { color: var(--red-t); }
.an-moms { display: flex; flex-direction: column; gap: 10px; }
.an-mom { display: grid; grid-template-columns: 36px minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; }
.an-mom > .ic { width: 36px; height: 36px; padding: 8px; border-radius: 8px; background: var(--brand-soft); color: var(--brand); }
.an-mom small { display: block; color: var(--muted); font-size: 12px; }
.an-mom b a { color: var(--text); }
.an-mom > span { font-weight: 700; font-variant-numeric: tabular-nums; }
.an-empty { display: flex; gap: 14px; align-items: flex-start; }
.an-empty > .ic { flex: none; width: 40px; height: 40px; padding: 9px; border-radius: 10px; background: var(--panel-3); color: var(--muted); }
.an-empty p { margin: 4px 0 0; font-size: 13px; line-height: 1.55; }
.an-batts { display: flex; flex-direction: column; gap: 8px; }
.an-batt { display: grid; grid-template-columns: minmax(90px, 150px) minmax(0, 1fr) 90px; gap: 10px; align-items: center; font-size: 13px; }
.an-batt .b { position: relative; height: 12px; background: var(--panel-3); border-radius: 6px; }
.an-batt .b i { position: absolute; top: 0; bottom: 0; background: var(--green); border-radius: 6px; }
.an-batt .v { text-align: right; font-variant-numeric: tabular-nums; }
.an-foot { text-align: center; font-size: 12.5px; margin: 6px 0 4px; }
/* Faqja e veturës */
.an-vh { align-items: flex-start; }
.an-vtitle { font-size: 20px; }
.an-state { border-top: 1px solid var(--line); }
.an-state summary { cursor: pointer; padding: 12px 18px; font-weight: 600; font-size: 13.5px; display: flex; gap: 8px; align-items: center; color: var(--text-2); }
.an-state summary::-webkit-details-marker { display: none; }
.an-kv { padding: 0 18px 14px; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.card-b .an-kv { padding: 0 0 12px; }
.an-week { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; padding: 12px 18px 16px; border-top: 1px solid var(--line); }
.an-week button { display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 4px; height: 92px; padding: 6px 4px; border: 1px solid var(--line); border-radius: 10px; background: var(--panel); font: inherit; cursor: pointer; color: var(--text-2); }
.an-week button:hover:not(:disabled) { background: var(--panel-2); }
.an-week button.on { border-color: var(--brand-line); background: var(--brand-soft); color: var(--brand); }
.an-week button:disabled { opacity: .45; cursor: default; }
.an-week small { font-size: 11.5px; color: var(--muted); }
.an-week .wb { flex: 1; width: 100%; display: flex; align-items: flex-end; justify-content: center; min-height: 0; }
.an-week i { width: 60%; max-width: 24px; background: var(--blue); border-radius: 4px 4px 0 0; }
.an-week b { font-size: 12.5px; font-variant-numeric: tabular-nums; }
.an-tl { padding-top: 10px; }
.an-tr { display: grid; grid-template-columns: 110px minmax(0, 1fr); align-items: center; gap: 10px; min-height: 30px; }
.an-tr .l { font-size: 12.5px; color: var(--muted); }
.an-tr .t { position: relative; height: 22px; background: var(--panel-2); border-radius: 5px; }
.an-tr .t svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.an-tr .t i { position: absolute; top: 3px; bottom: 3px; border-radius: 3px; min-width: 2px; }
.an-tr .t i.trip { background: var(--blue); }
.an-tr .t i.stop { background: var(--amber); opacity: .8; }
.an-tr .t i.park { background: #c4cad4; }
.an-tr .t i.charge { background: #f5b400; top: 6px; bottom: 6px; }
.an-tr .t i.meter { background: #175cd3; }
.an-tr .t i.seat { background: #7a5af8; }
.an-tr .t em.ev { position: absolute; top: 2px; width: 3px; height: 18px; margin-left: -1px; background: var(--amber); border-radius: 2px; }
.an-tr .t em.ev.sp { background: var(--red); }
.an-tr .t b.now { position: absolute; top: -3px; bottom: -3px; width: 2px; background: var(--text); opacity: .5; }
.an-tr.axis .t { background: none; height: 16px; }
.an-tr.axis .t span { position: absolute; transform: translateX(-50%); font-size: 11px; color: var(--muted); }
.an-tr.axis .t span:first-child { transform: none; }
.an-tr.axis .t span:last-child { transform: translateX(-100%); }
.an-mapwrap { height: 460px; }
.an-toggles .chip { padding: 4px 9px; }
.an-mapcard.an-full { position: fixed; inset: 0; z-index: 2000; border-radius: 0; display: flex; flex-direction: column; }
.an-mapcard.an-full .an-mapwrap { flex: 1; height: auto; }
.an-pin { transform: translate(-50%, -50%); display: inline-flex; align-items: center; gap: 3px; color: #fff; border: 2px solid #fff; border-radius: 9px; padding: 1px 6px; font-size: 11.5px; font-weight: 700; box-shadow: 0 1px 4px rgba(0, 0, 0, .35); white-space: nowrap; }
.an-pin.pk { background: #7a5af8; padding: 2px; border-radius: 50%; }
.an-pin.ch { background: #b88600; }
.an-pin.sp { background: var(--red); border-radius: 50%; min-width: 26px; justify-content: center; }
.an-pin.hs { background: var(--amber); border-radius: 50%; width: 20px; height: 20px; justify-content: center; padding: 0; }
.an-trips { display: flex; flex-direction: column; }
.an-trip { display: flex; gap: 12px; align-items: flex-start; padding: 10px 18px; border-bottom: 1px solid var(--line); cursor: pointer; font-size: 13.5px; }
.an-trip:last-child { border-bottom: none; }
.an-trip:hover { background: var(--panel-2); }
.an-trip > .dot { width: 12px; height: 12px; margin-top: 4px; border-radius: 50%; }
.an-trip.stop { background: color-mix(in srgb, var(--amber-b) 70%, transparent); }
.an-trip.stop.edge { background: none; color: var(--muted); }
.an-trip .muted { font-size: 12.5px; line-height: 1.45; margin-top: 2px; }
.an-tags { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; justify-content: flex-end; }
.an-p { flex: none; display: inline-grid; place-items: center; min-width: 28px; height: 20px; background: #4169e1; color: #fff; border-radius: 6px; font-size: 11.5px; font-weight: 700; }
.an-p.e { background: #667085; }
/* Periudha */
.an-sum { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 24px; }
.an-acts { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 6px; font-size: 13.5px; }
.an-heat { display: grid; grid-template-columns: minmax(0, 2fr) minmax(240px, 1fr); gap: 18px; }
.an-heatmap { height: 420px; border-radius: 12px; overflow: hidden; border: 1px solid var(--line); }
.an-areas { margin: 0; padding-left: 20px; font-size: 13.5px; }
.an-areas li { padding: 4px 0; }
.an-areas li > span { display: inline-block; max-width: calc(100% - 40px); vertical-align: top; }
.an-areas b { float: right; font-variant-numeric: tabular-nums; }
/* Raportet & cilësimet */
.an-form { display: flex; flex-direction: column; gap: 14px; }
.an-checks { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 6px; font-weight: 400; }
.an-sched { display: flex; gap: 10px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 13.5px; }
.an-basemap { height: 240px; border-radius: 10px; overflow: hidden; border: 1px solid var(--line); margin: 8px 0; }
.an-sens select { padding: 5px 8px; font-size: 12.5px; max-width: 210px; }
.an-sens td { vertical-align: top; }
.an-inv { display: flex; gap: 5px; align-items: center; font-size: 12px; color: var(--muted); margin-top: 4px; }
.an-pr { font-size: 12px; }
.an-pr h1 { font-size: 18px; margin-bottom: 4px; }
.an-pr h2 { font-size: 14px; margin: 14px 0 6px; }
.an-pr table { border-collapse: collapse; width: 100%; }
.an-pr td, .an-pr th { border: 1px solid #ccc; padding: 4px 6px; font-size: 11px; white-space: normal; }
@media (max-width: 1100px) {
  .an-grid.an-2, .an-grid.an-top, .an-grid.an-rep, .an-sum, .an-heat { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 760px) {
  .an-bar .actions { margin-left: 0; }
  .an-bar select { max-width: 100%; flex: 1; }
  .an-tr { grid-template-columns: 76px minmax(0, 1fr); }
  .an-hb { grid-template-columns: minmax(70px, 110px) minmax(0, 1fr) auto; }
  .an-mapwrap, .an-heatmap { height: 340px; }
  .an-week button { height: 80px; }
  .an-trip { padding: 10px 12px; flex-wrap: wrap; }
  .an-tags { width: 100%; justify-content: flex-start; padding-left: 24px; }
}
@media print {
  .an-mapwrap { height: 320px; break-inside: avoid; }
  .an-card { break-inside: avoid; }
  body.an-printing #anBody, body.an-printing .an-tabs { display: none !important; }
  body.an-printing #anPrint { display: block !important; }
}
.an-form div.fld { display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: var(--text-2); font-weight: 500; }
.an-form div.fld .seg { align-self: flex-start; }

/* Menyja e klientit "vetëm analiza" (Insights) */
.sidebar nav .nav-group { display: flex; flex-direction: column; gap: 1px; }
.sidebar nav .nav-gh { display: flex; align-items: center; gap: 11px; padding: 8px 10px; color: var(--side-text); font-weight: 500; font-size: 13.5px; }
.sidebar nav .nav-gh .ic { color: var(--side-muted); }
.sidebar nav a.sub { margin-left: 19px; padding-left: 20px; border-left: 1px solid rgba(255, 255, 255, .14); border-radius: 0 6px 6px 0; }
.sidebar nav .nav-line { height: 1px; background: rgba(255, 255, 255, .1); margin: 10px 10px; }
.sidebar nav a.nav-ask .ic { color: #fdb022; }
body.insights .an-tabs { display: none; }
/* Automjetet (kartela) */
.an-h1 { font-size: 26px; letter-spacing: -.02em; }
.an-vhead { margin-bottom: 14px; }
.an-search { flex: 1; min-width: 200px; max-width: 460px; }
.an-fchip { border-radius: 99px; padding: 6px 14px; font-size: 13.5px; }
.an-fchip.on { background: var(--side); border-color: var(--side); color: #fff; }
.an-fchip.on b { color: #fff; }
.an-fchip .dot { width: 8px; height: 8px; }
.an-fchip .dot.moving { background: var(--blue); }
.an-fchip .dot.parked { background: #98a2b3; }
.an-fchip .dot.offline { background: var(--red); }
.an-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; }
.an-vc { display: flex; flex-direction: column; gap: 4px; align-items: flex-start; text-align: left; padding: 14px 16px; border-radius: 12px; border: 1px solid var(--line); background: var(--panel); font: inherit; color: var(--text); cursor: pointer; min-width: 0; transition: transform .12s, box-shadow .12s; }
.an-vc:hover { transform: translateY(-1px); box-shadow: var(--shadow-lg); }
.an-vc .t { display: flex; gap: 8px; align-items: center; min-width: 0; max-width: 100%; }
.an-vc .t .ic { color: var(--muted); flex: none; }
.an-vc .t b { font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.an-vc .s { font-size: 13px; color: var(--muted); }
.an-vc .s b { color: var(--text); }
.an-vc.base { background: color-mix(in srgb, var(--green) 14%, var(--panel)); border-color: color-mix(in srgb, var(--green) 25%, var(--panel)); }
.an-vc.mov { background: color-mix(in srgb, var(--blue) 12%, var(--panel)); border-color: color-mix(in srgb, var(--blue) 25%, var(--panel)); }
.an-vc.out { background: color-mix(in srgb, var(--amber) 12%, var(--panel)); border-color: color-mix(in srgb, var(--amber) 25%, var(--panel)); }
.an-vc.off { background: var(--panel-2); }
/* Pyet asistentin */
.an-chat { display: flex; flex-direction: column; height: calc(100vh - 140px); height: calc(100dvh - 140px); min-height: 420px; max-width: 900px; margin: 0 auto; }
.an-msgs { flex: 1; overflow: auto; padding: 18px; display: flex; flex-direction: column; gap: 12px; background: var(--panel-2); }
.an-m { align-self: flex-start; max-width: 85%; background: var(--panel); border: 1px solid var(--line); border-radius: 14px 14px 14px 4px; padding: 10px 14px; font-size: 14px; line-height: 1.55; }
.an-m.me { align-self: flex-end; background: var(--brand); border-color: var(--brand); color: #fff; border-radius: 14px 14px 4px 14px; }
.an-m ol { margin: 8px 0 0; padding-left: 20px; }
.an-m li { padding: 2px 0; }
.an-m li b { float: right; margin-left: 16px; font-weight: 600; font-variant-numeric: tabular-nums; }
.an-mlink { display: flex; width: fit-content; gap: 4px; align-items: center; margin-top: 8px; font-size: 13px; font-weight: 600; }
.an-sugg { padding: 10px 18px 0; border-top: 1px solid var(--line); }
.an-ask { display: flex; gap: 8px; padding: 12px 18px 16px; }
.an-ask input { flex: 1; min-width: 0; }
@media (max-width: 760px) {
  .an-chat { height: calc(100dvh - 200px); }
  .an-sugg { flex-wrap: nowrap; overflow-x: auto; }
  .an-sugg .chip { white-space: nowrap; }
}
/* Gjendja e veturës: skica nga lart + treguesit */
.an-vs { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 20px 28px; align-items: center; padding: 6px 18px 18px; }
.an-vs-car { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.an-car { position: relative; width: 236px; --cb0: #e6eaf0; --cb1: #ffffff; --cline: #b6bfcc; --crease: rgba(16, 24, 40, .07); }
:root[data-theme="dark"] .an-car { --cb0: #2a3140; --cb1: #3b4456; --cline: #4f5a6d; --crease: rgba(255, 255, 255, .06); }
.an-carsvg { display: block; width: 100%; height: auto; overflow: visible; filter: drop-shadow(0 16px 20px rgba(16, 24, 40, .16)) drop-shadow(0 2px 3px rgba(16, 24, 40, .12)); }
.an-carsvg .b0 { stop-color: var(--cb0); }
.an-carsvg .b1 { stop-color: var(--cb1); }
.an-carsvg .g0 { stop-color: #1b2536; }
.an-carsvg .g1 { stop-color: #43526c; }
.an-carsvg .r0 { stop-color: #0d1424; }
.an-carsvg .r1 { stop-color: #222e46; }
.an-carsvg .body { fill: url(#ktCarBody); stroke: var(--cline); stroke-width: 2; }
.an-carsvg .wh { fill: #1d2433; }
.an-carsvg .mirror { fill: var(--cb0); stroke: var(--cline); stroke-width: 1.5; }
.an-carsvg .crease { fill: none; stroke: var(--crease); stroke-width: 2.5; stroke-linecap: round; }
.an-carsvg .glass { fill: url(#ktCarGlass); stroke: rgba(16, 24, 40, .25); stroke-width: 1; }
.an-carsvg .roof { fill: url(#ktCarRoof); stroke: rgba(16, 24, 40, .35); stroke-width: 1; }
.an-carsvg .shine { fill: #fff; opacity: .1; }
.an-carsvg .light { fill: none; stroke: #8ec0ff; stroke-width: 4.5; stroke-linecap: round; filter: drop-shadow(0 0 4px rgba(120, 180, 255, .9)); }
.an-carsvg .drl { fill: none; stroke: #b9d8ff; stroke-width: 2.5; stroke-linecap: round; filter: drop-shadow(0 0 3px rgba(120, 180, 255, .8)); }
.an-carsvg .tail { fill: none; stroke: #f04438; stroke-width: 5; stroke-linecap: round; filter: drop-shadow(0 0 5px rgba(240, 68, 56, .75)); }
.an-carsvg .door .seam { stroke: var(--cline); stroke-width: 1.5; }
.an-carsvg .door .hd { stroke: var(--cline); stroke-width: 3; stroke-linecap: round; }
.an-carsvg .door.open .gap { fill: #f04438; opacity: .35; }
.an-carsvg .door.open .panel { fill: #fee4e2; stroke: #f04438; stroke-width: 2; filter: drop-shadow(0 3px 4px rgba(240, 68, 56, .35)); }
.an-carsvg .door.open .hd { stroke: #f04438; }
.an-car .mid { position: absolute; left: 27%; right: 27%; top: 37.7%; height: 32%; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; color: #fff; gap: 1px; }
.an-car .mid b { font-size: 30px; font-weight: 700; font-variant-numeric: tabular-nums; line-height: 1.05; letter-spacing: -.02em; }
.an-car .mid b span { font-size: 15px; font-weight: 600; margin-left: 1px; opacity: .8; }
.an-car .mid b.sm { font-size: 15px; margin-top: 10px; letter-spacing: 0; }
.an-car .mid b.st { font-size: 20px; }
.an-car .mid b.spd { font-size: 34px; }
.an-car .mid small { font-size: 8.5px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: rgba(255, 255, 255, .62); }
.an-car .mid .bar { width: 76%; height: 6px; border-radius: 3px; background: rgba(255, 255, 255, .16); overflow: hidden; margin-top: 7px; }
.an-car .mid .bar i { display: block; height: 100%; border-radius: 3px; background: var(--c); box-shadow: 0 0 8px var(--c); }
.an-car .mid .bar.chg i { background-image: linear-gradient(90deg, transparent 0 40%, rgba(255, 255, 255, .55) 50%, transparent 60% 100%); background-color: var(--c); background-size: 200% 100%; animation: an-chg 1.6s linear infinite; }
@keyframes an-chg { from { background-position: 100% 0; } to { background-position: -100% 0; } }
.an-car .mid .led { width: 9px; height: 9px; border-radius: 50%; background: #667085; margin-bottom: 6px; }
.an-car .mid .led.on { background: #32d583; box-shadow: 0 0 10px #32d583; }
.an-doorlg .dl { width: 11px; height: 11px; border-radius: 3px; border: 1.5px solid var(--line-2); background: var(--panel); }
.an-doorlg .dl.open { border-color: var(--red); background: var(--red-b); }
.an-vs-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 16px 20px; }
.an-vs-grid small { display: block; font-size: 11.5px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.an-vs-grid b { display: block; font-size: 17px; font-weight: 600; margin-top: 2px; line-height: 1.35; }
@media (max-width: 760px) {
  .an-vs { grid-template-columns: minmax(0, 1fr); }
  .an-vs-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .an-vs-grid b { font-size: 16px; }
}
.an-carsvg .door.open.any .panel { fill: #fecdca; opacity: .9; filter: drop-shadow(0 0 6px rgba(240, 68, 56, .55)); }

/* Grafikët që ngarkohen nga serveri (Dashboard: 14 ditët e fundit) */
.chart-box { position: relative; }
.chart-load { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; gap: 6px; color: var(--muted); font-size: 13px; pointer-events: none; }
.btn.disabled { opacity: .5; pointer-events: none; }
/* Aplikacionet mobile: faqja e shkarkimit (llogari reale) */
.app-steps { list-style: none; margin: 0 0 16px; padding: 0; display: flex; flex-direction: column; gap: 12px; font-size: 13.5px; line-height: 1.5; }
.app-steps li { display: flex; gap: 10px; align-items: flex-start; }
.app-n { flex: none; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 600; background: var(--brand-soft); color: var(--brand); }
.app-note { font-size: 12.5px; margin-top: 12px; line-height: 1.5; }
.app-dl .card.app-pick { border-color: var(--brand-line); box-shadow: 0 0 0 3px var(--brand-soft); }

/* ---------- Montimet e pajisjeve (views/montimi.js) ---------- */
.mt-shell { margin-bottom: 16px; }
.mt-tabsb { padding: 12px 18px; }
.mt-tabs { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
.mt-tabs::-webkit-scrollbar { display: none; }
.mt-tabs .chip { text-decoration: none; white-space: nowrap; padding: 6px 11px; }
.mt-tb { margin-bottom: 10px; }
.mt-tb input[type="search"] { flex: 1 1 220px; max-width: 360px; }
.mt-f { margin-bottom: 14px; }
.mt-g { align-items: start; }
.mt-more { margin-left: auto; color: var(--muted); text-decoration: none; font-size: 13px; display: inline-flex; gap: 4px; align-items: center; }
.mt-more:hover { color: var(--brand); }
.kpi .val small { font-size: 15px; font-weight: 500; }
.mt-prog { display: flex; align-items: baseline; gap: 10px; }
.mt-prog b { font-size: 40px; font-weight: 600; letter-spacing: -.02em; line-height: 1.1; }
.mt-bar { height: 10px; margin: 14px 0 12px; }
.mt-legend { display: flex; gap: 18px; flex-wrap: wrap; font-size: 13px; color: var(--muted); }
.mt-legend b { color: var(--text); font-size: 15px; margin-right: 3px; }
.mt-queue { display: grid; gap: 4px; }
.mt-queue .btn { margin-top: 10px; }
.mt-qrow { display: grid; grid-template-columns: 36px minmax(0, 1fr) auto 18px; gap: 12px; align-items: center; padding: 10px 6px; border-radius: 9px; color: inherit; text-decoration: none; }
.mt-qrow:hover { background: var(--panel-2); }
.mt-qrow > .ic:first-child { width: 36px; height: 36px; padding: 9px; border-radius: 9px; background: var(--brand-soft); color: var(--brand); }
.mt-qrow > span { display: flex; flex-direction: column; min-width: 0; font-size: 13.5px; }
.mt-qrow .muted { font-size: 12.5px; }
.mt-qn { font-size: 17px; font-variant-numeric: tabular-nums; }
.mt-list { display: grid; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.mt-row { display: grid; grid-template-columns: 96px minmax(0, 1.2fr) minmax(0, 1.3fr) minmax(0, 1fr) minmax(130px, auto); gap: 6px 14px; align-items: center; padding: 12px 14px; border-bottom: 1px solid var(--line); color: inherit; text-decoration: none; }
.mt-row:last-child { border-bottom: 0; }
.mt-row:hover { background: var(--panel-2); }
.mt-row > .badge { justify-self: start; }
.mt-veh, .mt-dev, .mt-who { display: flex; flex-direction: column; gap: 2px; min-width: 0; font-size: 13.5px; }
.mt-veh > *, .mt-dev > *, .mt-who > * { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mt-veh .muted, .mt-dev .muted, .mt-who .muted { font-size: 12.5px; }
.mt-dev { font-variant-numeric: tabular-nums; }
.mt-st { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; justify-self: end; font-size: 12.5px; }
.mt-sum, .mt-ticons { display: inline-flex; gap: 8px; font-size: 12.5px; }
.mt-ticons { gap: 3px; }
.mt-sum i, .mt-ticons i { font-style: normal; display: inline-flex; align-items: center; gap: 3px; font-weight: 600; }
.mt-sum .ok, .mt-ticons .PASS { color: var(--green-t); }
.mt-sum .warn { color: var(--amber-t); }
.mt-sum .bad, .mt-ticons .FAIL { color: var(--red-t); }
.mt-sum .wait, .mt-ticons .PENDING { color: var(--muted); }
.mt-body .table-wrap td a { color: var(--brand); text-decoration: none; }
.mt-one { gap: 16px; }
.mt-head { display: flex; flex-wrap: wrap; gap: 10px 18px; align-items: center; }
.mt-back { flex: 1 1 100%; color: var(--muted); text-decoration: none; display: inline-flex; gap: 2px; align-items: center; font-size: 13px; }
.mt-back:hover { color: var(--brand); }
.mt-title { display: flex; flex-direction: column; gap: 3px; min-width: 0; flex: 1 1 100%; }
.mt-title h2 { font-size: 19px; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.mt-title .muted { font-size: 12.5px; }
.mt-steps { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 18px; flex: 1 1 auto; }
.mt-steps li { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; color: var(--muted); }
.mt-steps li i { font-style: normal; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 600; background: var(--panel-3); color: var(--muted); }
.mt-steps li.done { color: var(--text); }
.mt-steps li.done i { background: var(--green-b); color: var(--green-t); }
.mt-hacts { margin-left: auto; }
.mt-block { flex: 1 1 100%; margin: 0; font-size: 12.5px; }
.mt-chain { display: grid; grid-template-columns: minmax(0, 1fr) 20px minmax(0, 1fr) 20px minmax(0, 1fr); gap: 8px; align-items: stretch; }
.mt-arr { display: grid; place-items: center; color: var(--muted); }
.mt-asset { display: flex; gap: 10px; align-items: flex-start; text-align: left; font: inherit; color: inherit; background: var(--panel-2); border: 1px solid var(--line); border-radius: 10px; padding: 12px; cursor: pointer; min-width: 0; }
.mt-asset:hover { border-color: var(--brand-line); }
.mt-asset > .ic { color: var(--brand); flex: none; margin-top: 1px; }
.mt-asset > span { display: flex; flex-direction: column; gap: 2px; min-width: 0; font-size: 13.5px; }
.mt-asset > span > * { overflow-wrap: anywhere; }
.mt-asset .muted { font-size: 12.5px; }
.mt-insf { margin-top: 16px; }
.mt-notes { margin: 14px 0 0; font-size: 13.5px; white-space: pre-wrap; }
.mt-acts { margin-top: 14px; }
.mt-cw { margin-bottom: 12px; font-size: 12.5px; gap: 8px; }
.mt-chks { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 8px; }
.mt-chk { display: grid; grid-template-columns: 20px minmax(0, 1fr); gap: 10px; align-items: start; padding: 10px 12px; border-radius: 9px; background: var(--panel-2); border: 1px solid var(--line); }
.mt-chk > .ic { margin-top: 1px; color: var(--muted); }
.mt-chk b { display: block; font-size: 13.5px; font-weight: 600; }
.mt-chk span { display: block; font-size: 13px; color: var(--text-2); line-height: 1.45; margin-top: 2px; }
.mt-chk.ok > .ic { color: var(--green-t); }
.mt-chk.warn { background: var(--amber-b); border-color: var(--amber-l); }
.mt-chk.warn > .ic { color: var(--amber-t); }
.mt-chk.bad { background: var(--red-b); border-color: var(--red-l); }
.mt-chk.bad > .ic { color: var(--red-t); }
.mt-chk.skip { opacity: .65; }
.mt-thint { margin: 0 0 12px; font-size: 12.5px; }
.mt-tests { display: grid; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.mt-trow { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px 14px; align-items: center; padding: 10px 14px; border-bottom: 1px solid var(--line); }
.mt-trow:last-child { border-bottom: 0; }
.mt-trow > div:first-child { display: flex; flex-direction: column; gap: 2px; min-width: 0; font-size: 13.5px; }
.mt-trow .muted { font-size: 12.5px; line-height: 1.4; }
.mt-trow .muted .ic { vertical-align: -2px; }
.mt-trow .seg button, .mt-wire .seg button { padding: 6px 11px; font-size: 12.5px; white-space: nowrap; }
.seg button.on.blue { background: var(--blue-b); color: var(--blue-t); }
.seg button.on.green, .seg button.on.ok { background: var(--green-b); color: var(--green-t); }
.seg button.on.red, .seg button.on.bad { background: var(--red-b); color: var(--red-t); }
.seg button.on.grey, .seg button.on.na { background: var(--grey-b); color: var(--grey-t); }
.mt-tnote { margin-top: 12px; max-width: 520px; }
.mt-h3 { font-size: 13px; color: var(--muted); font-weight: 600; margin: 18px 0 8px; }
.mt-h3:first-child { margin-top: 0; }
.mt-tlist { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.mt-tlist li { display: flex; flex-wrap: wrap; gap: 6px 8px; align-items: center; padding: 8px 10px; border: 1px solid var(--line); border-radius: 9px; font-size: 13.5px; }
.mt-tlist li.clickable { cursor: pointer; }
.mt-tlist li.clickable:hover { background: var(--panel-2); }
.mt-tlist li .muted { font-size: 12.5px; flex-basis: 100%; }
.mt-wires { display: grid; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.mt-wire { display: grid; grid-template-columns: 24px minmax(0, 1fr) auto; gap: 8px 12px; align-items: start; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.mt-wire:last-child { border-bottom: 0; }
.mt-sw { width: 20px; height: 20px; border-radius: 50%; box-shadow: inset 0 0 0 1px var(--line-2); margin-top: 1px; }
.mt-wb { min-width: 0; font-size: 13.5px; }
.mt-wb p { margin: 3px 0 8px; font-size: 12.5px; line-height: 1.45; }
.mt-wb input { width: 100%; max-width: 440px; padding: 5px 9px; font-size: 13px; }
#dCfg > p { margin: 0 0 10px; font-size: 13.5px; line-height: 1.5; }
#dCfg > p .ic { vertical-align: -3px; margin-right: 4px; }
.mt-cfg { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 14px; }
.mt-cfg > div { border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; font-size: 13.5px; }
.mt-cfg p { margin: 4px 0 10px; font-size: 12.5px; line-height: 1.45; }
.mt-photos { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.mt-photo { position: relative; margin: 0; border: 1px solid var(--line); border-radius: 9px; overflow: hidden; background: var(--panel-2); }
.mt-photo img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.mt-photo figcaption { font-size: 12.5px; padding: 6px 8px; display: flex; flex-direction: column; gap: 1px; overflow-wrap: anywhere; }
.mt-photo figcaption .muted { font-size: 11.5px; }
.mt-photo .icon-btn { position: absolute; top: 6px; right: 6px; width: 30px; height: 30px; background: var(--panel); border-color: var(--line); }
#mtCap { flex: 1 1 220px; max-width: 360px; }
.mt-hist { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; font-size: 13.5px; }
.mt-hist li { display: flex; flex-wrap: wrap; gap: 4px 8px; align-items: baseline; }
.mt-hist li .muted { font-size: 12px; margin-left: auto; }
.mt-hist a { color: inherit; }
.mt-list.compact .mt-row { grid-template-columns: minmax(0, 1fr) auto; }
.mt-list.compact .mt-row > .badge { grid-column: 2; grid-row: 1; justify-self: end; }
.mt-list.compact .mt-veh { grid-column: 1; grid-row: 1; }
.mt-list.compact .mt-dev, .mt-list.compact .mt-who { grid-column: 1 / -1; flex-direction: row; gap: 8px; }
.mt-list.compact .mt-st { grid-column: 1 / -1; flex-direction: row; justify-self: start; gap: 12px; }
@media (max-width: 900px) {
  .mt-row { grid-template-columns: minmax(0, 1fr) auto; }
  .mt-row > .badge { grid-column: 2; grid-row: 1; justify-self: end; }
  .mt-veh { grid-column: 1; grid-row: 1; }
  .mt-dev, .mt-who { grid-column: 1 / -1; flex-direction: row; gap: 8px; }
  .mt-st { grid-column: 1 / -1; flex-direction: row; justify-self: start; gap: 12px; }
  .mt-chain { grid-template-columns: minmax(0, 1fr); }
  .mt-arr { transform: rotate(90deg); height: 14px; }
  .mt-hacts { margin-left: 0; }
  .mt-trow, .mt-wire { grid-template-columns: minmax(0, 1fr); }
  .mt-wire { grid-template-columns: 20px minmax(0, 1fr); }
  .mt-wire .seg { grid-column: 2; justify-self: start; }
  .mt-trow .seg { justify-self: start; }
  .mt-chks, .mt-cfg { grid-template-columns: minmax(0, 1fr); }
  .mt-photos { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mt-hist li .muted { margin-left: 0; flex-basis: 100%; }
  .mt-tabsb { padding: 10px 12px; }
}

/* ---------- Montimi hap pas hapi + raporti për print (views/montimi-hapat.js) ---------- */
.hp { display: grid; gap: 14px; max-width: 980px; margin: 0 auto; padding-bottom: 8px; }
.hp-top { display: grid; gap: 8px; }
.hp-top h2 { font-size: 19px; }
.hp-top .mt-back { flex: 0 0 auto; }
.hp-prog { display: grid; gap: 6px; font-size: 13px; color: var(--muted); }
.hp-prog b { color: var(--text); }
.hp-prog .bar { height: 8px; }
.hp-dots { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.hp-dots::-webkit-scrollbar { display: none; }
.hp-dots button { flex: none; display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--line-2); background: var(--panel); color: var(--text-2); border-radius: 99px; padding: 4px 10px 4px 4px; font: inherit; font-size: 12.5px; cursor: pointer; white-space: nowrap; }
.hp-dots button { font-weight: 600; }
.hp-dots button span { font-weight: 500; }
.hp-dots button:disabled { opacity: .45; cursor: default; }
.hp-dots button.done { border-color: var(--green-l); color: var(--green-t); background: var(--green-b); }
.hp-dots button.on { border-color: var(--brand); background: var(--brand-soft); color: var(--brand); }
.hp-dots button > .ic { width: 20px; height: 20px; padding: 4px; border-radius: 50%; background: var(--green-t); color: #fff; }
.hp-dots button > i { width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; background: var(--panel-3); font-style: normal; font-size: 11.5px; }
.hp-dots button.on > i { background: var(--brand); color: #fff; }
.hp-card .card-h h2 { font-size: 17px; }
.hp-tb { margin-bottom: 12px; }
.hp-tb input[type="search"] { flex: 1 1 200px; max-width: 360px; }
.hp-new { border: 1px dashed var(--line-2); border-radius: 10px; padding: 14px; margin-bottom: 12px; background: var(--panel-2); }
.hp-opts { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 8px; }
.hp-opt { display: flex; gap: 10px; align-items: center; text-align: left; font: inherit; color: inherit; background: var(--panel); border: 1px solid var(--line-2); border-radius: 10px; padding: 12px; cursor: pointer; min-height: 56px; }
.hp-opt:hover { border-color: var(--brand-line); }
.hp-opt > i { flex: none; width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--line-2); display: grid; place-items: center; }
.hp-opt.on { border-color: var(--brand); background: var(--brand-soft); }
.hp-opt.on > i { border-color: var(--brand); background: var(--brand); color: #fff; }
.hp-opt > span { display: flex; flex-direction: column; gap: 2px; min-width: 0; font-size: 14px; }
.hp-opt .muted { font-size: 12.5px; overflow-wrap: anywhere; }
.hp-who { margin-top: 16px; }
.hp-note { font-size: 12.5px; margin: 12px 0 0; }
.hp-tip { display: flex; gap: 8px; align-items: flex-start; font-size: 13px; color: var(--text-2); background: var(--blue-b); border: 1px solid var(--blue-l); border-radius: 9px; padding: 10px 12px; margin: 0 0 12px; }
.hp-tip .ic { flex: none; margin-top: 2px; color: var(--blue-t); }
.hp-live { margin-top: 14px; }
.hp-dev { font-size: 13.5px; margin: 0 0 12px; display: flex; gap: 6px; align-items: center; }
.hint.ok { background: var(--green-b); border-color: var(--green-l); color: var(--green-t); }
.hint .ic { vertical-align: -3px; margin-right: 4px; }
.hp-sum { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.hp-sum li { display: grid; grid-template-columns: 22px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; }
.hp-sum li > div { display: flex; flex-direction: column; gap: 2px; font-size: 13.5px; min-width: 0; }
.hp-sum li .muted { font-size: 12.5px; }
.hp-sum li.ok > .ic { color: var(--green-t); }
.hp-sum li.warn > .ic { color: var(--amber-t); }
.hp-final { margin-top: 14px; }
.hp-issue { margin-top: 14px; border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; }
.hp-issue summary { cursor: pointer; font-size: 13.5px; font-weight: 600; display: inline-flex; gap: 6px; align-items: center; }
.hp-issue .form-grid { margin-top: 12px; }
.hp-nav { position: sticky; bottom: 0; z-index: 5; display: flex; justify-content: space-between; gap: 10px; padding: 12px; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 -6px 16px -10px rgba(16, 24, 40, .25); }
.hp-nav .btn { min-height: 44px; padding: 10px 18px; font-size: 14.5px; }
.hp-nav .btn.primary { flex: 1; max-width: 320px; margin-left: auto; }
@media (max-width: 900px) {
  .hp-dots button span { display: none; }
  .hp-dots button.on span { display: inline; }
  .hp-opts { grid-template-columns: minmax(0, 1fr); }
  .hp-nav { margin: 0 -2px; }
}
/* Raporti */
.rp-bar { display: flex; gap: 10px; justify-content: space-between; max-width: 820px; margin: 0 auto 14px; }
.rp-doc { max-width: 820px; margin: 0 auto; background: #fff; color: #111; border: 1px solid var(--line); border-radius: 12px; padding: 28px 32px; font-size: 13px; line-height: 1.45; }
.rp-head { display: flex; gap: 14px; align-items: center; border-bottom: 2px solid #111; padding-bottom: 14px; margin-bottom: 16px; }
.rp-head h1 { font-size: 20px; margin: 0; color: #111; }
.rp-head p { margin: 2px 0 0; color: #555; font-size: 12px; }
.rp-logo { flex: none; width: 44px; height: 44px; border-radius: 11px; background: #4169e1; color: #fff; font: 700 28px/44px Helvetica, Arial, sans-serif; text-align: center; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
.rp-status { margin-left: auto; border: 1.5px solid #111; border-radius: 99px; padding: 3px 12px; font-weight: 700; font-size: 12px; white-space: nowrap; }
.rp-status.s-ACTIVE { border-color: #067647; color: #067647; }
.rp-status.s-PROBLEM { border-color: #b42318; color: #b42318; }
.rp-doc section { margin-top: 16px; break-inside: avoid; }
.rp-doc h2 { font-size: 13px; text-transform: uppercase; letter-spacing: .05em; color: #333; margin: 0 0 8px; border-bottom: 1px solid #ddd; padding-bottom: 4px; }
.rp-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 24px; }
.rp-kv { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 3px 10px; margin: 0; }
.rp-kv dt { color: #555; }
.rp-kv dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; }
.rp-table { width: 100%; border-collapse: collapse; }
.rp-table th, .rp-table td { border: 1px solid #ccc; padding: 5px 8px; text-align: left; font-size: 12.5px; white-space: normal; color: #111; background: #fff; vertical-align: top; }
.rp-table th { background: #f2f4f7; font-weight: 600; position: static; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
.rp-table tbody tr:hover { background: none; }
.rp-table small { color: #555; }
.rp-sw { display: inline-block; width: 12px; height: 12px; border-radius: 50%; border: 1px solid #999; margin-right: 6px; vertical-align: -1px; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
.w-ok, .r-PASS { color: #067647 !important; font-weight: 700; }
.w-bad, .r-FAIL { color: #b42318 !important; font-weight: 700; }
.w-na, .w-none, .r-PENDING { color: #666 !important; }
.rp-sub { margin: 0 0 8px; }
.rp-live ul { margin: 0; padding-left: 18px; }
.rp-live li { margin: 2px 0; }
.rp-live .c-bad b { color: #b42318; }
.rp-live .c-warn b { color: #b54708; }
.rp-notes { white-space: pre-wrap; margin: 0; }
.rp-photos > div { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.rp-photos figure { margin: 0; }
.rp-photos img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border: 1px solid #ccc; border-radius: 4px; display: block; }
.rp-photos figcaption { font-size: 11px; color: #444; margin-top: 2px; }
.rp-sign { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin-top: 36px; break-inside: avoid; }
.rp-sign div { font-size: 12px; color: #333; }
.rp-sign span { display: block; border-bottom: 1px solid #111; height: 36px; margin-bottom: 4px; }
@media (max-width: 700px) {
  .rp-doc { padding: 18px 16px; }
  .rp-grid { grid-template-columns: minmax(0, 1fr); }
  .rp-photos > div { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rp-sign { grid-template-columns: minmax(0, 1fr); gap: 10px; }
}
@media print {
  .rp-doc { border: none; border-radius: 0; padding: 0; max-width: none; }
  .rp-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
  .rp-photos > div { grid-template-columns: repeat(4, minmax(0, 1fr)) !important; }
  .rp-sign { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }
  .hp-nav { display: none !important; }
}

/* ---------- Importi i Montimeve nga Excel / CSV (views/montimi-import.js) ---------- */
.mi-lead { margin: 0 0 14px; color: var(--text-2); }
.mi-drop { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 26px 16px; border: 1.5px dashed var(--line-2); border-radius: 12px; background: var(--panel-2); cursor: pointer; text-align: center; color: var(--text-2); }
.mi-drop:hover, .mi-drop.on { border-color: var(--brand); background: color-mix(in srgb, var(--brand) 6%, var(--panel)); }
.mi-drop b { color: var(--text); font-size: 15px; }
.mi-row { margin: 14px 0 4px; max-width: 360px; }
.mi-tpl { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 12px 0; }
.mi-tpl > b { font-size: 13px; margin-right: 4px; }
.mi-tpl .chip { text-decoration: none; }
.mi-rules { margin: 10px 0 0; padding-left: 18px; font-size: 12.5px; }
.mi-rules li { margin: 3px 0; }
.mi-file { margin: 0 0 10px; display: flex; align-items: center; gap: 6px; }
.mi-sum { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 8px; margin-bottom: 12px; }
.mi-card { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--panel); cursor: pointer; }
.mi-card > span { display: flex; flex-direction: column; gap: 2px; min-width: 0; font-size: 13px; }
.mi-card.on { border-color: var(--brand); box-shadow: 0 0 0 1px var(--brand); }
.mi-card .ic { flex: none; margin-top: 2px; color: var(--text-2); }
.mi-card b.g { color: var(--green-t); }
.mi-card b.b { color: var(--blue-t); }
.mi-notes { list-style: none; margin: 0 0 12px; padding: 0; font-size: 13px; color: var(--text-2); }
.mi-notes li { display: flex; gap: 6px; align-items: flex-start; margin: 4px 0; }
.mi-notes .ic { flex: none; margin-top: 2px; }
.mi-err { border: 1px solid var(--red-l); background: var(--red-b); color: var(--red-t); border-radius: 10px; padding: 12px 14px; margin-bottom: 12px; }
.mi-err > b { display: flex; gap: 6px; align-items: center; }
.mi-err p { margin: 4px 0 8px; font-size: 13px; }
.mi-err .table-wrap { background: var(--panel); border-radius: 8px; color: var(--text); }
.mi-etable { max-height: 260px; }
.mi-ptable { max-height: 340px; border: 1px solid var(--line); border-radius: 10px; margin-bottom: 8px; }
.mi-ptable td, .mi-etable td { white-space: nowrap; max-width: 260px; overflow: hidden; text-overflow: ellipsis; font-size: 13px; }
.mi-etable td:last-child { white-space: normal; min-width: 260px; }
@media (max-width: 700px) {
  .mi-sum { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .mi-row { max-width: none; }
}

/* ---------- Montimet: puna në terren, skaneri dhe etiketat QR (views/montimi-scan.js, js/qr.js) ---------- */
.mt-scan { z-index: 2100; }
.mt-scan .modal-box { width: min(460px, 100%); }
.mt-cam { position: relative; aspect-ratio: 4 / 3; background: #0b1220; border-radius: 12px; overflow: hidden; }
.mt-cam video { width: 100%; height: 100%; object-fit: cover; display: block; }
.mt-cam-f { position: absolute; inset: 14% 12%; border: 2px solid #34d399; border-radius: 12px; box-shadow: 0 0 0 999px rgba(0, 0, 0, .18); pointer-events: none; }
.mt-cam-f::after { content: ''; position: absolute; left: 8%; right: 8%; top: 50%; height: 2px; background: rgba(52, 211, 153, .8); }
.mt-cam-s { position: absolute; bottom: 10px; left: 50%; transform: translateX(-50%); background: rgba(0, 0, 0, .55); color: #fff; font-size: 10.5px; letter-spacing: .08em; padding: 3px 10px; border-radius: 99px; }
.mt-scan.nocam .mt-cam { display: none; }
.mt-cam-msg { margin: 10px 0 0; font-size: 13px; color: var(--muted); }
.mt-cam-msg.warn { color: var(--red-t); }
.mt-cam-man { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); }
.mt-cam-row { display: flex; gap: 8px; margin-top: 6px; }
.mt-cam-row input { flex: 1; min-width: 0; font-size: 16px; } /* 16px: iPhone s'e zmadhon faqen */
.mt-pickr { display: flex; gap: 8px; }
.mt-pickr select { flex: 1; min-width: 0; }
.mt-hit { outline: 2px solid var(--green-b); outline-offset: 1px; }
.mt-ro { display: block; padding: 9px 0; font-weight: 600; color: var(--text); }
.mt-field { display: grid; gap: 14px; }
.mt-big { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.mt-big .btn { justify-content: flex-start; gap: 12px; padding: 16px 18px; text-align: left; white-space: normal; }
.mt-big .btn span { display: flex; flex-direction: column; gap: 2px; }
.mt-big .btn b { font-size: 15px; }
.mt-big .btn small { font-weight: 400; opacity: .85; font-size: 12.5px; color: inherit; }
.mt-label { display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; }
.mt-label svg { width: min(240px, 70vw); height: auto; border: 1px solid var(--line); border-radius: 10px; }
.mt-label b { font-size: 18px; color: var(--text); }
.mt-label code { font-size: 12px; color: var(--muted); word-break: break-all; }
@media (max-width: 700px) { .mt-big { grid-template-columns: 1fr; } }
.mi-ptable td.mi-chg { color: var(--blue-t); max-width: 340px; }
/* Provat me pajisjen te hapat e montimit (montimi-hapat.js: 801/802/803/800 dhe çelësi) */
.hp-wst { display: flex; gap: 7px; align-items: flex-start; font-size: 13px; margin: 2px 0 8px; padding: 7px 10px; border-radius: 8px; background: var(--panel-2); border: 1px solid var(--line); color: var(--text-2); }
.hp-wst > .ic { flex: none; margin-top: 1px; }
.hp-wst small { color: var(--muted); }
.hp-wst.ok { background: var(--green-b); border-color: var(--green-l); color: var(--green-t); }
.hp-wst.bad { background: var(--red-b); border-color: var(--red-l); color: var(--red-t); }
.hp-wst.wait { background: var(--amber-b); border-color: var(--amber-l); color: var(--amber-t); }
.hp-pbtn { margin: 0 0 8px; }
.hp-probe { display: flex; gap: 10px; align-items: center; margin: 2px 0 8px; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--brand-line); background: var(--brand-soft); }
.hp-probe > div { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1; font-size: 13.5px; }
.hp-probe b { color: var(--brand); font-size: 14px; }
.hp-probe .muted { font-size: 12.5px; }
.hp-spin { flex: none; width: 20px; height: 20px; border-radius: 50%; border: 3px solid var(--brand-line); border-top-color: var(--brand); animation: hp-spin .8s linear infinite; }
@keyframes hp-spin { to { transform: rotate(360deg); } }
.hp-ident { display: grid; gap: 8px; justify-items: start; margin-bottom: 6px; }
.hp-ident .hp-wst { width: 100%; }
.mt-acts .hp-probe { flex: 1 1 100%; }

/* Testi i taksimetrit (js/meter-test.js) dhe distinktivi "testuar / pa u testuar" */
.mtst { display: flex; flex-direction: column; gap: 14px; }
.mtst-live { padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--panel-2); font-size: 13.5px; }
.mtst-steps { display: flex; flex-direction: column; gap: 10px; margin: 0; padding: 0; list-style: none; }
.mtst-steps li { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; padding: 12px; border: 1px solid var(--line); border-radius: 10px; }
.mtst-steps li .grow { display: flex; flex-direction: column; gap: 2px; min-width: 200px; }
.mtst-r { font-size: 12.5px; color: var(--text-2); }
.mtst-warn, .mtst-ok { padding: 10px 12px; border-radius: 10px; font-size: 13.5px; line-height: 1.45; }
.mtst-warn { background: var(--amber-b); color: var(--amber-t); }
.mtst-ok { background: var(--green-b); color: var(--green-t); }
.mtst-live .mtst-warn { margin-top: 8px; }
.mtst-badge { display: inline-flex; align-items: center; gap: 5px; margin-right: 6px; font-size: 12px; font-weight: 500; }
.mtst-badge.ok { color: var(--green-t); }
.mtst-badge.warn { color: var(--amber-t); }
.mtst-row { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 6px; }
.mh-list { display: flex; flex-direction: column; gap: 8px; }
.mh-item { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; padding: 10px 12px; border: 1px solid var(--line); border-left: 4px solid var(--amber); border-radius: 8px; }
.mh-item.info { border-left-color: var(--blue); }
.mh-item .grow { min-width: 220px; }
.mh-item ul { margin: 4px 0 0; padding-left: 18px; font-size: 13px; color: var(--text-2); }

/* Faqja Taxi e thjeshtë (24.10.2026): 4 numra, tabela "Sot".
   09.11.2026: kartat kompakte (ikona e vogël + titulli majtas, numri djathtas, nënteksti poshtë), që harta të ketë më shumë vend */
.kpis.tx-kpis { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 14px; }
.kpi.tx-k { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "lbl val" "sub val"; align-items: center; column-gap: 12px; min-height: 0; padding: 10px 14px; border-radius: 10px; }
.tx-k .lbl { grid-area: lbl; display: flex; align-items: center; gap: 7px; padding-right: 0; color: var(--text-2); font-size: 12.5px; font-weight: 600; }
.tx-k .lbl .ic { position: static; width: 22px; height: 22px; padding: 4px; border-radius: 6px; }
.tx-k .val { grid-area: val; margin: 0; font-size: 28px; font-weight: 700; line-height: 1; }
.tx-k .sub { grid-area: sub; margin-top: 2px; overflow: hidden; font-size: 11.5px; text-overflow: ellipsis; white-space: nowrap; }
.tx-today td, .tx-today th { white-space: nowrap; }
.tx-today .tx-tot td { border-top: 2px solid var(--line); background: var(--panel-2); }
@media (max-width: 700px) { .kpis.tx-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; } .kpi.tx-k { padding: 8px 10px; } .tx-k .val { font-size: 22px; } }

/* Autocab365 (Cilësimet): adresa, koka dhe çelësi për Webhooks */
.ac-row { display: flex; align-items: center; gap: 10px; padding: 7px 0; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.ac-row .k { flex: 0 0 170px; color: var(--muted); font-size: 13px; }
.ac-row code { flex: 1 1 220px; word-break: break-all; font-size: 13px; }
.ac-steps { margin: 4px 0 8px; padding-left: 20px; line-height: 1.6; }
/* Dispatch si Autocab365 "Booking & Dispatch" */
.dp-tbl td, .dp-tbl th { vertical-align: top; }
.dp-tbl .dp-addr { min-width: 170px; max-width: 260px; white-space: normal; }
.dp-tbl tr.on td { background: var(--panel-3); }
.dp-top { display: flex; gap: 12px; align-items: stretch; margin-bottom: 12px; flex-wrap: wrap; }
.dp-sum { display: grid; grid-template-columns: repeat(auto-fit, minmax(92px, 1fr)); gap: 8px; flex: 1 1 640px; }
.dp-c { background: var(--panel); border: 1px solid var(--line); border-top: 3px solid var(--c); border-radius: 10px; padding: 8px 10px; display: flex; flex-direction: column; line-height: 1.15; }
.dp-c b { font-size: 24px; color: var(--c); }
.dp-c span { font-size: 12.5px; font-weight: 600; margin-top: 2px; }
.dp-c small { font-size: 11px; color: var(--muted); }
.dp-act { display: flex; flex-direction: column; gap: 8px; justify-content: center; }
.dp kbd { font: 600 10.5px/1 ui-monospace, monospace; padding: 2px 5px; border: 1px solid var(--line-2); border-bottom-width: 2px; border-radius: 4px; background: var(--panel-2); color: var(--text-2); }
.dp-main { display: grid; grid-template-columns: 250px minmax(0, 1fr) 300px; gap: 12px; margin-bottom: 12px; }
.dp-col { display: flex; flex-direction: column; height: 560px; min-width: 0; }
.dp-scroll { overflow: auto; flex: 1; min-height: 0; }
.dp-mid { padding: 0; overflow: hidden; }
.dp-mapbox, .dp-mapbox .map { height: 100%; border-radius: 12px; }
.dp-q td, .dp-q th { padding: 6px 8px; }
.dp-zones { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; padding: 10px; }
.dp-z { border: 1px solid var(--line); border-left: 4px solid var(--c); border-radius: 8px; padding: 6px 8px; background: var(--panel); min-height: 74px; }
.dp-z.zero { opacity: .55; }
.dp-z.need { border-color: #f04438; box-shadow: 0 0 0 2px rgba(240, 68, 56, .25); opacity: 1; }
.dp-z.sp { background: var(--panel-2); }
.dp-zh { display: flex; justify-content: space-between; align-items: baseline; }
.dp-zh b { font-size: 14px; }
.dp-zh span { font-size: 17px; font-weight: 700; color: #12b76a; }
.dp-zh small { font-size: 11px; color: var(--muted); font-weight: 500; }
.dp-zn { font-size: 11px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dp-zc { display: flex; flex-wrap: wrap; gap: 3px; margin-top: 5px; }
.dp-chip { font-style: normal; font-size: 11.5px; font-weight: 700; color: #fff; background: var(--c); border-radius: 5px; padding: 1px 6px; cursor: pointer; }
.dp-chip.more { background: var(--grey-b); color: var(--grey-t); cursor: default; }
.dp-w { display: flex; gap: 8px; padding: 8px; border-radius: 8px; margin-bottom: 6px; font-size: 13px; background: var(--panel-2); border-left: 3px solid #f79009; }
.dp-w.red { border-left-color: #f04438; }
.dp-w svg { flex: none; margin-top: 2px; }
.dp-sel { border: 1px solid var(--line); border-radius: 10px; padding: 10px; display: flex; flex-direction: column; gap: 6px; font-size: 13px; }
.dp-near { padding: 4px 0; }
@media (max-width: 1200px) { .dp-main { grid-template-columns: 220px minmax(0, 1fr); } .dp-main > .dp-col:last-child { grid-column: 1 / -1; height: auto; max-height: 360px; } }
@media (max-width: 760px) { .dp-sum { grid-template-columns: repeat(4, 1fr); } .dp-main { grid-template-columns: 1fr; } .dp-col { height: auto; max-height: 420px; } .dp-mid { height: 460px; max-height: none; } }
.dp:fullscreen { background: var(--bg); padding: 14px; overflow: auto; }
.dp-sms { border-top: 1px dashed var(--line); padding-top: 8px; margin-top: 2px; }
/* Pamja e kompanisë (white-label) */
.brand img.logo { width: 36px; height: 36px; flex: none; border-radius: 9px; object-fit: contain; background: #fff; }
.brand b.wm-co { color: #fff; font-size: 16px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.brand-prev { background: var(--side); border-radius: 12px; }
.brand-prev .logo { width: 36px; height: 36px; }
.brand-prev { display: flex; gap: 11px; align-items: center; padding: 18px; }
.brand-prev b { color: #fff; display: block; font-size: 16px; font-weight: 700; }
.brand-prev small { color: #9aa6c4; font-size: 12px; }
.brand-prev img.logo { border-radius: 9px; object-fit: contain; background: #fff; }
/* Pajisjet GPS: filtrat, lista dhe paneli anësor (24.10.2026) */
.dv-bar { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.dv-bar #dvQ { flex: 1 1 240px; max-width: 340px; }
.dv-tbl td { vertical-align: top; }
.dv-tbl tr.on td { background: var(--panel-3); }
.dv-tbl .mono, .dv-drawer .mono { font-family: var(--mono); font-size: 12.5px; }
.chip.sm { font-size: 11.5px; padding: 2px 7px; }
.chip.warn { background: var(--amber-b); color: var(--amber-t); border-color: transparent; }
.dv-drawer { position: fixed; top: 0; right: 0; bottom: 0; width: min(420px, 100vw); background: var(--panel); border-left: 1px solid var(--line); box-shadow: -12px 0 32px rgba(10, 26, 63, .14); z-index: 900; display: flex; flex-direction: column; }
.dv-dh { display: flex; gap: 10px; align-items: center; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.dv-db { padding: 12px 16px 24px; overflow: auto; flex: 1; }
.dv-sens { background: var(--panel-2); border-radius: 8px; padding: 8px 10px; margin-bottom: 6px; font-size: 13px; }
.dv-sens.warn { background: var(--amber-b); color: var(--amber-t); }
.dv-cmds { display: flex; flex-wrap: wrap; gap: 6px; }
.dv-block { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-top: 8px; padding: 8px; border: 1px dashed var(--red-l, #fda29b); border-radius: 8px; }
.dv-out { margin-top: 8px; font-size: 13px; }
.dv-edit { border: 1px solid var(--line); border-radius: 10px; padding: 10px; margin-bottom: 8px; }
/* Montimet → Interneti: shiriti i limitit dhe ditët e muajit */
.nt-bar { height: 5px; border-radius: 3px; background: var(--line); margin: 4px 0 2px; overflow: hidden; min-width: 70px; }
.nt-bar i { display: block; height: 100%; border-radius: 3px; }
.nt-days { display: flex; align-items: flex-end; gap: 3px; height: 120px; }
.nt-days > div { flex: 1; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; min-width: 6px; }
.nt-days i { display: block; width: 100%; background: var(--brand); border-radius: 3px 3px 0 0; }
.nt-days small { font-size: 10px; color: var(--muted); margin-top: 3px; }
/* Montimet: modulet si katrorë (26.10.2026) */
.mt-home-acts { gap: 8px; margin-bottom: 12px; flex-wrap: wrap; }
.mt-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 14px; margin-bottom: 16px; }
.mt-tile { display: flex; flex-direction: column; gap: 10px; padding: 16px; border-radius: 14px; background: var(--panel); border: 1px solid var(--line); border-top: 4px solid var(--c); color: inherit; text-decoration: none; box-shadow: var(--shadow-xs); transition: transform .12s ease, box-shadow .12s ease; min-height: 190px; }
.mt-tile:hover { transform: translateY(-2px); box-shadow: 0 6px 18px rgba(11, 23, 51, .12); }
.mt-tile-h { display: flex; align-items: center; gap: 10px; }
.mt-tile-h b { flex: 1; font-size: 15px; }
.mt-tile-h > svg:last-child { color: var(--muted); }
.mt-tile-i { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; color: var(--c); background: color-mix(in srgb, var(--c) 12%, transparent); }
.mt-tile-big { font-size: 30px; font-weight: 700; line-height: 1.1; letter-spacing: -.02em; }
.mt-tile-big small { display: block; font-size: 12.5px; font-weight: 500; color: var(--muted); letter-spacing: 0; margin-top: 2px; }
.mt-tile-l { display: grid; gap: 5px; font-size: 12.5px; color: var(--text-2); margin-top: auto; }
.mt-tile-l span { display: flex; align-items: center; gap: 7px; min-width: 0; }
.mt-tile-l span > i { width: 8px; height: 8px; border-radius: 50%; flex: none; }
.mt-tile-l span b { margin-left: auto; color: var(--text); white-space: nowrap; }
.mt-stack { display: flex; height: 8px; border-radius: 4px; overflow: hidden; background: var(--line); }
.mt-stack i { display: block; height: 100%; }
.mt-mod { display: inline-flex; align-items: center; gap: 6px; margin-left: 10px; font-size: 15px; }
.d-mont { display: block; color: inherit; text-decoration: none; }
.d-mont:hover { box-shadow: 0 6px 18px rgba(11, 23, 51, .1); }
.d-mont .actions { color: var(--brand); font-size: 13px; display: inline-flex; align-items: center; gap: 2px; }
.d-mont-g { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 10px; }
.d-mont-i { display: grid; gap: 2px; padding: 10px; border: 1px solid var(--line); border-radius: 10px; }
.d-mont-i b { font-size: 20px; }
.d-mont-i small { color: var(--muted); font-size: 12px; }

/* Taxi → Klientela (views/klientela.js) */
#nav a.nav-sub { padding-left: 42px; font-size: 13px; }
.kl-rank td { vertical-align: top; }
.kl-bar { height: 4px; border-radius: 2px; background: var(--line, #eaecf0); margin-top: 5px; overflow: hidden; }
.kl-bar i { display: block; height: 100%; background: #7a5af8; border-radius: 2px; }
.kl-heat { display: grid; grid-template-columns: 34px repeat(24, minmax(0, 1fr)); gap: 2px; font-size: 11px; }
.kl-hh { text-align: center; color: var(--muted); }
.kl-hd { color: var(--muted); align-self: center; }
.kl-hc { aspect-ratio: 1; border-radius: 3px; background: rgba(122, 90, 248, var(--a)); outline: 1px solid rgba(127, 127, 127, .08); }
.kl-parts { display: grid; gap: 10px; }
.kl-part div { margin-top: 2px; }
.kl-lbl span { background: rgba(255, 255, 255, .9); color: #3b2a8a; border-radius: 6px; padding: 1px 5px; font-size: 11px; white-space: nowrap; box-shadow: 0 1px 2px rgba(0, 0, 0, .15); transform: translate(-50%, -50%); display: inline-block; }
.kl-low .kl-lbl:not(.kl-top) { display: none; }
/* Raportet → Kërkim i avancuar (views/tables.js) */
#tbAdv.on { border-color: var(--brand); color: var(--brand); }
.tb-adv input[type="time"] { min-width: 120px; }
/* Raportet – moduli i përbashkët (views/report-hub.js) */
.rh-bar .card-b { display: grid; gap: 12px; }
.rh-row { display: flex; flex-wrap: wrap; gap: 10px 14px; align-items: flex-end; }
.rh-row .fld { margin: 0; }
.rh-cars { position: relative; display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: var(--text-2); font-weight: 500; }
.rh-cars > .btn { justify-content: space-between; min-width: 190px; }
.rh-vbox { position: absolute; top: 100%; left: 0; z-index: 30; margin-top: 6px; width: 280px; max-height: 340px; overflow: auto; padding: 8px; box-shadow: var(--shadow-lg, 0 10px 30px rgba(0, 0, 0, .15)); }
.rh-vbox input[type="text"], .rh-vbox #rhVQ { width: 100%; }
.rh-vbox label { display: flex; gap: 8px; padding: 5px 4px; font-weight: 400; cursor: pointer; align-items: center; }
#rhVList { margin-top: 6px; }
#rhVList button { display: flex; gap: 8px; align-items: center; width: 100%; padding: 8px 8px; border: 0; border-radius: 8px; background: none; color: inherit; font: inherit; font-size: 14px; text-align: left; cursor: pointer; }
#rhVList button:hover { background: var(--panel-3); }
#rhVList button.on { background: var(--brand-soft); color: var(--brand); font-weight: 600; }
#rhVList .rh-vco { margin-top: 6px; padding: 6px 8px; font-size: 12px; font-weight: 700; letter-spacing: .02em; text-transform: uppercase; color: var(--muted); background: var(--panel-2); position: sticky; top: 0; }
#rhVList .rh-vco small { font-weight: 500; }
#rhVList .rh-vall { margin-top: 4px; border-top: 1px solid var(--line); border-radius: 0 0 8px 8px; color: var(--muted); }
.replay-bar input[type=date] { padding: 4px 6px; font-size: 13px; }
.rh-act { margin-left: auto; gap: 8px; }
.rh-hours { align-items: center; gap: 8px; border-top: 1px solid var(--line); padding-top: 12px; }
.rh-hours .rh-time { width: 76px; text-align: center; font-variant-numeric: tabular-nums; }
.rh-hours .rh-time.bad { border-color: var(--red); }
.rh-stack { display: flex; width: 100%; border-radius: 6px; overflow: hidden; background: var(--line); }
.rh-stack i { display: block; height: 100%; }
.rh-legend { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 12.5px; color: var(--text-2); }
.rh-legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }
.rh-note { margin: 12px 0 0; font-size: 13.5px; }
.rh-note.bad { color: var(--red); }
.rh-taxis td { vertical-align: middle; }
.rh-tripsum { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 13px; padding-top: 0; }
/* Udhëtimet: harta e hipjeve/zbritjeve + statistikat + dritarja e një udhëtimi */
.rh-tripgrid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(280px, 1fr); gap: 16px; }
.rh-tmapcard { display: flex; flex-direction: column; }
.rh-tmap { height: 460px; min-height: 300px; }
.rh-legend .muted { margin-left: auto; font-size: 12px; }
.rh-kgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 10px; margin-bottom: 6px; }
.rh-k { display: flex; flex-direction: column; gap: 2px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; font-size: 12px; }
.rh-k b { font-size: 17px; }
.rh-h3 { font-size: 13px; margin: 14px 0 6px; display: flex; gap: 6px; align-items: center; }
.rh-zrow { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) 34px 34px; gap: 8px; align-items: center; font-size: 12.5px; padding: 2px 0; }
.rh-zrow span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rh-zrow i { height: 8px; border-radius: 4px; background: var(--brand); opacity: .75; min-width: 3px; }
.rh-zrow b, .rh-zrow small { text-align: right; }
.rh-zone { display: block; color: var(--text-2); font-size: 11px; }
table.rh-trips tbody tr[data-i] { cursor: pointer; }
table.rh-trips tbody tr[data-i]:hover { background: var(--panel-2); }
.rh-pin { color: #fff; border-radius: 50% 50% 50% 0; transform: rotate(-45deg); width: 24px; height: 24px; border: 2px solid #fff; box-shadow: 0 1px 4px #0006; display: grid; place-items: center; }
.rh-pin b { transform: rotate(45deg); font-size: 11px; }
.rh-pin.sm { flex: none; width: 22px; height: 22px; }
.rh-trip { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(240px, 1fr); gap: 16px; }
.rh-trmap { height: 440px; border-radius: 8px; overflow: hidden; }
.rh-trleft { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.rh-player { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 13px; }
.rh-player input[type="range"] { flex: 1; min-width: 140px; }
.rh-player #rpInfo { flex-basis: 100%; }
.rh-trinfo { display: flex; flex-direction: column; gap: 6px; font-size: 13px; }
.rh-drow { display: flex; justify-content: space-between; gap: 10px; border-bottom: 1px dashed var(--line); padding-bottom: 4px; }
.rh-dplace { display: flex; gap: 10px; align-items: flex-start; margin-top: 8px; line-height: 1.45; }
.rh-leg { display: inline-block; width: 18px; height: 4px; border-radius: 2px; vertical-align: middle; }
.rh-leg.dash { background: repeating-linear-gradient(90deg, #2e90fa 0 5px, transparent 5px 9px); }
@media (max-width: 900px) { .rh-tripgrid, .rh-trip { grid-template-columns: 1fr; } .rh-tmap { height: 340px; } .rh-trmap { height: 300px; } }
.rh-rule { font-size: 12px; margin: 0 2px 14px; }
.rh-more { font-size: 12.5px; margin: 6px 2px 18px; }
.rh-safety { width: auto; flex-wrap: wrap; }
@media (max-width: 720px) { .rh-act { margin-left: 0; } }
.rh-tariff .card-b { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 13.5px; padding: 12px 16px; }
.rh-tariff .btn { margin-left: auto; }
.replay-bar input.time24 { padding: 4px 6px; font-size: 13px; border: 1px solid var(--line); border-radius: 8px; background: var(--panel); color: inherit; }

/* Raportet e avancuara (demo) */
.ar-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 13px; }
.ar-bar { display: flex; flex-wrap: wrap; gap: 10px 14px; align-items: flex-end; }
.ar-bar .fld { margin: 0; }
.ar-note { font-size: 12px; margin: 10px 16px 14px; }
.ar-cap { font-size: 12px; margin-top: 10px; }
.ar-rank th[data-s] { cursor: pointer; user-select: none; }
.ar-rank th.on { color: var(--brand); }
.ar-bad { color: var(--red-t); }
table.ar-click tbody tr[data-i] { cursor: pointer; }
table.ar-click tbody tr[data-i]:hover { background: var(--panel-2); }
.ar-inline { flex-direction: row; align-items: center; gap: 6px; margin: 0; }
.ar-inline input { width: 72px; }
.ar-cmp { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; }
.ar-cmp .card-b { display: flex; flex-direction: column; gap: 4px; font-size: 13px; }
.ar-big { font-size: 22px; }
.ar-ch { font-weight: 700; }
.ar-ch.ok { color: var(--green-t); }
.ar-ch.bad { color: var(--red-t); }
.ar-tip .card-b { display: flex; flex-direction: column; gap: 10px; }
.ar-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.ar-chip { padding: 6px 12px; border-radius: 999px; background: var(--panel-2); border: 1px solid var(--line); font-weight: 600; font-size: 13px; }
.ar-chip.top { background: var(--green-b); border-color: var(--green-l); color: var(--green-t); }
.ar-chip small { font-weight: 400; color: var(--muted); margin-left: 4px; }
.ar-heat { display: grid; grid-template-columns: minmax(90px, 150px) repeat(24, minmax(0, 1fr)); gap: 2px; font-size: 11px; }
.ar-hz { color: var(--text-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; align-self: center; padding-right: 6px; }
.ar-now { color: var(--brand); font-weight: 700; }

/* Ora në 24 orë (App.timeInput) */
input.time24 { width: 76px; text-align: center; font-variant-numeric: tabular-nums; }

/* Replay: legjenda e pasagjerit, "Pritje" dhe "Nisje" mbi veturë */
.rp-legend { display: inline-flex; flex-wrap: wrap; gap: 4px 10px; font-size: 12px; color: var(--text-2); }
.rp-legend span { display: inline-flex; align-items: center; gap: 4px; }
.rp-legend i { width: 14px; height: 4px; border-radius: 2px; display: inline-block; }
.veh-car.rp-halted::before { background: color-mix(in srgb, var(--rp) 22%, transparent); border-color: var(--rp); animation: rpPulse 1.3s ease-out infinite; }
@keyframes rpPulse { 0% { transform: scale(.85); opacity: 1; } 100% { transform: scale(1.9); opacity: 0; } }
/* Kartela që e përcjell veturën në Replay */
.rp-card-wrap { background: none; border: 0; pointer-events: none; }
.rp-card { --c: var(--brand); position: absolute; left: 0; top: 0; width: 248px; transform: translate(-50%, calc(-100% - 34px)); background: var(--panel); color: var(--text); border-radius: 14px; border-top: 4px solid var(--c); box-shadow: 0 10px 28px rgba(11, 23, 51, .28); padding: 10px 12px; font: 13px/1.3 var(--font); transition: border-color .25s; }
.rp-card[hidden] { display: none; }
.rpc-top { display: flex; align-items: center; gap: 2px; font-size: 13px; }
.rpc-state { margin-left: auto; padding: 2px 8px; border-radius: 999px; font-size: 11px; font-weight: 600; white-space: nowrap; color: var(--c); background: color-mix(in srgb, var(--c) 14%, transparent); transition: color .25s, background .25s; }
.rpc-main { display: flex; align-items: flex-end; gap: 12px; margin: 8px 0; }
.rpc-speed { display: flex; align-items: baseline; gap: 3px; }
.rpc-speed b { font-size: 30px; line-height: 1; font-variant-numeric: tabular-nums; min-width: 34px; }
.rpc-speed b.over { color: var(--red); }
.rpc-speed small, .rpc-when small, .rpc-grid small { color: var(--muted); font-size: 11px; }
.rpc-when { margin-left: auto; text-align: right; min-width: 0; }
.rpc-when b { display: block; font-size: 15px; font-variant-numeric: tabular-nums; }
.rpc-when small { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 140px; }
.rpc-wait { margin-bottom: 8px; padding: 7px 9px; border-radius: 9px; background: var(--amber-b, #fffaeb); color: var(--amber-t, #b54708); }
.rpc-wait[hidden], .rpc-ev[hidden] { display: none; }
.rpc-wt { display: flex; align-items: center; gap: 5px; font-size: 12px; }
.rpc-wt span { margin-left: auto; font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.rpc-bar { height: 5px; margin-top: 5px; border-radius: 3px; background: color-mix(in srgb, currentColor 18%, transparent); overflow: hidden; }
.rpc-bar i { display: block; height: 100%; width: 0; border-radius: 3px; background: currentColor; }
.rpc-ev { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; margin-bottom: 8px; padding: 6px 9px; border-radius: 9px; font-size: 12px; animation: rpIn .25s ease-out; }
.rpc-ev.in { background: var(--red-b); color: var(--red-t); }
.rpc-ev.out { background: var(--grey-b, #f2f4f7); color: var(--text); }
.rpc-ev.go { background: var(--green-b); color: var(--green-t); }
@keyframes rpIn { from { transform: translateY(4px); opacity: 0; } to { transform: none; opacity: 1; } }
.rpc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 10px; }
.rpc-grid div { min-width: 0; }
.rpc-grid small { display: block; }
.rpc-grid b { font-size: 13px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.rpc-foot { margin-top: 7px; padding-top: 6px; border-top: 1px solid var(--line); color: var(--muted); font-size: 11px; }
@media (max-width: 900px) { .rp-card { width: 216px; padding: 8px 10px; } .rpc-speed b { font-size: 26px; } .rpc-foot { display: none; } }
@media (max-width: 900px) {
  .replay-bar #rExit { position: absolute; top: 8px; right: 8px; }
  .replay-bar #rColors, .replay-bar .rp-rides { display: none; }
}
.rpc-top b { white-space: nowrap; }
.rpc-state { min-width: 0; overflow: hidden; text-overflow: ellipsis; }

/* Karburanti pa sensorë (#/fuel) */
.fc-bar { display: flex; gap: 10px 14px; align-items: center; flex-wrap: wrap; }
.fc-bar .seg button { white-space: nowrap; }
.fc-bar .fc-acts { margin-left: auto; display: flex; gap: 8px; }
.fc-dates { flex-wrap: nowrap; max-width: 100%; }
.fc-dates input { padding: 6px 10px; font-size: 13px; flex: 1 1 0; min-width: 0; }
.fc-table td { vertical-align: top; }
.fc-sub { font-size: 11.5px; color: var(--muted); font-weight: 400; white-space: nowrap; }
.fc-neg { color: var(--red-t); }
.fc-note { display: flex; gap: 8px; align-items: flex-start; background: var(--amber-b); color: var(--amber-t); border: 1px solid var(--amber-l); border-radius: 10px; padding: 10px 14px; font-size: 13px; margin-bottom: 16px; }
.fc-foot { font-size: 12px; margin-top: 12px; max-width: 900px; }
.fc-modal h3 { font-size: 13.5px; margin: 20px 0 10px; }
.fc-sum { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; }
.fc-sum > div { background: var(--panel-2); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.fc-sum span, .fc-sum small { font-size: 11.5px; color: var(--muted); }
.fc-sum b { font-size: 16px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.fc-quick { display: flex; gap: 8px; flex-wrap: wrap; }
.fc-add, .fc-params { display: flex; gap: 10px; align-items: flex-end; flex-wrap: wrap; margin-top: 12px; }
.fc-params { margin-top: 0; align-items: flex-start; }
.fc-params .btn { margin-top: 25px; }
.fc-params.fc-opt { margin-top: 12px; }
.fc-add .fld, .fc-params .fld { flex: 1 1 120px; min-width: 0; }
.fc-add .fc-grow { flex: 2 1 180px; }
.fc-cal { display: flex; gap: 12px; align-items: center; justify-content: space-between; flex-wrap: wrap; background: var(--panel-2); border: 1px solid var(--line); border-radius: 10px; padding: 10px 14px; margin-top: 14px; font-size: 13px; }
.fc-cal > div { flex: 1 1 280px; }
.fc-cal small { display: block; margin-top: 3px; font-size: 12px; }
.fc-calnote { font-size: 12px; margin: 8px 0 0; }
.fc-link { border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; margin-bottom: 12px; display: flex; flex-direction: column; gap: 10px; }
.fc-link-b { display: flex; gap: 16px; align-items: flex-start; flex-wrap: wrap; }
.fc-qr { flex: none; background: #fff; padding: 8px; border-radius: 10px; border: 1px solid var(--line); line-height: 0; }
.fc-qr svg { width: 148px; height: 148px; }
.fc-link-r { flex: 1 1 260px; min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.fc-link-r input { width: 100%; font-size: 13px; }
.fc-link-r .btn { text-decoration: none; }
.fc-hist { max-height: 260px; border: 1px solid var(--line); border-radius: 10px; }
@media (max-width: 700px) {
  .fc-bar .fc-acts { margin-left: 0; }
  .fc-bar .seg { overflow-x: auto; max-width: 100%; }
  .fc-bar .seg button { white-space: nowrap; }
  .fc-sum { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fc-quick .btn { flex: 1 1 46%; justify-content: center; padding-top: 11px; padding-bottom: 11px; }
}
