/* Mikpritja PMS – stilet (temë e çelët / e errët, responsive) */
:root {
  --bg: #f4f6fa; --surface: #fff; --surface-2: #f8fafc; --surface-3: #eef1f7; --border: #e3e8ef; --border-strong: #cfd6e2;
  --text: #1b2333; --muted: #6a7487; --primary: #1f5eff; --primary-600: #1648cc; --primary-50: #eef3ff; --primary-100: #d6e2ff;
  --sidebar: #0e1a36; --sidebar-2: #16254a; --sidebar-text: #b9c3d9;
  --green: #12a150; --green-50: #e8f7ee; --red: #d93a3a; --red-50: #fdecec; --orange: #e08a00; --orange-50: #fff4e0; --orange-text: #9a5c00;
  --blue: #1f5eff; --blue-50: #eaf0ff; --gray-50: #f0f2f5; --gray-text: #4a5468; --violet: #7c4ddb; --violet-50: #f1ecfd;
  --cal-we: #fafbfd; --cal-today: #f3f6ff; --cal-unassigned: #fffaf0; --ooo-a: #f6f7f9; --ooo-b: #eceef2;
  --shadow: 0 1px 2px rgba(16,24,40,.05), 0 1px 3px rgba(16,24,40,.06); --shadow-lg: 0 8px 24px rgba(16,24,40,.12);
  --radius: 10px; --sb-w: 228px; --font: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  color-scheme: light;
}
:root[data-theme="dark"] {
  --bg: #0b1220; --surface: #131c2e; --surface-2: #18233a; --surface-3: #1d2944; --border: #25314b; --border-strong: #34425f;
  --text: #e6ebf5; --muted: #95a1b8; --primary: #4d7dff; --primary-600: #3a6bf0; --primary-50: rgba(77,125,255,.14); --primary-100: rgba(77,125,255,.3);
  --sidebar: #080e1b; --sidebar-2: #131d33; --sidebar-text: #9fabc4;
  --green: #34c27a; --green-50: rgba(52,194,122,.14); --red: #f26464; --red-50: rgba(242,100,100,.14); --orange: #f2a640; --orange-50: rgba(242,166,64,.14); --orange-text: #f2b660;
  --blue: #6d93ff; --blue-50: rgba(109,147,255,.15); --gray-50: #1f2a42; --gray-text: #b4bfd4; --violet: #a78bfa; --violet-50: rgba(167,139,250,.15);
  --cal-we: #161f33; --cal-today: #1a2647; --cal-unassigned: #2a2416; --ooo-a: #1a2235; --ooo-b: #212b42;
  --shadow: 0 1px 2px rgba(0,0,0,.3); --shadow-lg: 0 10px 30px rgba(0,0,0,.45);
  color-scheme: dark;
}
@media (prefers-color-scheme: dark) {
  :root[data-theme="auto"] {
    --bg: #0b1220; --surface: #131c2e; --surface-2: #18233a; --surface-3: #1d2944; --border: #25314b; --border-strong: #34425f;
    --text: #e6ebf5; --muted: #95a1b8; --primary: #4d7dff; --primary-600: #3a6bf0; --primary-50: rgba(77,125,255,.14); --primary-100: rgba(77,125,255,.3);
    --sidebar: #080e1b; --sidebar-2: #131d33; --sidebar-text: #9fabc4;
    --green: #34c27a; --green-50: rgba(52,194,122,.14); --red: #f26464; --red-50: rgba(242,100,100,.14); --orange: #f2a640; --orange-50: rgba(242,166,64,.14); --orange-text: #f2b660;
    --blue: #6d93ff; --blue-50: rgba(109,147,255,.15); --gray-50: #1f2a42; --gray-text: #b4bfd4; --violet: #a78bfa; --violet-50: rgba(167,139,250,.15);
    --cal-we: #161f33; --cal-today: #1a2647; --cal-unassigned: #2a2416; --ooo-a: #1a2235; --ooo-b: #212b42;
    --shadow: 0 1px 2px rgba(0,0,0,.3); --shadow-lg: 0 10px 30px rgba(0,0,0,.45);
    color-scheme: dark;
  }
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; }
body { font: 14px/1.45 var(--font); color: var(--text); background: var(--bg); -webkit-font-smoothing: antialiased; }
a { color: var(--primary); text-decoration: none; }
h1 { font-size: 22px; font-weight: 700; margin: 0 0 2px; letter-spacing: -.01em; }
h2 { font-size: 15px; font-weight: 600; margin: 0; }
h3.sub { font-size: 12.5px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); margin: 20px 0 8px; }
p { margin: 0 0 8px; }
code, .mono { font-family: ui-monospace, 'SF Mono', Menlo, monospace; font-size: 12.5px; }
.muted { color: var(--muted); } .small { font-size: 12.5px; } .nowrap { white-space: nowrap; }
.text-danger { color: var(--red); } .text-ok { color: var(--green); } .text-warn { color: var(--orange); font-weight: 500; }
.ic { flex: none; }

/* ---------- Layout ---------- */
.app { display: flex; min-height: 100vh; }
body.sb-right .app { flex-direction: row-reverse; }
.sidebar { width: var(--sb-w); background: var(--sidebar); color: var(--sidebar-text); display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh; flex: none; z-index: 40; transition: width .18s; }
.brand { display: flex; align-items: center; gap: 10px; padding: 18px 18px 14px; color: #fff; font-weight: 700; font-size: 17px; white-space: nowrap; }
.logo-mark { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 8px; background: linear-gradient(135deg, #3b82ff, #1f5eff 60%, #6a3df0); color: #fff; font-weight: 800; font-size: 16px; flex: none; }
.sidebar nav { padding: 6px 10px; display: flex; flex-direction: column; gap: 2px; flex: 1; overflow-y: auto; }
.nav-item { display: flex; align-items: center; gap: 11px; padding: 9px 12px; border-radius: 8px; color: var(--sidebar-text); font-weight: 500; position: relative; white-space: nowrap; }
.nav-item:hover { background: var(--sidebar-2); color: #fff; }
.nav-item.active { background: var(--primary); color: #fff; }
.nav-count { margin-left: auto; font-style: normal; background: #ff6b4a; color: #fff; font-size: 11px; font-weight: 700; padding: 1px 7px; border-radius: 10px; }
.nav-count.warn { background: #e08a00; }
.sidebar-foot { padding: 14px 18px; border-top: 1px solid rgba(255,255,255,.08); }
.hotel-name { color: #fff; font-weight: 600; }
.sb-muted { color: #7f8aa6; }
body.sb-mini { --sb-w: 68px; }
body.sb-mini .nav-text { display: none; }
body.sb-mini .brand { justify-content: center; padding: 18px 0 14px; }
body.sb-mini .nav-item { justify-content: center; padding: 10px; }
body.sb-mini .nav-count { position: absolute; top: 2px; right: 4px; padding: 0 5px; font-size: 10px; }
.main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.topbar { height: 60px; background: var(--surface); border-bottom: 1px solid var(--border); display: flex; align-items: center; gap: 12px; padding: 0 20px; position: sticky; top: 0; z-index: 30; }
.top-search { flex: 1; max-width: 460px; display: flex; align-items: center; gap: 8px; background: var(--surface-2); border: 1px solid var(--border); border-radius: 8px; padding: 0 12px; color: var(--muted); min-width: 0; }
.top-search input { border: 0; background: transparent; padding: 9px 0; flex: 1; outline: none; font: inherit; color: var(--text); min-width: 0; box-shadow: none !important; }
.top-right { margin-left: auto; display: flex; align-items: center; gap: 6px; }
.today-chip { color: var(--muted); font-weight: 500; font-size: 13px; padding-right: 6px; white-space: nowrap; }
.lang-btn { font-weight: 700; font-size: 12px; }
.fx-chip { display: inline-flex; align-items: center; gap: 5px; padding: 5px 10px; border-radius: 20px; background: var(--green-50); color: var(--green); font-weight: 600; font-size: 12.5px; white-space: nowrap; }
.fx-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; margin-bottom: 18px; }
.fx-card b { font-size: 19px; }
.fx-conv .fx-row { display: flex; gap: 8px; margin: 6px 0 2px; }
.fx-conv input { flex: 1; } .fx-conv select { width: 90px; }
.content { padding: 24px; max-width: 1480px; width: 100%; }
.only-mobile { display: none !important; }
.sidebar-scrim { display: none; }

/* ---------- Elementë ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; padding: 8px 14px; border-radius: 8px; border: 1px solid var(--border-strong); background: var(--surface); color: var(--text); font: 500 13.5px var(--font); cursor: pointer; white-space: nowrap; transition: background .12s, border-color .12s; }
.btn:hover { background: var(--surface-2); }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn-primary { background: var(--primary); border-color: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-600); }
.btn-success { background: var(--green); border-color: var(--green); color: #fff; }
.btn-success:hover { filter: brightness(.93); background: var(--green); }
.btn-dark { background: var(--text); border-color: var(--text); color: var(--surface); }
.btn-dark:hover { background: var(--text); opacity: .9; }
.btn-warn { background: var(--orange); border-color: var(--orange); color: #fff; }
.btn-ghost { border-color: transparent; background: transparent; }
.btn-sm { padding: 5px 10px; font-size: 12.5px; }
.btn-block { width: 100%; margin-top: 8px; }
.icon-btn { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 8px; color: var(--muted); border: 1px solid transparent; background: transparent; cursor: pointer; font: inherit; flex: none; }
.icon-btn:hover { background: var(--gray-50); color: var(--text); }
.link-btn { background: none; border: 0; color: var(--primary); cursor: pointer; font: inherit; padding: 2px; }
.badge { display: inline-block; padding: 2px 8px; border-radius: 20px; font-size: 11.5px; font-weight: 600; background: var(--gray-50); color: var(--gray-text); white-space: nowrap; vertical-align: middle; }
.badge-blue { background: var(--blue-50); color: var(--blue); } .badge-green { background: var(--green-50); color: var(--green); }
.badge-red { background: var(--red-50); color: var(--red); } .badge-orange { background: var(--orange-50); color: var(--orange-text); }
.badge-gray { background: var(--gray-50); color: var(--gray-text); } .badge-violet { background: var(--violet-50); color: var(--violet); }
.src { display: inline-block; font-size: 11.5px; font-weight: 600; padding: 2px 8px; border-radius: 5px; background: var(--gray-50); color: var(--gray-text); white-space: nowrap; }
.src-booking { background: #e6eefb; color: #003580; } .src-expedia { background: #fff6d6; color: #8a6400; } .src-airbnb { background: #ffe9ec; color: #d8304d; }
.src-direct, .src-website { background: var(--green-50); color: var(--green); }
[data-theme="dark"] .src-booking { background: rgba(80,130,230,.18); color: #8fb3ff; } [data-theme="dark"] .src-expedia { background: rgba(245,184,0,.15); color: #f5cd55; } [data-theme="dark"] .src-airbnb { background: rgba(255,90,95,.15); color: #ff8a8f; }
.alert { padding: 11px 14px; border-radius: 8px; margin-bottom: 14px; border: 1px solid; font-weight: 500; }
.alert-success { background: var(--green-50); border-color: transparent; color: var(--green); }
.alert-error { background: var(--red-50); border-color: transparent; color: var(--red); }
.alert-warning { background: var(--orange-50); border-color: transparent; color: var(--orange-text); }
.alert-info { background: var(--blue-50); border-color: transparent; color: var(--blue); }

/* ---------- Forma ---------- */
label { display: flex; flex-direction: column; gap: 5px; font-size: 12.5px; font-weight: 500; color: var(--gray-text); margin-bottom: 12px; }
input, select, textarea { font: 14px var(--font); color: var(--text); padding: 8px 10px; border: 1px solid var(--border-strong); border-radius: 8px; background: var(--surface); width: 100%; outline: none; }
input:focus, select:focus, textarea:focus { border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-50); }
input[readonly], select:disabled, textarea[readonly] { background: var(--surface-2); color: var(--muted); }
input[type=color] { padding: 2px; height: 37px; }
input[type=checkbox], input[type=radio] { width: auto; accent-color: var(--primary); }
label.check { flex-direction: row; align-items: center; gap: 8px; font-weight: 500; color: var(--text); font-size: 13.5px; }
label.inline { flex-direction: row; align-items: center; margin: 0; gap: 6px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.span-all { grid-column: 1 / -1; }
.form-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; }
.form-actions { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 4px; flex-wrap: wrap; }
.lbl { display: block; font-size: 12.5px; font-weight: 500; color: var(--gray-text); margin-bottom: 6px; }
.check-row { display: flex; flex-wrap: wrap; gap: 4px 14px; margin-bottom: 12px; }
.check-row label { margin: 0; }
.inline-form { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.inline-form input { width: auto; flex: 1; min-width: 120px; }
.seg-radio { display: flex; gap: 8px; margin-bottom: 12px; flex-wrap: wrap; }
.seg-radio label { flex: 1; min-width: 140px; flex-direction: row; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid var(--border-strong); border-radius: 8px; cursor: pointer; margin: 0; color: var(--text); font-size: 13.5px; }
.seg-radio label:has(input:checked) { border-color: var(--primary); background: var(--primary-50); }

/* ---------- Karta & grid ---------- */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); padding: 18px; margin-bottom: 18px; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 14px; flex-wrap: wrap; }
.page-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 18px; flex-wrap: wrap; }
.head-actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.head-actions input { width: auto; }
.back { display: inline-flex; align-items: center; gap: 4px; font-size: 12.5px; color: var(--muted); margin-bottom: 4px; }
.grid-2 { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 18px; }
.grid-3 { display: grid; grid-template-columns: minmax(0,2fr) minmax(0,1fr); gap: 18px; }
.grid-main { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 18px; align-items: start; }
.narrow { max-width: 760px; }
.sticky { position: sticky; top: 78px; }
.divider { height: 1px; background: var(--border); margin: 16px 0; }
.empty { color: var(--muted); text-align: center; padding: 18px; }
.kv { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 6px 0; }
.kv.total { border-top: 1px solid var(--border); margin-top: 6px; padding-top: 10px; font-size: 15px; }
.note { background: var(--orange-50); color: var(--text); border-radius: 8px; padding: 8px 10px; font-size: 13px; margin-top: 8px; }
.meta { margin-top: 10px; }
.callout { display: flex; gap: 12px; align-items: center; justify-content: space-between; flex-wrap: wrap; padding: 12px 16px; border-radius: 10px; margin-bottom: 18px; background: var(--orange-50); color: var(--orange-text); font-weight: 500; }
.callout.info { background: var(--blue-50); color: var(--blue); }

/* ---------- KPI ---------- */
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 14px; margin-bottom: 18px; }
.kpi { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 14px 16px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.kpi-label { color: var(--muted); font-size: 12.5px; font-weight: 500; }
.kpi b { font-size: 24px; font-weight: 700; letter-spacing: -.02em; }
.kpi small { color: var(--muted); font-size: 12px; }
.small-kpis .kpi b { font-size: 20px; }
a.kpi-link { color: var(--text); transition: border-color .12s; }
a.kpi-link:hover { border-color: var(--primary); }
.meter { height: 6px; background: var(--gray-50); border-radius: 4px; overflow: hidden; margin-top: 6px; }
.meter i { display: block; height: 100%; background: var(--primary); border-radius: 4px; }
.notice-row { display: flex; gap: 10px; margin-bottom: 18px; flex-wrap: wrap; }
.notice { padding: 9px 14px; background: var(--blue-50); color: var(--blue); border-radius: 8px; font-weight: 500; }
.notice-warn { background: var(--orange-50); color: var(--orange-text); }

/* ---------- Lista personash ---------- */
.people { list-style: none; margin: 0; padding: 0; }
.people li { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-top: 1px solid var(--border); flex-wrap: wrap; }
.people li:first-child { border-top: 0; }
.people .grow { flex: 1; min-width: 160px; color: var(--text); display: flex; flex-direction: column; }
.people small { color: var(--muted); }
.grow { flex: 1; min-width: 0; }
.avatar { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--primary-50); color: var(--primary); font-weight: 700; font-size: 13px; flex: none; }
.avatar.alt { background: var(--violet-50); color: var(--violet); }
.avatar.sm { width: 30px; height: 30px; font-size: 11px; }
.avatar.lg { width: 48px; height: 48px; font-size: 16px; }
.who { display: flex; align-items: center; gap: 9px; }

/* ---------- Grafikë ---------- */
.bars { display: flex; gap: 6px; align-items: flex-end; height: 190px; }
.bar-col { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 4px; height: 100%; min-width: 0; }
.bar-val { font-size: 11px; color: var(--muted); }
.bar-track { flex: 1; width: 100%; max-width: 34px; background: var(--gray-50); border-radius: 6px; display: flex; align-items: flex-end; overflow: hidden; }
.bar-track i { display: block; width: 100%; background: var(--primary); border-radius: 6px 6px 0 0; }
.bar-track i.hi { background: var(--green); }
.bar-lbl { font-size: 11px; color: var(--muted); text-align: center; line-height: 1.2; }
.bar-lbl.we { color: var(--text); font-weight: 600; }
.hbar { display: grid; grid-template-columns: 110px 1fr 80px; align-items: center; gap: 10px; padding: 5px 0; font-size: 13px; }
.hbar b { text-align: right; font-weight: 600; }
.hbar-track { height: 8px; background: var(--gray-50); border-radius: 5px; overflow: hidden; }
.hbar-track i { display: block; height: 100%; background: var(--primary); border-radius: 5px; }
.src-bg-booking { background: #2a5bd7 !important; } .src-bg-expedia { background: #f5b800 !important; } .src-bg-airbnb { background: #ff5a5f !important; }
.src-bg-direct, .src-bg-website { background: var(--green) !important; } .src-bg-phone, .src-bg-email, .src-bg-walk_in { background: var(--violet) !important; }
.stack-bars { display: flex; gap: 3px; height: 200px; align-items: stretch; overflow-x: auto; }
.sb-col { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 4px; min-width: 8px; }
.sb-col span { font-size: 10.5px; color: var(--muted); }
.sb-track { flex: 1; width: 100%; display: flex; flex-direction: column-reverse; background: var(--surface-2); border-radius: 4px; overflow: hidden; }
.sb-track i { display: block; width: 100%; }
.sb-room, .lg-room { background: var(--primary); } .sb-pos, .lg-pos { background: #f59e0b; } .sb-svc, .lg-svc { background: #8b5cf6; }
.legend-inline { display: flex; gap: 12px; align-items: center; font-size: 12px; color: var(--muted); flex-wrap: wrap; }
.legend-inline i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: -6px; }

/* ---------- Tabela ---------- */
.table-wrap { padding: 0; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 0 -4px; padding: 0 4px; }
.table { width: 100%; border-collapse: collapse; }
.table th { text-align: left; font-size: 12px; font-weight: 600; color: var(--muted); padding: 10px 12px; border-bottom: 1px solid var(--border); background: var(--surface-2); white-space: nowrap; }
.table td { padding: 10px 12px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.card > .table th:first-child, .card > .table td:first-child, .table-scroll .table th:first-child, .table-scroll .table td:first-child { padding-left: 4px; }
.table-wrap .table th:first-child, .table-wrap .table td:first-child { padding-left: 18px; }
.table tfoot td { font-weight: 700; border-bottom: 0; }
.table .r { text-align: right; } .table .c { text-align: center; }
.table.hover tbody tr { cursor: pointer; }
.table.hover tbody tr:hover { background: var(--surface-2); }
.table tr.voided td { opacity: .45; text-decoration: line-through; }
.table tr.voided td:last-child { text-decoration: none; }
.table th.we { color: var(--text); }
.chips { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; align-items: center; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 20px; background: var(--surface); border: 1px solid var(--border); color: var(--text); font-size: 13px; font-weight: 500; white-space: nowrap; }
.chip.on { background: var(--text); border-color: var(--text); color: var(--surface); }
.chips-scroll { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 2px; }
.filters { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; padding: 12px; }
.filters input, .filters select { width: auto; min-width: 150px; }
.filters input[name=q] { flex: 1; min-width: 200px; }
.filters label { margin: 0; }
.pager { display: flex; gap: 4px; flex-wrap: wrap; }
.pager a { padding: 6px 11px; border-radius: 6px; background: var(--surface); border: 1px solid var(--border); color: var(--text); }
.pager a.on { background: var(--primary); color: #fff; border-color: var(--primary); }
.tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--border); margin-bottom: 18px; overflow-x: auto; }
.tabs a { padding: 10px 16px; color: var(--muted); font-weight: 500; border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.tabs a.on { color: var(--primary); border-bottom-color: var(--primary); }
.tabs em { font-style: normal; background: var(--gray-50); border-radius: 10px; padding: 0 7px; font-size: 11.5px; margin-left: 4px; }
.seg { display: inline-flex; background: var(--gray-50); border-radius: 8px; padding: 3px; overflow-x: auto; max-width: 100%; }
.seg a { padding: 5px 11px; border-radius: 6px; color: var(--muted); font-weight: 500; font-size: 13px; white-space: nowrap; }
.seg a.on { background: var(--surface); color: var(--text); box-shadow: var(--shadow); }

/* ---------- Kalendari ---------- */
.cal-head { align-items: center; }
.cal-tools { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.cal-tools input[type=date] { width: auto; padding: 6px 8px; }
.legend { display: flex; gap: 16px; flex-wrap: wrap; align-items: center; font-size: 12.5px; margin-bottom: 10px; }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.lg { display: inline-block; width: 22px; height: 10px; border-radius: 4px; }
.calendar { padding: 0; overflow: auto; user-select: none; position: relative; max-height: calc(100vh - 210px); -webkit-overflow-scrolling: touch; }
.cal-row { display: flex; min-width: max-content; }
.cal-label { width: 180px; flex: none; position: sticky; left: 0; z-index: 4; background: var(--surface); border-right: 1px solid var(--border); padding: 0 12px; display: flex; align-items: center; gap: 7px; font-size: 13px; border-bottom: 1px solid var(--border); }
.cal-cells { position: relative; display: grid; grid-template-columns: repeat(var(--days), var(--cw)); }
.cal-dates { position: sticky; top: 0; z-index: 6; }
.cal-dates .cal-label { font-weight: 600; color: var(--muted); font-size: 12px; background: var(--surface-2); z-index: 7; }
.cal-day { height: 54px; display: flex; flex-direction: column; align-items: center; justify-content: center; border-right: 1px solid var(--border); border-bottom: 1px solid var(--border); background: var(--surface-2); line-height: 1.15; }
.cal-day small { font-size: 10.5px; color: var(--muted); }
.cal-day b { font-size: 15px; }
.cal-day.is-we { background: var(--surface-3); }
.cal-day.is-today { background: var(--primary); color: #fff; }
.cal-day.is-today small { color: rgba(255,255,255,.8); }
.cal-type .cal-label { font-weight: 600; background: var(--surface-2); height: 34px; line-height: 1.15; overflow: hidden; }
.cal-avail { height: 34px; display: flex; flex-direction: column; align-items: center; justify-content: center; background: var(--surface-2); border-right: 1px solid var(--border); border-bottom: 1px solid var(--border); line-height: 1.1; }
.cal-avail b { font-size: 12.5px; color: var(--green); }
.cal-avail small { font-size: 10px; color: var(--muted); }
.cal-avail.none b { color: var(--red); }
.type-dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; flex: none; }
.cal-room .cal-label { height: 40px; }
.cal-room .cal-label small { margin-left: auto; }
.cal-room .cell { height: 40px; border-right: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.cal-room .cell.is-we { background: var(--cal-we); }
.cal-room .cell.is-today { background: var(--cal-today); }
.cal-room .cell:hover { background: var(--primary-50); }
.cal-room .cell.sel { background: var(--primary-100); }
.cal-room.ooo .cell { background: repeating-linear-gradient(-45deg, var(--ooo-a), var(--ooo-a) 6px, var(--ooo-b) 6px, var(--ooo-b) 12px); }
.cal-room.unassigned .cal-label { background: var(--cal-unassigned); }
.cal-room.drop-ok .cell { background: var(--green-50); }
.cal-room.drop-bad .cell { background: var(--red-50); }
.cal-readonly .bar { cursor: pointer; }
.hk-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; flex: none; }
.hk-clean { background: var(--green); } .hk-dirty { background: var(--red); } .hk-inspected { background: var(--blue); } .hk-out_of_order { background: #9aa3b2; }
.bar { position: absolute; top: 5px; height: 30px; border-radius: 6px; display: flex; align-items: center; gap: 6px; padding: 0 8px; color: #fff; font-size: 12px; font-weight: 600; overflow: hidden; white-space: nowrap; box-shadow: 0 1px 2px rgba(0,0,0,.12); cursor: grab; z-index: 2; transition: box-shadow .1s; touch-action: none; }
.bar:hover { box-shadow: 0 3px 8px rgba(0,0,0,.25); z-index: 3; }
.bar.dragging { opacity: .85; cursor: grabbing; z-index: 10; box-shadow: 0 8px 20px rgba(0,0,0,.25); }
.bar-name { overflow: hidden; text-overflow: ellipsis; }
.bar-src { width: 7px; height: 7px; border-radius: 50%; background: rgba(255,255,255,.85); flex: none; }
.src-dot-booking { background: #8fb3ff; box-shadow: 0 0 0 1.5px #fff; }
.src-dot-airbnb { background: #ff8a8f; box-shadow: 0 0 0 1.5px #fff; }
.src-dot-expedia { background: #ffd34d; box-shadow: 0 0 0 1.5px #fff; }
.src-dot-website { background: #6ee7a8; box-shadow: 0 0 0 1.5px #fff; }
.bar-resize { position: absolute; right: 0; top: 0; bottom: 0; width: 10px; cursor: ew-resize; }
.bar-resize::after { content: ''; position: absolute; right: 3px; top: 9px; bottom: 9px; width: 2px; border-radius: 2px; background: rgba(255,255,255,.6); }
.st-confirmed { background: #2f6bff; } .st-checked_in { background: #12a150; } .st-checked_out { background: #a3adbd; cursor: pointer; }
.st-pending { background: repeating-linear-gradient(-45deg, #e08a00, #e08a00 8px, #ec9a17 8px, #ec9a17 16px); }
[data-theme="dark"] .st-checked_out { background: #4b566d; }
.bar.clip-l { border-top-left-radius: 0; border-bottom-left-radius: 0; }
.bar.clip-r { border-top-right-radius: 0; border-bottom-right-radius: 0; }

/* Çmimet & allotment në kalendar */
.cal-avail { position: relative; }
.cal-avail.rate-edit { cursor: pointer; }
.cal-avail.rate-edit:hover { background: var(--primary-50); box-shadow: inset 0 0 0 1px var(--primary); }
.cal-avail.rate-edit:hover small { color: var(--primary); font-weight: 600; }
.cal-avail.closed small { text-decoration: line-through; color: var(--red); }
.cal-avail.saved { background: var(--green-50); }
.cal-avail .blk { font-style: normal; font-size: 9.5px; color: var(--orange-text); margin-left: 1px; }
.rate-inline { position: absolute; inset: 2px; width: calc(100% - 4px); padding: 2px; font-size: 12px; text-align: center; z-index: 5; }
.type-name { overflow: hidden; text-overflow: ellipsis; }
.type-rate-btn { margin-left: auto; border: 0; background: none; color: var(--muted); cursor: pointer; padding: 4px; border-radius: 6px; flex: none; }
.type-rate-btn:hover { background: var(--primary-50); color: var(--primary); }
.cal-allot .cal-label { height: 26px; font-size: 11.5px; color: var(--orange-text); background: var(--orange-50); gap: 5px; white-space: nowrap; overflow: hidden; }
.cal-allot .cal-label span { overflow: hidden; text-overflow: ellipsis; }
.al-cell { height: 26px; display: grid; place-items: center; font-size: 11px; font-weight: 600; border-right: 1px solid var(--border); border-bottom: 1px solid var(--border); color: var(--muted); }
.al-cell.on { background: var(--orange-50); color: var(--orange-text); }
.al-cell.rel { background: repeating-linear-gradient(-45deg, var(--ooo-a), var(--ooo-a) 5px, var(--ooo-b) 5px, var(--ooo-b) 10px); color: var(--muted); text-decoration: line-through; }
.lg-allot { background: var(--orange-50); border: 1px solid var(--orange); }
dialog.dlg { border: 1px solid var(--border); border-radius: 14px; padding: 22px; width: min(460px, 94vw); background: var(--surface); color: var(--text); box-shadow: var(--shadow-lg); }
dialog.dlg::backdrop { background: rgba(8,14,27,.45); }
dialog.dlg h2 { margin-bottom: 14px; }

/* ---------- Rezervimi ---------- */
.stay-strip { display: grid; grid-template-columns: 1fr auto 1fr 1fr 1fr 1fr; gap: 16px; align-items: center; }
.stay-strip > div { display: flex; flex-direction: column; min-width: 0; }
.stay-strip b { font-size: 16px; }
.stay-strip small { color: var(--muted); }
.stay-strip .arrow { color: var(--muted); font-size: 12px; font-weight: 600; padding: 4px 10px; background: var(--gray-50); border-radius: 20px; }
.guest-card { display: flex; gap: 12px; align-items: center; margin-bottom: 10px; }
.guest-card div { display: flex; flex-direction: column; }
.guest-picked { display: flex; align-items: center; gap: 12px; padding: 12px; background: var(--primary-50); border-radius: 8px; margin-bottom: 12px; }
.guest-picked div { display: flex; flex-direction: column; }
.search-box { position: relative; }
.dropdown { position: absolute; top: calc(100% + 4px); left: 0; right: 0; background: var(--surface); border: 1px solid var(--border); border-radius: 8px; box-shadow: var(--shadow-lg); z-index: 40; overflow: hidden; }
.dropdown button { display: flex; width: 100%; gap: 10px; align-items: center; text-align: left; padding: 9px 12px; background: none; border: 0; border-bottom: 1px solid var(--border); cursor: pointer; font: inherit; color: var(--text); }
.dropdown button:hover { background: var(--surface-2); }
.dropdown small { color: var(--muted); display: block; }
.quote { margin-bottom: 14px; }
.quote .kv { font-size: 13px; padding: 3px 0; }
.quote .total { font-size: 16px; }
.quote-warn { color: var(--orange-text); background: var(--orange-50); padding: 8px 10px; border-radius: 8px; font-size: 12.5px; margin-top: 8px; }
.menu { position: relative; }
.menu summary { list-style: none; cursor: pointer; }
.menu summary::-webkit-details-marker { display: none; }
.menu-pop { position: absolute; right: 0; top: calc(100% + 6px); background: var(--surface); border: 1px solid var(--border); border-radius: 10px; box-shadow: var(--shadow-lg); z-index: 50; min-width: 230px; padding: 4px; }
.menu-pop button, .menu-pop a { display: flex; align-items: center; gap: 9px; width: 100%; text-align: left; padding: 9px 12px; background: none; border: 0; border-radius: 6px; cursor: pointer; font: inherit; color: var(--red); }
.menu-pop button:hover, .menu-pop a:hover { background: var(--red-50); }
.menu-pop.neutral button, .menu-pop.neutral a { color: var(--text); }
.menu-pop.neutral button:hover, .menu-pop.neutral a:hover { background: var(--surface-2); }
.menu-pop.neutral a.danger { color: var(--red); }
.menu-head { padding: 10px 12px 8px; border-bottom: 1px solid var(--border); margin-bottom: 4px; display: flex; flex-direction: column; }
.menu-head small { color: var(--muted); }
body.sb-right .user-menu .menu-pop { right: 0; }
.user-menu summary.avatar { cursor: pointer; }
.ftype { display: inline-block; font-size: 11px; font-weight: 600; padding: 1px 7px; border-radius: 4px; margin-right: 6px; background: var(--gray-50); color: var(--gray-text); }
.ftype-room { background: var(--blue-50); color: var(--blue); } .ftype-pos { background: var(--orange-50); color: var(--orange-text); } .ftype-service { background: var(--violet-50); color: var(--violet); }
.km-tag { font-size: 10.5px; font-weight: 700; color: var(--orange-text); border: 1px solid var(--orange); border-radius: 4px; padding: 0 5px; margin-left: 4px; opacity: .85; }
.pos-lines { display: flex; flex-wrap: wrap; gap: 2px 14px; margin-top: 4px; font-size: 12px; color: var(--muted); }
.pos-lines i { font-style: normal; opacity: .8; }
.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li a { display: grid; grid-template-columns: 1fr auto; gap: 2px 8px; padding: 9px 0; border-top: 1px solid var(--border); color: var(--text); }
.timeline li:first-child a { border-top: 0; }
.timeline small { color: var(--muted); grid-column: 1; }
.timeline .badge { grid-row: 1 / 3; grid-column: 2; align-self: center; }
.inv-list { list-style: none; padding: 0; margin: 0; }
.inv-list li { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 8px 0; border-top: 1px solid var(--border); }
.inv-list li:first-child { border-top: 0; }

/* ---------- Dhomat, çmimet ---------- */
.type-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }
.type-card { border-top: 4px solid var(--tc); }
.edit-card { border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-50); }
.rate-grid table { min-width: 1100px; }
.rate-grid td { padding: 6px; text-align: center; }
.rate-grid td small { display: block; font-size: 10.5px; }
.rate-in { width: 64px; padding: 5px 4px; text-align: center; font-weight: 600; }
.rate-grid td.closed { background: var(--red-50); }
.mini-check { flex-direction: row; justify-content: center; align-items: center; gap: 3px; font-size: 10.5px; margin: 2px 0 0; color: var(--muted); }
.mini-check input { width: auto; margin: 0; }
.rate-grid .form-actions { padding: 12px 18px; }
.edit-inline { background: var(--surface-2); border-radius: 8px; padding: 14px; margin-bottom: 14px; }
.perm-table td, .perm-table th { text-align: center; }
.perm-table td:first-child, .perm-table th:first-child { text-align: left; }
.perm-table tr.grp td { background: var(--surface-2); font-weight: 700; font-size: 12px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }

/* ---------- Housekeeping ---------- */
.hk-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.hk-card { background: var(--surface); border: 1px solid var(--border); border-left: 5px solid var(--border); border-radius: var(--radius); padding: 14px; box-shadow: var(--shadow); }
.hk-card.hk-clean { border-left-color: var(--green); background: var(--surface); } .hk-card.hk-dirty { border-left-color: var(--red); background: var(--surface); }
.hk-card.hk-inspected { border-left-color: var(--blue); background: var(--surface); } .hk-card.hk-out_of_order { border-left-color: #9aa3b2; background: var(--surface-2); }
.hk-top { display: flex; justify-content: space-between; align-items: baseline; }
.hk-top b { font-size: 20px; }
.hk-occ { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; margin: 6px 0 10px; min-height: 22px; }
.hk-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 5px; }
.hk-btn { display: flex; align-items: center; gap: 6px; padding: 7px 8px; border: 1px solid var(--border); background: var(--surface); border-radius: 6px; font: 500 12px var(--font); cursor: pointer; color: var(--text); }
.hk-btn.on { border-color: var(--text); background: var(--text); color: var(--surface); }
.hk-btn:disabled { cursor: default; opacity: .6; }

/* ---------- Channel manager / integrime ---------- */
.status-pill { padding: 6px 14px; border-radius: 20px; font-weight: 600; font-size: 13px; }
.status-pill.live { background: var(--green-50); color: var(--green); }
.status-pill.demo { background: var(--orange-50); color: var(--orange-text); }
.flow { display: flex; align-items: center; justify-content: center; gap: 14px; flex-wrap: wrap; }
.flow-step { padding: 12px 18px; border: 1px solid var(--border); border-radius: 10px; text-align: center; background: var(--surface-2); min-width: 150px; }
.flow-step b { display: block; } .flow-step small { color: var(--muted); }
.flow-step.on { background: var(--primary); color: #fff; border-color: var(--primary); }
.flow-step.on small { color: rgba(255,255,255,.8); }
.flow-arrow { color: var(--muted); font-size: 20px; }
.action-row { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
.map-row { display: grid; grid-template-columns: 1fr 140px; align-items: center; gap: 10px; }
.log-table td { font-size: 13px; }
.code-block { font-family: ui-monospace, Menlo, monospace; font-size: 12.5px; background: var(--surface-2); border: 1px solid var(--border); border-radius: 6px; padding: 7px 10px; margin-bottom: 6px; word-break: break-all; }
.code-block .m { font-weight: 700; margin-right: 6px; } .m.get { color: var(--green); } .m.post { color: var(--primary); }
pre.code, textarea.code { background: #0e1a36; color: #d6e0f5; padding: 14px; border-radius: 8px; font: 12px/1.5 ui-monospace, Menlo, monospace; overflow-x: auto; border: 0; white-space: pre; }
.steps { padding-left: 20px; } .steps li { margin-bottom: 8px; }
.api-key { padding: 10px 0; border-bottom: 1px solid var(--border); }
.api-key input { font-family: ui-monospace, Menlo, monospace; font-size: 12px; }
.api-key.off { opacity: .5; }
.preview-frame { width: 100%; height: 640px; border: 1px solid var(--border); border-radius: 10px; background: #fff; }

/* ---------- Toast ---------- */
.toast { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); background: #1b2333; color: #fff; padding: 11px 18px; border-radius: 8px; font-weight: 500; z-index: 100; box-shadow: 0 8px 24px rgba(0,0,0,.25); max-width: 92vw; }
.toast.err { background: var(--red); }

/* ---------- Hyrja ---------- */
.auth-body { min-height: 100vh; display: grid; place-items: center; background: linear-gradient(135deg, #0e1a36 0%, #1a2f66 55%, #2a3f8f 100%); padding: 16px; }
.auth-split { display: grid; grid-template-columns: 1.1fr 1fr; max-width: 920px; width: 100%; background: var(--surface); border-radius: 16px; overflow: hidden; box-shadow: 0 30px 60px rgba(0,0,0,.3); }
.auth-hero { background: linear-gradient(160deg, #1f5eff, #4a2fd0); color: #fff; padding: 40px; display: flex; flex-direction: column; justify-content: center; }
.auth-hero h2 { font-size: 26px; line-height: 1.25; margin: 28px 0 18px; }
.auth-hero ul { padding-left: 18px; margin: 0; opacity: .92; } .auth-hero li { margin-bottom: 8px; }
.auth-card { padding: 36px 40px 40px; background: var(--surface); border-radius: 16px; max-width: 460px; width: 100%; }
.auth-split .auth-card { border-radius: 0; max-width: none; }
.auth-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; }
.lang-links { display: inline-flex; background: var(--gray-50); border-radius: 8px; padding: 3px; }
.lang-links a { padding: 3px 9px; border-radius: 6px; font-weight: 700; font-size: 12px; color: var(--muted); }
.lang-links a.on { background: var(--surface); color: var(--text); box-shadow: var(--shadow); }
.brand-lg { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 19px; }
.code-input { font: 700 28px/1 ui-monospace, Menlo, monospace; letter-spacing: 12px; text-align: center; padding: 14px; margin-bottom: 14px; }
.tfa-icon { width: 54px; height: 54px; border-radius: 14px; display: grid; place-items: center; background: var(--primary-50); color: var(--primary); margin-bottom: 12px; }
.auth-links { display: flex; justify-content: space-between; gap: 10px; margin-top: 16px; font-size: 13px; flex-wrap: wrap; }

/* ---------- Fatura ---------- */
.invoice-body { background: #e9edf3; padding: 24px; color: #1b2333; }
.inv-toolbar { max-width: 820px; margin: 0 auto 12px; display: flex; gap: 8px; flex-wrap: wrap; }
.invoice { max-width: 820px; margin: 0 auto; background: #fff; padding: 48px; border-radius: 8px; box-shadow: 0 1px 3px rgba(16,24,40,.08); --border: #e3e8ef; --muted: #6a7487; --surface-2: #f8fafc; --text: #1b2333; }
.inv-head { display: flex; justify-content: space-between; gap: 20px; border-bottom: 2px solid #1b2333; padding-bottom: 20px; margin-bottom: 20px; }
.inv-head p { color: #6a7487; font-size: 13px; margin-top: 8px; }
.inv-head h1 { font-size: 24px; letter-spacing: .06em; }
.inv-head .r { text-align: right; }
.inv-parties { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 20px; font-size: 13.5px; }
.inv-parties small { display: block; color: #6a7487; text-transform: uppercase; font-size: 11px; letter-spacing: .05em; margin-bottom: 4px; }
.inv-table th, .inv-table td { padding-left: 4px !important; color: #1b2333; }
.inv-table th { background: #f8fafc; }
.inv-totals { margin-left: auto; max-width: 360px; margin-top: 16px; margin-bottom: 20px; }
.inv-vat { margin-top: 16px; font-size: 12.5px; max-width: 460px; }
.inv-foot { text-align: center; color: #6a7487; border-top: 1px solid #e3e8ef; padding-top: 16px; margin-top: 28px; }
.inv-stamp { display: inline-block; border: 2px solid #12a150; color: #12a150; font-weight: 800; padding: 4px 12px; border-radius: 6px; transform: rotate(-4deg); letter-spacing: .08em; }
.inv-proforma { color: #e08a00; border-color: #e08a00; }
@media print {
  .inv-toolbar { display: none; }
  .invoice-body { background: #fff; padding: 0; }
  .invoice { box-shadow: none; padding: 0; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1180px) {
  .grid-main, .grid-3 { grid-template-columns: minmax(0,1fr); }
  .sticky { position: static; }
  .stay-strip { grid-template-columns: repeat(3, 1fr); }
  .stay-strip .arrow { display: none; }
}
@media (max-width: 900px) {
  .only-mobile { display: inline-grid !important; }
  .only-desktop { display: none !important; }
  body.sb-mini { --sb-w: 248px; }
  body.sb-mini .nav-text { display: initial; }
  body.sb-mini .nav-item { justify-content: flex-start; padding: 9px 12px; }
  body.sb-mini .brand { justify-content: flex-start; padding: 18px 18px 14px; }
  .sidebar { position: fixed; left: 0; top: 0; bottom: 0; width: 248px; transform: translateX(-100%); transition: transform .22s; }
  body.sb-right .sidebar { left: auto; right: 0; transform: translateX(100%); }
  .sidebar.open { transform: none !important; box-shadow: 0 0 40px rgba(0,0,0,.35); }
  .sidebar.open + .sidebar-scrim { display: block; position: fixed; inset: 0; background: rgba(8,14,27,.45); z-index: 35; }
  body.sb-right .topbar { flex-direction: row-reverse; }
  body.sb-right .top-right { margin-left: 0; margin-right: auto; }
  .topbar { padding: 0 10px; gap: 6px; }
  .today-chip, .fx-chip { display: none; }
  .btn-new span { display: none; }
  .btn-new { padding: 8px; }
  .content { padding: 16px 14px; }
  .grid-2, .inv-parties { grid-template-columns: minmax(0,1fr); }
  .auth-split { grid-template-columns: 1fr; }
  .auth-hero { display: none; }
  .auth-card { padding: 28px 22px; }
  .cal-label { width: 116px; padding: 0 8px; font-size: 12px; }
  .cal-type .cal-label { font-size: 11.5px; }
  .calendar { max-height: calc(100vh - 230px); }
  .kpis { grid-template-columns: 1fr 1fr; gap: 10px; }
  .kpi { padding: 12px; }
  .kpi b { font-size: 19px; }
  .page-head { align-items: flex-start; }
  .head-actions { width: 100%; }
  .filters { flex-direction: column; align-items: stretch; }
  .filters input, .filters select, .filters input[name=q] { width: 100%; min-width: 0; }
  .filters label.inline { justify-content: space-between; }
  .card { padding: 14px; }
  .table td, .table th { padding: 9px 8px; }
  .hk-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .hk-card { padding: 10px; }
  .hk-actions { grid-template-columns: 1fr; }
  .bars { gap: 3px; height: 160px; }
  .bar-val { display: none; }
  .hbar { grid-template-columns: 90px 1fr 70px; }
  .flow-arrow { transform: rotate(90deg); }
  .flow { flex-direction: column; }
  .map-row { grid-template-columns: 1fr 120px; }
  .invoice { padding: 22px; }
  .invoice-body { padding: 10px; }
  .inv-head { flex-direction: column; }
  .inv-head .r { text-align: left; }
}
@media (max-width: 560px) {
  .form-grid, .form-row-2 { grid-template-columns: minmax(0,1fr); }
  .top-search { display: none; }
  .stay-strip { grid-template-columns: 1fr 1fr; gap: 12px; }
  .hk-grid { grid-template-columns: 1fr; }
  h1 { font-size: 20px; }
  .people li form, .people li > .btn { margin-left: 48px; }
  .seg-radio label { min-width: 100%; }
}

/* ================= Kalendari – pamje në stilin Cloudbeds ================= */
.cb-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; padding: 10px 12px; margin-bottom: 10px; }
.cb-tb-left, .cb-tb-right { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.cb-nav { display: inline-flex; border: 1px solid var(--border-strong); border-radius: 8px; overflow: hidden; }
.cb-nav .icon-btn { border-radius: 0; width: 32px; height: 32px; }
.cb-nav .icon-btn + .icon-btn { border-left: 1px solid var(--border-strong); }
.cb-date { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--border-strong); border-radius: 8px; padding: 0 8px; color: var(--muted); background: var(--surface); }
.cb-date input { border: 0; padding: 6px 0; width: auto; box-shadow: none !important; background: transparent; }
.cb-select { width: auto; padding: 6px 30px 6px 10px; font-size: 13.5px; }
.cb-search { flex-direction: row; align-items: center; gap: 6px; margin: 0; border: 1px solid var(--border-strong); border-radius: 8px; padding: 0 8px; color: var(--muted); background: var(--surface); }
.cb-search input { border: 0; padding: 6px 0; width: 130px; box-shadow: none !important; background: transparent; }
.cb-assign { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: 13px; color: var(--blue); padding: 5px 10px; border-radius: 8px; background: var(--blue-50); }
.legend-pop { min-width: 300px; padding: 10px 12px; }
.lg-row { display: flex; align-items: center; gap: 10px; padding: 4px 0; font-size: 13px; }
.lg-row .lg { width: 28px; height: 12px; border-radius: 3px; flex: none; }
.lg-ooo { background: repeating-linear-gradient(-45deg, #e5534b, #e5534b 4px, #f08b85 4px, #f08b85 8px); }
.lg-agency { background: #a9d4f5; outline: 2px dashed #2f6bff; outline-offset: -2px; }
.ov { display: inline-grid; place-items: center; min-width: 18px; height: 16px; padding: 0 5px; border-radius: 9px; font-size: 10px; font-weight: 700; line-height: 1; }
.ov-blue { background: #2f80ed; color: #fff; }
.ov-gray { background: #c5ccd8; color: #2a3446; }
[data-theme="dark"] .ov-gray { background: #3b4762; color: #dde4f2; }

.calendar.cb { max-height: calc(100vh - 160px); }
.cb .cal-label { width: 200px; }
.cb-head { position: sticky; top: 0; z-index: 8; }
.cb .cal-dates { position: static; }
.cb-months .cal-label, .cb-corner { height: 26px; background: var(--surface-2); font-weight: 700; color: var(--text); font-size: 12px; text-transform: uppercase; letter-spacing: .04em; border-bottom: 0; }
.cb-month-cells { display: flex; }
.cb-month { height: 26px; display: flex; align-items: center; padding-left: 8px; font-size: 12px; font-weight: 700; color: var(--text); background: var(--surface-2); border-right: 2px solid var(--border-strong); border-bottom: 1px solid var(--border); white-space: nowrap; overflow: hidden; text-transform: uppercase; letter-spacing: .03em; }
.cb-corner-sub { flex-direction: column; justify-content: flex-end; align-items: flex-end; gap: 1px; padding-bottom: 6px !important; font-size: 10.5px !important; color: var(--muted) !important; background: var(--surface-2) !important; height: 92px; }
.cb .cal-day { height: 92px; justify-content: flex-start; padding-top: 4px; gap: 1px; position: relative; }
.cb .cal-day .ovals { height: 18px; display: flex; gap: 3px; align-items: center; }
.cb .cal-day .dow { font-size: 10.5px; text-transform: uppercase; color: var(--muted); }
.cb .cal-day .dnum { font-size: 17px; line-height: 1.1; }
.cb .cal-day .occ { font-size: 10.5px; color: var(--muted); font-weight: 600; }
.cb .cal-day .occ.hi { color: var(--red); }
.cb .cal-day .free { font-size: 11px; font-weight: 700; color: var(--green); }
.cb .cal-day .free.none { color: var(--red); }
.cb .cal-day.is-today { background: var(--primary-50); color: var(--text); box-shadow: inset 0 3px 0 var(--primary); }
.cb .cal-day.is-today .dnum { color: var(--primary); }
.cb .cal-day.is-today .dow { color: var(--primary); }
.cb .cal-type .cal-label { background: var(--surface-3); height: 38px; gap: 4px; }
.cb .cal-type .cal-avail { background: var(--surface-3); height: 38px; }
.cb .cal-type .cal-avail b { font-size: 12px; }
.cb .cal-type .cal-avail small { font-size: 10.5px; color: var(--text); opacity: .75; }
.cb-toggle { border: 0; background: none; cursor: pointer; color: var(--muted); padding: 2px; display: grid; place-items: center; border-radius: 4px; transition: transform .15s; transform: rotate(90deg); flex: none; }
.cb-group.collapsed .cb-toggle { transform: rotate(0deg); }
.cb-group.collapsed .cal-room, .cb-group.collapsed .cal-allot { display: none; }
.cb .cal-room .cal-label { gap: 8px; }
.cb .rnum { min-width: 34px; }
.cb .cal-room .cal-label small { margin-left: 0; }
.hk-ic { margin-left: auto; width: 18px; height: 18px; display: inline-grid; place-items: center; border-radius: 50%; font-size: 10px; font-weight: 700; flex: none; }
.hk-ic.hk-clean { background: var(--green-50); color: var(--green); }
.hk-ic.hk-dirty { background: var(--red-50); color: var(--red); }
.hk-ic.hk-inspected { background: var(--blue-50); color: var(--blue); }
.hk-ic.hk-out_of_order { background: var(--gray-50); color: var(--muted); }
.cb .cal-room.unassigned .cal-label { gap: 6px; font-size: 12px; }
.cb .cal-room.unassigned .cal-label small { font-size: 10.5px; }

/* Shiritat – ngjyrat e njohura të Cloudbeds */
.cb .bar { border-radius: 4px; top: 6px; height: 28px; font-weight: 600; font-size: 12px; box-shadow: none; border-left: 3px solid rgba(0,0,0,.18); padding: 0 6px; gap: 4px; }
.cb .bar:hover { box-shadow: 0 2px 8px rgba(0,0,0,.2); }
.cb .bar.st-confirmed { background: #a9d4f5; color: #0b3a63; border-left-color: #3b8fd9; }
.cb .bar.st-pending { background: #b5e3dc; color: #0e4f47; border-left-color: #3fa596; }
.cb .bar.st-checked_in { background: #4fb466; color: #fff; border-left-color: #2f8a45; }
.cb .bar.st-checked_out { background: #707a8a; color: #fff; border-left-color: #4b5463; }
.cb .bar.is-agency { outline: 2px dashed #2f6bff; outline-offset: -2px; }
.cb .bar .bar-resize::after { background: rgba(0,0,0,.25); }
.cb .bar.st-checked_in .bar-resize::after { background: rgba(255,255,255,.6); }
.bar-icons { margin-left: auto; display: flex; gap: 3px; padding-right: 6px; }
.bi { display: inline-block; width: 9px; height: 9px; border-radius: 50%; flex: none; box-shadow: 0 0 0 1.5px rgba(255,255,255,.9); }
.bi-note { background: #f5c518; } .bi-due { background: #e5534b; }
.lg-row .bi { box-shadow: none; }
.ooo-bar { position: absolute; top: 6px; height: 28px; border-radius: 4px; background: repeating-linear-gradient(-45deg, #e5534b, #e5534b 6px, #ec6f68 6px, #ec6f68 12px); color: #fff; font-size: 11.5px; font-weight: 600; display: flex; align-items: center; padding: 0 10px; z-index: 1; white-space: nowrap; overflow: hidden; }
[data-theme="dark"] .cb .bar.st-confirmed { background: #2c5a85; color: #e3f0fc; border-left-color: #6aaef0; }
[data-theme="dark"] .cb .bar.st-pending { background: #255f58; color: #dff5f1; border-left-color: #5cc4b4; }
@media (prefers-color-scheme: dark) {
  [data-theme="auto"] .cb .bar.st-confirmed { background: #2c5a85; color: #e3f0fc; border-left-color: #6aaef0; }
  [data-theme="auto"] .cb .bar.st-pending { background: #255f58; color: #dff5f1; border-left-color: #5cc4b4; }
}
.legend .lg.st-confirmed, .lg-row .lg.st-confirmed { background: #a9d4f5; }
.lg-row .lg.st-pending { background: #b5e3dc; }
.lg-row .lg.st-checked_in { background: #4fb466; }
.lg-row .lg.st-checked_out { background: #707a8a; }

/* Karta që shfaqet kur kalon miun mbi rezervim */
.bar-card { position: fixed; z-index: 120; width: 280px; background: var(--surface); color: var(--text); border: 1px solid var(--border); border-radius: 10px; box-shadow: var(--shadow-lg); padding: 12px 14px; font-size: 12.5px; pointer-events: none; }
.bar-card h4 { margin: 0 0 2px; font-size: 14px; }
.bar-card .bc-st { display: inline-block; font-size: 11px; font-weight: 700; padding: 1px 8px; border-radius: 10px; margin-bottom: 8px; }
.bar-card .bc-st.st-confirmed { background: #a9d4f5; color: #0b3a63; } .bar-card .bc-st.st-pending { background: #b5e3dc; color: #0e4f47; }
.bar-card .bc-st.st-checked_in { background: #4fb466; color: #fff; } .bar-card .bc-st.st-checked_out { background: #707a8a; color: #fff; }
.bar-card .kv { padding: 2px 0; }
.bar-card .kv span:first-child { color: var(--muted); }
.bar-card .due { color: var(--red); font-weight: 700; }
.bar-card .bc-notes { margin-top: 6px; padding: 6px 8px; background: #fff7d6; color: #6b5300; border-radius: 6px; }
@media (max-width: 900px) {
  .cb .cal-label { width: 120px; }
  .cb-search input { width: 90px; }
  .calendar.cb { max-height: calc(100vh - 230px); }
  .bar-card { display: none; }
}
.lg-row .hk-ic { margin-left: 0; }

/* Shiritat me skaje të pjerrëta 45° (si te Cloudbeds): fillojnë në mes të ditës së mbërritjes, mbarojnë në mes të ditës së largimit */
.cb .bar { height: var(--bh); top: calc((40px - var(--bh)) / 2); border-left: 0; border-radius: 0;
  clip-path: polygon(var(--sl) 0, 100% 0, calc(100% - var(--sl)) 100%, 0 100%);
  padding: 0 calc(var(--sl) * .75) 0 calc(var(--sl) * .8); }
.cb .bar.clip-l { clip-path: polygon(0 0, 100% 0, calc(100% - var(--sl)) 100%, 0 100%); padding-left: 8px; }
.cb .bar.clip-r { clip-path: polygon(var(--sl) 0, 100% 0, 100% 100%, 0 100%); padding-right: 8px; }
.cb .bar.clip-l.clip-r { clip-path: none; }
.cb .bar:hover { filter: brightness(1.06); box-shadow: none; }
.cb .bar .bar-resize { right: calc(var(--sl) / 2 - 6px); width: 12px; }
.cb .bar .bar-resize::after { top: 6px; bottom: 6px; right: 5px; }
.cb .bar .bar-icons { padding-right: 0; }
.cb .bar.is-agency { outline: 0; background-image: repeating-linear-gradient(135deg, transparent 0 6px, rgba(47,107,255,.22) 6px 9px); }
.cb .bar.dragging { opacity: .8; }
.cb .ooo-bar { height: var(--bh); top: calc((40px - var(--bh)) / 2); border-radius: 0; }
.lg-row .lg { clip-path: polygon(6px 0, 100% 0, calc(100% - 6px) 100%, 0 100%); border-radius: 0; }
.lg-agency { outline: 0; background: #a9d4f5 repeating-linear-gradient(135deg, transparent 0 4px, rgba(47,107,255,.45) 4px 6px); }

/* ---------- Bllokimi i dhomave ---------- */
.cb .bar.blk { color: #fff; font-weight: 600; cursor: default; z-index: 2; text-shadow: 0 1px 1px rgba(0,0,0,.25); }
.cb .bar.blk.can-edit { cursor: pointer; }
.cb .bar.blk .bar-name { display: inline-flex; align-items: center; gap: 5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cb .bar.blk .bar-name svg { flex: none; }
.blk-blocked        { --b1: #555e6d; --b2: #677080; }
.blk-maintenance    { --b1: #c76a06; --b2: #da7f17; }
.blk-out_of_service { --b1: #c93c3c; --b2: #db5656; }
.blk-owner          { --b1: #6847cf; --b2: #7a5ce0; }
.cb .bar.blk, .lg-blk { background: repeating-linear-gradient(-45deg, var(--b1, #555e6d) 0 6px, var(--b2, #677080) 6px 12px); }
.lg-blk { --b1: #555e6d; --b2: #677080; }
.bar-card .bc-st[class*="blk-"] { background: var(--b1); color: #fff; }

.sel-menu { position: fixed; z-index: 60; min-width: 220px; background: var(--surface); border: 1px solid var(--border); border-radius: 10px; box-shadow: var(--shadow-lg); padding: 6px; }
.sel-menu-head { font-size: 12px; color: var(--muted); padding: 6px 10px 8px; border-bottom: 1px solid var(--border); margin-bottom: 4px; }
.sel-menu button { display: flex; width: 100%; align-items: center; gap: 9px; border: 0; background: none; color: var(--text); font: 500 13.5px var(--font); padding: 9px 10px; border-radius: 7px; cursor: pointer; text-align: left; }
.sel-menu button:hover { background: var(--primary-50); color: var(--primary); }
.sel-menu button[data-act="block"]:hover { background: rgba(85,94,109,.12); color: var(--text); }

.blk-title { display: flex; align-items: center; gap: 10px; }
.blk-ic { width: 32px; height: 32px; border-radius: 9px; display: inline-grid; place-items: center; background: repeating-linear-gradient(-45deg, #555e6d 0 5px, #677080 5px 10px); color: #fff; }
.blk-reasons { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 4px 0 12px; }
.blk-reason { margin: 0 !important; }
.blk-reason input { position: absolute; opacity: 0; pointer-events: none; }
.blk-reason span { display: flex; align-items: center; gap: 8px; padding: 9px 10px; border: 1.5px solid var(--border-strong); border-radius: 9px; font-size: 13px; font-weight: 500; cursor: pointer; color: var(--text); transition: border-color .12s, background .12s; }
.blk-reason span i { width: 18px; height: 12px; border-radius: 3px; flex: none; background: repeating-linear-gradient(-45deg, var(--b1) 0 3px, var(--b2) 3px 6px); }
.blk-reason input:checked + span { border-color: var(--b1); background: color-mix(in srgb, var(--b1) 10%, transparent); }
.blk-reason input:focus-visible + span { outline: 2px solid var(--primary); outline-offset: 1px; }
.blk-info { display: flex; gap: 7px; align-items: flex-start; background: var(--surface-2); border-radius: 8px; padding: 8px 10px; color: var(--muted); margin: 10px 0 4px; }
.blk-info svg { flex: none; margin-top: 1px; }
.btn-danger-ghost { border-color: transparent; background: transparent; color: var(--red, #d64545); }
.btn-danger-ghost:hover { background: rgba(214,69,69,.1); }
dialog.dlg .form-actions .grow { flex: 1; }

/* Statusi i dhomave (Housekeeping / Dhomat) */
.hk-card.is-blocked { border-color: #8a93a2; background-image: repeating-linear-gradient(-45deg, transparent 0 10px, rgba(85,94,109,.06) 10px 20px); }
.blk-badge { display: inline-flex; align-items: center; gap: 5px; color: #fff; font-size: 11.5px; font-weight: 600; padding: 3px 8px; border-radius: 6px; background: repeating-linear-gradient(-45deg, var(--b1) 0 5px, var(--b2) 5px 10px); white-space: nowrap; }
.blk-note { font-size: 12px; color: var(--text); margin-top: 6px; padding: 6px 8px; border-left: 3px solid var(--b1, #555e6d); background: var(--surface-2); border-radius: 0 6px 6px 0; }
.blk-note small { display: block; color: var(--muted); }
.blk-soon { font-size: 11.5px; color: var(--muted); margin-top: 6px; display: flex; align-items: center; gap: 5px; }

/* ---------- Data/ora e rezervimit ---------- */
.created-line { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; font-size: 12.5px; color: var(--text); margin: 2px 0 2px; }
.created-line svg { color: var(--muted); }

/* ---------- Historiku i veprimeve ---------- */
.actlog { list-style: none; margin: 0; padding: 0; position: relative; }
.actlog .tl-day { font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); padding: 14px 0 6px 64px; }
.actlog .tl-day:first-child { padding-top: 0; }
.actlog .tl-item { display: grid; grid-template-columns: 46px 18px 1fr auto; gap: 0 8px; align-items: start; padding: 8px 0; position: relative; }
.actlog .tl-item::before { content: ""; position: absolute; left: 62px; top: 0; bottom: 0; width: 2px; background: var(--border); }
.actlog .tl-time { font: 600 12px var(--font); color: var(--muted); padding-top: 2px; text-align: right; font-variant-numeric: tabular-nums; }
.actlog .tl-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--primary); margin: 5px 0 0 3px; position: relative; z-index: 1; box-shadow: 0 0 0 3px var(--surface); }
.actlog .src-kamarieri .tl-dot { background: var(--orange); } .actlog .src-cloudbeds .tl-dot { background: #0b7bd8; }
.actlog .src-website .tl-dot { background: var(--green); } .actlog .src-system .tl-dot { background: var(--muted); } .actlog .src-pok .tl-dot { background: var(--violet); }
.actlog .tl-head { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; font-size: 13px; }
.actlog .tl-src { font-size: 11px; color: var(--muted); border: 1px solid var(--border); border-radius: 4px; padding: 0 5px; }
.actlog .tl-text { font-size: 13px; color: var(--text); margin-top: 3px; line-height: 1.45; word-break: break-word; }
.actlog .tl-amt { font-weight: 700; font-size: 13px; white-space: nowrap; padding-top: 2px; }
.actlog .tl-amt.neg { color: var(--red); }
.log-table td { vertical-align: top; }

/* ---------- Folio: rreshtat kompaktë + detajet kur kalon miun ---------- */
.fi-meta { font-size: 11.5px; color: var(--muted); margin-top: 2px; display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.pos-lines { position: relative; display: inline-flex; flex-wrap: wrap; gap: 2px 10px; margin-top: 4px; font-size: 12px; color: var(--muted); cursor: help; outline: none; border-radius: 4px; }
.pos-lines > span:not(:last-of-type)::after { content: ","; }
.pos-more { color: var(--primary); font-weight: 600; }
.pos-pop { display: none; position: absolute; left: 0; top: calc(100% + 6px); z-index: 30; min-width: 280px; max-width: 380px; background: var(--surface); color: var(--text);
  border: 1px solid var(--border); border-radius: 10px; box-shadow: var(--shadow-lg); padding: 10px 12px; font-size: 12.5px; cursor: default; }
/* detajet shfaqen në një dritare "lundruese" mbi faqe (jo brenda tabelës që ka scroll) – shih app.js */
.pos-float { display: block; position: fixed; top: 0; left: 0; z-index: 90; max-height: calc(100vh - 24px); overflow: auto; }
.pos-float[hidden] { display: none !important; }
.pos-lines.is-open { color: var(--primary); }
.pos-pop-head { font-size: 11.5px; color: var(--muted); margin-bottom: 6px; padding-bottom: 6px; border-bottom: 1px solid var(--border); }
.pos-pop table { width: 100%; border-collapse: collapse; }
.pos-pop td { padding: 3px 4px; border: 0; white-space: nowrap; }
.pos-pop td:nth-child(2) { white-space: normal; width: 100%; }
.pos-pop .r { text-align: right; }
.pos-pop-tot { display: flex; align-items: baseline; gap: 8px; justify-content: flex-end; border-top: 1px solid var(--border); margin-top: 6px; padding-top: 6px; }
.pos-pop-tot span { margin-right: auto; color: var(--muted); }
.pos-pop-tot small { color: var(--muted); }

/* ---------- Pagesat: anulimi ---------- */
.pay-void { display: inline-block; position: relative; }
.pay-void summary { list-style: none; cursor: pointer; }
.pay-void summary::-webkit-details-marker { display: none; }
.pay-void-form { position: absolute; right: 0; top: calc(100% + 4px); z-index: 25; width: 260px; display: grid; gap: 8px; text-align: left; white-space: normal;
  background: var(--surface); border: 1px solid var(--border); border-radius: 10px; box-shadow: var(--shadow-lg); padding: 12px; font-size: 13px; }
.table tr.void-note td { font-size: 11.5px; color: var(--red); padding-top: 0; border-top: 0; text-decoration: none; opacity: 1; }
.pay-hint { display: flex; gap: 6px; align-items: flex-start; margin: -4px 0 8px; }
.pay-hint svg { flex: none; margin-top: 1px; }

/* ---------- Raportet ditore ---------- */
.rep-tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 14px; }
.rep-tabs a { display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 8px; border: 1px solid var(--border); background: var(--surface); color: var(--text); font-size: 13px; font-weight: 500; }
.rep-tabs a:hover { border-color: var(--primary); color: var(--primary); }
.rep-tabs a.on { background: var(--primary); border-color: var(--primary); color: #fff; }
.rep-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; margin: 4px 0 14px; }
.rep-head h2 { font-size: 20px; margin: 2px 0 0; }
.rep-head .r { text-align: right; line-height: 1.5; }
.rep-kpis .kpi b { font-size: 20px; }
.rep-sec { margin-bottom: 16px; }
.rep-table td.b, .rep-table td .b { font-weight: 700; }
.rep-table td.c, .rep-table th.c { text-align: center; }
.rep-table tfoot td { font-weight: 700; }
.rep-sign { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin: 28px 0 10px; font-size: 12.5px; color: var(--muted); }
.rep-sign span { display: block; border-bottom: 1px solid var(--border-strong); height: 34px; }
@media print {
  .sidebar, .topbar, .no-print, .flash, .flashes { display: none !important; }
  body, .main, .content { background: #fff !important; padding: 0 !important; margin: 0 !important; }
  .report-doc .card, .report-doc .kpi { box-shadow: none; border-color: #ccc; break-inside: avoid; }
  .report-doc a { color: inherit; text-decoration: none; }
  .table-scroll { overflow: visible !important; }
  .rep-table { font-size: 11px; }
  .rep-table td, .rep-table th { padding: 4px 6px; }
}
.pok-link { margin-top: 8px; display: grid; gap: 4px; }
.pok-link input { font-size: 11.5px; padding: 5px 7px; }
.fisc-box { display: flex; gap: 16px; align-items: center; border: 1px solid #dfe3ea; border-radius: 8px; padding: 10px 12px; margin: 14px 0; font-size: 11.5px; line-height: 1.6; }
.fisc-qr { flex: none; width: 130px; height: 130px; }
.fisc-data code { font-size: 11px; word-break: break-all; }
.fisc-data small { color: #6a7487; display: inline-block; min-width: 42px; }
.fisc-demo { color: #d64545; }

/* ---------- Menuja me grupe (dy nivele) ---------- */
.nav-group-btn { width: 100%; border: 0; background: none; font: inherit; font-weight: 500; cursor: pointer; text-align: left; }
.nav-group.has-active > .nav-group-btn { color: #fff; }
.nav-caret { margin-left: auto; display: inline-flex; transition: transform .15s; opacity: .7; }
.nav-group.open .nav-caret { transform: rotate(90deg); }
.nav-sub { display: none; flex-direction: column; gap: 2px; margin: 2px 0 4px 18px; padding-left: 10px; border-left: 1px solid rgba(255,255,255,.12); }
.nav-group.open .nav-sub { display: flex; }
.nav-sub-title { display: none; }
.nav-subitem { padding: 7px 10px; font-size: 13.5px; gap: 9px; }
.nav-num { width: 18px; height: 18px; border-radius: 5px; background: rgba(255,255,255,.08); display: inline-grid; place-items: center; font-size: 11px; font-weight: 700; flex: none; }
.nav-subitem.active .nav-num { background: rgba(255,255,255,.25); }
/* sidebar i ngushtë: nën-menuja del si "flyout" anash */
body.sb-mini .nav-group .nav-sub, .nav-group.flyout .nav-sub { display: none; }
body.sb-mini .nav-group.flyout .nav-sub { display: flex; position: fixed; z-index: 80; margin: 0; padding: 6px; min-width: 210px; border: 0;
  background: var(--sidebar); border-radius: 10px; box-shadow: 0 10px 30px rgba(0,0,0,.35); }
body.sb-mini .nav-group.flyout .nav-sub-title { display: block; padding: 6px 10px 4px; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--sidebar-text); opacity: .7; }
body.sb-mini .nav-group.has-active > .nav-group-btn { background: var(--primary); }
body.sb-mini .nav-subitem { justify-content: flex-start; padding: 8px 10px; }
@media (max-width: 900px) {
  body.sb-mini .nav-group.open .nav-sub { display: flex; position: static; box-shadow: none; background: none; padding: 0 0 0 10px; margin: 2px 0 4px 18px; border-left: 1px solid rgba(255,255,255,.12); }
  body.sb-mini .nav-group .nav-sub-title { display: none !important; }
}

/* ---------- Kalendari: kërkimi sipas nr. të faturës (kamarieri.com) ---------- */
.cb-search-wrap { position: relative; }
.cb-search input { width: 170px; }
.cb-found { position: absolute; top: calc(100% + 6px); right: 0; z-index: 60; width: 380px; max-width: 90vw; background: var(--surface); border: 1px solid var(--border);
  border-radius: 10px; box-shadow: var(--shadow-lg); padding: 6px; display: grid; gap: 2px; }
.cf-item { display: grid; grid-template-columns: 1fr auto; gap: 1px 10px; padding: 8px 10px; border-radius: 8px; color: var(--text); font-size: 12.5px; }
.cf-item:hover { background: var(--primary-50); }
.cf-ref { font-size: 13.5px; }
.cf-ref em { font-style: normal; color: var(--red); font-size: 11.5px; }
.cf-meta, .cf-who { grid-column: 1; color: var(--muted); }
.cf-folio { grid-column: 2; grid-row: 1 / 4; align-self: center; color: var(--primary); font-weight: 600; white-space: nowrap; }
.cf-item.is-void .cf-ref b { text-decoration: line-through; }
.cf-empty { padding: 10px; color: var(--muted); font-size: 13px; }
.cb .bar.bar-hl { animation: barHl 0.9s ease-in-out 5; z-index: 6; }
@keyframes barHl { 0%, 100% { filter: none; } 50% { filter: brightness(1.15) drop-shadow(0 0 6px var(--primary)); transform: translateY(-2px); } }

/* ---------- Asistenti AI ---------- */
.ai-badge { background: linear-gradient(135deg, #8b5cf6, #2f6bff) !important; font-size: 10px !important; }
.ai-toggle { padding: 10px 12px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface-2); }
.ai-how { margin: 0 0 12px; padding-left: 18px; display: grid; gap: 6px; font-size: 13px; }
.ai-wrap { display: flex; flex-direction: column; height: calc(100vh - 210px); min-height: 420px; padding: 0; overflow: hidden; }
.ai-log { flex: 1; overflow-y: auto; padding: 20px; display: flex; flex-direction: column; gap: 14px; }
.ai-hello { margin: auto; text-align: center; max-width: 720px; }
.ai-hello h2 { margin: 10px 0 4px; }
.ai-avatar { width: 46px; height: 46px; border-radius: 14px; display: inline-grid; place-items: center; color: #fff; background: linear-gradient(135deg, #8b5cf6, #2f6bff); }
.ai-avatar.sm { width: 30px; height: 30px; border-radius: 9px; font: 700 11px var(--font); flex: none; }
.ai-suggest { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 14px; }
.ai-chip { border: 1px solid var(--border-strong); background: var(--surface); color: var(--text); border-radius: 18px; padding: 8px 13px; font: 500 13px var(--font); cursor: pointer; text-align: left; }
.ai-chip:hover { border-color: var(--primary); color: var(--primary); background: var(--primary-50); }
.ai-msg { display: flex; gap: 10px; align-items: flex-start; max-width: 900px; }
.ai-msg.me { align-self: flex-end; }
.ai-msg.me .ai-bub { background: var(--primary); color: #fff; border-radius: 14px 14px 4px 14px; }
.ai-bub { position: relative; background: var(--surface-2); border: 1px solid var(--border); border-radius: 14px 14px 14px 4px; padding: 10px 14px; font-size: 14px; line-height: 1.55; min-width: 0; }
.ai-msg.me .ai-bub { border-color: transparent; }
.ai-bub p { margin: 0 0 6px; } .ai-bub p:last-child { margin-bottom: 0; }
.ai-bub ul, .ai-bub ol { margin: 4px 0 8px; padding-left: 20px; }
.ai-bub h4 { margin: 8px 0 4px; font-size: 14px; }
.ai-table { margin: 6px 0 8px; font-size: 13px; background: var(--surface); }
.ai-table th, .ai-table td { padding: 5px 8px; }
.ai-tools { margin-top: 8px; font-size: 11.5px; color: var(--muted); display: flex; gap: 4px; flex-wrap: wrap; align-items: center; }
.ai-tools span { border: 1px solid var(--border); border-radius: 10px; padding: 0 7px; background: var(--surface); }
.ai-copy { position: absolute; top: 6px; right: 6px; border: 0; background: none; color: var(--muted); cursor: pointer; opacity: 0; font-size: 13px; }
.ai-bub:hover .ai-copy { opacity: 1; }
.ai-err .ai-bub { background: var(--red-50); color: var(--red); }
.ai-typing { color: var(--muted); display: flex; align-items: center; gap: 4px; }
.ai-typing span { width: 6px; height: 6px; border-radius: 50%; background: var(--primary); animation: aiDot 1.2s infinite; }
.ai-typing span:nth-child(2) { animation-delay: .2s; } .ai-typing span:nth-child(3) { animation-delay: .4s; margin-right: 6px; }
@keyframes aiDot { 0%, 80%, 100% { opacity: .25; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-3px); } }
.ai-input { display: flex; gap: 10px; align-items: flex-end; padding: 12px; border-top: 1px solid var(--border); background: var(--surface); }
.ai-input textarea { flex: 1; resize: none; min-height: 42px; max-height: 160px; font: 14px var(--font); padding: 10px 12px; }
.ai-foot { padding: 0 14px 10px; display: flex; gap: 6px; align-items: center; margin: 0; background: var(--surface); }
@media (max-width: 700px) { .ai-wrap { height: calc(100vh - 170px); } .ai-log { padding: 12px; } }

/* ---------- Asistenti AI: ikona e ndihmës poshtë djathtas + dritarja ---------- */
.ai-fab { position: fixed; right: 22px; bottom: 22px; z-index: 70; width: 56px; height: 56px; border-radius: 50%; border: 0; cursor: pointer; color: #fff;
  background: linear-gradient(135deg, #8b5cf6, #2f6bff); box-shadow: 0 8px 24px rgba(47,107,255,.35); display: grid; place-items: center; transition: transform .15s; }
.ai-fab:hover { transform: scale(1.06); }
.ai-fab .ai-fab-x { display: none; font-size: 20px; }
.ai-fab.open .ai-fab-ic { display: none; } .ai-fab.open .ai-fab-x { display: block; }
body.sb-right .ai-fab, body.sb-right .ai-panel { right: calc(var(--sb-w) + 22px); }
.ai-panel { position: fixed; right: 22px; bottom: 90px; z-index: 70; width: min(420px, calc(100vw - 32px)); height: min(620px, calc(100vh - 120px));
  display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--border); border-radius: 16px; box-shadow: 0 18px 50px rgba(8,14,27,.28); overflow: hidden; }
.ai-panel[hidden] { display: none !important; }
.ai-panel-head { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-bottom: 1px solid var(--border); background: linear-gradient(135deg, rgba(139,92,246,.08), rgba(47,107,255,.08)); }
.ai-panel-head > div { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.ai-panel-head small { color: var(--muted); font-size: 11.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ai-panel .ai-log { padding: 14px; gap: 10px; }
.ai-panel .ai-hello h2 { font-size: 16px; }
.ai-panel .ai-hello .ai-avatar { width: 38px; height: 38px; }
.ai-panel .ai-chip { font-size: 12.5px; padding: 7px 11px; }
.ai-panel .ai-bub { font-size: 13.5px; }
.ai-panel .ai-msg { max-width: 100%; }
.ai-panel .ai-input { padding: 10px; }
.ai-panel .ai-send { padding: 8px 14px; }
.ai-panel .ai-foot { padding: 0 12px 8px; font-size: 11px; }
@media (max-width: 700px) {
  .ai-panel { right: 0 !important; bottom: 0; width: 100vw; height: 100dvh; border-radius: 0; }
  .ai-fab { right: 16px !important; bottom: 16px; }
  .ai-fab.open { display: none; }
}
@media print { .ai-fab, .ai-panel { display: none !important; } }

/* Burimet e rezervimeve (ngjyra nga tabela sources) */
.src.src-x { background: color-mix(in srgb, var(--sc) 16%, transparent); color: color-mix(in srgb, var(--sc) 78%, #000); }
[data-theme="dark"] .src.src-x { color: color-mix(in srgb, var(--sc) 70%, #fff); }
.src-dotc { display: inline-block; width: 10px; height: 10px; border-radius: 50%; vertical-align: middle; margin-right: 6px; }
.src-table input[type=number] { width: 78px; } .src-table input[type=text] { min-width: 120px; } .src-table input[type=color] { width: 38px; height: 28px; padding: 0; border: 1px solid var(--line); border-radius: 6px; }
.src-sub { font-size: 11px; color: var(--muted); }

/* Legjenda e kalendarit në telefon: kuti e qendërzuar brenda ekranit (simbolet nuk priten) */
@media (max-width: 760px) {
  .cb-legend .legend-pop { position: fixed !important; left: 12px !important; right: 12px !important; top: 90px !important; bottom: auto !important; transform: none !important;
    width: auto !important; min-width: 0 !important; max-width: none !important; max-height: calc(100vh - 130px); overflow-y: auto; z-index: 60; }
}

.legend-x { display: none; }
@media (max-width: 760px) { .legend-x { display: flex; align-items: center; justify-content: center; position: sticky; top: 0; margin: -4px 0 4px auto; width: 32px; height: 32px; border: 0; border-radius: 50%; background: var(--surface-2, #eee); color: inherit; font-size: 22px; line-height: 1; cursor: pointer; } }

/* Anulimi i pagesës: dritare në qendër të ekranit me mbyllje */
.pay-void[open] > summary::before { content: ""; position: fixed; inset: 0; background: rgba(15, 23, 42, .45); z-index: 190; cursor: default; }
.pay-void[open] .pay-void-form { position: fixed !important; left: 50% !important; top: 50% !important; right: auto !important; transform: translate(-50%, -50%) !important; z-index: 200 !important;
  width: min(380px, calc(100vw - 32px)) !important; max-height: calc(100vh - 32px); overflow-y: auto; padding: 18px; background: var(--surface, #fff); border-radius: 14px; box-shadow: 0 20px 60px rgba(0,0,0,.35); }
.pay-void-form .pv-x { position: absolute; top: 8px; right: 10px; border: 0; background: transparent; font-size: 22px; line-height: 1; cursor: pointer; color: inherit; opacity: .6; }
.pay-void-form .pv-x:hover { opacity: 1; }
.pay-void-form .pv-actions { display: flex; gap: 8px; justify-content: flex-end; flex-wrap: wrap; }
.inv-btns { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
@media (max-width: 760px) { .inv-btns { width: 100%; flex-direction: column; } .inv-btns .btn { width: 100%; justify-content: center; } }

.demo-contact { margin-top: 28px; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.25); display: grid; gap: 8px; font-size: 14px; }
.demo-contact b { font-size: 12px; text-transform: uppercase; letter-spacing: .08em; opacity: .8; }
.demo-contact a { color: #fff; text-decoration: none; display: inline-flex; align-items: center; gap: 8px; }
.demo-contact a:hover { text-decoration: underline; }

.demo-contact-m { display: none; }
@media (max-width: 760px) { .demo-contact-m { display: grid; margin-top: 22px; padding-top: 16px; border-top: 1px solid var(--border, #e3e8f0); } .demo-contact-m a { color: var(--primary, #1f5eff); } .demo-contact-m b { color: var(--muted, #6a7487); opacity: 1; } }

/* Dritare modale (p.sh. rezervim shërbimi nga recepsioni) */
dialog.pmodal { border: 0; border-radius: 16px; padding: 0; width: min(560px, calc(100vw - 24px)); max-height: calc(100vh - 24px); background: var(--surface, #fff); color: inherit; box-shadow: 0 24px 70px rgba(0,0,0,.4); overflow: hidden; }
dialog.pmodal[open] { display: flex; flex-direction: column; }
dialog.pmodal::backdrop { background: rgba(15, 23, 42, .5); }
.pmodal-head { display: flex; justify-content: space-between; align-items: center; padding: 14px 18px; border-bottom: 1px solid var(--border, #e3e8f0); }
.pmodal-head h3 { margin: 0; font-size: 17px; }
.pmodal-body { padding: 16px 18px 18px; overflow-y: auto; }

.seo-info { max-width: 980px; margin: 0 auto; padding: 36px 20px 60px; color: #dbe4ff; }
.seo-info h1 { font-size: 22px; color: #fff; margin: 0 0 8px; }
.seo-info p { margin: 0 0 18px; line-height: 1.6; opacity: .9; }
.seo-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px; margin-bottom: 14px; }
.seo-grid section { background: rgba(255,255,255,.07); border-radius: 12px; padding: 14px 16px; }
.seo-grid h2 { font-size: 15px; color: #fff; margin: 0 0 6px; } .seo-grid p { font-size: 13.5px; margin: 0; }

.th-sort { color: inherit; text-decoration: none; white-space: nowrap; }
.th-sort:hover, .th-sort.on { color: var(--primary); }

.id-details { margin: 12px 0; border: 1px dashed var(--border-strong); border-radius: 10px; padding: 8px 12px; }
.id-details summary { cursor: pointer; font-weight: 600; font-size: 13.5px; }
.doc-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 6px 0; border-bottom: 1px solid var(--border); }
.doc-row a { flex: 1 1 140px; word-break: break-all; }
.doc-up { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.doc-up input[type=file] { flex: 1 1 160px; min-width: 0; }

.bell { position: relative; }
.bell-n { position: absolute; top: -3px; right: -3px; min-width: 17px; height: 17px; padding: 0 4px; border-radius: 9px; background: #ef4444; color: #fff; font: 700 10.5px/17px var(--font); text-align: center; }
.notif-list { list-style: none; margin: 0; padding: 0; }
.notif-list li { border-bottom: 1px solid var(--border); }
.notif-list li.unread { background: color-mix(in srgb, var(--primary) 7%, transparent); }
.notif-list form { margin: 0; }
.notif-item { display: flex; align-items: center; gap: 12px; width: 100%; padding: 12px 16px; background: none; border: 0; text-align: left; cursor: pointer; color: inherit; font: inherit; }
.notif-item .grow { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.notif-list li.unread b { font-weight: 700; }
.notif-ic { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; flex: none; }
.notif-ic.ok { background: #dcfce7; color: #15803d; } .notif-ic.warn { background: #fef3c7; color: #b45309; }

.hk-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin: 0 0 12px; }
.hk-toolbar .seg { max-width: 100%; overflow-x: auto; }
.hk-search { display: flex; align-items: center; gap: 8px; margin: 0; padding: 0 12px; height: 40px; flex: 0 1 320px; min-width: 200px; border: 1px solid var(--border-strong); border-radius: 10px; background: var(--surface); }
.hk-search input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; color: inherit; font: 500 15px var(--font); }

@media (max-width: 640px) { .hk-search { flex: 1 1 100%; } }

.hk-card[hidden] { display: none; }

.hk-plan { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin: 8px 0 4px; }
.hk-plan form { margin: 0; }
.hk-plan select { font-size: 12.5px; padding: 5px 8px; max-width: 100%; }

.hk-note { margin-top: 8px; font-size: 13px; }
.hk-note summary { cursor: pointer; color: var(--muted, #64748b); }
.hk-note textarea { width: 100%; margin: 6px 0; }
.hk-note-cur { margin: 6px 0 0; padding: 6px 8px; border-radius: 8px; background: color-mix(in srgb, #f59e0b 14%, transparent); font-size: 12.5px; }
