/* Doni BI — paneli ekzekutiv: pamje e çelur (menyja anësore e bardhë, karta të bardha, e kuqja Doni te faqja aktive).
   E çelur është parazgjedhje; e errëta vetëm kur përdoruesi e zgjedh (data-theme="dark") ose zgjedh "Sipas pajisjes" (data-theme="auto"). */
:root {
  --side: #ffffff; --side-ink: #4b5563; --side-act: #fdeaea; --side-act-ink: #b00000; --side-act-bar: #E00000; --side-head: #1d2733;
  --side-muted: #8b95a3; --side-hover: #f3f4f6; --side-line: #e7eaee; --side-badge: #eef0f3; --side-hr: #e7eaee; --warn-ink: #a86b00; --side-dots: none;
  --gate-bg: #eef1f5; --gate-dots: radial-gradient(rgba(16,24,40,.07) 1.2px, transparent 1.3px); --gate-shadow: 0 24px 60px rgba(16,24,40,.12);
  --bg: #f6f7f9; --card: #ffffff; --surface2: #f6f8fa; --line: #e7eaee; --line2: #eef1f4; --grid: #eceff3;
  --ink: #1d2733; --ink2: #5b6573; --muted: #8b95a3;
  --green: #2e9e4f; --green-soft: #e7f5ec; --blue: #3b6fd8; --blue-soft: #e8effc; --purple: #8b4fd1; --purple-soft: #f1e9fb;
  --yellow: #f2b32a; --yellow-soft: #fdf4de; --teal: #1a9fa6; --teal-soft: #e2f4f5; --red: #E00000; --red-soft: #fdeaea; --neg: #d93838;
  --s-sel: #2e9e4f; --s-pos: #ffffff; --s-alt: #dfe3e8; --s-exc: #aab2bd;
  --shadow: 0 1px 2px rgba(16,24,40,.04), 0 1px 3px rgba(16,24,40,.06);
  --r: 12px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root[data-theme="auto"] {
    --side: #0f2236; --side-ink: #c9d4e0; --side-act: #1f4a35; --side-act-ink: #ffffff; --side-act-bar: var(--green); --side-head: #ffffff;
    --side-muted: #8fa1b5; --side-hover: rgba(255,255,255,.05); --side-line: transparent; --side-badge: rgba(255,255,255,.1); --side-hr: rgba(255,255,255,.1); --warn-ink: #f2b32a;
    --side-dots: radial-gradient(rgba(255,255,255,.07) 1.2px, transparent 1.3px);
    --gate-bg: #0f2236; --gate-dots: radial-gradient(rgba(255,255,255,.07) 1.2px, transparent 1.3px); --gate-shadow: 0 24px 60px rgba(0,0,0,.35);
    --bg: #0e1620; --card: #15202c; --surface2: #1b2836; --line: #243344; --line2: #1f2d3c; --grid: #223142;
    --ink: #e6ebf1; --ink2: #b3bdc9; --muted: #7f8b99; --green-soft: #153323; --blue-soft: #172a4a; --purple-soft: #2a1d40;
    --yellow-soft: #3a2f12; --teal-soft: #12302f; --red-soft: #3a1717; --s-pos: #15202c; --s-alt: #2a3746; --s-exc: #4a5868;
    --shadow: none; color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --side: #0f2236; --side-ink: #c9d4e0; --side-act: #1f4a35; --side-act-ink: #ffffff; --side-act-bar: var(--green); --side-head: #ffffff;
  --side-muted: #8fa1b5; --side-hover: rgba(255,255,255,.05); --side-line: transparent; --side-badge: rgba(255,255,255,.1); --side-hr: rgba(255,255,255,.1); --warn-ink: #f2b32a;
  --side-dots: radial-gradient(rgba(255,255,255,.07) 1.2px, transparent 1.3px);
  --gate-bg: #0f2236; --gate-dots: radial-gradient(rgba(255,255,255,.07) 1.2px, transparent 1.3px); --gate-shadow: 0 24px 60px rgba(0,0,0,.35);
  --bg: #0e1620; --card: #15202c; --surface2: #1b2836; --line: #243344; --line2: #1f2d3c; --grid: #223142;
  --ink: #e6ebf1; --ink2: #b3bdc9; --muted: #7f8b99; --green-soft: #153323; --blue-soft: #172a4a; --purple-soft: #2a1d40;
  --yellow-soft: #3a2f12; --teal-soft: #12302f; --red-soft: #3a1717; --s-pos: #15202c; --s-alt: #2a3746; --s-exc: #4a5868;
  --shadow: none; color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body { font: 14px/1.45 Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; background: var(--bg); color: var(--ink); font-feature-settings: "tnum" 1; -webkit-font-smoothing: antialiased; }
[hidden] { display: none !important; }
button, input, select { font: inherit; color: inherit; }
svg { fill: currentColor; }

/* ---------- shiriti anësor ---------- */
.side {
  position: fixed; inset: 0 auto 0 0; width: 248px; z-index: 50; background: var(--side); color: var(--side-ink); display: flex; flex-direction: column;
  padding: 18px 0 18px; padding-left: env(safe-area-inset-left, 0px); overflow: auto;
  border-right: 1px solid var(--side-line);
  background-image: var(--side-dots); background-size: 14px 14px; background-position: 0 100%;
  background-repeat: repeat; -webkit-mask: none;
}
.side::before { content: ""; position: absolute; inset: 0 0 38% 0; background: var(--side); z-index: 0; }
.side > * { position: relative; z-index: 1; }
.brand { display: flex; align-items: center; gap: 11px; padding: 0 20px 22px; }
.brand img { width: 46px; height: 46px; object-fit: contain; border-radius: 10px; background: #E00000; padding: 4px; }
.brand b { display: block; color: var(--side-head); font-size: 18px; letter-spacing: -.01em; }
.brand small { color: var(--side-muted); font-size: 12px; }
nav { display: flex; flex-direction: column; gap: 2px; }
nav a { display: flex; align-items: center; gap: 12px; padding: 12px 20px; color: var(--side-ink); cursor: pointer; font-weight: 500; font-size: 14.5px; border-left: 4px solid transparent; text-decoration: none; user-select: none; }
nav a svg { width: 19px; height: 19px; flex: none; opacity: .85; }
nav a:hover { background: var(--side-hover); color: var(--side-head); }
nav a.on { background: var(--side-act); color: var(--side-act-ink); border-left-color: var(--side-act-bar); font-weight: 600; }
nav a.off { opacity: .45; cursor: default; }
nav a small { margin-left: auto; font-size: 10.5px; background: var(--side-badge); padding: 1px 6px; border-radius: 9px; font-weight: 500; }
.side-foot { margin-top: auto; padding: 20px 20px 4px; }
.side-foot .src { display: flex; align-items: center; gap: 7px; font-size: 11.5px; color: var(--side-muted); margin-bottom: 14px; line-height: 1.35; }
.side-foot b { display: block; color: var(--side-head); font-size: 20px; letter-spacing: -.01em; }
.side-foot small { color: var(--side-muted); font-size: 12.5px; }
.live { width: 8px; height: 8px; border-radius: 50%; background: var(--green); flex: none; box-shadow: 0 0 0 3px rgba(46,158,79,.25); }
.side-bg { display: none; }

/* ---------- koka ---------- */
.main { margin-left: 248px; min-width: 0; min-height: 100vh; display: flex; flex-direction: column; }
.head { display: flex; align-items: center; gap: 16px; padding-block: 18px 6px; padding-left: max(24px, env(safe-area-inset-left, 0px)); padding-right: max(24px, env(safe-area-inset-right, 0px)); }
.burger { display: none; width: 40px; height: 40px; border: 1px solid var(--line); background: var(--card); border-radius: 10px; cursor: pointer; place-items: center; flex: none; }
.burger svg { width: 22px; height: 22px; }
.ttl { flex: 1; min-width: 0; }
.ttl h1 { margin: 0; font-size: 24px; font-weight: 700; letter-spacing: -.02em; text-wrap: balance; }
.ttl p { margin: 2px 0 0; color: var(--ink2); font-size: 14px; }
.hacts { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; justify-content: flex-end; }
.pill { height: 42px; display: inline-flex; align-items: center; gap: 9px; padding: 0 14px; background: var(--card); border: 1px solid var(--line); border-radius: 10px; cursor: pointer; font-weight: 600; font-size: 14px; box-shadow: var(--shadow); white-space: nowrap; }
.pill:hover { border-color: #c9d0d9; }
.pill svg { width: 17px; height: 17px; color: var(--ink2); }
.pill i { font-style: normal; color: var(--muted); font-size: 11px; }
.cnt { background: var(--green); color: #fff; border-radius: 10px; font-size: 11.5px; padding: 1px 7px; }
.pill-wrap { position: relative; }
.menu { position: absolute; right: 0; top: 48px; z-index: 60; background: var(--card); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 12px 32px rgba(16,24,40,.16); padding: 10px; width: 300px; }
.menu h4 { margin: 4px 6px 8px; font-size: 11.5px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.menu .pre { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-bottom: 10px; }
.menu .pre button, .menu .mg button { border: 1px solid var(--line); background: var(--card); border-radius: 8px; padding: 8px; cursor: pointer; font-size: 13px; }
.menu .pre button:hover, .menu .mg button:hover { border-color: var(--green); }
.menu .pre button.on, .menu .mg button.on { background: var(--green); border-color: var(--green); color: #fff; font-weight: 600; }
.menu .mg { display: grid; grid-template-columns: repeat(4, 1fr); gap: 5px; }
.menu .mg button:disabled { opacity: .35; cursor: default; }
/* zgjedhja e periudhës me rreshtin e viteve: brenda ekranit edhe në laptop të ulët dhe në telefon */
.menu { max-width: calc(100vw - 32px); max-height: calc(100vh - 80px); overflow: auto; overscroll-behavior: contain; }
.menu .pre button:last-child:nth-child(odd) { grid-column: 1 / -1; }
.menu button:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; }
@media (max-width: 640px) { .menu { position: fixed; left: 16px; right: 16px; top: 72px; width: auto; } }
.search { position: relative; }
.search svg { position: absolute; left: 12px; top: 13px; width: 17px; height: 17px; color: var(--muted); }
.search input { width: 220px; height: 42px; border: 1px solid var(--line); background: var(--card); border-radius: 10px; padding: 0 12px 0 36px; outline: none; box-shadow: var(--shadow); }
.search input:focus { border-color: var(--green); }
.hits { position: absolute; z-index: 60; top: 48px; right: 0; width: min(440px, 92vw); background: var(--card); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 12px 32px rgba(16,24,40,.16); overflow: hidden; }
.hits div { padding: 9px 12px; cursor: pointer; display: grid; grid-template-columns: 80px 1fr auto; gap: 10px; align-items: baseline; }
.hits div:hover, .hits div.on { background: var(--surface2); }
.hits small { color: var(--muted); font-size: 10.5px; text-transform: uppercase; letter-spacing: .06em; font-weight: 600; }
.hits em { font-style: normal; color: var(--muted); font-size: 12px; }
.sq { width: 42px; height: 42px; border: 1px solid var(--line); background: var(--card); border-radius: 10px; cursor: pointer; display: grid; place-items: center; box-shadow: var(--shadow); }
.sq svg { width: 17px; height: 17px; color: var(--ink2); }
.user { position: relative; }
.user .av { width: 42px; height: 42px; border-radius: 50%; background: var(--red); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: 14px; cursor: pointer; border: 3px solid var(--card); box-shadow: 0 0 0 1px var(--line); position: relative; }
.user .av::after { content: ""; position: absolute; right: -2px; bottom: -2px; width: 11px; height: 11px; border-radius: 50%; background: var(--green); border: 2px solid var(--card); }
.user-menu { position: absolute; right: 0; top: 50px; z-index: 60; background: var(--card); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 12px 32px rgba(16,24,40,.16); padding: 12px; width: 250px; display: flex; flex-direction: column; gap: 8px; }
.user-menu small { color: var(--muted); }
.user-menu button { height: 36px; border: 1px solid var(--line); background: var(--card); border-radius: 8px; cursor: pointer; text-align: left; padding: 0 10px; }
.user-menu button:hover { background: var(--surface2); }
.tema-zgj { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; padding: 3px; background: var(--surface2); border: 1px solid var(--line); border-radius: 9px; }
.user-menu .tema-zgj button { height: auto; min-height: 30px; line-height: 1.2; padding-block: 4px !important; border: 0; background: transparent; border-radius: 7px; text-align: center; padding: 0 4px; font-size: 12px; color: var(--ink2); }
.user-menu .tema-zgj button.on { background: var(--card); color: var(--ink); font-weight: 600; box-shadow: 0 0 0 1px var(--line); }
.user-menu .tema-zgj button:not(.on):hover { color: var(--ink); background: var(--card); }

.chips { display: flex; gap: 6px; flex-wrap: wrap; padding: 6px max(24px, env(safe-area-inset-right, 0px)) 0 max(24px, env(safe-area-inset-left, 0px)); }
.chip { display: inline-flex; align-items: center; gap: 6px; background: var(--green-soft); color: var(--green); border: 1px solid color-mix(in srgb, var(--green) 30%, transparent); border-radius: 18px; padding: 4px 6px 4px 12px; font-size: 13px; font-weight: 500; cursor: pointer; }
.chip b { font-weight: 700; }
.chip button { border: 0; background: transparent; width: 20px; height: 20px; border-radius: 50%; cursor: pointer; color: inherit; font-size: 15px; line-height: 1; }
.chip button:hover { background: rgba(46,158,79,.15); }
.chip.clear { background: transparent; border-color: transparent; color: var(--ink2); text-decoration: underline; }

/* ---------- fleta ---------- */
#faqja { padding: 14px max(24px, env(safe-area-inset-right, 0px)) 8px max(24px, env(safe-area-inset-left, 0px)); flex: 1; }
.loading #faqja { opacity: .55; transition: opacity .2s; }
.grid { display: grid; gap: 16px; grid-template-columns: repeat(12, minmax(0, 1fr)); }
.grid + .grid { margin-top: 16px; }
.c12 { grid-column: span 12; } .c8 { grid-column: span 8; } .c6 { grid-column: span 6; } .c5 { grid-column: span 5; } .c4 { grid-column: span 4; } .c3 { grid-column: span 3; } .c2 { grid-column: span 2; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); padding: 14px 16px; min-width: 0; position: relative; }
.ch { display: flex; justify-content: space-between; align-items: center; gap: 10px; min-height: 30px; margin-bottom: 6px; }
.card h2 { margin: 0; font-size: 15.5px; font-weight: 600; letter-spacing: -.005em; }
.card .cap { margin: 0; color: var(--muted); font-size: 12.5px; }
.ctools { display: flex; gap: 6px; align-items: center; }
.dd { height: 32px; border: 1px solid var(--line); background: var(--card); border-radius: 8px; padding: 0 10px; font-size: 13px; font-weight: 500; cursor: pointer; }
.ic { width: 30px; height: 30px; border: 0; background: transparent; border-radius: 8px; cursor: pointer; color: var(--muted); display: grid; place-items: center; }
.ic:hover { background: var(--surface2); color: var(--ink); }
.ic svg { width: 15px; height: 15px; }
.card.full { position: fixed; inset: 24px; z-index: 80; overflow: auto; box-shadow: 0 20px 60px rgba(0,0,0,.3); }
.card.full .chart { height: calc(100vh - 140px) !important; }
.backdrop { position: fixed; inset: 0; background: rgba(15,34,54,.45); z-index: 79; }
.chart { width: 100%; height: 260px; }
.legend { display: flex; gap: 16px; font-size: 13px; color: var(--ink2); margin: 2px 0 0; flex-wrap: wrap; }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend i { width: 9px; height: 9px; transform: rotate(45deg); border-radius: 2px; display: inline-block; }

/* KPI */
.kpis { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 16px; }
.kpi { display: flex; gap: 14px; align-items: center; padding: 18px 16px; cursor: default; }
.kpi .icn { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; flex: none; color: #fff; }
.kpi .icn svg { width: 24px; height: 24px; }
/* ikona me ngjyrë të butë: rrethi merr 14 % të ngjyrës, shenja ngjyrën e plotë (punon edhe në pamjen e errët) */
.icn[style^="--c:"] { background: color-mix(in srgb, var(--c) 14%, var(--card)); color: var(--c); color: color-mix(in srgb, var(--c) 78%, var(--ink)); }
.kpi .l { font-size: 13px; color: var(--ink2); font-weight: 500; }
.kpi .v { font-size: clamp(18px, 1.4vw, 26px); font-weight: 700; letter-spacing: -.02em; line-height: 1.15; white-space: nowrap; margin: 2px 0 3px; }
.kpi .n { font-size: 12.5px; color: var(--muted); line-height: 1.35; }
.kpi .n span { white-space: nowrap; }
.kpi > div:last-child { min-width: 0; }
.kpi .v { overflow: hidden; text-overflow: ellipsis; }
.kpi .v > span { display: block; overflow: hidden; text-overflow: ellipsis; }
.card, .fcol { min-width: 0; }
.up { color: var(--green); font-weight: 600; } .down { color: var(--neg); font-weight: 600; } .flat { color: var(--ink2); font-weight: 600; }

/* lista me shirita (si "Revenue by Region") */
.bars { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.bars th { text-align: left; font-size: 12px; color: var(--ink2); font-weight: 600; padding: 4px 6px 8px; }
.bars th.r, .bars td.r { text-align: right; }
.bars td { padding: 7px 6px; border-top: 1px solid var(--line2); white-space: nowrap; }
.bars tr { cursor: pointer; }
.bars tbody tr:hover { background: var(--surface2); }
.bars td.nm { max-width: 220px; overflow: hidden; text-overflow: ellipsis; }
.bars .bw { width: 42%; }
.bars .b { height: 12px; background: var(--green); border-radius: 3px; display: block; }
.bars .go { width: 26px; text-align: right; color: var(--muted); }

/* unaza me legjendë */
.donut { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: 8px; }
.lg { display: flex; flex-direction: column; gap: 12px; font-size: 13.5px; }
.lg div { display: grid; grid-template-columns: 12px 1fr auto; gap: 9px; align-items: center; cursor: pointer; }
.lg i { width: 11px; height: 11px; border-radius: 50%; }
.lg b { font-weight: 600; }

/* tabela e treguesve */
.kt { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.kt th { font-size: 12px; color: var(--ink2); font-weight: 600; text-align: left; padding: 0 4px 8px; }
.kt th.c, .kt td.c { text-align: center; }
.kt td { padding: 5px 4px; }
.kt .sp { width: 110px; height: 26px; }
.st { width: 22px; height: 22px; border-radius: 50%; display: inline-grid; place-items: center; color: #fff; font-size: 13px; font-weight: 700; }
.st.up { background: var(--green); color: #fff; } .st.down { background: var(--neg); color: #fff; } .st.flat { background: var(--muted); color: #fff; }

/* përmbledhja me ikona */
.fin { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); text-align: center; margin-top: 6px; }
.fin > div { padding: 6px 4px; border-left: 1px solid var(--line2); }
.fin > div:first-child { border-left: 0; }
.fin .icn { width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; margin: 0 auto 8px; }
.fin .icn svg { width: 26px; height: 26px; }
.fin .l { font-size: 12.5px; color: var(--ink2); }
.fin .v { font-size: 19px; font-weight: 700; margin: 2px 0; white-space: nowrap; }
.fin .n { font-size: 11.5px; color: var(--muted); }

/* matësit */
.gauges { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); text-align: center; }
.gauges .t { font-size: 12.5px; color: var(--ink2); font-weight: 500; min-height: 34px; }
.gauges .chart { height: 150px; }

/* sinjalizimet */
.alerts { display: flex; flex-direction: column; }
.al { display: grid; grid-template-columns: 24px 1fr; gap: 10px; padding: 10px 2px; border-bottom: 1px solid var(--line2); font-size: 13.5px; cursor: pointer; align-items: start; }
.al:hover { background: var(--surface2); }
.al svg { width: 20px; height: 20px; margin-top: 1px; }
.al.rrezik svg { color: var(--neg); } .al.kujdes svg { color: var(--yellow); } .al.info svg { color: var(--blue); } .al.ok svg { color: var(--green); }
.link { color: var(--green); font-weight: 600; font-size: 13.5px; display: flex; justify-content: space-between; margin-top: 10px; cursor: pointer; }

/* tabelat e fletëve */
.tw { overflow: auto; max-height: calc(100vh - 240px); min-height: 300px; }
table.t { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.t th, .t td { padding: 8px 10px; text-align: right; white-space: nowrap; border-bottom: 1px solid var(--line2); }
.t th:first-child, .t td:first-child, .t th.l, .t td.l { text-align: left; }
.t thead th { position: sticky; top: 0; background: var(--card); color: var(--ink2); font-weight: 600; font-size: 12.5px; cursor: pointer; user-select: none; border-bottom: 1px solid var(--line); z-index: 2; }
.t thead tr.tot td { position: sticky; top: 37px; background: var(--surface2); font-weight: 700; z-index: 2; border-bottom: 1px solid var(--line); }
.t thead th[aria-sort="descending"]::after { content: " ▼"; font-size: 9px; color: var(--green); }
.t thead th[aria-sort="ascending"]::after { content: " ▲"; font-size: 9px; color: var(--green); }
.t tbody tr { cursor: pointer; }
.t tbody tr:hover { background: var(--surface2); }
.t tbody tr.sel td { background: var(--green-soft); }
.t td.nm { max-width: 340px; overflow: hidden; text-overflow: ellipsis; font-weight: 500; }
.t td .code { color: var(--muted); font-size: 12px; margin-right: 6px; }
.neg { color: var(--neg); }
.mbar { display: inline-block; width: 44px; height: 6px; background: var(--line2); border-radius: 3px; margin-left: 8px; vertical-align: 1px; overflow: hidden; }
.mbar b { display: block; height: 100%; background: var(--green); }
.tools { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.tools input { height: 34px; border: 1px solid var(--line); border-radius: 8px; padding: 0 10px; background: var(--card); outline: none; min-width: 200px; }
.btn { height: 34px; border: 1px solid var(--line); border-radius: 8px; padding: 0 12px; background: var(--card); cursor: pointer; font-size: 13px; font-weight: 500; color: var(--ink); }
.btn:hover { border-color: #c9d0d9; background: var(--surface2); }
.btn:disabled { opacity: .4; cursor: default; }

.foot { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; color: var(--muted); font-size: 12.5px; padding: 12px max(24px, env(safe-area-inset-right, 0px)) 18px max(24px, env(safe-area-inset-left, 0px)); }
.foot b { color: var(--ink); }
.empty { padding: 30px 10px; text-align: center; color: var(--muted); }

/* ---------- paneli i zgjedhjeve dhe kartela ---------- */
.drawer { position: fixed; inset: 0; z-index: 90; }
.drawer-bg { position: absolute; inset: 0; background: rgba(15,34,54,.45); animation: f .15s; }
.drawer-panel { position: absolute; right: 0; top: 0; bottom: 0; width: min(780px, 100%); background: var(--bg); overflow: auto; padding: 22px max(22px, env(safe-area-inset-right, 0px)) 40px 22px; box-shadow: -10px 0 40px rgba(0,0,0,.2); animation: s .2s ease-out; }
.drawer .x { border: 1px solid var(--line); background: var(--card); width: 36px; height: 36px; border-radius: 10px; font-size: 20px; cursor: pointer; }
.drawer-panel > .x { position: absolute; right: 16px; top: 14px; }
.drawer h2.dt { margin: 0 48px 2px 0; font-size: 22px; letter-spacing: -.015em; }
.drawer .kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 14px; }
.drawer .card { margin-top: 14px; }
.crumb { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; font-weight: 600; }
.crumb a { color: var(--green); cursor: pointer; }
.sub { color: var(--ink2); margin: 2px 0 0; }
.note { font-size: 12px; color: var(--muted); margin-top: 8px; }
.zp { width: min(920px, 100%); }
.zh { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; flex-wrap: wrap; margin-bottom: 14px; }
.zh h2 { margin: 0; font-size: 20px; }
.zh p { margin: 2px 0 0; color: var(--ink2); font-size: 13px; }
.zb { display: flex; gap: 6px; }
.lbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: 12px; align-items: start; }
.lb { background: var(--card); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.lb-h { display: flex; justify-content: space-between; align-items: center; padding: 9px 12px; font-weight: 600; border-bottom: 1px solid var(--line2); }
.lb-h button { border: 0; background: transparent; color: var(--green); cursor: pointer; font-size: 12.5px; font-weight: 600; }
.lb-s { padding: 6px 8px; border-bottom: 1px solid var(--line2); }
.lb-s input { width: 100%; height: 30px; border: 1px solid var(--line); border-radius: 6px; padding: 0 8px; background: var(--card); outline: none; }
.lb-v { max-height: 260px; overflow: auto; }
.lv { display: flex; justify-content: space-between; gap: 8px; padding: 6px 12px; cursor: pointer; border-bottom: 1px solid var(--line2); font-size: 13px; user-select: none; }
.lv span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lv em { font-style: normal; font-size: 12px; opacity: .7; flex: none; }
.lv.S { background: var(--s-sel); color: #fff; font-weight: 600; }
.lv.P { background: var(--s-pos); }
.lv.A { background: var(--s-alt); }
.lv.X { background: var(--s-exc); color: #fff; }
.lv.S::after { content: "✓"; margin-left: auto; font-weight: 700; }
.lv.S em { display: none; }
@keyframes f { from { opacity: 0 } }
@keyframes s { from { transform: translateX(40px); opacity: 0 } }

/* ---------- hyrja ---------- */
.gate { position: fixed; inset: 0; z-index: 100; background: var(--gate-bg); display: grid; place-items: center; padding: 24px max(16px, env(safe-area-inset-right, 0px)) 24px max(16px, env(safe-area-inset-left, 0px)); overflow: auto; background-image: var(--gate-dots); background-size: 14px 14px; }
.gate-card { width: min(410px, 100%); background: var(--card); border-radius: 16px; padding: 32px 28px 24px; box-shadow: var(--gate-shadow); display: flex; flex-direction: column; gap: 12px; }
.gate-card img { height: 60px; width: auto; align-self: flex-start; margin-bottom: 6px; }
.gate-card h1 { font-size: 22px; margin: 0; }
.gate-card .sub { margin: -6px 0 8px; }
.gate-card label { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 600; color: var(--ink2); }
.gate-card input, .form input, .form select { height: 44px; border: 1px solid var(--line); border-radius: 10px; padding: 0 12px; background: var(--card); outline: none; font-size: 15px; }
.gate-card input:focus, .form input:focus { border-color: var(--green); }
.gate-err { color: var(--neg); font-size: 13px; min-height: 18px; margin: 0; }
.primary { height: 46px; border: 0; border-radius: 10px; background: var(--green); color: #fff; font-weight: 600; font-size: 15px; cursor: pointer; padding: 0 16px; }
.primary:hover { filter: brightness(.95); }
.primary:disabled { opacity: .6; cursor: default; }
.gate-note { font-size: 12px; color: var(--muted); margin: 6px 0 0; line-height: 1.5; }

/* ---------- përdoruesit ---------- */
.badge { display: inline-block; padding: 2px 8px; border-radius: 10px; font-size: 12px; font-weight: 600; background: var(--surface2); color: var(--ink2); margin: 1px 2px 1px 0; }
.badge.red { background: var(--red-soft); color: var(--red); }
.badge.green { background: var(--green-soft); color: var(--green); }
.badge.off { color: var(--muted); }
.form { display: flex; flex-direction: column; gap: 14px; margin-top: 16px; }
.form label.f { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 600; color: var(--ink2); }
.form .checks { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); gap: 8px; }
.form .checks label { display: flex; gap: 9px; align-items: flex-start; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--card); font-size: 13.5px; cursor: pointer; font-weight: 500; }
.form .checks label small { display: block; color: var(--muted); font-weight: 400; font-size: 12px; }
.form .checks input { accent-color: var(--green); margin-top: 3px; }
.form .row { display: flex; gap: 10px; flex-wrap: wrap; }
.form .row > * { flex: 1 1 200px; }
.secret { display: flex; gap: 8px; align-items: center; background: var(--green-soft); border: 1px solid var(--green); border-radius: 10px; padding: 12px 14px; font-size: 13.5px; flex-wrap: wrap; }
.secret code { font-size: 17px; font-weight: 700; letter-spacing: .04em; background: var(--card); padding: 4px 10px; border-radius: 6px; user-select: all; }

/* ---------- ekranet më të vogla ---------- */
@media (max-width: 1500px) { .kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 1280px) { .c8, .c6, .c5, .c4, .c3 { grid-column: span 12; } }
@media (max-width: 980px) {
  .side { transform: translateX(-100%); transition: transform .22s ease-out; }
  .side.open { transform: none; }
  .side-bg.open { display: block; position: fixed; inset: 0; z-index: 49; background: rgba(15,34,54,.45); }
  .main { margin-left: 0; }
  .burger { display: grid; }
  .head { flex-wrap: wrap; padding-top: 12px; }
  .hacts { width: 100%; justify-content: flex-start; }
  .search { flex: 1; } .search input { width: 100%; }
  .ttl h1 { font-size: 20px; }
}
@media (max-width: 640px) {
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .kpi { flex-direction: column; align-items: flex-start; gap: 8px; padding: 14px; }
  .kpi .icn { width: 38px; height: 38px; } .kpi .icn svg { width: 19px; height: 19px; }
  .kpi .v { font-size: 21px; }
  .kpi .n { font-size: 11.5px; }
  .hacts { gap: 8px; }
  .head { gap: 10px; }
  .grid { gap: 10px; } .grid + .grid { margin-top: 10px; }
  .card { padding: 14px; }
  .donut { grid-template-columns: 1fr; }
  .fin { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 12px; }
  .fin > div:nth-child(3) { border-left: 0; }
  .pill { height: 38px; padding: 0 11px; font-size: 13px; }
  .sq { display: none; }
  .user .av { width: 38px; height: 38px; }
  .drawer .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .drawer-panel { padding: 18px 14px 40px; }
  .bars { table-layout: fixed; }
  .bars .bw { display: none; }
  .bars td, .bars th { padding-left: 4px; padding-right: 4px; }
  .bars td.nm { max-width: none; overflow: hidden; text-overflow: ellipsis; }
  .bars td.r { overflow: hidden; text-overflow: ellipsis; }   /* asnjë numër jashtë qelizës (mbulonte kolonën fqinje) */
  /* kolona e 5-të ngushtë mbetet vetëm për butonin; kur mban numra (stoku sipas depos, shpenzimet) zgjerohet */
  .bars:has(td.r:nth-child(5)) th:nth-child(5), .bars:has(td.r:nth-child(5)) td:nth-child(5) { width: 62px; }
  .bars th:nth-child(3), .bars td:nth-child(3) { width: 82px; }
  .bars th:nth-child(4), .bars td:nth-child(4) { width: 58px; }
  .bars th:nth-child(5), .bars td:nth-child(5) { width: 34px; }
}

/* kartat KPI pa ikonë (kartela) */
.kpi.dk { display: block; padding: 14px 16px; }
.kpi.dk .v { font-size: 22px; }
.kpi.dk .v.red { color: var(--green); }

/* ---------- Doni PL ---------- */
nav hr { border: 0; border-top: 1px solid var(--side-hr); margin: 8px 20px; }
.steps { display: flex; justify-content: center; gap: 0; margin: 0 0 6px; position: relative; flex-wrap: wrap; }
.steps button { border: 0; background: transparent; cursor: pointer; display: flex; flex-direction: column; align-items: center; gap: 6px; width: 150px; font-size: 13px; color: var(--ink2); position: relative; }
.steps button::before { content: ""; position: absolute; top: 21px; left: -50%; width: 100%; height: 3px; background: color-mix(in srgb, var(--green) 25%, var(--line)); z-index: 0; }
.steps button:first-child::before { display: none; }
.steps span { width: 44px; height: 44px; border-radius: 50%; border: 3px solid color-mix(in srgb, var(--green) 45%, var(--line)); background: var(--card); display: grid; place-items: center; color: var(--green); position: relative; z-index: 1; }
.steps span svg { width: 19px; height: 19px; }
.steps button.on { color: var(--green); font-weight: 600; }
.steps button.on span { background: var(--green); border-color: var(--green); color: #fff; box-shadow: 0 0 0 4px var(--green-soft); }
.plsub { text-align: center; color: var(--ink2); font-size: 13px; margin: 4px 0 14px; }
.fgrid { align-items: start; }
.fcol { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); overflow: hidden; min-width: 0; }
.fcol header { background: #5f6b7a; color: #fff; font-size: 17px; font-weight: 600; text-align: center; padding: 9px 14px; position: relative; }
.fcol header span { position: absolute; right: 14px; top: 11px; font-size: 13px; font-weight: 500; opacity: .85; }
.fb { padding: 12px 14px 14px; }
.fkp { display: grid; grid-template-columns: 1fr 1fr; text-align: center; gap: 8px; }
.fk .l { color: var(--ink2); font-size: 14px; }
.fk .v { font-size: 28px; font-weight: 600; letter-spacing: -.01em; margin: 2px 0; white-space: nowrap; }
.fk .d { font-size: 12.5px; color: var(--muted); }
.kom { font-style: italic; color: var(--ink2); font-size: 12.5px; line-height: 1.5; margin: 12px 0 6px; padding-right: 26px; position: relative; min-height: 38px; }
.kom i { position: absolute; right: 0; top: 2px; color: var(--muted); }
.kom i svg { width: 15px; height: 15px; }
.fb h3 { font-size: 14px; font-weight: 500; color: var(--ink); margin: 16px 0 6px; }
.vt { width: 100%; border-collapse: collapse; font-size: 12.5px; table-layout: fixed; }
.vt th { font-size: 11.5px; color: var(--ink2); font-weight: 600; text-align: right; padding: 6px 4px; border-bottom: 1px solid var(--line); }
.vt th.l, .vt td.l { text-align: left; }
.vt th.c { text-align: center; }
.vt th:nth-child(1) { width: 25%; } .vt th:nth-child(2), .vt th:nth-child(3) { width: 15.5%; }
.vt td.vb { overflow: visible; }
.vt td { padding: 5px 4px; text-align: right; border-bottom: 1px solid var(--line2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vt tr.b td { font-weight: 700; border-top: 1px solid var(--ink2); }
.vt td.vb { padding: 0 2px; }
.vt td.vb > div { position: relative; height: 22px; }
.vt .ax { position: absolute; left: 50%; top: 2px; bottom: 2px; width: 1px; background: var(--ink2); }
.vt .bar { position: absolute; top: 6px; height: 10px; }
.vt .bar.g { background: #5bb97a; } .vt .bar.b { background: #e8645a; }
.vt .pin { position: absolute; top: 10px; height: 2px; }
.vt .pin.g { background: #5bb97a; } .vt .pin.b { background: #e8645a; }
.vt .dot { position: absolute; top: 6px; width: 10px; height: 10px; border-radius: 50%; transform: translateX(-50%); }
.vt .dot.g { background: #2e9e4f; } .vt .dot.b { background: #d93838; }
.vt em { position: absolute; top: 4px; font-style: normal; font-size: 11px; white-space: nowrap; }
.vt em.g { color: #2e9e4f; } .vt em.b { color: #d93838; }
.t.mt td.muted { color: var(--muted); text-align: left; }
.t.mt tr.b td { font-weight: 700; background: var(--surface2); }
@media (max-width: 640px) { .vt th:nth-child(5), .vt td:nth-child(5) { display: none; } .vt th:nth-child(1) { width: 34%; } .vt th:nth-child(2), .vt th:nth-child(3) { width: 19%; } }
@media (max-width: 640px) { .steps { flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto; padding-bottom: 4px; } .steps button { width: 76px; flex: 0 0 76px; font-size: 11px; } .steps button::before { top: 17px; } .steps span { width: 36px; height: 36px; } .fk .v { font-size: 22px; } }

/* Pareto / ABC */
.tabs { display: inline-flex; background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 3px; margin-bottom: 14px; box-shadow: var(--shadow); flex-wrap: wrap; }
.tabs button { border: 0; background: transparent; padding: 7px 16px; border-radius: 8px; cursor: pointer; font-weight: 600; color: var(--ink2); }
.tabs button.on { background: var(--green); color: #fff; }
.kpis.k4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1100px) { .kpis.k4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.abc { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 6px; font-weight: 700; font-size: 12px; color: #fff; }
.abc.A { background: var(--green); } .abc.B { background: var(--blue); } .abc.C { background: #9aa4b1; }

.t td.nm { text-align: left; }
.badge.yellow { background: var(--yellow-soft); color: #9a6a00; }

/* zbritja në P&L */
.t.dr tr.sek td { background: #5f6b7a; color: #fff; font-weight: 600; }
.t.dr tr.grp td { font-weight: 600; }
.t.dr tr.grp:hover td, .t.dr tr.acc:hover td { background: var(--green-soft); }
.t.dr tr.acc td:first-child { padding-left: 40px; font-weight: 400; }
.t.dr .tw-ar { display: inline-block; width: 16px; color: var(--muted); }
.t.dr .ic-in svg { width: 12px; height: 12px; color: var(--muted); vertical-align: -1px; }
.pos { color: var(--green); }

/* plani */
.t.plt td { vertical-align: top; }
.t.plt tr.pl-in td { background: var(--surface2); }
.t.plt tr.pl-re td { border-bottom: 2px solid var(--line); }
.t.plt small { color: var(--muted); font-weight: 400; }
.t.plt input { width: 92px; height: 30px; border: 1px solid var(--line); border-radius: 6px; padding: 0 6px; text-align: right; background: var(--card); font-size: 12.5px; }
.t.plt input:focus { border-color: var(--green); outline: none; }
.fk .d2 { font-size: 12.5px; color: var(--muted); }

.c7 { grid-column: span 7; }
@media (max-width: 1280px) { .c7 { grid-column: span 12; } }

@media (max-width: 640px) { .kpi > div:last-child { width: 100%; } .kpi .v { white-space: normal; overflow-wrap: anywhere; } }

/* telefoni: asnjë element nuk e shtyn faqen anash (tabelat rrëshqasin brenda katrorit të vet) */
@media (max-width: 640px) { #faqja { overflow-x: clip; } }
/* Shitësit: në telefon listat e rritjes/rënies tregojnë emrin pa kodin (kodi i zë vendin emrit) */
@media (max-width: 640px) { .bars.kl.sh .code { display: none; } }
/* KPI: ikona më e vogël kur gjashtë katrorë ndajnë një rresht, që shuma të mos pritet */
@media (max-width: 1800px) { .kpis .kpi { gap: 10px; padding: 16px 12px; } .kpis .kpi .icn { width: 40px; height: 40px; } .kpis .kpi .icn svg { width: 20px; height: 20px; } }

/* ---------- versioni PHP: formularët e administrimit ---------- */
form.card label, #kcf label, #syf label { display: grid; gap: 6px; font-size: 13px; font-weight: 500; color: var(--ink2); }
form.card input:not([type=checkbox]), form.card select, #kcf input:not([type=checkbox]), #syf input:not([type=checkbox]):not([type=radio]), #syf select,
#qz, #qkn, #ipf select, #ipf input, #lf select, #lf input { height: 38px; border: 1px solid var(--line); border-radius: 8px; padding: 0 10px; background: var(--card); color: var(--ink); font: inherit; min-width: 0; }
form.card select[multiple] { height: auto; padding: 6px; }
form.card label:has(> input[type=checkbox]), #kcf label:has(> input[type=checkbox]), #syf label:has(> input[type=checkbox]) { display: flex; }
/* pa leje "Shikim i plotë": pa butonat e kartelave */
body.pa-shikim #faqja [data-go-i], body.pa-shikim #faqja .ic[title*="kartel" i] { display: none !important; }
/* telefoni: titulli i tabelës mbi butonat */
@media (max-width: 640px) { .card .ch { flex-wrap: wrap; } .card .ch .ctools { flex-wrap: wrap; width: 100%; } }
/* PDF: vetëm raporti, tabelat të plota */
@media print {
  /* letra është gjithmonë e bardhë: edhe kur përdoruesi ka zgjedhur pamjen e errët, shtypet me ngjyrat e çelura */
  :root[data-theme] { --bg: #ffffff; --card: #ffffff; --surface2: #f6f8fa; --line: #e7eaee; --line2: #eef1f4; --grid: #eceff3;
    --ink: #1d2733; --ink2: #5b6573; --muted: #8b95a3; --green-soft: #e7f5ec; --blue-soft: #e8effc; --purple-soft: #f1e9fb;
    --yellow-soft: #fdf4de; --teal-soft: #e2f4f5; --red-soft: #fdeaea; color-scheme: light; }
  #side, #side-bg, .head, #zgj, #drawer, .gate, .tools, .ctools, .user-menu, #foot-l, .steps button:not(.on) { display: none !important; }
  body { background: #fff !important; } .main, main, #main, #faqja { margin: 0 !important; padding: 0 !important; }
  .tw { max-height: none !important; overflow: visible !important; } .card { box-shadow: none !important; break-inside: avoid; border: 1px solid #ddd; }
  .grid { display: block !important; } .card { margin-bottom: 12px; }
}
/* matrica e qasjeve në telefon: emri i raportit ngjitur majtas, kokat e lejeve në dy rreshta */
@media (max-width: 640px) {
  table.qmat th { white-space: normal; font-size: 11px; line-height: 1.25; padding: 6px 4px; min-width: 46px; vertical-align: bottom; }
  table.qmat td { padding: 8px 4px; }
  table.qmat td.nm, table.qmat th:first-child { position: sticky; left: 0; z-index: 1; background: var(--card); max-width: 118px; min-width: 96px; white-space: normal; }
}
/* matrica e qasjeve: të gjitha rreshtat të dukshme (pa lëvizje të brendshme vertikale) */
.tw:has(> table.qmat) { max-height: none !important; }
/* gjerësi e mesme (me menynë anësore): titulli nuk ngjeshet; veprimet kalojnë poshtë kur s'ka vend */
.head { flex-wrap: wrap; }
.ttl { flex: 1 1 260px; }
.hacts { margin-left: auto; }
.card .ch { flex-wrap: nowrap; }
.card .ch > :first-child { flex: 1 1 0; min-width: 0; }
.card .ch > :last-child:not(:first-child) { margin-left: auto; }
.card .ch .ctools { flex-wrap: wrap; justify-content: flex-end; }
@media (max-width: 980px) { .ttl { flex: 1 1 0; } .card .ch { flex-wrap: wrap; } .card .ch > :first-child { flex-basis: 220px; } }
@media (max-width: 640px) { table.qmat th:first-child { z-index: 3; } }
.t.qmat tbody tr:hover td.nm { background: var(--surface2); }
.gate-lidhje { margin: 2px 0 0; text-align: center; font-size: 13px; } .gate-lidhje a { color: var(--ink2); }
/* përdoruesit: veprimet në krye të rreshtit */
.veprimet { display: flex; gap: 4px; flex-wrap: wrap; } .veprimet .btn { height: 28px; padding: 0 8px; font-size: 12px; }

/* format e Përdoruesve (siguria, SMTP) si format e tjera të administrimit */
#sgf label, #smf label { display: grid; gap: 6px; font-size: 13px; font-weight: 500; color: var(--ink2); }
#sgf input:not([type=checkbox]), #smf input:not([type=checkbox]), #smf select { height: 38px; border: 1px solid var(--line); border-radius: 8px; padding: 0 10px; background: var(--card); color: var(--ink); font: inherit; min-width: 0; }
@media (max-width: 420px) { .gate-card { padding: 24px 12px; } }
.gate-lidhje { margin: 0 !important; }

/* butonat e veprimeve te përdoruesit: pa u rreshtuar një nga një në telefon */
.veprimet { min-width: 300px; }

/* Pamja kompakte (24.11, propozimi 1): në kompjuter menyja është shirit me ikona dhe emrin poshtë; faqja fiton ~160 px.
   Në telefon/tablet të vogël (≤ 980 px) menyja mbetet e plotë dhe hapet me ☰. */
@media not all and (max-width: 980px) {
  .side { width: 92px; padding: 14px 0; padding-left: env(safe-area-inset-left, 0px); }
  .brand { padding: 0 0 14px; justify-content: center; }
  .brand > div { display: none; }
  nav a { flex-direction: column; gap: 5px; padding: 9px 4px; margin: 0 8px; font-size: 10.5px; line-height: 1.2; text-align: center;
          border-left: 0; border-radius: 10px; overflow-wrap: anywhere; }
  nav a.on { border-left: 0; }
  nav a svg { width: 21px; height: 21px; }
  nav a small { margin: 0; font-size: 9px; padding: 0 5px; }
  nav hr { margin: 6px 16px; }
  .side-foot { padding: 10px 0 4px; }
  .side-foot b, .side-foot small { display: none; }
  .side-foot .src { justify-content: center; font-size: 0; margin: 0; }
  .main { margin-left: 92px; }
}
@media (min-width: 1400px) {
  #faqja .kpis:not(.k4) { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; }
  #faqja .kpis:not(.k4):has(> .kpi:nth-child(5):last-child) { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  #faqja .kpis:not(.k4) .kpi { flex-direction: column; align-items: flex-start; gap: 8px; padding: 14px; }
  #faqja .kpis:not(.k4) .kpi .icn { width: 34px; height: 34px; }
  #faqja .kpis:not(.k4) .kpi .icn svg { width: 18px; height: 18px; }
}
nav a:focus-visible { outline: 2px solid var(--side-act-bar); outline-offset: -2px; }
.live.kujdes { background: var(--yellow); box-shadow: 0 0 0 3px rgba(242,179,42,.25); }
#faqja .grid { gap: 12px; }
#faqja .grid + .grid { margin-top: 12px; }
.bars.kan td, .bars.kan th { padding-left: 4px; padding-right: 4px; }
.bars.kan .spark { display: block; margin-left: auto; }
.bars.kan tr.tot td { font-weight: 600; border-top: 1px solid var(--line); cursor: default; }
.bars.kan tr.tot:hover { background: none; }
@media (max-width: 640px) { .bars.kan th:nth-child(3), .bars.kan td:nth-child(3), .bars.kan th:nth-child(6), .bars.kan td:nth-child(6) { display: none; } .bars.kan { font-size: 12.5px; } .bars.kan td, .bars.kan th { padding-left: 2px; padding-right: 2px; } .bars.kan th:nth-child(4), .bars.kan td:nth-child(4) { width: 64px; } .bars.kan th:nth-child(5), .bars.kan td:nth-child(5) { width: 52px; } }
.bars.kl td.nm { max-width: 190px; } .bars.kl .code { color: var(--muted); font-size: 11.5px; margin-right: 6px; }

/* Doni PL i thjeshtuar: vendimi me ngjyrë, "?" dhe udhëzuesi */
.pl-vendim { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border-radius: 10px; margin: 0 0 12px; font-size: 13px; line-height: 1.45; text-align: left; }
.pl-vendim i { width: 10px; height: 10px; border-radius: 50%; flex: none; margin-top: 4px; }
.pl-vendim.mire { background: var(--green-soft); } .pl-vendim.mire i { background: var(--green); }
.pl-vendim.kujdes { background: var(--yellow-soft); } .pl-vendim.kujdes i { background: var(--yellow); }
.pl-vendim.keq { background: var(--red-soft); } .pl-vendim.keq i { background: var(--neg); }
.ndihme { display: inline-grid; place-items: center; width: 16px; height: 16px; border-radius: 50%; background: var(--surface2); border: 1px solid var(--line); color: var(--ink2); font-size: 10.5px; font-weight: 700; cursor: help; vertical-align: 1px; margin-left: 4px; font-style: normal; }
.fk .d small { color: var(--muted); }
.pl-udh { margin-top: 12px; padding: 12px 16px; }
.pl-udh summary { cursor: pointer; font-weight: 600; }
.pl-udh-b { font-size: 13px; color: var(--ink2); line-height: 1.5; }
.pl-udh dl { display: grid; grid-template-columns: max-content 1fr; gap: 6px 14px; margin: 10px 0 0; }
.pl-udh dt { font-weight: 600; color: var(--ink); } .pl-udh dd { margin: 0; }
@media (max-width: 640px) { .pl-udh dl { grid-template-columns: 1fr; } .pl-udh dd { margin-bottom: 6px; } }
/* Plani: kolona e emrave mbetet e dukshme kur tabela lëviz anash */
.plt th.l, .plt td.l { position: sticky; left: 0; background: var(--card); z-index: 2; box-shadow: 1px 0 0 var(--line); min-width: 150px; }
.plt thead th.l { z-index: 4; }
.t.plt tbody tr:hover td.l { background: var(--surface2); }
.pl-vendim, .pl-vendim i { print-color-adjust: exact; -webkit-print-color-adjust: exact; }

/* rreshti i viteve pranë periudhës: 2024 · 2025 · 2026 (një klik = gjithë viti, edhe me ndërrim baze) */
.vitet-sh { display: inline-flex; height: 42px; border: 1px solid var(--line); border-radius: 10px; background: var(--card); overflow: hidden; }
.vitet-sh button { border: 0; background: none; padding: 0 12px; font: inherit; font-weight: 600; font-size: 13.5px; color: var(--ink2); cursor: pointer; }
.vitet-sh button + button { border-left: 1px solid var(--line); }
.vitet-sh button:hover { color: var(--green); }
.vitet-sh button.on { background: var(--green); color: #fff; }
.vitet-sh button:focus-visible { outline: 2px solid var(--green); outline-offset: -2px; }
@media (max-width: 640px) {
  .vitet-sh { height: 38px; }
  .vitet-sh button { padding: 0 11px; font-size: 13px; }
  /* iPhone: pa zmadhim kur preket zgjedhja e bazës (nën 16 px Safari zmadhon faqen) */
  select.pill { font-size: 16px; max-width: 100% !important; min-width: 0; }
  /* menyja e periudhës si panel nga poshtë: gjithmonë e plotë mbi shiritin e Safarit */
  .menu { top: auto; bottom: calc(12px + env(safe-area-inset-bottom)); max-height: calc(100vh - 140px); max-height: calc(100dvh - 140px); }
}
