:root {
  --bg: #f3f5f9; --card: #fff; --text: #172033; --muted: #66708a; --line: #e2e6ef;
  --primary: #0f5fd7; --primary-text: #fff; --brand: #2f4f93; --red: #d92d20; --amber: #c27803; --green: #138a4b;
  --bubble: #fff; --mine: #d9fdd3; --chatbg: #efeae2; --sysbg: #e9edef; --systxt: #54656f;
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #0f1420; --card: #182033; --text: #e8ecf5; --muted: #95a0b8; --line: #2a3550;
    --primary: #3d82f0; --brand: #8fb0ee; --bubble: #202c33; --mine: #005c4b; --chatbg: #0b141a; --sysbg: #182229; --systxt: #8696a0; }
}
* { box-sizing: border-box; }
html, body { touch-action: pan-x pan-y; overflow-x: clip; margin: 0; height: 100%; background: var(--bg); color: var(--text);
  font: 16px/1.4 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
.hidden { display: none !important; }
.muted { color: var(--muted); } .small { font-size: 13px; } .err { color: var(--red); min-height: 1.2em; }
input, textarea, select { font: inherit; width: 100%; padding: 10px 12px; border: 1px solid var(--line);
  border-radius: 10px; background: var(--card); color: var(--text); margin-top: 4px; }
label { display: block; margin: 10px 0; font-size: 14px; color: var(--muted); }
label.row { display: flex; gap: 8px; align-items: center; } label.row input { width: auto; margin: 0; }
.btn { font: inherit; border: 1px solid var(--line); background: var(--card); color: var(--text);
  padding: 9px 14px; border-radius: 10px; cursor: pointer; }
.btn.primary { background: var(--primary); color: var(--primary-text); border-color: var(--primary); }
.btn.big { width: 100%; padding: 13px; font-size: 17px; font-weight: 600; }
.btn.green { background: var(--green); color: #fff; border-color: var(--green); }
.btn.red { color: var(--red); border-color: var(--red); }
.btn:disabled { opacity: .5; }
.icon-btn { background: none; border: 0; font-size: 22px; padding: 6px 8px; cursor: pointer; color: var(--text); }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 14px; }

.screen { height: 100%; }
#login { display: grid; place-items: center; padding: 16px; }
.login-card { width: 100%; max-width: 360px; text-align: center; }
.login-card label { text-align: left; }
.login-logo { width: min(240px, 80%); height: auto; display: block; margin: 4px auto 8px; background: #fff; border-radius: 12px; padding: 6px; }
.brand { display: flex; align-items: center; gap: 10px; min-width: 0; }
.brand-mark { width: 46px; height: auto; background: #fff; border-radius: 8px; padding: 3px; flex-shrink: 0; }
.brand-text { min-width: 0; }
.brand-name { line-height: 1; }
/* emri i programit: Korabi-Net TICKET, propozimi 1 "Gradient" me shkronjat Sora (pronari 24.10.2026; më parë KORABI PULS) */
@font-face { font-family: 'Sora'; font-weight: 600; font-display: swap; src: url('/fonts/sora-600.ttf') format('truetype'); }
@font-face { font-family: 'Sora'; font-weight: 800; font-display: swap; src: url('/fonts/sora-800.ttf') format('truetype'); }
.wm-k { font-family: 'Sora', system-ui, sans-serif; font-weight: 600; font-size: 10px; letter-spacing: .2em; color: var(--brand); }
.wm-t { display: inline-block; font-family: 'Sora', system-ui, sans-serif; font-weight: 800; font-size: 22px; letter-spacing: -.02em; line-height: 1.05;
  background: linear-gradient(90deg, #2f6fd6, #d92d20); -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent; }
.login-app { text-align: center; margin: 8px 0 4px; }
.login-app .wm-k { display: none; } /* logoja sipër e ka "KORABI-NET" */ .login-app .wm-t { font-size: 46px; display: inline-block; }
.brand-text .small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

#app { display: flex; flex-direction: column; max-width: 900px; margin: 0 auto; }
.top { display: flex; justify-content: space-between; align-items: center; padding: 10px 16px;
  padding-top: max(10px, env(safe-area-inset-top)); background: var(--card); border-bottom: 1px solid var(--line); }
.top-actions { display: flex; align-items: center; gap: 4px; }
.dot { width: 10px; height: 10px; border-radius: 50%; background: var(--red); display: inline-block; }
.dot.on { background: var(--green); }
.menu { position: fixed; right: 12px; top: 56px; z-index: 20; background: var(--card); border: 1px solid var(--line);
  border-radius: 12px; box-shadow: 0 8px 24px #0003; display: flex; flex-direction: column; overflow: hidden auto;
  max-height: calc(100dvh - 70px); overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }
.menu button { flex: 0 0 auto; }
/* menyja ⋮ lëviz vetë, jo faqja poshtë saj (pronari 19.11.2026) */
html:has(#menu:not(.hidden)), body:has(#menu:not(.hidden)) { overflow: hidden; overscroll-behavior: none; }
.menu button { background: none; border: 0; padding: 12px 18px; text-align: left; font: inherit; color: var(--text); cursor: pointer; }
.menu button:hover { background: var(--bg); }

.tab { flex: 1; overflow-y: auto; overflow-x: hidden; padding: 12px 16px 16px; position: relative; } /* faqja s'lëviz majtas-djathtas (pronari 01.11.2026) */
.search { margin: 0 0 10px; }
.calls:not(:empty) { margin-bottom: 12px; }
.call { background: var(--card); border: 1px solid var(--line); border-left: 5px solid var(--primary); border-radius: 12px; padding: 10px 12px; }
.call.pritje { border-left-color: var(--red); }
.call.pranuar { border-left-color: var(--green); }
.call .actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
.call p { margin: 4px 0; white-space: pre-wrap; }
.alarm-btns { display: flex; flex-direction: column; gap: 8px; margin-bottom: 8px; }
.hist { font-size: 14px; border-left: 3px solid var(--line); padding: 4px 0 8px 10px; white-space: pre-wrap; }
.hist .muted { font-size: 12px; }
.close-photo { max-width: 100%; max-height: 220px; border-radius: 10px; margin-top: 6px; display: block; }
#histDlg .dlg { max-height: 80vh; overflow-y: auto; }
.filters { display: flex; gap: 6px; overflow-x: auto; margin-bottom: 10px; }
.chip { border: 1px solid var(--line); background: var(--card); color: var(--text); border-radius: 20px;
  padding: 6px 12px; font: inherit; font-size: 14px; white-space: nowrap; cursor: pointer; }
.chip.active { background: var(--primary); color: #fff; border-color: var(--primary); }
.list { display: flex; flex-direction: column; gap: 10px; }
.fault { background: var(--card); border: 1px solid var(--line); border-left: 5px solid var(--amber); border-radius: 12px; padding: 12px; }
.fault.hapur { border-left-color: var(--red); } .fault.mbyllur { border-left-color: var(--green); opacity: .9; }
.fault .head { display: flex; justify-content: space-between; gap: 8px; }
.fault h4 { margin: 0; font-size: 17px; }
.fault p { margin: 6px 0; white-space: pre-wrap; }
.fault .meta { font-size: 13px; color: var(--muted); }
.fault .actions { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.tag { font-size: 12px; padding: 2px 8px; border-radius: 10px; background: var(--bg); white-space: nowrap; align-self: start; }
.tag.red { background: var(--red); color: #fff; } .tag.green { background: var(--green); color: #fff; } .tag.amber { background: var(--amber); color: #fff; }
.fab { position: fixed; right: max(20px, calc(50% - 430px)); bottom: 84px; width: 58px; height: 58px; border-radius: 50%;
  border: 0; background: var(--primary); color: #fff; font-size: 30px; box-shadow: 0 6px 16px #0004; cursor: pointer; z-index: 5; }
.empty { text-align: center; color: var(--muted); padding: 40px 0; }

#tab-chat { display: flex; flex-direction: column; padding: 0; }
.chat { flex: 1; overflow-y: auto; padding: 10px 10px; display: flex; flex-direction: column; gap: 4px; background: var(--chatbg); }
/* Biseda si WhatsApp: flluska të vogla, të tjerët majtas, të mitë djathtas në jeshile; njoftimet automatike si rresht gri në mes */
.msg { max-width: 80%; background: var(--bubble); border-radius: 8px; padding: 5px 8px 4px; align-self: flex-start; font-size: 15px;
  box-shadow: 0 1px 0.5px rgba(0,0,0,.13); position: relative; }
.msg.mine { align-self: flex-end; background: var(--mine); }
.msg .who { font-size: 12.5px; font-weight: 600; color: var(--primary); margin-bottom: 1px; }
/* Te Biseda secili person me ngjyrën e vet (si te WhatsApp): emri me ngjyrë (--nc, sipas id % 12)
   dhe kutia e mesazhit e ngjyrosur lehtë me të njëjtën ngjyrë */
.msg.nc0 { --nc: #0f5fd7; }
.msg.nc1 { --nc: #c0392b; }
.msg.nc2 { --nc: #138a4b; }
.msg.nc3 { --nc: #8e44ad; }
.msg.nc4 { --nc: #d35400; }
.msg.nc5 { --nc: #00838f; }
.msg.nc6 { --nc: #ad1457; }
.msg.nc7 { --nc: #6d4c41; }
.msg.nc8 { --nc: #2e7d32; }
.msg.nc9 { --nc: #3949ab; }
.msg.nc10 { --nc: #b7791f; }
.msg.nc11 { --nc: #546e7a; }
@media (prefers-color-scheme: dark) {
  .msg.nc0 { --nc: #6ea8ff; }
  .msg.nc1 { --nc: #ff7b72; }
  .msg.nc2 { --nc: #4cd38a; }
  .msg.nc3 { --nc: #c99bf0; }
  .msg.nc4 { --nc: #ffa65c; }
  .msg.nc5 { --nc: #4dd0e1; }
  .msg.nc6 { --nc: #f48fb1; }
  .msg.nc7 { --nc: #d7b29d; }
  .msg.nc8 { --nc: #9ccc65; }
  .msg.nc9 { --nc: #9fa8ff; }
  .msg.nc10 { --nc: #ffd54f; }
  .msg.nc11 { --nc: #b0bec5; }
}
.msg[class*=" nc"] .who { color: var(--nc); }
.msg[class*=" nc"] { background: color-mix(in srgb, var(--nc) 9%, var(--bubble)); }
@media (prefers-color-scheme: dark) { .msg[class*=" nc"] { background: color-mix(in srgb, var(--nc) 14%, var(--bubble)); } }
.msg .txt { white-space: pre-wrap; word-wrap: break-word; line-height: 1.3; }
.msg .time { font-size: 10.5px; color: var(--muted); text-align: right; margin-top: 1px; }
.msg img, .msg video { max-width: 100%; max-height: 320px; border-radius: 6px; display: block; margin-top: 3px; }
.msg.sys { align-self: center; max-width: 92%; background: var(--sysbg); box-shadow: none; border-radius: 8px; padding: 4px 10px;
  font-size: 12.5px; color: var(--systxt); text-align: center; }
.msg.sys .who { display: none; }
.msg.sys.cmim { background: #fff4cc; color: #5a4300; font-weight: 600; padding: 8px 12px; }
.msg.sys .txt { line-height: 1.3; }
.msg.sys .time { display: inline; margin-left: 6px; font-size: 10.5px; }
.msg.sys .txt + .time { display: block; text-align: center; margin: 0; }
.composer { display: flex; gap: 2px; align-items: center; padding: 8px; background: var(--card); border-top: 1px solid var(--line); }
.composer { align-items: flex-end; }
.composer #chatText { margin: 0; flex: 1; resize: none; min-height: 42px; max-height: 140px; line-height: 1.3; overflow-y: auto; }
.composer .icon-btn { font-size: 20px; padding: 6px 4px; }
.upload-info { padding: 6px 12px; font-size: 13px; background: var(--card); }

.report-head { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; } .report-head .rbtn { position: relative; flex: 1 1 150px; display: flex; flex-direction: column; align-items: flex-start; gap: 2px; text-align: left;
  background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; font: inherit; color: var(--text); cursor: pointer; }
.report-head .rbtn.on { border: 2px solid var(--primary); }
.report-head .rb-t { font-weight: 600; font-size: 14px; } .report-head .rb-v { font-size: 13px; color: var(--muted); }
.report-head #monthPick { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; margin: 0; cursor: pointer; -webkit-appearance: none; appearance: none; }
.report-head .date-panel { flex-basis: 100%; display: flex; flex-wrap: wrap; gap: 10px; margin: 0; padding: 12px; }
.report-head .date-panel label { flex: 1 1 140px; display: flex; flex-direction: column; gap: 4px; font-size: 13px; color: var(--muted); }
.report-head .date-panel input { width: 100%; min-height: 46px; display: block; -webkit-appearance: none; appearance: none; color: var(--text); margin: 0; }
.report-head .date-panel input::-webkit-date-and-time-value { text-align: left; }
.report-head .date-actions { flex-basis: 100%; display: flex; gap: 8px; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 8px; margin-bottom: 12px; }
.stat { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 10px; }
.stat b { display: block; font-size: 24px; }
.rep-list .cl-link { color: var(--primary); font-weight: 600; text-decoration: underline; }
.rep-list .rep-q { width: 100%; margin: 4px 0 8px; }
button.stat { font: inherit; color: var(--text); text-align: left; cursor: pointer; }
.stat .more { display: block; font-size: 12px; color: var(--primary); margin-top: 2px; }
.stat.on { border-color: var(--primary); box-shadow: 0 0 0 2px var(--primary) inset; }
.rep-list { margin-bottom: 12px; } .rep-list h3 { margin: 0; font-size: 16px; }
.tech { margin-bottom: 10px; }
.tech summary { cursor: pointer; display: flex; justify-content: space-between; gap: 8px; align-items: center; list-style: none; }
.tech summary::-webkit-details-marker { display: none; }
table { width: 100%; min-width: 620px; border-collapse: collapse; font-size: 14px; margin-top: 10px; }
th, td { text-align: left; padding: 6px 4px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { color: var(--muted); font-weight: 500; }
.table-wrap { overflow-x: auto; }

.rank-box { margin-bottom: 12px; } .rank-box h3 { margin: 0; }
.rank-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; }
.rank { margin: 8px 0 0; } .rank .pts { font-size: 15px; font-weight: 600; } .bad { color: var(--red); }
.rules { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 6px 10px; margin: 8px 0; }
#teamBox { margin: 12px 0; } #teamBox h3 { margin-top: 0; }
.team-row { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.team-form { display: grid; grid-template-columns: 1fr; gap: 6px; margin-top: 10px; }
.devs { margin-top: 6px; } .dev { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 14px; padding: 3px 0; }
.btn.small { padding: 3px 10px; font-size: 13px; }
.user { display: flex; justify-content: space-between; align-items: center; gap: 8px; }

nav.bottom { display: flex; background: var(--card); border-top: 1px solid var(--line); padding-bottom: env(safe-area-inset-bottom); }
nav.bottom button { flex: 1; background: none; border: 0; padding: 8px 0 6px; font: inherit; font-size: 12px; color: var(--muted);
  display: flex; flex-direction: column; align-items: center; position: relative; cursor: pointer; }
nav.bottom button span { font-size: 22px; }
nav.bottom button.active { color: var(--primary); font-weight: 600; }
.badge { position: absolute; top: 4px; left: 55%; background: var(--red); color: #fff; font-size: 11px; border-radius: 10px; padding: 0 6px; }

dialog { border: 0; border-radius: 16px; padding: 0; width: min(94vw, 440px); background: var(--card); color: var(--text); }
dialog::backdrop { background: #0008; }
.dlg { padding: 16px; } .dlg h3 { margin-top: 0; }
.dlg-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 12px; }

.alarm { position: fixed; inset: 0; background: #d92d20ee; z-index: 100; display: grid; place-items: center; padding: 16px; }
.alarm-box { background: var(--card); border-radius: 18px; padding: 24px; text-align: center; max-width: 380px; width: 100%; }
.alarm-box p { white-space: pre-wrap; }
.bell { font-size: 64px; animation: ring .5s infinite alternate; }
@keyframes ring { from { transform: rotate(-18deg); } to { transform: rotate(18deg); } }

.toast { position: fixed; left: 50%; bottom: 90px; transform: translateX(-50%); background: #172033; color: #fff;
  padding: 10px 16px; border-radius: 10px; z-index: 2600; max-width: 90vw; }

@media print {
  .top, nav.bottom, .report-head, .fab, .tab:not(#tab-reports) { display: none !important; }
  .tab { overflow: visible; } details { display: block; } details > * { display: block; }
  body { background: #fff; color: #000; }
}

/* Lista e klientëve nga Radius Manager */
.sugg-list { display: flex; flex-direction: column; gap: 4px; max-height: 240px; overflow-y: auto; }
.sugg { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; text-align: left; padding: 8px 10px;
  border: 1px solid var(--line, #ddd); border-radius: 8px; background: var(--card, #fff); color: inherit; font: inherit; cursor: pointer; }
.sugg:hover, .sugg:focus { border-color: var(--primary); }

.sort-bar { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin: -4px 0 10px; }
.small-chip { font-size: 13px; padding: 5px 10px; }
.sort-bar select { padding: 5px 8px; border-radius: 10px; border: 1px solid var(--line); background: var(--card); color: var(--text); }
.top-row { display: flex; gap: 12px; align-items: center; width: 100%; text-align: left; cursor: pointer; font: inherit; color: inherit; }
.top-rank { font-weight: 800; font-size: 18px; min-width: 2em; color: var(--muted); }
.top-count { margin-left: auto; text-align: right; font-weight: 800; font-size: 20px; }
.top-count small { display: block; font-weight: 400; font-size: 12px; color: var(--muted); }

.chat-search { display: flex; gap: 6px; padding: 8px 12px 0; }
.chat-search input { flex: 1; min-width: 0; padding: 8px 10px; border-radius: 10px; border: 1px solid var(--line); background: var(--card); color: var(--text); font: inherit; }
.chat-search input[type=search] { flex: 1 1 auto; width: auto; }
.chat-search input[type=date] { flex: 0 0 140px; width: 140px; }
.chat-note { text-align: center; color: var(--muted); font-size: 13px; padding: 4px; }

/* Butoni + te biseda (si WhatsApp): hap galerinë, kamerën ose videon */
.composer { position: relative; }
.plus-btn { background: none; border: 0; font-size: 28px; line-height: 1; width: 40px; height: 40px; border-radius: 50%; color: var(--muted); cursor: pointer; }
.plus-btn.open { transform: rotate(45deg); color: var(--primary); }
.attach-menu { position: absolute; left: 0; right: 0; bottom: 100%; background: var(--sheet, #eceef2); border-radius: 22px 22px 0 0;
  box-shadow: 0 -4px 16px rgba(0,0,0,.12); padding: 22px 12px 18px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px 6px; z-index: 20; }
.attach-menu label { display: flex; flex-direction: column; align-items: center; gap: 8px; margin: 0; padding: 0; cursor: pointer; font-size: 14px; color: var(--text); text-align: center; }
.attach-menu .ico { --ib: #fff; width: 64px; height: 64px; border-radius: 50%; background: var(--ib); color: var(--c, #3b4a54); display: grid; place-items: center; box-shadow: 0 1px 2px rgba(0,0,0,.06); }
.attach-menu .ico svg { width: 32px; height: 32px; }
@media (prefers-color-scheme: dark) { .attach-menu .ico { --ib: #2a3942; } .attach-menu .ico[style*='3b4a54'] { color: #d1d7db; } }
.attach-menu label.hidden { display: none; }
.attach-menu label:active .ico { filter: brightness(.9); }
.attach-menu small { font-size: 11px; color: var(--muted); margin-top: -6px; }
@media (prefers-color-scheme: dark) { .attach-menu { --sheet: #1f2c33; } }

/* Shikuesi i fotove/videove te biseda */
.viewable { cursor: pointer; }
.vthumb { position: relative; margin-top: 3px; }
.vthumb video { pointer-events: none; }
.vthumb .play { position: absolute; inset: 0; margin: auto; width: 52px; height: 52px; border-radius: 50%; background: #0009; color: #fff; display: grid; place-items: center; font-size: 22px; padding-left: 4px; }
.viewer { position: fixed; inset: 0; background: #000; z-index: 2500; display: flex; align-items: center; justify-content: center; }
.viewer img, .viewer video { max-width: 100%; max-height: 100%; object-fit: contain; }
.viewer img { touch-action: none; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; }
.viewer-save { right: 66px !important; }
.viewer-close { position: absolute; top: calc(10px + env(safe-area-inset-top)); right: 12px; z-index: 1; width: 44px; height: 44px; border-radius: 50%; border: 0; background: #000a; color: #fff; font-size: 22px; box-shadow: 0 0 0 2px #fff6; }

/* Vendndodhja e teknikëve */
.loc-note { font-size: 12px; color: var(--muted); background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 6px 10px; margin-bottom: 8px; }
.loc-note.warn { color: #b42318; border-color: #f3b3ac; }
dialog.wide { width: min(96vw, 640px); }
.sig-open { padding: 18px; display: flex; flex-direction: column; gap: 10px; }
.sig-open h3 { margin: 0; }
.sig-open p { margin: 0 0 4px; }
.sig-open-row { display: flex; gap: 8px; }
.sig-open-row input { margin: 0; flex: 1; }
/* Foto/video para dërgimit me tekst (si WhatsApp) */
dialog.media-dlg { width: 100vw; max-width: 100vw; height: 100dvh; max-height: 100dvh; margin: 0; border-radius: 0; background: #0b141a; color: #fff; display: none; flex-direction: column; }
dialog.media-dlg[open] { display: flex; }
.media-x { position: absolute; top: max(10px, env(safe-area-inset-top)); left: 10px; z-index: 2; background: #0008; color: #fff; border: 0; border-radius: 50%; width: 42px; height: 42px; font-size: 20px; }
.media-view { flex: 1; min-height: 0; display: flex; align-items: center; justify-content: center; padding: 56px 8px 8px; }
.media-view img, .media-view video { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 6px; }
.media-view.multi { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 6px; align-content: start; overflow-y: auto; }
.media-view.multi > div { position: relative; aspect-ratio: 1; }
.media-view.multi img, .media-view.multi video { width: 100%; height: 100%; max-height: none; object-fit: cover; }
.media-view.multi button { position: absolute; top: 3px; right: 3px; width: 26px; height: 26px; border-radius: 50%; border: 0; background: rgba(0,0,0,.6); color: #fff; font-size: 15px; line-height: 26px; padding: 0; }
.media-bar { display: flex; gap: 8px; align-items: flex-end; padding: 8px 10px max(10px, env(safe-area-inset-bottom)); background: #0b141a; }
.media-bar textarea { flex: 1; margin: 0; resize: none; min-height: 44px; max-height: 120px; border-radius: 22px; background: #1f2c34; color: #fff; border: 0; line-height: 1.3; }
.media-send { width: 48px; height: 48px; flex: none; border: 0; border-radius: 50%; background: #00a884; color: #fff; font-size: 20px; }
.loc-map { height: 50vh; min-height: 260px; border-radius: 12px; overflow: hidden; margin-bottom: 10px; background: var(--bg); }
.loc-row { padding: 8px 0; border-bottom: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: baseline; }
.loc-row > div, .loc-row > a { flex-basis: 100%; }
.loc-row.old b { color: var(--muted); }

/* Stafi: kush e përdor programin */
.user .seen { font-size: 12px; color: var(--muted); margin-top: 3px; }
.user .seen.on { color: #12813f; font-weight: 600; }

/* Linjë kryesore: kartelë e kuqe që bie në sy */
article.fault.mainline { border: 2px solid #d92d20; background: #fff1f0; box-shadow: 0 0 0 3px #d92d2033; }
@media (prefers-color-scheme: dark) { article.fault.mainline { background: #3a1513; } }
.mainline-opt { align-items: flex-start; color: #b42318; }
.rrjet-opt { align-items: flex-start; }

/* Përgjigje mesazhit (si WhatsApp) */
.msg .quote, .reply-bar .quote { border-left: 4px solid var(--primary); background: #0000000d; border-radius: 6px; padding: 4px 8px; margin: 2px 0 4px; font-size: 13px; display: flex; flex-direction: column; overflow: hidden; }
.msg .quote { cursor: pointer; }
.msg .quote b, .reply-bar .quote b { color: var(--primary); font-size: 12.5px; }
.msg .quote span, .reply-bar .quote span { color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.reply-bar { display: flex; align-items: center; gap: 8px; padding: 6px 8px 0; background: var(--card); border-top: 1px solid var(--line); }
.reply-bar .quote { flex: 1; margin: 0; min-width: 0; }
.reply-bar button { border: 0; background: none; font-size: 20px; color: var(--muted); width: 36px; height: 36px; }
.reply-bar + .composer { border-top: 0; }
.msg.swiping { transition: none; }
.msg { transition: transform .15s ease; -webkit-touch-callout: none; }
.msg .txt { -webkit-user-select: text; user-select: text; }
.msg-menu { position: fixed; z-index: 60; background: var(--card); border: 1px solid var(--line); border-radius: 12px;
  box-shadow: 0 6px 24px rgba(0,0,0,.22); padding: 4px; display: flex; flex-direction: column; min-width: 190px; }
.msg-menu button { font: inherit; text-align: left; border: 0; background: none; color: var(--text); padding: 11px 12px; border-radius: 8px; }
.msg-menu button:hover, .msg-menu button:active { background: var(--line); }
.msg.flash { animation: msgflash 1.4s ease; }
@keyframes msgflash { 0%, 40% { box-shadow: 0 0 0 4px #f5c84ccc; } 100% { box-shadow: 0 0 0 0 #f5c84c00; } }
@media (prefers-color-scheme: dark) { .msg .quote, .reply-bar .quote { background: #ffffff14; } }

/* Mesazhet me zë */
.mic-btn, .send-btn { width: 44px; height: 44px; border-radius: 50%; padding: 0; display: grid; place-items: center; flex: none; }
.composer.recording > :not(.rec-bar) { display: none !important; }
.rec-bar { flex: 1; display: flex; align-items: center; gap: 10px; min-height: 44px; }
.rec-bar.hidden { display: none; }
.rec-cancel { background: none; border: 0; font-size: 22px; padding: 6px; cursor: pointer; }
.rec-dot { width: 12px; height: 12px; border-radius: 50%; background: #e5484d; animation: recblink 1s infinite; }
.rec-hint { flex: 1; color: var(--muted); font-size: 14px; }
#recTime { font-variant-numeric: tabular-nums; font-weight: 600; }
#recSend { width: 44px; height: 44px; border-radius: 50%; padding: 0; }
@keyframes recblink { 50% { opacity: .2; } }
.voice { display: flex; align-items: center; gap: 4px; margin-top: 4px; }
.voice audio { height: 40px; width: 240px; max-width: 62vw; }

/* Regjistrimi i videos */
.camrec { position: fixed; inset: 0; background: #000; z-index: 210; display: flex; align-items: center; justify-content: center; }
.camrec video { width: 100%; height: 100%; object-fit: contain; }
.camrec video.mirror { transform: scaleX(-1); }
.cam-time { position: absolute; top: calc(18px + env(safe-area-inset-top)); left: 0; right: 0; text-align: center; color: #fff; font-weight: 600; text-shadow: 0 1px 3px #000; font-variant-numeric: tabular-nums; pointer-events: none; }
.cam-bar { position: absolute; left: 0; right: 0; bottom: calc(24px + env(safe-area-inset-bottom)); display: flex; justify-content: space-around; align-items: center; gap: 12px; padding: 0 16px; }
.cam-bar.hidden { display: none; }
.cam-side { width: 52px; height: 52px; border-radius: 50%; border: 0; background: #0008; color: #fff; font-size: 24px; }
span.cam-side { background: none; }
.cam-side:disabled { opacity: .3; }
.cam-shot { width: 76px; height: 76px; border-radius: 50%; border: 4px solid #fff; background: transparent; display: grid; place-items: center; padding: 0; }
.cam-shot span { width: 58px; height: 58px; border-radius: 50%; background: #e5484d; transition: all .2s; }
.cam-shot.on span { width: 30px; height: 30px; border-radius: 6px; }
#camDone .btn { flex: 1; max-width: 200px; font-size: 17px; padding: 14px; }

/* Shkarkimi i videos para luajtjes */
.viewer-load { display: flex; flex-direction: column; align-items: center; gap: 14px; color: #fff; font-size: 16px; }
.viewer-load .spin { width: 44px; height: 44px; border-radius: 50%; border: 4px solid #fff3; border-top-color: #fff; animation: vspin 1s linear infinite; }
@keyframes vspin { to { transform: rotate(360deg); } }
.sec-log { padding-left: 18px; max-height: 200px; overflow: auto; font-size: 13px; }
.sec-log li { margin-bottom: 6px; }

/* 📦 Magazina */
.inv-pick-wrap { display: flex; flex-direction: column; gap: 4px; font-size: 14px; }
.inv-pick { display: flex; flex-direction: column; gap: 4px; border: 1px solid var(--line); border-radius: 10px; padding: 6px 8px; }
.inv-row { display: flex; align-items: center; gap: 6px; }
.inv-row > span:first-child { flex: 1; }
.inv-row button { width: 34px; height: 34px; border-radius: 8px; border: 1px solid var(--line); background: var(--card); color: var(--text); font-size: 18px; }
.inv-row input { width: 58px; text-align: center; margin: 0; padding: 6px 2px; }
.inv-row .unit { width: 30px; }
.inv-t { min-width: 0; }
.inv-t td:not(:first-child), .inv-t th:not(:first-child) { white-space: nowrap; }
.inv-red { color: #c0392b; }
.inv-low { border-color: #e0a100; background: color-mix(in srgb, #f5c84c 18%, var(--card)); }
.inv-more summary { cursor: pointer; padding: 6px 0; color: var(--primary); font-size: 14px; }
.inv-more .inv-row { margin-top: 4px; }
.inv-t td:first-child { min-width: 150px; }
.inv-act { white-space: nowrap; }
.inv-act input { width: 56px; padding: 5px 4px; margin: 0 4px 0 0; text-align: center; display: inline-block; }
.inv-act .btn { padding: 5px 8px; margin-left: 2px; }
.inv-name { color: inherit; text-decoration: none; border-bottom: 1px dashed var(--muted); }

/* 🎉 Asnjë defekt aktiv */
.happy { position: relative; overflow: hidden; text-align: center; padding: 48px 16px 40px; }
/* logoja KORABI-NET si hije e lehtë në mes (pas figurës dhe tekstit) */
.happy::before { content: ''; position: absolute; inset: 0; background: url(/logo-wm.png) center 42% / min(78%, 380px) auto no-repeat; opacity: .09; pointer-events: none; }
.happy > :not(.happy-conf) { position: relative; }
@media (prefers-color-scheme: dark) { .happy::before { opacity: .16; filter: brightness(1.8); } }
.happy-fig { font-size: 84px; line-height: 1; display: inline-block; animation: happy-bounce 1.6s ease-in-out infinite; }
.happy-txt { font-size: 21px; font-weight: 700; margin: 18px auto 6px; max-width: 460px; animation: happy-in .6s ease-out both; }
.happy-conf { position: absolute; inset: 0; pointer-events: none; }
.happy-conf i { position: absolute; top: -14px; left: var(--x); width: 8px; height: 13px; border-radius: 2px; background: var(--c); opacity: .85;
  animation: happy-fall 3.2s linear var(--d) infinite; }
@keyframes happy-bounce { 0%, 100% { transform: translateY(0) rotate(-4deg); } 50% { transform: translateY(-14px) rotate(4deg); } }
@keyframes happy-in { from { opacity: 0; transform: scale(.85); } to { opacity: 1; transform: none; } }
@keyframes happy-fall { to { transform: translateY(340px) rotate(540deg); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .happy-fig, .happy-conf i, .happy-txt { animation: none; } .happy-conf { display: none; } }

/* 🎮 Lojërat */
.games { margin: 0 auto 90px; max-width: 520px; }
.game-h { text-align: center; margin: 4px 0 12px; }
.game-menu { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.game-card { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 14px 8px; border-radius: 14px; border: 1px solid var(--line, #e2e8f0);
  background: var(--card, #fff); color: inherit; font: inherit; cursor: pointer; transition: transform .12s; }
.game-card:active { transform: scale(.96); }
.game-ic { font-size: 38px; }
.center { text-align: center; }
.game-bar { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.game-area { display: flex; flex-direction: column; align-items: center; gap: 10px; touch-action: none; }
.game-canvas { width: min(100%, 340px); aspect-ratio: 1; border-radius: 12px; touch-action: none; }
.game-pad { display: grid; grid-template-columns: repeat(3, 56px); grid-template-rows: 48px 48px; gap: 6px; }
.game-pad button { font-size: 20px; border-radius: 10px; border: 1px solid var(--line, #cbd5e1); background: var(--card, #fff); color: inherit; }
.game-pad [data-dir=U] { grid-column: 2; } .game-pad [data-dir=L] { grid-column: 1; grid-row: 2; }
.game-pad [data-dir=D] { grid-column: 2; grid-row: 2; } .game-pad [data-dir=R] { grid-column: 3; grid-row: 2; }
.game-over { text-align: center; margin-top: 14px; padding: 14px; border-radius: 14px; background: var(--card, #fff); }
.game-big { font-size: 22px; font-weight: 800; margin-bottom: 6px; }
.game-top { text-align: left; max-width: 260px; margin: 6px auto; } .game-top li { display: flex; justify-content: space-between; }
.mem-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; width: min(100%, 340px); }
.mem-card { aspect-ratio: 1; border-radius: 12px; border: none; background: #2563eb; font-size: 30px; cursor: pointer; }
.mem-card span { visibility: hidden; } .mem-card.up { background: var(--card, #fff); outline: 2px solid #93c5fd; } .mem-card.up span { visibility: visible; }
.mem-card.ok { background: #dcfce7; outline-color: #22c55e; }
.g48 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; padding: 8px; border-radius: 12px; background: #bbada0; width: min(100%, 340px); touch-action: none; }
.t48 { aspect-ratio: 1; display: flex; align-items: center; justify-content: center; border-radius: 8px; font-weight: 800; font-size: 26px; background: #cdc1b4; color: #776e65; }
.t48.v2 { background: #eee4da; } .t48.v4 { background: #ede0c8; } .t48.v8 { background: #f2b179; color: #fff; } .t48.v16 { background: #f59563; color: #fff; }
.t48.v32 { background: #f67c5f; color: #fff; } .t48.v64 { background: #f65e3b; color: #fff; } .t48.v128, .t48.v256, .t48.v512 { background: #edcf72; color: #fff; font-size: 22px; }
.t48.v1024, .t48.v2048, .t48.v4096 { background: #edc22e; color: #fff; font-size: 19px; }
.quiz-q { font-size: 19px; font-weight: 700; text-align: center; margin: 8px 0 12px; }
.quiz-opts { display: grid; gap: 8px; width: min(100%, 420px); } .quiz-o { padding: 12px; font-size: 16px; }
.game-menu .game-card:last-child:nth-child(odd) { grid-column: 1 / -1; }

/* 🎂 🌦️ 📊 🏅 😂 */
.bday { margin: 8px 0; padding: 12px 14px; border-radius: 14px; text-align: center; font-size: 17px;
  background: linear-gradient(90deg, #fde68a, #fbcfe8, #bfdbfe); color: #1e293b; animation: happy-in .6s ease-out both; }
.fun { max-width: 520px; margin: 0 auto 14px; display: grid; gap: 10px; }
.fun h4 { margin: 0 0 8px; }
.fun-now { display: flex; align-items: center; gap: 10px; font-size: 26px; } .fun-big { font-size: 40px; }
.fun-days { display: grid; gap: 4px; margin-top: 6px; }
.fun-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; text-align: center; }
.fun-stats b { display: block; font-size: 22px; color: #2563eb; } .fun-stats span { font-size: 12px; color: var(--muted); }
.fun-medals { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.medal { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 2px; padding: 8px 4px; border-radius: 12px;
  border: 1px solid var(--line); filter: grayscale(1); opacity: .6; }
.medal.won { filter: none; opacity: 1; background: color-mix(in srgb, #facc15 14%, var(--card)); border-color: #facc15; }
.medal-ic { font-size: 30px; } .medal b { font-size: 13px; } .medal .small { font-size: 11px; }
.medal-ok { font-size: 11px; color: #16a34a; font-weight: 700; }
.medal-bar { width: 80%; height: 5px; border-radius: 3px; background: var(--line); overflow: hidden; } .medal-bar i { display: block; height: 100%; background: #2563eb; }
.fun-joke p { margin: 0; font-size: 16px; }
@media (max-width: 380px) { .fun-stats { grid-template-columns: repeat(2, 1fr); } .fun-medals { grid-template-columns: repeat(2, 1fr); } }
/* Biseda si WhatsApp (15.10): ditët, reagimet, ✓✓, duke shkruar, ⬇, @përmendje */
.chat-wrap { position: relative; flex: 1; display: flex; flex-direction: column; min-height: 0; }
.chat-wrap .chat { flex: 1; }
.day-sep { align-self: center; margin: 8px 0 4px; }
.day-sep span { background: var(--sysbg); color: var(--muted); font-size: 12px; font-weight: 600; padding: 4px 12px; border-radius: 8px; box-shadow: 0 1px 1px #0000001a; }
.msg.cont { margin-top: -2px; }
.msg .time i { font-style: italic; margin-right: 2px; }
.msg .ticks { margin-left: 4px; font-size: 11px; letter-spacing: -3px; color: var(--muted); font-weight: 700; }
.msg .ticks.read { color: #34b7f1; }
.msg .txt a { color: #027eb5; text-decoration: underline; overflow-wrap: anywhere; }
@media (prefers-color-scheme: dark) { .msg .txt a { color: #53bdeb; } }
.mention { color: #027eb5; font-weight: 600; }
.mention.me { background: #fff3a0; color: #5a4300; border-radius: 4px; padding: 0 2px; }
.msg.at-me { box-shadow: 0 0 0 2px #f5c518; }
.msg.has-reacts { margin-bottom: 14px; position: relative; }
.reacts { position: absolute; bottom: -16px; right: 8px; display: flex; gap: 2px; background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 1px 5px; font-size: 14px; box-shadow: 0 1px 2px #0002; }
.msg:not(.mine) .reacts { right: auto; left: 8px; }
.reacts span.mine { filter: drop-shadow(0 0 1px #34b7f1); }
.reacts small { font-size: 11px; color: var(--muted); margin-left: 1px; }
.react-row { display: flex; gap: 2px; padding: 2px 2px 6px; border-bottom: 1px solid var(--line); margin-bottom: 4px; }
.msg-menu .react-row button { font-size: 22px; padding: 6px 5px; border-radius: 50%; }
.typing-bar { font-size: 13px; color: var(--primary); padding: 3px 14px; background: var(--chatbg); font-style: italic; }
.down-btn { position: absolute; right: 12px; bottom: 12px; width: 42px; height: 42px; border-radius: 50%; border: 0; background: var(--card); color: var(--muted); font-size: 26px; line-height: 30px; box-shadow: 0 2px 6px #0003; z-index: 5; cursor: pointer; }
.down-btn b { position: absolute; top: -6px; right: -4px; background: #25d366; color: #fff; font-size: 11px; min-width: 20px; height: 20px; line-height: 20px; border-radius: 10px; padding: 0 5px; }
.mention-box { display: flex; flex-direction: column; background: var(--card); border-top: 1px solid var(--line); max-height: 220px; overflow-y: auto; }
.mention-box button { text-align: left; font: inherit; border: 0; background: none; color: var(--text); padding: 10px 14px; border-bottom: 1px solid var(--line); }
.reply-bar.editing .quote { border-left-color: #f59e0b; }
.reply-bar.editing .quote b { color: #b45309; }
/* 📋 Hyrje e shumëfishtë */
#invBatch summary { cursor: pointer; }
.inv-batch { display: grid; gap: 4px; margin: 8px 0; }
.inv-batch .inv-row { margin: 0; padding: 4px 0; border-bottom: 1px solid var(--line); font-weight: normal; }
.inv-batch .inv-row input { width: 80px; }
/* 📦 Magazina e thjeshtuar (18.10) */
.inv-actions { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 8px; margin-bottom: 12px; }
.inv-actions .btn { padding: 14px 8px; font-size: 16px; font-weight: 600; }
.btn.amber { background: #f59e0b; color: #fff; border-color: #f59e0b; }
.btn.purple { background: #7c3aed; color: #fff; border-color: #7c3aed; }
.btn.teal { background: #0d9488; color: #fff; border-color: #0d9488; }
.inv-actions .btn.on { outline: 3px solid var(--text, #111); outline-offset: 2px; }
.card[hidden] { display: none; }
.inv-stock { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 6px; }
.inv-st { display: flex; justify-content: space-between; gap: 8px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; color: var(--text); text-decoration: none; }
.inv-st.low { border-color: #dc2626; background: rgba(220, 38, 38, .08); }
.inv-st.low b { color: #dc2626; }
.inv-van { padding: 8px 0; border-bottom: 1px solid var(--line); }
.inv-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.inv-chips .chip { padding: 3px 8px; border-radius: 12px; background: var(--bg); border: 1px solid var(--line); font-size: 13px; }

/* ===== 📦 Magazina e re (ridizajn 18.10.2026) ===== */
#tab-inv { padding-bottom: 90px; }
.mz { --pri: var(--primary); --psoft: rgba(15, 95, 215, .1); --ok: #138a4b; --oksoft: rgba(19, 138, 75, .12); --warn: #b26b00; --warnsoft: rgba(245, 158, 11, .16);
  --bad: #c4321c; --badsoft: rgba(220, 38, 38, .11); --soft: rgba(127, 140, 170, .08); }
@media (prefers-color-scheme: dark) { .mz, .mz-dlg { --ok: #4ade80; --warn: #fbbf24; --bad: #f87171; --psoft: rgba(61, 130, 240, .18); } }
.mz-dlg { --pri: var(--primary); --psoft: rgba(15, 95, 215, .1); --ok: #138a4b; --oksoft: rgba(19, 138, 75, .12); --warn: #b26b00; --warnsoft: rgba(245, 158, 11, .16);
  --bad: #c4321c; --badsoft: rgba(220, 38, 38, .11); --soft: rgba(127, 140, 170, .08); }
svg.mi { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; flex: none; vertical-align: -4px; }
.mz-mut { color: var(--muted); } .mz-dash { color: var(--muted); opacity: .7; } .sm { font-size: 12px; }
.mz-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin: 4px 0 10px; }
.mz-head h1 { margin: 0; font-size: 24px; font-weight: 700; } .mz-head p { margin: 2px 0 0; color: var(--muted); font-size: 13.5px; }
.mz-btn { font: inherit; display: inline-flex; align-items: center; justify-content: center; gap: 7px; border: 1px solid var(--line); background: var(--card); color: var(--text);
  padding: 9px 14px; border-radius: 10px; font-weight: 600; font-size: 14px; cursor: pointer; white-space: nowrap; }
.mz-btn:hover { border-color: var(--muted); }
.mz-btn.pri { background: var(--pri); border-color: var(--pri); color: #fff; } .mz-btn.pri:hover { filter: brightness(1.08); }
.mz-btn.bad { color: var(--bad); border-color: var(--badsoft); }
.mz-btn.lg { padding: 11px 18px; font-size: 15px; } .mz-btn:disabled { opacity: .45; cursor: default; filter: none; }
.mz-tabs { display: flex; gap: 22px; border-bottom: 1px solid var(--line); margin-bottom: 16px; overflow-x: auto; scrollbar-width: none; }
.mz-tabs a { padding: 10px 2px; color: var(--muted); font-weight: 600; font-size: 14.5px; text-decoration: none; border-bottom: 2.5px solid transparent; display: flex; gap: 6px; align-items: center; white-space: nowrap; }
.mz-tabs a.on { color: var(--pri); border-color: var(--pri); }
.mz-banner { display: flex; gap: 12px; align-items: center; background: var(--warnsoft); border: 1px solid rgba(245, 158, 11, .35); color: var(--text); border-radius: 12px; padding: 12px 14px; margin-bottom: 14px; font-size: 14px; }
.mz-banner > svg { color: var(--warn); width: 22px; height: 22px; } .mz-banner > div { flex: 1; }
.mz-kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 16px; }
.mz-kpi { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 13px 14px; display: flex; gap: 12px; align-items: center; min-width: 0; }
.mz-kpi.click { cursor: pointer; } .mz-kpi.click:hover { border-color: var(--muted); }
.mz-kpi[aria-pressed="true"] { border-color: var(--warn); box-shadow: 0 0 0 2px var(--warnsoft); }
.mz-kpi .ic { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; background: var(--psoft); color: var(--pri); flex: none; }
.mz-kpi .ic.w { background: var(--warnsoft); color: var(--warn); } .mz-kpi .ic.g { background: var(--oksoft); color: var(--ok); }
.mz-kpi b { display: block; font-size: 20px; line-height: 1.15; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .mz-kpi span { font-size: 12.5px; color: var(--muted); }
.mz-panel { background: var(--card); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.mz-tool { display: flex; gap: 10px; align-items: center; padding: 12px 14px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.mz-seg { display: flex; background: var(--soft); border: 1px solid var(--line); border-radius: 10px; padding: 3px; overflow-x: auto; scrollbar-width: none; max-width: 100%; }
.mz-seg a { padding: 6px 12px; border-radius: 7px; font-size: 13.5px; font-weight: 600; color: var(--muted); white-space: nowrap; text-decoration: none; }
.mz-seg a.on { background: var(--card); color: var(--text); box-shadow: 0 1px 3px rgba(0, 0, 0, .15); }
.mz-search { flex: 1; min-width: 170px; display: flex; align-items: center; gap: 8px; border: 1px solid var(--line); border-radius: 10px; padding: 0 12px; color: var(--muted); margin: 0; background: var(--card); }
.mz-search input { border: 0; padding: 9px 0; margin: 0; background: transparent; outline: none; font-size: 14px; }
.mz-sel, .mz-month { width: auto; margin: 0; padding: 9px 12px; font-size: 14px; border-radius: 10px; }
.mz-t { width: 100%; border-collapse: collapse; }
.mz-t th { font-size: 11.5px; text-transform: uppercase; letter-spacing: .4px; color: var(--muted); font-weight: 600; text-align: right; padding: 10px 14px; background: var(--soft); border-bottom: 1px solid var(--line); white-space: nowrap; }
.mz-t th:first-child, .mz-t td:first-child { text-align: left; }
.mz-t td { padding: 11px 14px; border-bottom: 1px solid var(--line); text-align: right; font-variant-numeric: tabular-nums; }
.mz-t td small, .mz-li small { color: var(--muted); font-size: 12px; }
.mz-t td.tot { font-weight: 700; } .mz-t td .nm { font-weight: 600; }
.mz-t tr.mz-row { cursor: pointer; } .mz-t tr.mz-row:hover td { background: var(--soft); }
.mz-t tr.mz-grp td { font-size: 11.5px; font-weight: 700; color: var(--brand); text-transform: uppercase; letter-spacing: .5px; padding: 16px 14px 6px; border-bottom: 0; }
.mz-t tr.off td { opacity: .55; } .mz-t tr.sum td { font-weight: 700; background: var(--soft); }
.mz-mv td { font-size: 14px; } .mz-mv td:nth-child(2), .mz-mv th:nth-child(2), .mz-mv td:nth-child(3) { text-align: left; } .mz-mv td:nth-child(n+5), .mz-mv th:nth-child(n+5), .mz-mv th:nth-child(3) { text-align: left; }
.mz-items td, .mz-items th { text-align: left !important; }
.mz-mx th:not(:first-child) { white-space: normal; min-width: 80px; }
.plus { color: var(--ok); } .minus { color: var(--bad); }
.mz-bd { display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px; border-radius: 99px; font-size: 12.5px; font-weight: 600; white-space: nowrap; }
.mz-bd i { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.mz-bd.ok { background: var(--oksoft); color: var(--ok); } .mz-bd.warn { background: var(--warnsoft); color: var(--warn); } .mz-bd.bad { background: var(--badsoft); color: var(--bad); }
.mz-bd.none { background: var(--soft); color: var(--muted); }
.mz-kind { display: inline-flex; align-items: center; gap: 5px; font-size: 13px; font-weight: 600; color: var(--muted); white-space: nowrap; }
.mz-kind svg.mi { width: 15px; height: 15px; } .mz-kind.ok { color: var(--ok); } .mz-kind.bad { color: var(--bad); } .mz-kind.warn { color: var(--warn); } .mz-kind.pri { color: var(--pri); }
.mz-foot { padding: 10px 14px; color: var(--muted); font-size: 13px; display: flex; justify-content: space-between; gap: 10px; }
.mz-empty { text-align: center; padding: 34px 16px; color: var(--muted); } .mz-empty > svg { width: 34px; height: 34px; opacity: .6; } .mz-empty p { margin: 8px 0 14px; }
.mz-list .mz-grp { padding: 14px 14px 4px; font-size: 11.5px; font-weight: 700; color: var(--brand); text-transform: uppercase; letter-spacing: .5px; }
.mz-li { display: flex; justify-content: space-between; align-items: center; padding: 11px 14px; border-bottom: 1px solid var(--line); gap: 10px; }
.mz-li.mz-row { cursor: pointer; } .mz-li .nm { font-weight: 600; } .mz-li .sk { font-size: 12.5px; color: var(--muted); margin-top: 2px; }
.mz-li .r { text-align: right; display: flex; flex-direction: column; align-items: flex-end; gap: 4px; flex: none; } .mz-li .r b { font-size: 16px; white-space: nowrap; }
.mz-scroll { overflow-x: auto; } .mz-sec { padding: 4px 0 8px; } .mz-sec + .mz-sec { border-top: 1px solid var(--line); }
.mz-h3 { font-size: 12.5px; color: var(--muted); text-transform: uppercase; letter-spacing: .4px; margin: 14px 14px 8px; }
.mz-sub { font-weight: 700; padding: 12px 14px 6px; }
.mz-phone, .mz-fab { display: none !important; }
.mz-fab { position: fixed; right: 16px; bottom: 82px; z-index: 20; border: 0; background: var(--pri); color: #fff; border-radius: 99px; padding: 13px 18px; font: inherit; font-weight: 700; align-items: center; gap: 7px; box-shadow: 0 8px 24px rgba(15, 95, 215, .4); cursor: pointer; }
@media (max-width: 700px) {
  .mz-desk { display: none !important; } .mz-phone { display: block !important; } .mz-fab { display: flex !important; }
  .mz-head .mz-new { display: none; } .mz-head h1 { font-size: 21px; }
  .mz-kpis { grid-template-columns: 1fr 1fr; gap: 8px; } .mz-kpi { padding: 10px 12px; gap: 10px; } .mz-kpi .ic { width: 34px; height: 34px; } .mz-kpi b { font-size: 17px; }
  .mz-tabs { gap: 16px; } .mz-tabs a svg { display: none; }
  .mz-tool { padding: 10px; gap: 8px; } .mz-seg { width: 100%; } .mz-search { min-width: 0; flex-basis: 100%; } .mz-sel, .mz-month { flex: 1; }
  .mz-banner { flex-wrap: wrap; } .mz-banner .mz-btn { width: 100%; }
}
@media print { .mz-fab, .mz-new { display: none !important; } }

/* dritaret */
dialog.mz-dlg { padding: 0; border: 0; background: var(--card); color: var(--text); box-shadow: 0 24px 70px rgba(0, 0, 0, .35); overflow: hidden; }
dialog.mz-dlg::backdrop { background: rgba(15, 23, 42, .5); }
dialog.mz-dlg.mid { width: min(680px, 96vw); max-height: 92vh; border-radius: 16px; }
dialog.mz-dlg.sheet { width: min(620px, 96vw); max-height: 88vh; border-radius: 16px; overflow-y: auto; }
.mz-form { display: flex; flex-direction: column; max-height: 92vh; margin: 0; }
.mz-grab { display: none; }
.mz-dh { padding: 18px 22px 10px; display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.mz-dh h2 { margin: 0; font-size: 19px; } .mz-dh p { margin: 3px 0 0; color: var(--muted); font-size: 13.5px; display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.mz-dh-r { display: flex; gap: 8px; align-items: center; }
.mz-x { border: 0; background: none; color: var(--muted); padding: 4px; cursor: pointer; border-radius: 8px; line-height: 0; } .mz-x:hover { background: var(--soft); color: var(--text); }
.mz-db { padding: 4px 22px 16px; overflow-y: auto; flex: 1; min-height: 0; }
.mz-df { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 14px 22px; border-top: 1px solid var(--line); background: var(--soft); }
.mz-df-b { display: flex; gap: 8px; } .mz-sum { font-size: 13.5px; color: var(--muted); } .mz-sum b { color: var(--text); }
.mz-types { display: grid; grid-template-columns: repeat(var(--n, 5), 1fr); gap: 8px; margin: 6px 0 16px; }
.mz-types button { font: inherit; border: 1.5px solid var(--line); background: var(--card); border-radius: 12px; padding: 10px 6px; font-size: 13px; font-weight: 600; color: var(--muted);
  display: flex; flex-direction: column; align-items: center; gap: 5px; cursor: pointer; }
.mz-types button svg.mi { width: 22px; height: 22px; } .mz-types button:hover { border-color: var(--muted); }
.mz-types button.on { border-color: var(--pri); background: var(--psoft); color: var(--pri); }
.mz-route { display: grid; grid-template-columns: 1fr auto 1fr; gap: 10px; align-items: end; margin-bottom: 16px; }
.mz-route label, .mz-lbl { display: block; font-size: 12.5px; color: var(--muted); font-weight: 600; margin: 0 0 5px; }
.mz-lbl { margin-top: 14px; } .mz-lbl .mz-inp { margin-top: 5px; font-weight: 400; }
.mz-arrow { padding-bottom: 11px; color: var(--muted); }
.mz-inp { width: 100%; border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; font: inherit; font-size: 14.5px; background: var(--card); color: var(--text); margin: 0; }
div.mz-inp { display: flex; align-items: center; gap: 8px; min-height: 44px; }
.mz-inp.ro { background: var(--soft); color: var(--text); }
.mz-note-box { display: flex; gap: 10px; align-items: flex-start; background: var(--warnsoft); border-radius: 10px; padding: 11px 12px; font-size: 14px; margin-bottom: 4px; }
.mz-note-box svg { color: var(--warn); }
.mz-lines { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.mz-ln { display: grid; grid-template-columns: 1fr 100px auto 32px; gap: 10px; align-items: center; padding: 8px 12px; border-bottom: 1px solid var(--line); }
#mzLines .mz-ln:last-child, .mz-lines > .mz-ln:last-child { border-bottom: 0; }
.mz-ln.hd { background: var(--soft); font-size: 11.5px; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .4px; padding: 8px 12px; }
.mz-ln.rv { grid-template-columns: 1fr auto; } .mz-ln .qh { text-align: right; } .mz-ln.hd .qh { text-align: center; } .mz-ln.rv .qh { text-align: right; }
.mz-ln .nm { min-width: 0; } .mz-ln .nm b { font-weight: 600; overflow-wrap: anywhere; }
.mz-ln .av { font-size: 13px; color: var(--muted); text-align: right; white-space: nowrap; }
.mz-warn { font-size: 12px; color: var(--warn); font-weight: 600; margin-top: 2px; } .mz-warn.bad { color: var(--bad); }
.mz-step { display: flex; align-items: stretch; border: 1px solid var(--line); border-radius: 9px; overflow: hidden; background: var(--card); }
.mz-step button { width: 36px; border: 0; background: var(--soft); color: var(--text); font-size: 18px; cursor: pointer; } .mz-step button:active { background: var(--line); }
.mz-step input { width: 62px; border: 0; border-radius: 0; margin: 0; padding: 7px 2px; text-align: right; font-size: 15px; font-weight: 700; background: transparent; outline: none; -moz-appearance: textfield; }
.mz-step input::-webkit-inner-spin-button, .mz-step input::-webkit-outer-spin-button { -webkit-appearance: none; }
.mz-step em { font-style: normal; font-size: 12px; color: var(--muted); align-self: center; padding: 0 6px 0 3px; min-width: 22px; }
.mz-add { position: relative; margin-top: 10px; }
.mz-inp.srch { cursor: text; display: flex; align-items: center; gap: 8px; min-height: 44px; } .mz-inp.srch:focus-within { border-color: var(--pri); box-shadow: 0 0 0 3px var(--psoft); }
.mz-inp.srch svg { color: var(--muted); } .mz-inp.srch input { border: 0; margin: 0; padding: 0; outline: none; background: transparent; font-size: 14.5px; }
.mz-sug { margin-top: 6px; background: var(--card); border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 12px 30px rgba(0, 0, 0, .18); max-height: 290px; overflow-y: auto; }
.mz-sug .opt { padding: 9px 12px; display: flex; justify-content: space-between; gap: 10px; font-size: 14px; cursor: pointer; } .mz-sug .opt small { color: var(--muted); white-space: nowrap; }
.mz-sug .opt.hi, .mz-sug .opt:hover { background: var(--psoft); }
.mz-sug-h { padding: 8px 12px 4px; font-size: 11.5px; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .4px; }
.mz-fields .mz-lbl:first-child { margin-top: 4px; } .mz-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; align-items: end; } .mz-lbl select.mz-inp { height: 44px; padding: 0 10px; }
.mz-chk { display: flex; gap: 8px; align-items: center; margin: 14px 0 0; font-size: 14px; color: var(--text); } .mz-chk input { width: auto; margin: 0; }
/* kartela e artikullit */
.mz-locs { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 8px; margin: 6px 0 12px; }
.mz-loc { border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; } .mz-loc span { font-size: 12.5px; color: var(--muted); } .mz-loc b { display: block; font-size: 17px; }
.mz-loc.neg b { color: var(--bad); }
.mz-acts { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 6px; }
.mz-db .mz-h3 { margin: 16px 0 6px; }
.mz-hi { display: flex; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 14px; align-items: flex-start; }
.mz-hi .d { width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; flex: none; background: var(--psoft); color: var(--pri); }
.mz-hi .d.ok { background: var(--oksoft); color: var(--ok); } .mz-hi .d.bad { background: var(--badsoft); color: var(--bad); } .mz-hi .d.warn { background: var(--warnsoft); color: var(--warn); }
.mz-hi .d svg { width: 16px; height: 16px; } .mz-hi .t { flex: 1; min-width: 0; } .mz-hi .t small { display: block; color: var(--muted); font-size: 12.5px; }
.mz-hi .q { font-weight: 700; white-space: nowrap; }
.mz-more summary { cursor: pointer; color: var(--pri); font-weight: 600; padding: 10px 0; font-size: 14px; }
@media (max-width: 700px) {
  dialog.mz-dlg.sheet { width: 100vw; max-width: 100vw; margin: auto 0 0; border-radius: 18px 18px 0 0; max-height: 88vh; }
  dialog.mz-dlg.mid { width: 100vw; max-width: 100vw; height: 100dvh; max-height: 100dvh; border-radius: 0; }
  dialog.mz-dlg.mid .mz-form { height: 100dvh; max-height: 100dvh; }
  .mz-grab { display: block; width: 42px; height: 5px; border-radius: 9px; background: var(--line); margin: 8px auto 0; }
  .mz-dh, .mz-db, .mz-df { padding-left: 14px; padding-right: 14px; }
  .mz-types { gap: 6px; } .mz-types button { padding: 8px 2px; font-size: 11.5px; line-height: 1.2; } .mz-types button svg.mi { width: 20px; height: 20px; }
  .mz-route { grid-template-columns: 1fr; gap: 8px; } .mz-arrow { display: none; }
  .mz-ln { grid-template-columns: 1fr auto 28px; row-gap: 2px; } .mz-ln .av { grid-column: 1; grid-row: 2; text-align: left; font-size: 12px; }
  .mz-ln .mz-step { grid-column: 2; grid-row: 1 / span 2; } .mz-ln .mz-x { grid-column: 3; grid-row: 1 / span 2; }
  .mz-ln.hd { display: none; } .mz-ln.rv { grid-template-columns: 1fr auto; }
  .mz-step button { width: 38px; } .mz-step input { width: 52px; }
  .mz-2 { grid-template-columns: 1fr; gap: 0; }
  .mz-df { flex-wrap: wrap; } .mz-df-b { flex: 1; justify-content: flex-end; }
}
.mz-crew { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 12px 14px; border-bottom: 1px solid var(--line); background: var(--soft); }
.mz-crew > svg { color: var(--pri); } .mz-crew > b { margin-right: 4px; }
.mz-chip { display: inline-flex; align-items: center; gap: 5px; padding: 4px 10px 4px 8px; border-radius: 99px; background: var(--card); border: 1px solid var(--line); font-size: 13.5px; font-weight: 600; }
.mz-chip svg.mi { width: 15px; height: 15px; color: var(--muted); }
.mz-items td.mz-ord { white-space: nowrap; width: 1%; }
.mz-arr { width: 30px; height: 28px; border: 1px solid var(--line); background: var(--card); color: var(--text); border-radius: 7px; font-size: 11px; cursor: pointer; margin-right: 4px; }
.mz-arr:hover:not(:disabled) { border-color: var(--pri); color: var(--pri); background: var(--psoft); }
.mz-arr:disabled { opacity: .3; cursor: default; }
.mz-t tr.mz-flash td { animation: mzFlash 1.2s ease; }
@keyframes mzFlash { from { background: var(--psoft); } to { background: transparent; } }
.inv-mine { font-size: 12px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .4px; margin: 10px 0 2px; }
.mz-crew-t { display: flex; align-items: center; gap: 8px; margin-right: 6px; } .mz-crew-t > svg { color: var(--pri); }
.mz-crew-t b { display: block; line-height: 1.2; } .mz-crew-t small { display: block; font-size: 12px; color: var(--muted); font-weight: 600; letter-spacing: .3px; }
.mz-crew-ed { margin-left: auto; padding: 6px 12px; font-size: 13px; }
.mz-techs { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 8px; }
.mz-tech { display: flex; align-items: center; gap: 8px; border: 1px solid var(--line); border-radius: 10px; padding: 9px 12px; margin: 0; font-size: 14px; color: var(--text); cursor: pointer; }
.mz-tech input { width: auto; margin: 0; } .mz-tech span { flex: 1; } .mz-tech small { font-size: 12px; color: var(--muted); }
.mz-tech:has(input:checked) { border-color: var(--pri); background: var(--psoft); } .mz-tech.busy { opacity: .55; cursor: default; }
/* 🗂️ Grupet e Magazinës */
.mz-cats { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.mz-cat { display: grid; grid-template-columns: auto 1fr auto auto; gap: 10px; align-items: center; padding: 8px 10px; border-top: 1px solid var(--line); }
.mz-cat:first-child { border-top: 0; }
.mz-cat .mz-inp { margin: 0; padding: 8px 10px; }
.mz-cat .mz-ord { display: flex; gap: 4px; min-width: 64px; }
.mz-cat-n { font-size: 13px; white-space: nowrap; min-width: 52px; text-align: right; }
.mz-cat-del { padding: 6px 8px; }
.mz-cat.last { background: var(--bg); grid-template-columns: auto 1fr auto auto; }
.mz-cat-fix { font-weight: 600; color: var(--muted); padding: 0 10px; }
.mz-cat-add { display: flex; gap: 8px; margin-top: 12px; }
.mz-cat-add .mz-inp { flex: 1; margin: 0; }
@media (max-width: 700px) { .mz-cat { grid-template-columns: auto 1fr auto; } .mz-cat .mz-cat-n { display: none; } .mz-cat.last { grid-template-columns: auto 1fr auto; } }
/* 📷 Foto e vogël e artikullit */
.mz-pic { flex: none; width: 36px; height: 36px; border-radius: 8px; background: var(--soft, #eef1f6); border: 1px solid var(--line); display: inline-flex; align-items: center; justify-content: center; overflow: hidden; color: var(--muted); }
.mz-pic img { width: 100%; height: 100%; object-fit: cover; display: block; }
.mz-pic .mi { width: 18px; height: 18px; opacity: .45; }
.mz-pic.sm { width: 28px; height: 28px; border-radius: 6px; } .mz-pic.sm .mi { width: 14px; height: 14px; }
.mz-pic.lg { width: 64px; height: 64px; border-radius: 12px; } .mz-pic.lg .mi { width: 28px; height: 28px; }
.mz-nmw { display: inline-flex; align-items: center; gap: 10px; min-width: 0; }
.mz-li > .mz-pic { margin-right: 2px; } .mz-li-m { flex: 1; min-width: 0; }
.mz-dh-pic { display: flex; gap: 14px; align-items: center; min-width: 0; } .mz-dh-pic a { display: block; }
.mz-ph { display: flex; align-items: center; gap: 14px; margin-top: 6px; }
.mz-ph.busy { opacity: .5; pointer-events: none; }
.mz-ph-b { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; } .mz-ph-b small { width: 100%; font-weight: normal; }
.mz-ph-b label.mz-btn { cursor: pointer; }
.inv-nm { display: inline-flex; align-items: center; gap: 8px; min-width: 0; }
.inv-pic { width: 30px; height: 30px; border-radius: 6px; object-fit: cover; flex: none; border: 1px solid var(--line); }
/* "Lëvizje e re" me madhësi fikse (pronari 19.10.2026: s'duhet të zmadhohet/zvogëlohet); brenda lëviz vetëm lista */
dialog#mzMoveDlg { height: min(780px, 92vh); }
dialog#mzMoveDlg .mz-form { height: 100%; max-height: none; }
@media (max-width: 700px) { dialog#mzMoveDlg { height: 100dvh; } }
.mz-isearch { flex: 0 1 280px; } @media (max-width: 700px) { .mz-isearch { flex: 1 1 100%; order: 3; } }

/* 🟢/🔴 Klienti online + sinjali i fibrës (21.10.2026) */
.onu { display: inline-flex; align-items: center; gap: 5px; font-weight: 600; font-size: 12.5px; line-height: 1; font-family: inherit; padding: 4px 9px; border-radius: 20px;
  border: 1px solid var(--line); background: var(--card); color: var(--text); vertical-align: 2px; white-space: nowrap; cursor: pointer; }
.onu i { width: 9px; height: 9px; border-radius: 50%; background: #9aa1ad; flex: none; }
.onu.on i { background: var(--green); } .onu.off i { background: var(--red); }
.onu .good, .onu-tbl .good { color: var(--green); } .onu .warn, .onu-tbl .warn { color: var(--amber); } .onu .bad, .onu-tbl .bad { color: var(--red); }
.onu.wait { opacity: .6; }
.onu-tbl { display: grid; gap: 0; }
.onu-tbl div { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; border-bottom: 1px solid var(--line); }
.onu-tbl div:last-child { border: 0; }
#clientOnu { margin-top: 6px; display: grid; gap: 6px; }
.onu-warn { background: #fff6e0; color: #7a4f00; border: 1px solid #f3d48a; border-radius: 10px; padding: 8px 10px; font-size: 14px; }
@media (prefers-color-scheme: dark) { .onu-warn { background: #3a2c0c; color: #f5cf72; border-color: #5e4712; } }
/* 🗺️ Harta e defekteve */
#fmapDays { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 10px; }
.fmap-h { margin: 14px 0 6px; }
.zone-row { display: flex; justify-content: space-between; gap: 10px; padding: 6px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.zone-row:last-child { border: 0; }
.zone-bar { height: 6px; border-radius: 3px; background: var(--red); opacity: .75; margin-top: 3px; }
.fm-dot { display: grid; place-items: center; border-radius: 50%; color: #fff; font: 700 13px/1 system-ui, sans-serif; border: 2px solid #fff; box-shadow: 0 1px 4px #0006; }
#fmapPick:not(:empty) { margin-top: 8px; }
#fmapPick .card { padding: 10px; }
/* 📋 Përmbledhja e ditës */
#sumDay { margin-bottom: 10px; }
.sum-kp { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 10px; }
.sum-kp div { background: var(--bg); border-radius: 12px; padding: 10px 6px; text-align: center; }
.sum-kp b { display: block; font-size: 24px; }
.sum-sec { margin: 12px 0 4px; font-size: 12px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.sig-line .good { color: var(--green); } .sig-line .warn { color: var(--amber); } .sig-line .bad { color: var(--red); }
/* 📶 Rregullim sinjali */
.sig-head { display: grid; gap: 4px; margin-bottom: 8px; }
.sig-sec { margin: 10px 0 6px; font-size: 12px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.sig-ports { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 8px; }
.sig-ports .chip b { margin-left: 4px; }
.sig-ports .chip { white-space: normal; text-align: left; max-width: 100%; overflow-wrap: anywhere; }
.sig-card h4, .sig-card .meta { overflow-wrap: anywhere; min-width: 0; }
.sig-zone { margin: 0 0 10px; max-width: 100%; }
.fault.sig-card { border-left-color: var(--amber); }
.sig-card .good { color: var(--green); } .sig-card .warn { color: var(--amber); } .sig-card .bad { color: var(--red); }
.sig-hidden-btn { margin: 8px 0 16px; }
td.bad { color: var(--red); } td.good { color: var(--green); } td.warn { color: var(--amber); }
.sig-head .good { color: var(--green); } .sig-head .bad { color: var(--red); }
/* 📈 Grafiku i defekteve */
#fchMonths { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 10px; }
/* 🔌 Historiku i OLT-ve */
.out-line b { font-weight: 700; }
.out-head { display: flex; gap: 8px; align-items: center; margin-bottom: 10px; }
.out-head input { margin: 0; flex: 1; }
.out-sum { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 8px; }
.out-card { display: flex; flex-direction: column; gap: 3px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; }
.out-card.down { border-color: #e5484d; background: rgba(229, 72, 77, .07); }
.out-up { font-size: 20px; font-weight: 800; }
.out-up.good { color: var(--green); } .out-up.warn { color: #d97706; } .out-up.bad { color: #e5484d; }
.out-h { margin: 14px 0 6px; }
.out-row { display: grid; grid-template-columns: 1fr auto; gap: 2px 10px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.out-row .small { grid-column: 1; color: var(--muted); }
.out-row .out-dur { grid-column: 2; grid-row: 1 / span 2; align-self: center; font-weight: 700; }
.out-row.down .out-dur { color: #e5484d; }
.fch-svg { width: 100%; height: auto; display: block; margin: 4px 0; }
.fch-grid { stroke: var(--line); stroke-width: 1; }
.fch-ax { fill: var(--muted); font: 20px system-ui, sans-serif; }
.fch-o { fill: var(--primary); } .fch-c { fill: var(--green); }
.fch-hit { fill: transparent; cursor: pointer; } .fch-hit.sel { fill: var(--text); fill-opacity: .07; }
.fch-leg { display: flex; gap: 14px; font-size: 13px; color: var(--muted); }
.fch-k { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 5px; vertical-align: -1px; }
.fch-k.o { background: var(--primary); } .fch-k.c { background: var(--green); }
.fch-pick { min-height: 1.4em; margin: 2px 0 8px; }
#fchBox .good { color: var(--green); } #fchBox .bad { color: var(--red); }
/* 📱 SMS te klientët */
label.check { display: flex; align-items: center; gap: 8px; margin: 8px 0; }
label.check input { width: auto; }
.sms-row { display: flex; gap: 8px; flex-wrap: wrap; align-items: end; }
.sms-row label { flex: 1 1 110px; }
.sms-row input[type=tel] { flex: 1 1 160px; width: auto; }
.sms-status { background: var(--soft, rgba(127,140,170,.08)); border-radius: 10px; padding: 10px 12px; margin-bottom: 8px; line-height: 1.6; }
.sms-line.sent { color: var(--green); } .sms-line.failed { color: var(--red); }

/* 🔌 Portat & ❄️ pushimi (25.10.2026) */
.pause-note { display: flex; align-items: center; gap: 10px; justify-content: space-between; background: #e8f1fd; color: #12407a; border: 1px solid #b7d0f5;
  border-radius: 12px; padding: 8px 10px; margin-bottom: 8px; font-size: 13px; }
.pause-note .btn { flex: none; }
.pt-pause { border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; display: grid; gap: 8px; background: var(--bg); }
.pt-pause.on { background: #e8f1fd; border-color: #b7d0f5; color: #12407a; }
.pt-pause.on .btn.primary { justify-self: start; }
.pt-pause-btns { display: flex; flex-wrap: wrap; gap: 6px; }
.pt-sec { font-weight: 700; margin: 16px 0 6px; }
.pt-row, .pt-sug { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.pt-row.off .pt-main b { color: var(--muted); }
.pt-main { flex: 1; min-width: 0; }
.pt-row .icon-btn { flex: none; font-size: 16px; }
.pt-add { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-top: 10px; }
.pt-add select, .pt-add input { min-width: 0; }
.pt-add .btn { grid-column: span 2; }
.pt-sug .btn { flex: none; }
#portsSugMore { margin-top: 8px; }
.sw { position: relative; width: 42px; height: 24px; flex: none; }
.sw input { opacity: 0; width: 0; height: 0; position: absolute; }
.sw span { position: absolute; inset: 0; border-radius: 12px; background: #c5ccd6; transition: .15s; cursor: pointer; }
.sw span::after { content: ''; position: absolute; width: 18px; height: 18px; left: 3px; top: 3px; border-radius: 50%; background: #fff; transition: .15s; box-shadow: 0 1px 2px #0003; }
.sw input:checked + span { background: var(--green); }
.sw input:checked + span::after { transform: translateX(18px); }
@media (prefers-color-scheme: dark) {
  .pause-note, .pt-pause.on { background: #12263f; color: #b9d3f7; border-color: #29507f; }
  .sw span { background: #4a5563; }
}
.pt-main .good { color: var(--green); }
.pt-olt { margin: 12px 0 2px; font-weight: 700; color: var(--brand); font-size: 14px; }

/* 📵 telefoni i SMS-ve s'përgjigjet (25.10.2026) */
.sms-note { background: #fdecea; color: #a12a1e; border: 1px solid #f3b3ac; border-radius: 12px; padding: 8px 10px; margin-bottom: 8px; font-size: 13px; }
@media (prefers-color-scheme: dark) { .sms-note { background: #3a1714; color: #f7b4ab; border-color: #7a2d25; } }

/* 🎉 Paketa "Argëtim" (25.10.2026) */
.av { display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; border-radius: 50%; flex: none;
  font-size: 17px; line-height: 1; color: #fff; overflow: hidden; vertical-align: middle; border: 0; padding: 0; }
.av img { width: 100%; height: 100%; object-fit: cover; }
.av-ini { font-size: 12px; font-weight: 700; letter-spacing: .02em; }
.av-xs { width: 20px; height: 20px; font-size: 12px; } .av-xs.av-ini { font-size: 9px; }
.av-sm { width: 26px; height: 26px; font-size: 15px; } .av-sm.av-ini { font-size: 10px; }
.av-lg { width: 76px; height: 76px; font-size: 42px; } .av-lg.av-ini { font-size: 26px; }
.msg.has-av { margin-left: 36px; }
.msg-av { position: absolute; left: -36px; top: 0; }
.msg .nick { font-weight: 400; color: var(--muted); }
.msg.stk-msg { background: none; box-shadow: none; padding: 0; }
.msg.stk-msg .time { text-align: right; }
.stk { width: 118px; height: 118px; border-radius: 22px; background: linear-gradient(135deg, #2f6fd6, #d92d20); color: #fff;
  display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 6px;
  font: 800 13px/1.15 'Sora', system-ui, sans-serif; box-shadow: 0 4px 10px rgba(0,0,0,.2); }
.stk-e { font-size: 48px; line-height: 1.15; }
.stk-btn { background: none; border: 0; font-size: 24px; padding: 4px; cursor: pointer; flex: none; }
.stk-panel { position: absolute; left: 6px; right: 6px; bottom: calc(100% + 6px); background: var(--card); border: 1px solid var(--line); border-radius: 16px;
  padding: 10px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; max-height: 46vh; overflow-y: auto; z-index: 30; box-shadow: 0 -6px 20px rgba(0,0,0,.18); }
.stk-panel button { background: none; border: 0; padding: 0; cursor: pointer; }
.stk-panel .stk { width: 100%; height: 76px; border-radius: 14px; font-size: 9.5px; box-shadow: none; }
.stk-panel .stk-e { font-size: 28px; }
.composer { position: relative; }
.ico-emo { font-size: 26px; }
.poll { min-width: 230px; max-width: 280px; }
.poll b { display: block; margin-bottom: 4px; }
.poll-opt { position: relative; display: flex; justify-content: space-between; gap: 8px; width: 100%; text-align: left; border: 1px solid var(--line);
  background: var(--card); color: var(--text); border-radius: 9px; margin-top: 6px; padding: 7px 10px; font-size: 14px; overflow: hidden; cursor: pointer; }
.poll-opt i { position: absolute; inset: 0 auto 0 0; background: color-mix(in srgb, var(--primary) 16%, transparent); transition: width .3s; }
.poll-opt span, .poll-opt em { position: relative; } .poll-opt em { font-style: normal; color: var(--muted); }
.poll-opt.v { border-color: var(--primary); font-weight: 600; }
.poll-who { font-size: 11.5px; color: var(--muted); margin-top: 6px; }
.celebrate { position: fixed; inset: 0; z-index: 2000; background: rgba(15, 26, 51, .82); display: flex; align-items: center; justify-content: center; color: #fff; text-align: center; padding: 24px; }
.celebrate .cf { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.celebrate .cf i { position: absolute; top: -20px; width: 10px; height: 16px; border-radius: 2px; animation: cf-fall linear forwards; }
@keyframes cf-fall { to { top: 105%; transform: rotate(540deg) translateX(30px); } }
.cel-in { position: relative; animation: cel-pop .45s cubic-bezier(.2, 1.4, .4, 1); }
@keyframes cel-pop { from { transform: scale(.4); opacity: 0; } }
.cel-e { font-size: 96px; line-height: 1; filter: drop-shadow(0 6px 12px rgba(0,0,0,.4)); }
.celebrate h2 { font: 800 30px 'Sora', system-ui, sans-serif; margin: 14px 0 6px; }
.celebrate p { font-size: 18px; margin: 0; }
.cel-card { background: linear-gradient(135deg, #fff7e0, #ffe9ef); color: #172033; border-radius: 20px; padding: 20px 22px; max-width: 340px; box-shadow: 0 20px 50px rgba(0,0,0,.35); }
.cel-card .cel-e { font-size: 64px; }
.cel-card h3 { font: 800 20px 'Sora', system-ui, sans-serif; margin: 8px 0 6px; }
.cel-card p { font-size: 16px; margin: 0 0 6px; }
.cel-card .btn { margin-top: 14px; }
.thx-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0; }
#thxText { width: 100%; }
.thx-item { padding: 8px 0; border-bottom: 1px solid var(--line); }
.thx-line { color: #b7791f; }
.prof-top { display: flex; gap: 14px; align-items: center; margin-bottom: 10px; }
.prof-top label.btn { cursor: pointer; }
.prof-grid { display: grid; grid-template-columns: repeat(8, 1fr); gap: 6px; }
.prof-grid .av { width: 100%; aspect-ratio: 1; height: auto; font-size: 20px; cursor: pointer; opacity: .85; }
.prof-grid .av.sel { outline: 3px solid var(--text); outline-offset: 1px; opacity: 1; }
.prof-colors { display: flex; gap: 8px; margin: 10px 0; }
.prof-colors button { width: 26px; height: 26px; border-radius: 50%; border: 0; cursor: pointer; }
.prof-colors button.sel { outline: 3px solid var(--text); outline-offset: 2px; }
#profDlg label input { width: 100%; }
#pollDlg label input, .poll-o { width: 100%; margin-top: 6px; }
.pw-btn { background: var(--card); border: 1px solid var(--line); border-radius: 10px; font-size: 20px; padding: 0 10px; cursor: pointer; flex: none; }
.pw-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; margin-top: 10px; }
.pw-item { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: var(--card); }
.pw-img { width: 100%; aspect-ratio: 1; object-fit: cover; display: block; cursor: zoom-in; background: var(--bg); }
.pw-f { display: flex; justify-content: space-between; align-items: center; gap: 6px; padding: 6px 8px; font-size: 12.5px; }
.pw-h { border: 0; background: none; font-size: 15px; cursor: pointer; color: var(--text); padding: 2px 4px; }
.pw-h b { font-size: 13px; } .pw-h.on b { color: var(--red); } .pw-h:disabled { opacity: .45; cursor: default; }
.msg.photo-week { background: linear-gradient(135deg, #fff7e0, #ffe9ef); color: #172033; font-weight: 600; padding: 8px 12px; }
#pollAdd { margin-top: 8px; }
/* 📞 Anketa e klientëve (25.10.2026) */
.sv-head { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 10px; }
.sv-tabs { display: flex; gap: 6px; flex-wrap: wrap; }
.sv-card { border: 1px solid var(--line); border-radius: 14px; padding: 12px; margin: 10px 0; background: var(--card); }
.sv-card.open { border-color: var(--primary); box-shadow: 0 0 0 2px color-mix(in srgb, var(--primary) 20%, transparent); }
.sv-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 4px; }
.sv-team { background: color-mix(in srgb, var(--primary) 14%, transparent); color: var(--primary); font-weight: 700; font-size: 12px; padding: 2px 8px; border-radius: 99px; }
.sv-act { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.sv-act a.btn { text-decoration: none; }
.sv-hello { background: var(--bg); border-radius: 10px; padding: 8px 10px; font-size: 13.5px; font-style: italic; margin: 12px 0 4px; }
.sv-q { padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 14.5px; }
.sv-q > div:first-child { margin-bottom: 6px; }
.sv-q textarea { width: 100%; }
.sv-stars button { font-size: 30px; line-height: 1; background: none; border: 0; color: var(--line); cursor: pointer; padding: 0 3px; }
.sv-stars button.on { color: #f5b301; }
.sv-yn { display: flex; gap: 8px; }
.sv-yn button { min-width: 74px; padding: 8px 14px; border-radius: 10px; border: 1px solid var(--line); background: var(--card); color: var(--text); font-size: 15px; cursor: pointer; }
.sv-yn button.on.g { background: var(--green); border-color: var(--green); color: #fff; }
.sv-yn button.on.r { background: var(--red); border-color: var(--red); color: #fff; }
.sv-nps { display: grid; grid-template-columns: repeat(11, 1fr); gap: 3px; }
.sv-nps button { padding: 8px 0; border-radius: 8px; border: 1px solid var(--line); background: var(--card); color: var(--text); font-size: 13px; cursor: pointer; }
.sv-nps button.on { background: var(--primary); border-color: var(--primary); color: #fff; }
.sv-res { border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; margin: 8px 0; }
.sv-res-h { display: flex; justify-content: space-between; align-items: baseline; }
.sv-score { font: 800 24px 'Sora', system-ui, sans-serif; } .sv-score small { font-size: 12px; color: var(--muted); font-weight: 600; }
.sv-score.sm { font-size: 15px; min-width: 30px; display: inline-block; text-align: center; }
.sv-score.good { color: var(--green); } .sv-score.warn { color: #d08a00; } .sv-score.bad { color: var(--red); }
.sv-bar { height: 8px; border-radius: 99px; background: var(--bg); overflow: hidden; margin: 6px 0; }
.sv-bar i { display: block; height: 100%; border-radius: 99px; background: var(--green); }
.sv-bar i.warn { background: #e0a100; } .sv-bar i.bad { background: var(--red); }
.sv-tech { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 7px 0; border-bottom: 1px solid var(--line); }
.sv-comp { border-left: 4px solid #e0a100; padding: 6px 10px; margin: 8px 0; background: var(--bg); border-radius: 0 10px 10px 0; font-size: 14px; }
.sv-comp.money { border-left-color: var(--red); }
.sv-done { border-bottom: 1px solid var(--line); padding: 6px 0; } .sv-done summary { cursor: pointer; }
.sv-done .btn { margin-top: 6px; }
/* 🚨 porta e sinjalit → defekt linje (26.10.2026) */
.sig-line { display: flex; flex-direction: column; gap: 8px; border-left: 4px solid var(--red); }
.sig-line .btn { align-self: flex-start; }
.sig-vill { font-weight: 700; }
.chip.active .sig-vill { color: inherit; }

/* Faqja kur ju s'keni defekte, por kolegët po (26.10.2026) */
.brand-empty { text-align: center; padding: 28px 16px 22px; margin: 6px 0 14px; border-radius: 18px;
  background: linear-gradient(180deg, #eaf1fb 0%, var(--card, #fff) 75%); border: 1px solid var(--line); }
.be-logo { width: min(62%, 240px); height: auto; display: block; margin: 0 auto 14px; }
.be-hi { font-family: Sora, system-ui, sans-serif; font-weight: 700; font-size: 1.3rem; color: var(--text); }
.be-day { color: var(--muted); font-size: .92rem; margin-top: 2px; }
.be-msg { margin: 18px auto 0; font-size: 1.05rem; font-weight: 600; color: var(--text); line-height: 1.5; }
.be-msg span { font-weight: 400; color: var(--muted); }
.be-sig { margin-top: 18px; }
.be-note { margin-top: 16px; font-size: .82rem; color: var(--muted); }
@media (prefers-color-scheme: dark) { .brand-empty { background: linear-gradient(180deg, #1b2840 0%, var(--card) 75%); } }
@media (prefers-color-scheme: dark) { .be-logo { background: #fff; border-radius: 14px; padding: 10px 14px; box-sizing: border-box; } }

/* 🏅 Medaljet e stafit */
.md-tabs { margin-bottom: 10px; }
.md-card { border: 1px solid var(--line); border-radius: 14px; padding: 12px; margin: 10px 0; background: var(--card); }
.md-name { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.md-av { width: 32px; height: 32px; }
.md-cnt { margin-left: auto; font-weight: 700; color: var(--muted); font-size: .9rem; }
.md-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 6px; }
.md-m { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 2px; padding: 6px 4px; border-radius: 10px;
  border: 1px solid var(--line); filter: grayscale(1); opacity: .55; font-size: .8rem; }
.md-m.won { filter: none; opacity: 1; background: #fff7e6; border-color: #f5c46b; }
.md-ic { font-size: 1.4rem; } .md-ic.big { font-size: 2rem; }
.md-mn { font-weight: 600; } .md-at { font-size: .72rem; color: var(--muted); }
.md-m .medal-bar { width: 80%; }
.md-row { padding: 3px 0; }
@media (prefers-color-scheme: dark) { .md-m.won { background: #3a2e14; border-color: #8a6a26; } }
.fault .meta.reopened { color: #b45309; }
@media (prefers-color-scheme: dark) { .fault .meta.reopened { color: #fbbf24; } }

/* 🗺️ Harta e klientëve dhe e rrjetit (28.10.2026) */
/* harta në gjithë ekranin, si My Maps (pronari 11.11.2026) */
dialog.cm-dlg { width: 100vw; max-width: 100vw; max-height: 100dvh; height: 100dvh; border-radius: 0; margin: 0; padding: 0; }
.cm-wrap { display: flex; flex-direction: column; gap: 8px; padding: 10px 12px 14px; padding-top: max(10px, env(safe-area-inset-top)); height: 100%; overflow-y: auto; }
.cm-head { display: flex; gap: 8px; align-items: center; }
.cm-head .cm-title { white-space: nowrap; font-size: 17px; }
.cm-head input { margin: 0; flex: 1; min-width: 0; }
.cm-res { background: var(--card); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.cm-ri { display: block; width: 100%; text-align: left; font: inherit; color: var(--text); background: none; border: 0; border-bottom: 1px solid var(--line); padding: 9px 12px; cursor: pointer; }
.cm-ri:last-child { border-bottom: 0; } .cm-ri:hover { background: var(--bg); }
.cm-layers { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; flex-shrink: 0; }
.cm-layers .chip { white-space: nowrap; font-size: 13px; padding: 5px 10px; }
.cm-layers .chip.active .muted { color: #ffffffcc; }
.cm-mapbox { position: relative; flex: 1 0 auto; min-height: max(58dvh, calc(100dvh - 150px)); border-radius: 12px; overflow: hidden; border: 1px solid var(--line); }
#cmap { position: absolute; inset: 0; background: var(--bg); }
/* pronari 13.11.2026: dora si te My Maps, jo "+" */
.cm-float { position: absolute; right: 10px; top: 10px; z-index: 500; display: flex; flex-direction: column; gap: 8px; }
.cm-fbtn { width: 42px; height: 42px; border-radius: 50%; border: 0; background: #fff; box-shadow: 0 2px 8px #0004; font-size: 20px; cursor: pointer; }
.cm-hint { position: absolute; left: 50%; transform: translateX(-50%); bottom: 14px; z-index: 500; background: #172033ee; color: #fff; border-radius: 22px;
  padding: 6px 8px 6px 14px; font-size: 14px; display: flex; align-items: center; gap: 8px; max-width: 92%; }
.cm-hint .btn { padding: 4px 10px; font-size: 13px; }
.cm-pick:empty { display: none; }
.cm-card { background: var(--card); border: 1px solid var(--line); border-left: 5px solid var(--primary); border-radius: 12px; padding: 10px 12px; display: flex; flex-direction: column; gap: 4px; }
.cm-card .warn { color: var(--amber); }
.cm-ttl { font-size: 16px; }
.cm-acts { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; align-items: center; }
.cm-acts select { width: auto; margin: 0; padding: 8px; }
.cm-tools { display: flex; flex-wrap: wrap; gap: 8px; }
.cm-tools:not(:has(.btn:not(.hidden))) { display: none; }
.cm-fault { background: #d92d20; color: #fff; font: 700 13px/1 system-ui, sans-serif; padding: 6px 8px; border-radius: 14px; border: 2px solid #fff;
  box-shadow: 0 2px 6px #0006; text-align: center; position: relative; animation: cmPulse 1.6s infinite; }
.cm-fault::after { content: ''; position: absolute; left: 50%; bottom: -7px; margin-left: -5px; border: 5px solid transparent; border-top-color: #d92d20; }
.cm-fault.work { background: #c27803; animation: none; } .cm-fault.work::after { border-top-color: #c27803; }
.cm-fault.ml { background: #7a0e0e; }
@keyframes cmPulse { 0%, 100% { box-shadow: 0 0 0 0 #d92d2099; } 50% { box-shadow: 0 0 0 8px #d92d2000; } }
.cm-rtabs { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 6px; }
.cm-rlist { display: flex; flex-direction: column; gap: 6px; margin: 8px 0; }
.cm-row { display: flex; gap: 8px; align-items: flex-start; justify-content: space-between; background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; }
.cm-row > div { flex: 1; min-width: 0; }
.cm-sug { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 5px; }
.cm-sug .chip { font-size: 12.5px; padding: 4px 9px; }
.cm-rbox:empty { display: none; } .cm-rbox, #cmLinkBox { margin-top: 6px; }
.cm-csr { margin-top: 4px; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.cm-csr:empty { display: none; }
.cm-wrap > * { flex-shrink: 0; }
.cm-res { max-height: 40dvh; overflow-y: auto; }
.cm-pick { position: absolute; left: 8px; right: 8px; bottom: 8px; z-index: 600; max-height: 62%; overflow-y: auto; border-radius: 12px; box-shadow: 0 4px 18px #0005; }
.cm-pick .cm-card { position: relative; padding-right: 38px; }
.cm-x { position: absolute; right: 6px; top: 6px; width: 30px; height: 30px; border-radius: 50%; border: 0; background: var(--bg); color: var(--text); font-size: 15px; cursor: pointer; }
.cm-acts a.btn { text-decoration: none; }
.cm-acts .btn, .cm-tools .btn { padding: 7px 11px; font-size: 14px; }
.cm-hint { bottom: auto; top: 10px; }
.cm-me { width: 18px; height: 18px; box-sizing: border-box; border-radius: 50%; background: #4285F4; border: 2.5px solid #fff; box-shadow: 0 1px 4px #0006; } /* pika blu e Google (13.11.2026) */

.leaflet-tooltip.cm-tip { font: 600 12.5px/1.2 system-ui, sans-serif; padding: 3px 7px; border-radius: 8px; }
.leaflet-tooltip.cm-lbl { font-size: 11px; padding: 1px 5px; opacity: 0.92 !important; box-shadow: 0 1px 3px #0004; }
/* ✕ sipër në dritaret e gjata, mbetet në vend kur rrëshqet faqja (pronari 28.10.2026) */
.dlg-topx { position: sticky; top: 6px; float: right; z-index: 5; margin: -6px -6px 4px 10px; width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line); background: var(--card); color: var(--text); font-size: 17px; cursor: pointer; box-shadow: 0 2px 8px #0002; }

/* ♟️ Lojërat strategjike + ⚔️ sfidat me kolegët (28.10.2026) */
.game-mp { width: 100%; margin-bottom: 10px; background: linear-gradient(135deg, #1d4ed8, #7c3aed); color: #fff; border: 0; }
.game-mp .muted { color: #e0e7ff !important; }
.lvl-pick { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; align-items: center; }
.bg-info { display: flex; justify-content: space-between; gap: 8px; align-items: center; width: min(100%, 400px); margin: 4px auto 6px; font-size: 14px; }
.bg-info .ok { color: #15803d; }
.bgrid { display: grid; width: min(100%, 400px); margin: 0 auto; border-radius: 10px; overflow: hidden; box-shadow: 0 2px 10px #0003; user-select: none; -webkit-user-select: none; }
.bc { position: relative; aspect-ratio: 1; display: flex; align-items: center; justify-content: center; cursor: pointer; }
.bc.lt { background: #f0d9b5; } .bc.dk { background: #b58863; }
.bc.ltd { background: #f5e6c8; } .bc.dkd { background: #6b8e4e; }
.bc.rv { background: #15803d; outline: 1px solid #0b5e2b; }
.bg-kater { background: #1d4ed8; padding: 4px; gap: 3px; } .bc.c4 { background: transparent; }
.bc.lastm::after { content: ''; position: absolute; inset: 0; background: #facc1555; pointer-events: none; }
.bc.sel { box-shadow: inset 0 0 0 3px #2563eb; } .bc.chk { background: radial-gradient(#ef4444, #b91c1c 70%) !important; }
.pc { font-size: min(9vw, 38px); line-height: 1; pointer-events: none; font-family: 'Segoe UI Symbol', 'DejaVu Sans', 'Noto Sans Symbols 2', sans-serif; }
.pc.w { color: #fff; text-shadow: 0 0 2px #000, 0 0 1px #000, 0 1px 2px #000a; } .pc.b { color: #111; text-shadow: 0 0 1px #fff8; }
.tg { position: absolute; width: 28%; height: 28%; border-radius: 50%; background: #1d4ed866; pointer-events: none; }
.tgc { position: absolute; inset: 4%; border-radius: 50%; border: 4px solid #1d4ed877; pointer-events: none; }
.disc { width: 78%; height: 78%; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: min(4.5vw, 18px); pointer-events: none; box-shadow: inset 0 -3px 0 #0003, 0 1px 3px #0005; }
.disc.dw { background: radial-gradient(circle at 35% 35%, #fff, #d6d3d1); } .disc.db { background: radial-gradient(circle at 35% 35%, #57534e, #0c0a09); }
.disc.dr { background: radial-gradient(circle at 35% 35%, #f87171, #b91c1c); width: 88%; height: 88%; } .disc.dy { background: radial-gradient(circle at 35% 35%, #fde047, #ca8a04); width: 88%; height: 88%; }
.disc.de { background: var(--bg, #f1f5f9); width: 88%; height: 88%; box-shadow: inset 0 2px 4px #0004; }
.sd-grid { display: grid; grid-template-columns: repeat(9, 1fr); width: min(100%, 380px); border: 2px solid var(--text, #0f172a); border-radius: 6px; overflow: hidden; }
.sd { aspect-ratio: 1; display: flex; align-items: center; justify-content: center; font-size: min(5.5vw, 22px); border-right: 1px solid #cbd5e1; border-bottom: 1px solid #cbd5e1; color: #2563eb; cursor: pointer; background: var(--card, #fff); }
.sd.giv { color: var(--text, #0f172a); font-weight: 700; } .sd.br { border-right: 2px solid var(--text, #0f172a); } .sd.bb { border-bottom: 2px solid var(--text, #0f172a); }
.sd.hl { background: #e0e7ff55; } .sd.same { background: #bfdbfe; } .sd.sel { background: #93c5fd; } .sd.bad { color: #dc2626; background: #fee2e2; }
.sd-pad { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; width: min(100%, 380px); margin-top: 8px; }
.sd-pad .btn { font-size: 20px; padding: 8px 0; position: relative; } .sd-pad small { position: absolute; right: 5px; top: 2px; font-size: 10px; color: var(--muted); }
.mn-grid { display: grid; width: min(100%, 400px); gap: 2px; user-select: none; -webkit-user-select: none; touch-action: manipulation; }
.mn { aspect-ratio: 1; border-radius: 4px; background: #94a3b8; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: min(4.2vw, 17px); cursor: pointer; -webkit-touch-callout: none; }
.mn.op { background: var(--card, #fff); box-shadow: inset 0 0 0 1px #e2e8f0; } .mn.boom { background: #fecaca; }
.mn.n1 { color: #2563eb; } .mn.n2 { color: #16a34a; } .mn.n3 { color: #dc2626; } .mn.n4 { color: #7c3aed; } .mn.n5, .mn.n6, .mn.n7, .mn.n8 { color: #b45309; }
.mp-sec { font-weight: 700; margin: 12px 0 6px; }
.mp-games { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 6px; }
.mp-slots { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 6px; margin-bottom: 8px; }
.mp-slot { display: flex; flex-direction: column; gap: 2px; padding: 8px; border-radius: 10px; border: 2px dashed var(--line, #cbd5e1); background: var(--card, #fff); color: inherit; font: inherit; text-align: left; }
.mp-slot.full { border-style: solid; border-color: #2563eb; }
.mp-people { display: flex; flex-wrap: wrap; gap: 6px; }
.mp-p { display: flex; align-items: center; gap: 6px; padding: 8px 12px; border-radius: 20px; border: 1px solid var(--line, #cbd5e1); background: var(--card, #fff); color: inherit; font: inherit; }
.mp-p.on { background: #2563eb; color: #fff; border-color: #2563eb; } .mp-p:disabled { opacity: .5; }
.mp-dot { width: 8px; height: 8px; border-radius: 50%; background: #22c55e; }
.mp-send { width: 100%; margin: 12px 0 6px; padding: 12px; font-size: 16px; }
.mp-warn { color: #b45309; font-weight: 600; }
.mp-ov { position: fixed; inset: 0; z-index: 150; background: var(--bg, #f8fafc); overflow-y: auto; padding: calc(10px + env(safe-area-inset-top)) 12px calc(20px + env(safe-area-inset-bottom)); }
.mp-ov > * { max-width: 560px; margin-left: auto; margin-right: auto; }
.mp-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 8px; } .mp-vs { flex: 1; font-size: 14px; }
.mp-board { margin-top: 4px; }
.mp-invite { position: fixed; left: 12px; right: 12px; bottom: calc(76px + env(safe-area-inset-bottom)); z-index: 160; max-width: 460px; margin: 0 auto; padding: 14px; border-radius: 16px;
  background: var(--card, #fff); box-shadow: 0 10px 40px #0005; border: 2px solid #7c3aed; animation: mpin .3s ease-out; }
@keyframes mpin { from { transform: translateY(40px); opacity: 0; } }
.fs-score { display: flex; justify-content: space-between; align-items: center; gap: 6px; padding: 8px 10px; border-radius: 12px; background: var(--card, #fff); font-size: 14px; }
.fs-board { position: relative; display: grid; grid-template-columns: 70px 1fr 70px; grid-template-rows: auto 1fr; gap: 6px; margin: 10px 0; min-height: 210px;
  background: radial-gradient(#15803d, #14532d); border-radius: 18px; padding: 10px; color: #fff; }
.fs-board .muted { color: #bbf7d0 !important; }
.fs-seat { display: flex; flex-direction: column; align-items: center; font-size: 13px; padding: 4px; border-radius: 10px; }
.fs-seat.turn { background: #facc1555; outline: 2px solid #facc15; }
.fs-top { grid-column: 1 / -1; } .fs-left { grid-column: 1; grid-row: 2; } .fs-right { grid-column: 3; grid-row: 2; }
.fs-table { grid-column: 2; grid-row: 2; display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; align-content: center; }
.fs-board:not(:has(.fs-left)) .fs-table { grid-column: 1 / -1; }
.pcard { position: relative; width: 46px; height: 66px; border-radius: 7px; background: #fff; color: #111; box-shadow: 0 2px 5px #0006; display: inline-flex; flex-direction: column;
  align-items: center; justify-content: center; font-family: system-ui, sans-serif; line-height: 1; }
.pcard b { font-size: 20px; } .pcard i { font-style: normal; font-size: 20px; } .pcard small { position: absolute; right: 4px; top: 3px; font-size: 10px; color: #64748b; }
.pcard.red { color: #dc2626; }
.fs-last { text-align: center; font-size: 14px; margin: 4px 0; } .fs-hand { text-align: center; margin-bottom: 6px; }
.fs-choice { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; align-items: center; padding: 8px; border-radius: 12px; background: #fef9c3; color: #111; margin-bottom: 6px; }
.fs-me { padding: 10px; border-radius: 14px; background: var(--card, #fff); text-align: center; } .fs-me.turn { outline: 3px solid #22c55e; }
.fs-hand-cards { display: flex; gap: 10px; justify-content: center; margin-top: 8px; }
.fs-hand-cards .pcard { width: 62px; height: 88px; cursor: pointer; } .fs-hand-cards .pcard b, .fs-hand-cards .pcard i { font-size: 26px; }
.fs-me.turn .pcard:active { transform: translateY(-6px); }
.kq-time { text-align: center; font-size: 18px; margin: 10px 0 4px; } .kq-opts { margin: 0 auto; }
.kq-who { display: inline-block; margin-left: 6px; padding: 1px 6px; border-radius: 8px; background: #0002; font-size: 12px; }
.mp-res { margin-top: 12px; }
.bc.c4.lastm::after { inset: 5%; background: none; border-radius: 50%; box-shadow: 0 0 0 3px #facc15; }
#gBoard, #gSd, #gMn { width: 100%; display: flex; flex-direction: column; align-items: center; }
/* 🎙️ zëri gjatë lojës */
.mp-voice { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: -2px 0 8px; }
.mp-vp { font-size: 13px; padding: 3px 8px; border-radius: 12px; background: var(--card, #fff); border: 1px solid var(--line, #e2e8f0); }
.mp-dot.off { background: #cbd5e1; }
/* 📞 Thirrjet + 🧠 AI (29.10.2026) */
dialog.tel-dlg { width: min(96vw, 720px); }
.tel-ai { border: 1px solid var(--line); border-radius: 12px; padding: 8px 12px; margin-bottom: 8px; font-size: 14px; background: var(--bg); }
.tel-ai.on { border-color: #b9e4c9; } .tel-ai.off { border-color: #f3d48a; }
.tel-up { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 10px 0; }
.tel-up #telPhone { flex: 1 1 200px; margin: 0; } .tel-up .btn { flex: none; }
.tel-up #telMesimNote { flex-basis: 100%; }
.tel-card { border: 1px solid var(--line); border-radius: 14px; padding: 10px 12px; margin: 10px 0; display: grid; gap: 8px; background: var(--card); }
.tel-h { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: baseline; }
.tel-st { font-size: 13px; font-weight: 600; } .tel-st.amber { color: var(--amber); } .tel-st.green { color: var(--green); } .tel-st.red { color: var(--red); }
.tel-card audio { width: 100%; height: 36px; }
.tel-sum { border-left: 3px solid var(--primary); padding: 4px 0 4px 10px; display: grid; gap: 4px; }
.tel-sum.fixed { border-left-color: var(--green); }
.tel-kv { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 14px; }
.tel-yes { color: var(--red); }
.tel-warn { color: var(--amber); }
.tel-tx summary { cursor: pointer; font-size: 14px; color: var(--muted); }
.tel-tx div { white-space: pre-wrap; font-size: 14px; padding: 6px 0; }
.tel-btns { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.tel-btns .icon-btn { font-size: 16px; margin-left: auto; }
.tel-edit label { margin: 4px 0; }
.tel-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.tel-sec { font-weight: 700; margin: 12px 0 4px; }
.tel-add { display: grid; gap: 6px; margin-top: 10px; }
#telFjalor { display: grid; gap: 6px; } #telFjalor .btn { justify-self: start; }
/* ↩️ vetëm të rikthyerat te renditja (29.10.2026) */
.rep-link { cursor: pointer; text-decoration: underline; }
.rank .rep-note { display: none; margin: 8px 0; }
.rank.only-rep .rep-note { display: block; }
.rank.only-rep tr.norep { display: none; }
.rank tr.rep-new td { color: var(--red); font-size: 13px; border-top: 0; white-space: normal; min-width: 0; }
.rank .rep-txt { position: sticky; left: 0; max-width: calc(100vw - 90px); }
/* 🎙️ Zëri ynë */
#telZeri { display: grid; gap: 10px; margin: 10px 0; }
#telZeri input#zSpeaker { margin-top: 4px; }
.zeri-bar { height: 8px; border-radius: 6px; background: var(--line); overflow: hidden; margin-top: 4px; }
.zeri-bar span { display: block; height: 100%; background: var(--green); }
.zeri-card { border: 1px solid var(--line); border-radius: 14px; padding: 14px; background: var(--card); display: grid; gap: 10px; }
.zeri-prompt { font-size: 22px; line-height: 1.35; font-weight: 600; }
.zeri-card audio, .zeri-row audio { width: 100%; }
.zeri-noise { background: #fff4e5; color: #8a4b00; border: 1px solid #f5c27a; border-radius: 10px; padding: 8px 10px; font-size: 14px; }
.zeri-rec { font-size: 18px; padding: 12px 22px; }
.zeri-rec.on { background: var(--red); border-color: var(--red); animation: zeriPulse 1.2s infinite; }
@keyframes zeriPulse { 50% { opacity: .75; } }
.zeri-row { display: grid; grid-template-columns: 1fr auto; gap: 4px 8px; align-items: center; padding: 6px 0; border-bottom: 1px solid var(--line); }
.zeri-row audio { grid-column: 1 / -1; height: 36px; }
/* Mbyllur: ditë pas dite (30.10.2026) */
.day-head { position: sticky; top: 0; z-index: 2; margin: 14px 0 8px; padding: 6px 12px; border-radius: 10px; font-weight: 600; font-size: 14px; background: var(--card); border: 1px solid var(--line); }
.closed-more { text-align: center; color: var(--muted, #888); font-size: 13px; padding: 18px 0 30px; }
/* 💰 Shpenzimet (30.10.2026) */
dialog.exp-dlg { width: min(96vw, 680px); max-height: 94vh; overflow-y: auto; }
.exp-top { display: flex; justify-content: space-between; align-items: center; }
.exp-nav { display: flex; align-items: center; justify-content: center; gap: 14px; margin: 4px 0 8px; font-size: 17px; }
.exp-nav b { min-width: 140px; text-align: center; }
.exp-tabs { justify-content: center; margin-bottom: 10px; }
.exp-total { background: linear-gradient(135deg, #1d4ed8, #0f766e); color: #fff; border-radius: 14px; padding: 12px 14px; margin-bottom: 10px; }
.exp-total div { display: flex; flex-direction: column; gap: 2px; }
.exp-total b { font-size: 26px; }
.exp-total .muted, .exp-total .link-btn { color: #e0f2fe; }
.exp-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 10px; }
.exp-hint { background: #fef3c7; color: #78350f; border-radius: 10px; padding: 10px 12px; margin-bottom: 10px; font-size: 14px; }
.exp-cat { border: 1px solid var(--line); border-radius: 12px; margin-bottom: 8px; overflow: hidden; }
.exp-cat-h { width: 100%; display: flex; gap: 8px; align-items: center; padding: 10px 12px; background: var(--bg); border: 0; color: var(--text); font-size: 15px; cursor: pointer; }
.exp-cat-h span:first-child { flex: 1; text-align: left; font-weight: 600; }
.exp-row { padding: 8px 12px; border-top: 1px solid var(--line); }
.exp-row.stop { opacity: .65; }
.exp-name { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-bottom: 4px; }
.exp-name .link-btn { font-weight: 600; font-size: 15px; }
.exp-in { display: flex; gap: 6px; align-items: center; }
.exp-in input { flex: 1; min-width: 0; padding: 8px 10px; border-radius: 10px; border: 1px solid var(--line); background: var(--card); color: var(--text); font-size: 16px; text-align: right; }
.exp-in .btn.small { padding: 6px 9px; }
.exp-in .btn.on { background: #dbeafe; border-color: #93c5fd; }
.exp-cur { min-width: 38px; font-weight: 700; }
.exp-com { margin-top: 5px; font-size: 13px; color: var(--muted); background: var(--bg); border-radius: 8px; padding: 6px 8px; white-space: pre-wrap; }
.exp-tag { font-size: 12px; padding: 1px 7px; border-radius: 999px; background: var(--bg); border: 1px solid var(--line); }
.exp-tag.bad { color: #b91c1c; border-color: #fecaca; }
.link-btn { background: none; border: 0; padding: 0; color: inherit; cursor: pointer; text-decoration: underline dotted; font: inherit; }
.exp-bars { display: flex; gap: 4px; align-items: flex-end; height: 140px; margin: 6px 0 12px; }
.exp-bar { flex: 1; height: 100%; position: relative; display: flex; align-items: flex-end; justify-content: center; background: none; border: 0; padding: 0 0 16px; cursor: pointer; }
.exp-bar span { position: absolute; bottom: 16px; width: 70%; border-radius: 4px 4px 0 0; }
.exp-b2 { background: var(--line); left: 5%; }
.exp-b1 { background: #2563eb; right: 5%; width: 55% !important; }
.exp-bar small { position: absolute; bottom: 0; font-size: 10px; color: var(--muted); }
.exp-mrow { display: flex; justify-content: space-between; gap: 8px; width: 100%; padding: 7px 4px; border: 0; border-bottom: 1px solid var(--line); background: none; color: var(--text); font-size: 14px; text-align: left; }
button.exp-mrow { cursor: pointer; }
.exp-items { margin: 10px 0; } .exp-items summary { cursor: pointer; font-weight: 600; padding: 6px 0; }
.exp-years { display: flex; flex-wrap: wrap; gap: 6px; margin: 12px 0; }
.exp-chk { display: flex; gap: 8px; align-items: center; }
.exp-dlg .good { color: #15803d; } .exp-dlg .bad { color: #b91c1c; }
.exp-hidden { margin: 10px 0; } .exp-hidden summary { cursor: pointer; font-weight: 600; padding: 6px 0; color: var(--muted); } .exp-hidden .exp-mrow { align-items: center; }
.exp-split { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; background: var(--bg); border-radius: 12px; padding: 10px; margin-bottom: 8px; } .exp-split > div:not(.exp-plus) { display: flex; flex-direction: column; flex: 1; min-width: 90px; } .exp-plus { font-weight: 700; color: var(--muted); }
/* 💰 ngjyrat (30.10.2026): rroga jeshile, shtesa portokalli, totali blu; rreshti: jeshil = paguar, gri = pa shënuar, kuq = iku */
.exp-pills { display: flex; flex-wrap: wrap; gap: 6px; margin: 2px 0 6px; }
.exp-pill { font-size: 13px; font-weight: 600; padding: 2px 9px; border-radius: 999px; }
.exp-pill.base { background: #dcfce7; color: #166534; }
.exp-pill.extra { background: #ffedd5; color: #9a3412; }
.exp-pill.tot { background: #dbeafe; color: #1e40af; }
.exp-pill.wait { background: #f1f5f9; color: #64748b; font-weight: 500; }
.exp-row { border-left: 5px solid transparent; }
.exp-row.paid { border-left-color: #22c55e; }
.exp-row.unpaid { border-left-color: #cbd5e1; background: rgba(148, 163, 184, .07); }
.exp-row.stop { border-left-color: #ef4444; }
.exp-com { background: #fefce8; color: #713f12; border: 1px solid #fde68a; }
.exp-cat.c-rroga .exp-cat-h { border-left: 6px solid #16a34a; }
.exp-cat.c-kanale .exp-cat-h { border-left: 6px solid #7c3aed; }
.exp-cat.c-internet .exp-cat-h { border-left: 6px solid #2563eb; }
.exp-cat.c-taksa .exp-cat-h { border-left: 6px solid #475569; }
.exp-cat.c-nafte .exp-cat-h { border-left: 6px solid #ea580c; }
.exp-cat.c-makina .exp-cat-h { border-left: 6px solid #0891b2; }
.exp-cat.c-materiale .exp-cat-h { border-left: 6px solid #a16207; }
.exp-cat.c-tjeter .exp-cat-h { border-left: 6px solid #db2777; }
@media (prefers-color-scheme: dark) {
  .exp-pill.base { background: #14532d; color: #bbf7d0; } .exp-pill.extra { background: #7c2d12; color: #fed7aa; } .exp-pill.tot { background: #1e3a8a; color: #bfdbfe; }
  .exp-pill.wait { background: #1e293b; color: #94a3b8; } .exp-com { background: #422006; color: #fde68a; border-color: #713f12; }
}
/* 💰 pamja profesionale e pagave (30.10.2026, si Gusto/QuickBooks Payroll): lista e pastër, numrat në kolona, redaktimi hapet me prekje */
.pr-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 10px; }
.pr-kpi { background: var(--bg); border: 1px solid var(--line); border-radius: 12px; padding: 9px 11px; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.pr-kpi span { font-size: 12px; color: var(--muted); }
.pr-kpi b { font-size: 17px; font-variant-numeric: tabular-nums; }
.pr-kpi.main { grid-column: 1 / -1; background: #1e3a8a; border-color: #1e3a8a; color: #fff; }
.pr-kpi.main span, .pr-kpi.main small, .pr-kpi.main .link-btn { color: #c7d2fe; font-size: 12px; }
.pr-kpi.main b { font-size: 26px; }
.c-base { color: #15803d; } .c-extra { color: #c2410c; }
.pr-progress { font-size: 13px; color: var(--muted); margin-bottom: 10px; }
.pr-bar { height: 6px; background: var(--line); border-radius: 99px; overflow: hidden; margin-top: 4px; }
.pr-bar span { display: block; height: 100%; background: #16a34a; border-radius: 99px; }
.pr-head { display: grid; grid-template-columns: 1fr 64px 56px 78px; gap: 6px; padding: 6px 12px; font-size: 11px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); border-top: 1px solid var(--line); }
.pr-head span:not(:first-child) { text-align: right; }
.pr-row { border-top: 1px solid var(--line); }
.pr-row.open { background: var(--bg); }
.pr-line { width: 100%; display: grid; grid-template-columns: 1fr 64px 56px 78px; gap: 6px; align-items: center; padding: 9px 12px; background: none; border: 0; color: var(--text); text-align: left; cursor: pointer; font: inherit; }
.pr-line:has(.wide) { grid-template-columns: 1fr auto; }
.pr-who { display: flex; gap: 9px; align-items: center; min-width: 0; }
.pr-av { flex: none; width: 34px; height: 34px; border-radius: 50%; color: #fff; font-size: 13px; font-weight: 700; display: grid; place-items: center; }
.pr-nm { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 6px; min-width: 0; }
.pr-nm b { font-size: 14px; }
.pr-nm small { flex-basis: 100%; color: var(--muted); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pr-num { text-align: right; font-variant-numeric: tabular-nums; font-size: 13px; white-space: nowrap; }
.pr-num.tot { font-weight: 700; font-size: 14px; }
.pr-st { font-size: 11px; font-weight: 600; padding: 1px 7px; border-radius: 99px; }
.pr-st.ok { background: #dcfce7; color: #166534; } .pr-st.wait { background: #f1f5f9; color: #64748b; } .pr-st.stop { background: #fee2e2; color: #991b1b; }
.pr-row.stop .pr-line { opacity: .6; }
.pr-edit { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 0 12px 12px 55px; }
.pr-edit label { display: flex; flex-direction: column; gap: 3px; font-size: 12px; color: var(--muted); }
.pr-edit label.full { grid-column: 1 / -1; }
.pr-edit input, .pr-edit textarea { padding: 8px 10px; border-radius: 10px; border: 1px solid var(--line); background: var(--card); color: var(--text); font: inherit; font-size: 15px; }
.pr-edit input { text-align: right; }
.pr-tools { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 6px; }
.pr-tools .btn.on { background: #dbeafe; border-color: #93c5fd; }
@media (max-width: 420px) { .pr-head, .pr-line { grid-template-columns: 1fr 52px 46px 70px; gap: 4px; } .pr-num { font-size: 12px; } .pr-edit { padding-left: 12px; } .pr-av { width: 30px; height: 30px; font-size: 12px; } }
@media (prefers-color-scheme: dark) { .c-base { color: #4ade80; } .c-extra { color: #fb923c; } .pr-st.ok { background: #14532d; color: #bbf7d0; } .pr-st.wait { background: #1e293b; color: #94a3b8; } .pr-st.stop { background: #7f1d1d; color: #fecaca; } }
.pr-bank { align-self: end; font-size: 13px; color: var(--muted); padding-bottom: 8px; line-height: 1.5; }
.pr-bank b { color: var(--text); }
.pr-step { display: flex; gap: 4px; align-items: center; } .pr-step input { width: 64px; text-align: center !important; }
.pr-inst { grid-column: 1 / -1; background: #eff6ff; color: #1e3a8a; border: 1px solid #bfdbfe; border-radius: 10px; padding: 8px 10px; font-size: 13px; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.pr-st.cl { background: #ffedd5; color: #9a3412; }
.exp-paygrid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; } .exp-paygrid label { font-size: 12px; }
@media (prefers-color-scheme: dark) { .pr-inst { background: #172554; color: #bfdbfe; border-color: #1e3a8a; } .pr-st.cl { background: #7c2d12; color: #fed7aa; } }
/* 🔒 rroga e dhënë (30.10.2026) */
.pr-lock, .pr-ro { grid-column: 1 / -1; }
.pr-lock { background: #eef6ee; color: #1f6b2a; border-radius: 10px; padding: 8px 12px; font-size: 14px; }
.pr-ro { display: flex; justify-content: space-between; gap: 12px; padding: 6px 2px; border-bottom: 1px dashed var(--line, #e3e6ea); font-size: 14px; }
.pr-ro.full { grid-column: 1 / -1; color: var(--muted); }
.pr-ro.tot { border-bottom: 0; font-size: 15px; }
.pr-give { border-color: #2e8b3e; color: #1f6b2a; }
@media (prefers-color-scheme: dark) { .pr-lock { background: #183020; color: #9fd8a8; } .pr-give { color: #9fd8a8; } }
/* 🔑 kodi i Shpenzimeve */
.exp-pin { max-width: 320px; text-align: center; }
.exp-pin input { display: block; width: 100%; font-size: 28px; letter-spacing: 12px; text-align: center; margin: 8px 0; }
.exp-pin input.hidden { display: none; }
.exp-pin input::placeholder { letter-spacing: 2px; font-size: 16px; }
.exp-pin .exp-hint-in { display: block; text-align: left; font-size: 13px; margin-top: 6px; }
.exp-pin .exp-hint-in input { font-size: 15px; letter-spacing: normal; text-align: left; }
.exp-pin .exp-hint-in.hidden { display: none; }
#expPinTip { font-size: 13px; margin: 2px 0; }
.pr-kpi.main .pr-tog { margin-top: 8px; align-self: flex-start; background: rgba(255,255,255,.16); color: #fff; border: 1px solid rgba(255,255,255,.35); border-radius: 999px; padding: 5px 12px; font-size: 13px; cursor: pointer; }
.pr-kpi.main .pr-tog:hover { background: rgba(255,255,255,.26); }
/* 👥 Kush tjetër punoi (31.10.2026) */
.help-wrap { margin: 6px 0; }
.help-pick { display: flex; flex-direction: column; gap: 6px; margin-top: 8px; }
.help-pick.hidden { display: none; }
.help-team { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding: 6px 8px; border: 1px solid var(--line, #e3e6ea); border-radius: 10px; }
.help-tname { font-weight: 600; font-size: 13px; background: none; border: 0; padding: 4px 6px; cursor: pointer; color: var(--text); }
.help-chip.on { background: #1e5bd8; color: #fff; border-color: #1e5bd8; }
/* 🧾 Shpenzimet ditore (01.11.2026) */
.dl-add { width: 100%; padding: 14px; font-size: 17px; margin: 10px 0 6px; }
.dl-day { margin-top: 12px; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: var(--card); }
.dl-dh { display: flex; justify-content: space-between; padding: 7px 12px; background: var(--soft, rgba(127,140,170,.08)); font-size: 13px; color: var(--muted); }
.dl-dh b { color: var(--text); }
.dl-row { display: flex; align-items: center; gap: 10px; width: 100%; padding: 10px 12px; border: 0; border-top: 1px solid var(--line); background: none; color: var(--text); font: inherit; text-align: left; cursor: pointer; }
.dl-row:first-of-type { border-top: 0; }
.dl-row.ro { cursor: default; }
.dl-ic { font-size: 20px; }
.dl-tx { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.dl-tx small { font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dl-am { white-space: nowrap; }
.dl-ph { cursor: pointer; }
.dl-two { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.dl-lbl { font-size: 14px; color: var(--muted); margin: 8px 0 4px; }
.dl-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.dl-chip { display: inline-flex; border: 1px solid var(--line); border-radius: 20px; padding: 0; background: var(--card); color: var(--text); font: inherit; font-size: 14px; cursor: pointer; }
.dl-chip input { position: absolute; opacity: 0; width: 0; }
.dl-chip span, .dl-chip.dl-new { padding: 7px 12px; }
.dl-chip input:checked + span { background: var(--primary); color: var(--primary-text); border-radius: 20px; }
.dl-chip.dl-new { color: var(--muted); border-style: dashed; }
/* ↕️ Renditja e punëtorëve te Rrogat (01.11.2026) */
.pr-sortbar { display: flex; align-items: center; gap: 10px; padding: 8px 12px; }
.pr-row.pr-sorting { display: flex; align-items: center; justify-content: space-between; padding: 6px 12px; }
.pr-arrows { display: flex; gap: 6px; }
.pr-arrows .btn { min-width: 44px; font-size: 16px; }
.exp-new { margin: 10px 0; border: 1px solid var(--line); border-radius: 12px; padding: 8px 12px; background: var(--card); }
.exp-new summary { cursor: pointer; }
/* 📹 Video-thirrjet (ekrani i thirrjes vetë është te video.js) */
.vc-bar { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 12px; background: #e7f6ec; color: #0d5c33; font-weight: 600; border-bottom: 1px solid #b9e4c9; }
.vc-bar .btn { padding: 6px 14px; }
.vc-in { position: fixed; inset: 0; z-index: 110; display: grid; place-items: center; padding: 16px; background: linear-gradient(160deg, #0f5fd7, #0b2a5b); color: #fff; }
.vc-in-box { text-align: center; width: 100%; max-width: 380px; }
.vc-in-ico { font-size: 64px; animation: vcPulse 1.2s ease-in-out infinite; }
@keyframes vcPulse { 50% { transform: scale(1.12); } }
.vc-in h2 { font-size: 28px; margin: 12px 0 4px; } .vc-in p { opacity: .85; margin: 0 0 48px; }
.vc-in-btns { display: flex; justify-content: space-around; }
.vc-in-lbl { display: flex; justify-content: space-around; margin-top: 8px; opacity: .85; }
.vc-round { width: 72px; height: 72px; border-radius: 50%; border: 0; font-size: 30px; color: #fff; cursor: pointer; }
.vc-round.red { background: #e5484d; } .vc-round.green { background: #22a559; }
dialog.vc-dlg { padding: 16px; display: none; flex-direction: column; gap: 10px; max-height: 88vh; }
dialog.vc-dlg[open] { display: flex; }
dialog.vc-dlg h3 { margin: 0; }
.vc-list { overflow-y: auto; display: flex; flex-direction: column; gap: 4px; }
.vc-row { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 12px; background: var(--card); color: var(--text); font-size: 16px; text-align: left; cursor: pointer; }
.vc-row span.nm { flex: 1; } .vc-row small { color: var(--muted); } .vc-row b { font-size: 22px; }
@media (prefers-color-scheme: dark) { .vc-bar { background: #12351f; color: #9be3b5; border-color: #1f5a35; } }
/* 💰 Rrogat: Rroga · Banka · Klientë · Shtesa · Totali (01.11.2026) */
.pr-head.pr-pay, .pr-line.pr-pay { grid-template-columns: minmax(120px, 1fr) 66px 62px 62px 68px 60px 82px; }
.pr-num.c-bank { color: #1d4ed8; } .pr-num.c-cash { color: #15803d; font-weight: 600; }
.pr-cn { display: block; font-size: 10px; color: var(--muted); }
@media (prefers-color-scheme: dark) { .pr-num.c-bank { color: #93c5fd; } .pr-num.c-cash { color: #4ade80; } }
/* 📱 Telefon: emri + totali sipër, pesë kutiza me etiketë poshtë (pronari 01.11.2026) */
@media (max-width: 600px) {
  .pr-head.pr-pay { display: none; }
  .pr-line.pr-pay { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px 4px; padding: 10px; }
  .pr-line.pr-pay .pr-who { grid-column: 1 / 5; grid-row: 1; }
  .pr-line.pr-pay .pr-num.tot { grid-column: 5; grid-row: 1; font-size: 14px; }
  .pr-line.pr-pay .pr-num[data-l] { grid-row: 2; text-align: left; font-size: 12px; background: var(--chip, rgba(100,116,139,.08)); border-radius: 8px; padding: 4px 6px; overflow: hidden; text-overflow: ellipsis; }
  .pr-line.pr-pay .pr-num[data-l]::before { content: attr(data-l); display: block; font-size: 9.5px; font-weight: 600; text-transform: uppercase; letter-spacing: .03em; color: var(--muted); }
  .pr-line.pr-pay .pr-cn { font-size: 9px; }
  .pr-pay .pr-av { width: 30px; height: 30px; font-size: 12px; }
  .pr-line.pr-pay.nil .pr-num[data-l] { display: none; }
}

/* 👩 Nova, emri i AI-së (05.11.2026) */
.nova-av { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; vertical-align: middle; margin-right: 6px; flex: none; box-shadow: 0 0 0 2px var(--primary); }
.nova-say { display: flex; align-items: flex-start; gap: 2px; }
.nova-name { color: var(--primary); }
.tel-nova { border: 1px solid var(--line); border-radius: 12px; padding: 8px 12px; margin: 0 0 10px; }
.tel-nova summary { cursor: pointer; display: flex; align-items: center; gap: 4px; }
.tel-nova textarea { width: 100%; margin: 8px 0 6px; box-sizing: border-box; }
.tel-nova-row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 4px; }

/* 🔧 Punë rrjeti: klientët e prekur */
.aff-list { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 8px; }
.aff-chip { display: inline-flex; align-items: center; gap: 5px; padding: 3px 4px 3px 10px; border-radius: 99px; background: var(--card); border: 1px solid var(--line); font-size: 13.5px; }
.aff-chip button { border: 0; background: none; color: var(--muted); cursor: pointer; padding: 2px 6px; font-size: 13px; }

/* 👤 ish-punëtor te Shto përdorues */
.former-hit { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 8px 10px; margin: -4px 0 8px; border-radius: 10px; background: #fff4e5; color: #8a4b00; font-size: 14px; }

/* 📋 lista e klientëve mbi hartë, majtas (si legjenda e My Maps) */
.cm-list { position: absolute; left: 8px; top: 92px; bottom: 28px; width: min(240px, 62%); z-index: 500; overflow-y: auto; background: color-mix(in srgb, var(--card, #fff) 94%, transparent); border: 1px solid var(--line); border-radius: 12px; padding: 4px; box-shadow: 0 4px 16px rgba(0,0,0,.18); }
.cm-list-h { font-size: 12px; color: var(--muted); padding: 2px 6px; }
.cm-li { display: flex; align-items: center; gap: 8px; width: 100%; text-align: left; background: none; border: 0; border-bottom: 1px solid var(--line); padding: 7px 6px; font: inherit; font-size: 14px; color: inherit; cursor: pointer; }
.cm-li i { flex: 0 0 auto; width: 10px; height: 10px; border-radius: 50%; border: 1px solid #263238; }
.cm-fbtn.on { outline: 3px solid var(--accent, #1a56db); }
/* 🗺️ telefon: harta zë gjithë ekranin si My Maps (pronari 11.11.2026); kërkimi + shtresat sipër, butonat poshtë në një rresht */
@media (max-width: 759px) {
  dialog.cm-dlg[open] .cm-wrap { padding: 0; gap: 0; overflow: hidden; }
  dialog.cm-dlg[open] .cm-head { padding: max(6px, env(safe-area-inset-top)) 8px 4px; }
  dialog.cm-dlg[open] .cm-layers { padding: 0 8px 6px; }
  dialog.cm-dlg[open] .cm-mapbox { flex: 1 1 auto; min-height: 0; border-radius: 0; border: 0; }
  dialog.cm-dlg[open] .cm-tools { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding: 6px 8px max(6px, env(safe-area-inset-bottom)); }
  dialog.cm-dlg[open] .cm-tools .btn { white-space: nowrap; }
  dialog.cm-dlg[open] #cmInfo { display: none; }
  dialog.cm-dlg[open] .cm-wrap:has(#cmReview:not(.hidden)) { overflow-y: auto; }
  dialog.cm-dlg[open] .cm-wrap:has(#cmReview:not(.hidden)) .cm-mapbox { flex: 0 0 auto; height: 60dvh; }
}

/* 📝 vërejtjet */
.meta.remark { background: #fff4e5; color: #8a4b00; border-radius: 8px; padding: 6px 8px; margin-top: 6px; }
.remark-pop { position: fixed; inset: 0; z-index: 9999; background: rgba(0,0,0,.45); display: flex; align-items: center; justify-content: center; padding: 16px; }
.remark-pop .card { max-width: 420px; width: 100%; }
.remark-pop .remark-txt { font-size: 17px; white-space: pre-wrap; margin: 10px 0 16px; }
/* 🗺️ Harta si My Maps (13.11.2026): rrethi i bardhë i pikës së zgjedhur + karta e bardhë mbi pikë */
.cm-ring { width: 44px; height: 44px; border-radius: 50%; border: 3px solid #fff; box-shadow: 0 0 0 1px #0003, 0 1px 6px #0006; box-sizing: border-box; }
.cm-pop .leaflet-popup-content-wrapper { border-radius: 8px; box-shadow: 0 2px 10px #0005; color: #202124; background: #fff; }
.cm-pop .leaflet-popup-content { margin: 16px 18px 12px; font: 14px/1.4 Roboto, system-ui, sans-serif; }
.cm-pop .leaflet-popup-tip { background: #fff; }
.cm-pop a.leaflet-popup-close-button { width: 28px; height: 28px; font-size: 22px; color: #5f6368; top: 4px; right: 4px; }
.cm-pt { font-size: 17px; font-weight: 700; padding-right: 18px; margin-bottom: 8px; word-break: break-word; }
.cm-pn { font-size: 15px; margin-bottom: 8px; white-space: pre-line; word-break: break-word; }
.cm-pm { font-size: 13px; color: #5f6368; margin-bottom: 6px; }
.cm-pc { font-size: 13px; color: #5f6368; margin: 10px 0 8px; }
.cm-pa { display: flex; gap: 6px; flex-wrap: wrap; }
.cm-pa .btn { padding: 6px 12px; font-size: 14px; text-decoration: none; }
.cm-pop a.btn.primary { color: #fff; }
.cm-li i { border-radius: 50% 50% 50% 0; transform: rotate(-45deg); width: 11px; height: 11px; }
.leaflet-bottomright .leaflet-control-zoom { margin-bottom: 24px; }
/* 🧰 Kërkimi + veglat + LEGEND lart majtas, si te My Maps (13.11.2026) */
.cm-tb { position: absolute; left: 10px; top: max(10px, env(safe-area-inset-top)); z-index: 650; width: min(330px, calc(100% - 74px)); display: flex; flex-direction: column; align-items: flex-start; gap: 8px; pointer-events: none; }
.cm-tb > * { pointer-events: auto; }
.cm-sbox { display: flex; width: 100%; height: 40px; margin: 0; box-shadow: 0 1px 4px #0005; border-radius: 2px; overflow: hidden; }
.cm-sbox input { flex: 1; min-width: 0; margin: 0; border: 0; border-radius: 0; height: 40px; padding: 0 12px; font-size: 16px; background: #fff; color: #202124; outline: none; }
.cm-sbtn { width: 64px; flex: 0 0 64px; border: 0; background: #4285f4; color: #fff; display: grid; place-items: center; cursor: pointer; }
.cm-sbtn svg { fill: #fff; }
.cm-tb .cm-res { width: 100%; margin-top: -6px; background: #fff; color: #202124; border-radius: 0 0 4px 4px; box-shadow: 0 2px 6px #0004; border: 0; }
.cm-tb .cm-res .cm-ri { color: #202124; }
.cm-tools2 { display: flex; gap: 6px; flex-wrap: wrap; }
.cm-grp { display: flex; background: #fff; border-radius: 2px; box-shadow: 0 1px 4px #0005; overflow: hidden; }
.cm-grp button { width: 38px; height: 36px; border: 0; background: #fff; color: #757575; display: grid; place-items: center; cursor: pointer; padding: 0; }
.cm-grp button + button { border-left: 1px solid #e6e6e6; }
.cm-grp svg { fill: currentColor; }
.cm-grp button.on { color: #202124; background: #e8eaed; }
.cm-grp button:active { background: #dadce0; }
.cm-legbtn { background: #fff; color: #5f6368; border: 0; border-radius: 2px; box-shadow: 0 1px 4px #0005; font: 500 14px/1 Roboto, system-ui, sans-serif; letter-spacing: .5px; padding: 11px 18px; cursor: pointer; }
.cm-legbtn.on { color: #1a73e8; }
.cm-tb .cm-layers { flex-direction: column; align-items: stretch; gap: 0; background: #fff; border-radius: 4px; box-shadow: 0 2px 8px #0005; padding: 4px; max-height: 48vh; overflow-y: auto; overflow-x: hidden; }
.cm-tb .cm-layers.hidden { display: none; }
.cm-tb .cm-layers .chip { border: 0; background: none; color: #202124; text-align: left; border-radius: 4px; padding: 8px 10px; font-size: 14px; }
.cm-tb .cm-layers .chip::before { content: '☐ '; color: #5f6368; }
.cm-tb .cm-layers .chip.active::before { content: '☑ '; color: #1a73e8; }
.cm-tb .cm-layers .chip.active { background: none; color: #202124; }
.cm-tb .cm-layers .chip .muted, .cm-tb .cm-layers .chip.active .muted { color: #80868b; }
.cm-float .cm-fbtn[data-close] { font-size: 18px; font-weight: 700; color: #3c4043; }
.cm-mapbox .cm-hint { top: auto; bottom: 28px; max-width: calc(100% - 90px); display: flex; flex-wrap: wrap; gap: 6px; align-items: center; justify-content: center; }
.cm-cols { display: flex; gap: 8px; margin: 6px 0 2px; }
.cm-cols label { cursor: pointer; } .cm-cols input { display: none; }
.cm-cols i { display: block; width: 28px; height: 28px; border-radius: 50%; border: 2px solid #fff; box-shadow: 0 0 0 1px #0004; }
.cm-cols input:checked + i { box-shadow: 0 0 0 3px #1a73e8; }
.cm-list { top: 190px; }
@media (min-width: 900px) {
  .cm-list { top: 10px; bottom: 10px; width: 260px; }
  .cm-mapbox:has(#cmList:not(.hidden)) .cm-tb { left: 282px; }
}
/* 📍 Karta e shtimit/ndryshimit dhe ikonat, si te My Maps (13.11.2026) */
.cm-ed { display: flex; flex-direction: column; gap: 10px; min-width: 230px; }
.cm-edt { position: relative; }
.cm-ed input, .cm-ed textarea { width: 100%; margin: 0; border: 0; border-bottom: 1px solid #dadce0; border-radius: 0; background: #fff; color: #202124; font: 20px/1.3 Roboto, system-ui, sans-serif; padding: 6px 2px; outline: none; box-sizing: border-box; }
.cm-ed input:focus { border-bottom: 2px solid #1a73e8; }
.cm-ed textarea { font-size: 15px; border: 1px solid #dadce0; padding: 8px; resize: vertical; }
.cm-sug2:empty { display: none; }
.cm-sug2 { position: absolute; left: 0; right: 0; top: 100%; z-index: 5; background: #fff; box-shadow: 0 2px 8px #0004; border-radius: 0 0 4px 4px; max-height: 220px; overflow-y: auto; }
.cm-sug2 button { display: block; width: 100%; text-align: left; border: 0; border-bottom: 1px solid #eee; background: #fff; color: #202124; font: 14px Roboto, system-ui, sans-serif; padding: 9px 10px; cursor: pointer; }
.cm-sug2 button span { color: #80868b; font-size: 12px; }
.cm-blue { background: #4285f4 !important; color: #fff !important; border-color: #4285f4 !important; min-width: 90px; }
.cm-prow { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 6px 0 8px; }
.cm-prow .cm-pc { margin: 0; }
.cm-ics { display: flex; gap: 2px; }
.cm-ic { width: 34px; height: 34px; border: 0; background: none; color: #5f6368; border-radius: 50%; display: grid; place-items: center; cursor: pointer; padding: 0; }
.cm-ic svg { fill: currentColor; } .cm-ic:hover { background: #f1f3f4; }
.cm-pal { display: flex; gap: 8px; margin: 0 0 10px; }
.cm-pal.hidden { display: none; }
.cm-pal button { width: 28px; height: 28px; border-radius: 50%; border: 2px solid #fff; box-shadow: 0 0 0 1px #0004; cursor: pointer; }
.cm-pal button.on { box-shadow: 0 0 0 3px #1a73e8; }
.cm-pop .leaflet-popup-content { min-width: 250px; }
.cm-pop .cm-pt { margin-bottom: 14px; }
.cm-pop .cm-pn { min-height: 0; }
.cm-pop .cm-prow { margin-top: 40px; margin-bottom: 0; }
.cm-icnav { color: #1a73e8 !important; text-decoration: none; }
.cm-palh { font-size: 13px; color: #5f6368; margin: 8px 0 4px; }
.cm-palg { display: grid; grid-template-columns: repeat(13, 1fr); gap: 3px; }
.cm-palg button { width: 100%; aspect-ratio: 1; height: auto; border-radius: 2px; border: 1px solid #0002; box-shadow: none; padding: 0; min-width: 14px; }
.cm-palg button.on { outline: 2px solid #202124; outline-offset: 1px; box-shadow: none; }
.cm-pals { display: flex; gap: 6px; }
.cm-pals button { width: 38px; height: 38px; border-radius: 4px; border: 1px solid #dadce0; background: #f1f3f4; box-shadow: none; display: grid; place-items: center; padding: 0; }
.cm-pals svg { fill: #bdc1c6; } .cm-pals button.on { border-color: #5f6368; background: #fff; } .cm-pals button.on svg { fill: #5f6368; }
.cm-pal { display: block; margin: 8px 0 0; }
.cm-pal.hidden { display: none; }
.cm-pop .leaflet-popup-content-wrapper { max-width: 340px; }

/* ✏️ menyja e linjës si te My Maps (13.11.2026) */
.cm-lmenu { position: absolute; z-index: 700; min-width: 280px; background: #fff; border-radius: 2px; box-shadow: 0 2px 8px #0005; padding: 6px 0; display: flex; flex-direction: column; }
.cm-lmenu.hidden { display: none; }
.cm-lmenu button { display: flex; align-items: center; gap: 12px; border: 0; background: none; text-align: left; padding: 9px 16px; font-size: 15px; color: #202124; cursor: pointer; }
.cm-lmenu button:not(:disabled):hover { background: #f1f3f4; }
.cm-lmenu button:disabled { color: #bdbdbd; cursor: default; }
.cm-lmenu button i { width: 22px; display: grid; place-items: center; font-style: normal; color: #202124; }
.cm-lmenu button i svg { fill: #202124; }

/* 📷 fotot te pikat e hartës, si te My Maps (13.11.2026) */
.cm-ph { position: relative; margin: 8px 0 6px; background: #000; height: 170px; display: grid; place-items: center; overflow: hidden; }
.cm-ph a { display: contents; }
.cm-ph img { max-width: 100%; max-height: 100%; object-fit: contain; cursor: zoom-in; }
.cm-phn { position: absolute; bottom: 6px; left: 0; right: 0; text-align: center; color: #fff; font-size: 13px; text-shadow: 0 1px 2px #000; pointer-events: none; }
.cm-phx { position: absolute; top: 50%; transform: translateY(-50%); width: 30px; height: 44px; border: 0; background: #0006; color: #fff; font-size: 26px; line-height: 1; cursor: pointer; }
.cm-phx.l { left: 0; } .cm-phx.r { right: 0; }
.cm-phd { position: absolute; top: 4px; right: 4px; border: 0; background: #0008; color: #fff; border-radius: 4px; padding: 3px 6px; cursor: pointer; }

/* 🏠 / ⚫ lloji i pikës së re (13.11.2026) */
.cm-edk { display: flex; gap: 6px; margin-bottom: 8px; }
.cm-edk button { flex: 1; border: 1px solid #dadce0; background: #fff; color: #3c4043; border-radius: 4px; padding: 7px 4px; font-size: 13px; cursor: pointer; }
.cm-edk button.on { border-color: #1a73e8; background: #e8f0fe; color: #1967d2; font-weight: 600; }

/* 🧰 ikonat e shiritit si te My Maps (13.11.2026): gri e çelët, e zgjedhura më e errët */
.cm-grp button { color: #a6a6a6; }
.cm-grp button:hover { color: #6b6b6b; }
.cm-grp button.on { color: #444; background: #f1f1f1; }

/* 📍 GPS te shiriti + harta në gjithë ekranin (13.11.2026) */
.cm-tools.cm-off, #cmInfo.cm-off { display: none !important; }
.cm-grp button.cm-gpsb { font-size: 17px; }
.cm-fbtn.on { outline: 2px solid #1a73e8; }
@media (max-width: 430px) {
  .cm-tb { width: calc(100% - 62px); }
  .cm-tools2 { gap: 4px; }
  .cm-grp button { width: 33px; }
}

/* ⌨️ 13.11.2026: kur shkruani në bisedë, shiriti i poshtëm fshihet që biseda të zërë më shumë ekran */
body.kb-open nav.bottom { display: none; }
/* ⌨️ 13.11.2026 (pronari: "ngjeshe edhe më shumë"): sa shkruani, fusha dhe butonat më të ngjeshur, pa kokën lart */
body.kb-open .top { display: none; }
body.kb-open .composer { padding: 3px 6px; gap: 2px; align-items: center; }
body.kb-open .composer #chatText { min-height: 34px; padding: 6px 12px; font-size: 16px; border-radius: 18px; }
body.kb-open .composer .plus-btn { width: 30px; height: 34px; font-size: 24px; }
body.kb-open .composer .stk-btn { font-size: 20px; padding: 2px; }
body.kb-open .composer .mic-btn, body.kb-open .composer .send-btn { width: 36px; height: 36px; }

/* 🖧 Dude (14.11.2026) */
.dd-cfg { display: grid; gap: 8px; margin: 6px 0 10px; padding: 10px; border: 1px solid var(--line); border-radius: 10px; }
#dudeDlg h3 { display: flex; align-items: center; justify-content: space-between; }
#dudeTabs { display: flex; gap: 6px; margin: 8px 0 4px; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
#dudeTabs .chip { flex: none; }
.dd-dot { flex: none; font-size: 14px; }
.pt-row.dd-down { background: #fff1f1; }
.pt-row.dd-unknown .pt-main b { color: var(--muted); font-weight: 500; }
#dudeList .warn { color: #b26b00; }
@media (prefers-color-scheme: dark) { .pt-row.dd-down { background: rgba(255, 80, 80, .12); } }

/* 📢 Mesazh i rëndësishëm (14.11.2026) */
.imp-btn { opacity: .55; }
.imp-btn.on { opacity: 1; background: #fde2e1; border-radius: 50%; }
.composer.imp-on #chatText { border-color: #d92d20; box-shadow: 0 0 0 2px #fde2e1; }
.composer.imp-on .send-btn { background: #d92d20; }
.msg.imp { border: 2px solid #d92d20; }
.imp-tag { font-size: 11px; font-weight: 800; color: #d92d20; letter-spacing: .3px; margin-bottom: 2px; }
.imp-seen { font-size: 11.5px; color: var(--muted); margin-top: 4px; line-height: 1.35; }
.imp-ack { margin-top: 6px; }

/* 🔇 zilja e bllokuar (14.11.2026) */
.snd-note { cursor: pointer; background: #fff7d6; border-color: #f5d76e; color: #6b4e00; }
/* 📱 16.11.2026 (pronari: "nga një herë s'e luaj dot faqen lart e poshtë"): në iPhone, lista e brendshme me shirit më vete
   e "kapte" gishtin dhe faqja pas dritares lëvizte në vend të saj. Tani lëviz vetëm dritarja, si një faqe e vetme. */
:where(dialog) { max-height: 92dvh; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }
dialog .sec-log { max-height: none; overflow: visible; }
html:has(dialog[open]) body { overflow: hidden; }
@media (hover: hover) and (pointer: fine) {
  #dudeTabs { scrollbar-width: thin; padding-bottom: 6px; }
  #dudeTabs::-webkit-scrollbar { height: 6px; }
  #dudeTabs::-webkit-scrollbar-thumb { background: #b8c2d6; border-radius: 3px; }
}

/* 📜 Kush bëri çfarë: pamje si log serveri (16.11.2026) */
.aud-dlg { width: min(1200px, 96vw); max-width: 96vw; }
.aud-dlg #audList { max-height: 65dvh; overflow: auto; border: 1px solid #d0d7e2; border-radius: 6px; background: #0f172a; }
.aud-tbl { width: 100%; border-collapse: collapse; font: 12.5px/1.35 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; color: #cbd5e1; }
.aud-tbl th { position: sticky; top: 0; background: #1e293b; color: #94a3b8; text-align: left; font-weight: 600; padding: 6px 8px; text-transform: uppercase; font-size: 11px; letter-spacing: .04em; }
.aud-tbl td { padding: 3px 8px; border-top: 1px solid #1e293b; vertical-align: top; }
.aud-tbl tr:hover td { background: #1e293b; }
.aud-tbl .t { color: #64748b; white-space: nowrap; }
.aud-tbl .u { color: #7dd3fc; white-space: nowrap; }
.aud-tbl .u i { font-style: normal; color: #475569; margin-left: 6px; font-size: 11px; }
.aud-tbl .a { color: #e2e8f0; white-space: nowrap; }
.aud-tbl .d { color: #94a3b8; word-break: break-word; }
.aud-tbl .ip { color: #475569; white-space: nowrap; }
.aud-tbl tr.bad .a { color: #f87171; } .aud-tbl tr.auth .a { color: #4ade80; } .aud-tbl tr.warn .a { color: #fbbf24; }
@media (max-width: 700px) { .aud-tbl .ip, .aud-tbl th:last-child { display: none; } .aud-tbl .a, .aud-tbl .u { white-space: normal; } }
.aud-dlg .row:first-of-type { display: flex; } .aud-dlg .row select, .aud-dlg .row input { width: auto; margin: 0; }
.aud-tbl td, .aud-tbl th { border-color: #1e293b !important; border-left: 0; border-right: 0; }

.aud-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; position: sticky; top: 0; z-index: 2; background: inherit; }
.aud-head h3 { margin: 0; } .aud-x { font-size: 18px; width: 36px; height: 36px; border-radius: 50%; }

/* 📦 Kasetat (17.11.2026) */
.cm-boxpick { display: flex; flex-direction: column; gap: 6px; margin-top: 6px; }
.cm-boxpick .btn { justify-content: flex-start; text-align: left; }
.cm-boxcl { max-height: 140px; overflow: auto; }
.cm-bx { padding: 8px 0; } .cm-bx h3 { margin: 4px 0 6px; }
.cm-bxt { max-height: 60dvh; overflow: auto; border: 1px solid var(--line, #e5e7eb); border-radius: 8px; margin: 8px 0; }
.cm-bxt table { width: 100%; border-collapse: collapse; font-size: 13px; }
.cm-bxt th { position: sticky; top: 0; background: var(--card, #fff); text-align: left; padding: 6px; font-size: 11px; text-transform: uppercase; color: var(--muted, #667); }
.cm-bxt td { padding: 4px 6px; border-top: 1px solid var(--line, #eee); white-space: nowrap; }
.cm-bxt .bxn { width: 130px; padding: 4px 6px; margin: 0; font-family: ui-monospace, monospace; }

/* ✋ Veprimet e linjës (17.11.2026) */
.cm-lnact { display: flex; flex-wrap: wrap; gap: 6px; }

/* 🔒 Bisedat private (17.11.2026) */
.dm-bar { display: flex; gap: 6px; padding: 6px 10px 2px; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
.dm-bar::-webkit-scrollbar { display: none; }
.dm-bar .chip { flex: none; white-space: nowrap; }
.dm-n { display: inline-block; min-width: 18px; padding: 0 5px; margin-left: 3px; border-radius: 9px; background: #e53935; color: #fff; font-size: 11px; line-height: 18px; text-align: center; }

/* 🔐 Të drejtat e secilit (18.11.2026): me 👁️ (ro-<faqja>) fshihen butonat që ndryshojnë; serveri i refuzon gjithsesi */
body:not(.is-admin) .user.adm-row :is(button, .devs button) { display: none !important; }
body.ro-stafi :is(#userForm, #userList button, #teamBox button, [data-teamedit]) { display: none !important; }
body.ro-magazina :is(.mz-new, .mz-fab, #mzCountAll, [data-ed], [data-teamedit], [data-vancount], [data-give], .mz-arr, [data-cmv]) { display: none !important; }
body.ro-magazina .mz-items tr[data-edit] { pointer-events: none; }
body.ro-shpenzimet :is(#expAdd, #expCopy, #expLineAdd, #expPinReset, #expRate, #expSort, [data-xedit], [data-xoff], [data-xback], [data-xunlock], [data-xlock],
  [data-xpaidsave], [data-xinst], [data-xmv], [data-xcl], [data-xcur]) { display: none !important; }
body.ro-shpenzimet :is(#expDlg input, #expDlg textarea, #expDlg select) { pointer-events: none; background: transparent; border-color: transparent; }
body.ro-portat :is(#portAdd, #portsPause, [data-ptdel], [data-pton], [data-ptren]) { display: none !important; }
body.ro-rrjeti :is(#dudeKeyBtn, [data-ddon]) { display: none !important; }
body.ro-sms :is(#smsSave, #smsTest) { display: none !important; }
body.ro-siguria :is(#secTest, #secBackupNow, #ntfyRotate) { display: none !important; }
body.ro-harta :is(#cmAdd, #cmImport, #cmImpPh, #cmBoxBtn, #cmGkey) { display: none !important; }
body.ro-sinjali :is([data-sigfix], [data-sigline]) { display: none !important; }
body.ro-thirrjet :is([data-tdel]) { display: none !important; }
/* dritarja 🔐 */
#permDlg .dlg { max-width: 560px; }
.perm-list { max-height: 62vh; overflow: auto; margin: 6px -4px; padding: 0 4px; }
.perm-grp { font-weight: 700; margin: 14px 0 4px; color: var(--muted, #667); font-size: 13px; text-transform: uppercase; letter-spacing: .03em; }
.perm-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 6px 8px; border-radius: 10px; }
.perm-row:nth-child(even) { background: rgba(127,127,127,.06); }
.perm-row.chg > span { font-weight: 700; }
.perm-row.chg > span::after { content: ' •'; color: #e67e22; }
.perm-seg { display: inline-flex; border: 1px solid rgba(127,127,127,.3); border-radius: 10px; overflow: hidden; flex: none; }
.perm-seg button { border: 0; background: transparent; padding: 5px 9px; font-size: 15px; display: flex; flex-direction: column; align-items: center; min-width: 52px; cursor: pointer; color: inherit; }
.perm-seg button small { font-size: 10px; opacity: .75; }
.perm-seg button + button { border-left: 1px solid rgba(127,127,127,.3); }
.perm-seg button.on.v0 { background: #fde2e1; color: #9b1c1c; }
.perm-seg button.on.v1 { background: #fff1d6; color: #8a5a00; }
.perm-seg button.on.v2 { background: #dcf5e3; color: #146c2e; }
.perm-tools { display: flex; gap: 8px; flex-wrap: wrap; }
@media (prefers-color-scheme: dark) {
  .perm-seg button.on.v0 { background: #5a1f1f; color: #ffd6d6; }
  .perm-seg button.on.v1 { background: #5a4310; color: #ffe7b3; }
  .perm-seg button.on.v2 { background: #1d4d2c; color: #c9f5d6; }
}

/* 🏷️ Kompania + 📖 Manuali (TICKET) */
.brand-prev { display: flex; gap: 12px; align-items: center; margin: 10px 0; }
.brand-prev img { width: 72px; height: 72px; object-fit: contain; border-radius: 14px; border: 1px solid var(--line); background: #fff; }
.manual .man-sec { border: 1px solid var(--line); border-radius: 12px; padding: 8px 12px; margin: 8px 0; }
.manual summary { font-weight: 700; cursor: pointer; padding: 4px 0; }
.manual p, .manual li { line-height: 1.5; }

/* 💳 Licenca (TICKET) */
.lic-bar { margin: 8px 12px 0; padding: 10px 12px; border-radius: 12px; font-size: 14px; line-height: 1.45; }
.lic-bar.info { background: #e8f0fe; color: #123d7a; }
.lic-bar.warn { background: #fff4d6; color: #6b4a00; border: 1px solid #f2d27a; }
.lic-bar.bad { background: #fde2e1; color: #7f1d1d; border: 1px solid #f5b5b2; }
.lic-pay { margin-top: 8px; padding: 10px; border-radius: 10px; background: rgba(255,255,255,.7); color: #222; }
.lic-price { font-size: 16px; margin-bottom: 4px; }
.lic-info { margin-top: 6px; font-family: ui-monospace, monospace; font-size: 13px; }
.lic-lock { position: fixed; inset: 0; z-index: 9999; background: rgba(10,20,40,.85); display: flex; align-items: center; justify-content: center; padding: 16px; }
.lic-lock .card { max-width: 420px; text-align: center; }
@media (prefers-color-scheme: dark) { .lic-bar.info { background: #1b2c4a; color: #cfe0ff; } .lic-bar.warn { background: #3d3110; color: #ffe7a8; } .lic-bar.bad { background: #4a1c1c; color: #ffd6d6; } .lic-pay { background: rgba(0,0,0,.25); color: inherit; } }
#chgCompany{background:none;border:0;color:var(--muted,#94a3b8);margin-top:6px;font-size:14px;width:100%}

/* 📱 lëvizja me gisht mbetet brenda dritares, s'kalon te faqja poshtë (19.11.2026) */
dialog, .mp-ov, .menu, .msg-menu, .viewer, .remark-pop { overscroll-behavior: contain; }
body.ov-lock .tab { overflow: hidden !important; overscroll-behavior: none; }

/* ⚙️ Lidhjet (TICKET) */
.lidh-sec { border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; margin: 10px 0; background: var(--card); }
.lidh-sec summary { font-weight: 700; cursor: pointer; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.lidh-st { font-weight: 500; font-size: 13px; color: var(--muted); }
.lidh-mods { display: grid; gap: 6px; }
.lidh-mods label.lidh-mod { margin: 0; color: var(--text); font-size: 14px; }
.lidh-mod { display: flex; gap: 10px; align-items: flex-start; padding: 8px; border-radius: 10px; background: var(--bg); cursor: pointer; }
.lidh-mod input { width: 22px; height: 22px; margin-top: 2px; flex: 0 0 auto; }
.lidh-mod small { display: block; color: var(--muted); font-size: 12.5px; }
.lidh-help { padding-left: 18px; color: var(--text); } .lidh-help li { margin: 6px 0; }
.lidh-code { display: block; background: #0f172a; color: #e2e8f0; padding: 8px; border-radius: 8px; font-size: 12px; word-break: break-all; margin-top: 4px; user-select: all; }
.lidh-form label { display: block; margin: 8px 0; }
.lidh-olt { display: grid; grid-template-columns: 1fr 1fr auto auto; gap: 6px; align-items: center; margin: 6px 0; }
.lidh-olt input { min-width: 0; }
.lidh-olt .o-del { padding: 6px 10px; }
@media (max-width: 520px) { .lidh-olt { grid-template-columns: 1fr auto auto; } .lidh-olt .o-name { grid-column: 1 / -1; } }

/* 🔔 Orari i zileve */
.ring-sec { border: 1px solid var(--line); border-radius: 12px; padding: 8px 12px; margin: 10px 0; }
.ring-sec h4 { margin: 4px 0 8px; }
.ring-row { display: grid; grid-template-columns: 1fr auto; gap: 6px 8px; align-items: center; padding: 6px 0; border-top: 1px dashed var(--line); }
.ring-row:first-of-type { border-top: 0; }
.ring-row b { font-size: 14px; } .ring-row select { width: auto; }
.ring-row .r-win { grid-column: 1 / -1; display: flex; gap: 6px; align-items: center; font-size: 13px; color: var(--muted); }
.ring-row .r-win input { width: auto; padding: 6px; }
.ring-row .r-win.off { opacity: .35; pointer-events: none; }
.ring-row .r-win select { width: auto; padding: 6px; }

.ring-btn { margin-left: auto; flex: 0 0 auto; align-self: center; border: 1px solid var(--line); background: transparent; color: var(--muted); border-radius: 999px; font-size: 11px; padding: 3px 8px; cursor: pointer; white-space: nowrap; }
.ring-btn.on { color: var(--accent, #1E5BD8); border-color: currentColor; font-weight: 600; }
.ring-acts { flex-wrap: wrap; }
