/* ============================================================
   Kaon Tech — Design System
   Swiss / German minimal, premium B2B aesthetic
   ============================================================ */

:root {
  /* Brand */
  --brand: #00B14F;
  --brand-600: #009A45;
  --brand-700: #00833B;
  --brand-50: #E6F8EE;
  --brand-100: #C7EFD7;

  /* Neutrals */
  --ink:        #0F1418;
  --ink-2:      #1f2937;
  --muted:      #6b7280;
  --muted-2:    #9ca3af;
  --line:       #e5e7eb;
  --line-2:     #f1f3f5;
  --bg:         #f7f8fa;
  --surface:    #ffffff;
  --surface-2:  #fafbfc;

  /* States */
  --info:    #2563eb;
  --info-bg: #eff6ff;
  --warn:    #d97706;
  --warn-bg: #fffbeb;
  --danger:  #dc2626;
  --danger-bg: #fef2f2;
  --success: #059669;
  --success-bg: #ecfdf5;
  --neutral-bg: #f3f4f6;

  /* Geometry */
  --radius-sm: 6px;
  --radius:    10px;
  --radius-lg: 14px;
  --radius-xl: 20px;

  --shadow-sm: 0 1px 2px rgba(15,20,24,.04);
  --shadow:    0 1px 3px rgba(15,20,24,.06), 0 1px 2px rgba(15,20,24,.04);
  --shadow-lg: 0 10px 25px rgba(15,20,24,.08), 0 4px 10px rgba(15,20,24,.05);

  /* Sidebar */
  --sidebar-w: 248px;
  --header-h:  64px;

  /* Type */
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }

body {
  font-family: var(--font);
  font-size: 14px;
  line-height: 1.5;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: var(--brand-700); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4 { margin: 0; font-weight: 600; color: var(--ink); letter-spacing: -0.01em; }
h1 { font-size: 22px; }
h2 { font-size: 18px; }
h3 { font-size: 16px; }

p { margin: 0 0 8px; }
small, .muted { color: var(--muted); font-size: 12px; }

/* ============================================================
   LAYOUT
   ============================================================ */
.app {
  display: grid;
  grid-template-columns: var(--sidebar-w) 1fr;
  min-height: 100vh;
}

.sidebar {
  background: var(--surface);
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100vh;
}

.sidebar__brand {
  padding: 14px 20px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 76px;
}
.sidebar__logo {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  flex: 1;
  min-width: 0;
  max-width: 170px;
}
.sidebar__logo svg,
.sidebar__brand img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 52px;
}

.sidebar__nav {
  flex: 1;
  padding: 14px 12px;
  overflow-y: auto;
}
.nav-section {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted-2);
  padding: 12px 10px 6px;
}
.nav-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 12px;
  border-radius: var(--radius);
  color: var(--ink-2);
  font-weight: 500;
  font-size: 13.5px;
  cursor: pointer;
  transition: background .12s, color .12s;
  text-decoration: none;
}
.nav-link:hover { background: var(--surface-2); text-decoration: none; }
.nav-link.active {
  background: var(--brand-50);
  color: var(--brand-700);
}
.nav-link.active .nav-icon { color: var(--brand); }
.nav-icon {
  width: 18px; height: 18px;
  flex-shrink: 0;
  color: var(--muted);
  stroke-width: 1.8;
}
.nav-link .badge { margin-left: auto; }

.sidebar__foot {
  padding: 14px 20px;
  border-top: 1px solid var(--line);
  font-size: 12px;
  color: var(--muted);
}

/* Main */
.main { display: flex; flex-direction: column; min-width: 0; }
.topbar {
  height: var(--header-h);
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 0 24px;
  position: sticky;
  top: 0;
  z-index: 20;
}
.topbar__title { font-size: 16px; font-weight: 600; }
.topbar__spacer { flex: 1; }
.topbar__search {
  display: flex; align-items: center; gap: 8px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 7px 12px;
  width: 280px;
  max-width: 100%;
}
.topbar__search input {
  border: 0; background: transparent; outline: 0;
  font-family: inherit; font-size: 13px; flex: 1; color: var(--ink);
}
.user-chip {
  display: flex; align-items: center; gap: 10px;
  padding: 6px 10px 6px 6px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  font-family: inherit;
  cursor: pointer;
  color: var(--ink);
}
.user-chip:hover { background: var(--surface-2); }
.user-chip__avatar {
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--brand); color: #fff;
  display: grid; place-items: center;
  font-size: 12px; font-weight: 600;
}
.user-menu { position: relative; }
.user-menu__dropdown {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  min-width: 220px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  z-index: 30;
  overflow: hidden;
  display: none;
}
.user-menu__dropdown.open { display: block; }
.user-menu__head {
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  background: var(--surface-2);
}
.user-menu__item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  font-size: 13px;
  color: var(--ink);
  text-decoration: none;
  cursor: pointer;
}
.user-menu__item:hover { background: var(--surface-2); text-decoration: none; }
@media (max-width: 700px) {
  .user-chip span { display: none; }
}

.content { padding: 24px; }
.page-head {
  display: flex; align-items: center; gap: 12px;
  margin-bottom: 20px; flex-wrap: wrap;
}
.page-head__title { font-size: 22px; font-weight: 600; letter-spacing: -0.01em; }
.page-head__sub { color: var(--muted); margin-top: 2px; font-size: 13px; }
.page-head__actions { margin-left: auto; display: flex; gap: 8px; flex-wrap: wrap; }

/* Mobile menu */
.menu-toggle {
  display: none;
  width: 38px; height: 38px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
  align-items: center; justify-content: center;
  cursor: pointer;
}
.sidebar__close {
  display: none;
  background: transparent; border: 0;
  color: var(--muted); cursor: pointer;
  padding: 4px;
}
.backdrop {
  display: none;
  position: fixed; inset: 0;
  background: rgba(15,20,24,.4);
  z-index: 30;
}
.backdrop.show { display: block; }

/* ============================================================
   COMPONENTS
   ============================================================ */
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 18px;
}
.card--flat { box-shadow: none; }
.card__head {
  display: flex; align-items: center; gap: 8px;
  margin-bottom: 14px;
}
.card__title { font-size: 15px; font-weight: 600; }
.card__actions { margin-left: auto; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 6px;
  font-family: inherit;
  font-size: 13px;
  font-weight: 500;
  height: 38px;
  padding: 0 14px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
  transition: all .12s;
  text-decoration: none;
  white-space: nowrap;
}
.btn:hover { background: var(--surface-2); text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn--primary {
  background: var(--brand);
  color: #fff;
  border-color: var(--brand);
}
.btn--primary:hover { background: var(--brand-600); border-color: var(--brand-600); }
.btn--ghost { background: transparent; border-color: transparent; color: var(--muted); }
.btn--ghost:hover { background: var(--neutral-bg); color: var(--ink); }
.btn--danger { color: var(--danger); border-color: #fecaca; }
.btn--danger:hover { background: var(--danger-bg); }
.btn--sm { height: 30px; padding: 0 10px; font-size: 12.5px; }
.btn--lg { height: 44px; padding: 0 20px; font-size: 14px; }
.btn--icon { width: 38px; padding: 0; }
.btn svg { width: 14px; height: 14px; }

/* Inputs */
.field { display: flex; flex-direction: column; gap: 6px; }
.field__label {
  font-size: 12.5px; font-weight: 500; color: var(--ink-2);
}
.field__hint { font-size: 12px; color: var(--muted); }
.input, .select, .textarea {
  font-family: inherit;
  font-size: 13.5px;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 9px 12px;
  height: 40px;
  outline: none;
  width: 100%;
  transition: border-color .12s, box-shadow .12s;
}
.textarea { height: auto; min-height: 90px; resize: vertical; padding-top: 10px; }
.input:focus, .select:focus, .textarea:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(0,177,79,.12);
}
.input::placeholder { color: var(--muted-2); }

.grid { display: grid; gap: 16px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

/* Stat cards (dashboard) */
.stat {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 18px;
  display: flex; flex-direction: column; gap: 6px;
  position: relative;
  overflow: hidden;
}
.stat__label { font-size: 12.5px; color: var(--muted); font-weight: 500; }
.stat__value { font-size: 26px; font-weight: 600; letter-spacing: -0.02em; }
.stat__delta { font-size: 12px; color: var(--muted); display: flex; align-items: center; gap: 4px; }
.stat__delta--up { color: var(--success); }
.stat__delta--down { color: var(--danger); }
.stat__icon {
  position: absolute; top: 16px; right: 16px;
  width: 36px; height: 36px;
  background: var(--brand-50); color: var(--brand);
  border-radius: var(--radius);
  display: grid; place-items: center;
}
.stat__icon svg { width: 18px; height: 18px; }
.stat--info .stat__icon  { background: var(--info-bg); color: var(--info); }
.stat--warn .stat__icon  { background: var(--warn-bg); color: var(--warn); }
.stat--ok   .stat__icon  { background: var(--success-bg); color: var(--success); }
.stat--alt  .stat__icon  { background: #f3e8ff; color: #7c3aed; }

/* Badges */
.badge {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 500;
  background: var(--neutral-bg);
  color: var(--ink-2);
  white-space: nowrap;
  border: 1px solid transparent;
}
.badge::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--muted);
}
.badge--info    { background: var(--info-bg);    color: var(--info); }
.badge--info::before { background: var(--info); }
.badge--warn    { background: var(--warn-bg);    color: var(--warn); }
.badge--warn::before { background: var(--warn); }
.badge--danger  { background: var(--danger-bg);  color: var(--danger); }
.badge--danger::before { background: var(--danger); }
.badge--success { background: var(--success-bg); color: var(--success); }
.badge--success::before { background: var(--success); }
.badge--neutral { background: var(--neutral-bg); color: var(--ink-2); }
.badge--brand   { background: var(--brand-50); color: var(--brand-700); }
.badge--brand::before { background: var(--brand); }

/* Tables */
.table-wrap {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.table-toolbar {
  display: flex; align-items: center; gap: 10px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  flex-wrap: wrap;
}
.table-toolbar__search {
  display: flex; align-items: center; gap: 8px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 6px 12px;
  flex: 1; min-width: 200px;
}
.table-toolbar__search input {
  flex: 1; border: 0; background: transparent; outline: 0;
  font-family: inherit; font-size: 13px;
}
table.table {
  width: 100%;
  border-collapse: collapse;
}
.table th, .table td {
  text-align: left;
  padding: 12px 16px;
  font-size: 13px;
  border-bottom: 1px solid var(--line-2);
  vertical-align: middle;
}
.table th {
  font-weight: 500;
  color: var(--muted);
  background: var(--surface-2);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.table tbody tr { transition: background .1s; }
.table tbody tr:hover { background: var(--surface-2); }
.table tbody tr:last-child td { border-bottom: 0; }
.table .cell-strong { font-weight: 600; color: var(--ink); }
.table .cell-meta { color: var(--muted); font-size: 12px; margin-top: 2px; }
.table .row-actions { display: flex; gap: 4px; justify-content: flex-end; }

/* Cards list (mobile alternative to tables) */
.cards-list { display: none; flex-direction: column; gap: 10px; }
.list-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 14px;
}
.list-card__head { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 8px; }
.list-card__title { font-weight: 600; font-size: 14px; }
.list-card__meta { color: var(--muted); font-size: 12px; margin-top: 2px; }
.list-card__row {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 13px; padding: 5px 0;
  border-top: 1px dashed var(--line-2);
}
.list-card__row:first-of-type { border-top: 0; }
.list-card__row .lbl { color: var(--muted); }

/* Empty state */
.empty {
  text-align: center; padding: 40px 20px;
  color: var(--muted);
}
.empty__icon {
  width: 48px; height: 48px;
  background: var(--surface-2);
  border-radius: 50%;
  display: grid; place-items: center;
  margin: 0 auto 12px;
  color: var(--muted-2);
}

/* Avatar */
.avatar {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--brand-50);
  color: var(--brand-700);
  display: inline-grid; place-items: center;
  font-size: 12px; font-weight: 600;
  flex-shrink: 0;
}
.avatar--lg { width: 44px; height: 44px; font-size: 15px; }

.user-cell { display: flex; align-items: center; gap: 10px; }
.user-cell__name { font-weight: 600; }
.user-cell__sub { color: var(--muted); font-size: 12px; }

/* Tabs */
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 18px; overflow-x: auto; }
.tab {
  padding: 10px 14px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--muted);
  cursor: pointer;
  border: 0; background: 0;
  border-bottom: 2px solid transparent;
  white-space: nowrap;
}
.tab.active { color: var(--brand-700); border-color: var(--brand); }
.tab:hover { color: var(--ink); }

/* Filter chips */
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chip {
  font-size: 12.5px;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--ink-2);
  cursor: pointer;
}
.chip.active { background: var(--ink); color: #fff; border-color: var(--ink); }

/* Toast / notice */
.notice {
  padding: 12px 14px;
  border-radius: var(--radius);
  background: var(--info-bg);
  color: var(--info);
  font-size: 13px;
  margin-bottom: 14px;
  border-left: 3px solid var(--info);
}

/* Drawer / Modal */
.modal-backdrop {
  position: fixed; inset: 0;
  background: rgba(15,20,24,.5);
  z-index: 50;
  display: none;
  align-items: center; justify-content: center;
  padding: 20px;
}
.modal-backdrop.show { display: flex; }
.modal {
  background: var(--surface);
  border-radius: var(--radius-lg);
  max-width: 540px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
}
.modal--lg { max-width: 760px; }
.modal__head {
  padding: 16px 20px;
  border-bottom: 1px solid var(--line);
  display: flex; align-items: center; gap: 10px;
}
.modal__title { font-weight: 600; font-size: 16px; }
.modal__close { margin-left: auto; }
.modal__body { padding: 20px; }
.modal__foot {
  padding: 14px 20px;
  border-top: 1px solid var(--line);
  display: flex; justify-content: flex-end; gap: 8px;
}

/* Activity list */
.activity { display: flex; flex-direction: column; }
.activity__item {
  display: flex; gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line-2);
}
.activity__item:last-child { border-bottom: 0; }
.activity__dot {
  width: 30px; height: 30px;
  border-radius: 50%;
  background: var(--brand-50); color: var(--brand);
  display: grid; place-items: center;
  flex-shrink: 0;
}
.activity__dot svg { width: 14px; height: 14px; }
.activity__main { flex: 1; }
.activity__title { font-size: 13.5px; font-weight: 500; }
.activity__meta { color: var(--muted); font-size: 12px; margin-top: 2px; }

/* Offer builder */
.builder {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 20px;
  align-items: flex-start;
}
@media (max-width: 1100px) {
  .builder { grid-template-columns: 1fr; }
}
.builder__items {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.builder__row {
  display: grid;
  grid-template-columns: 1fr 80px 110px 110px 40px;
  gap: 8px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line-2);
  align-items: center;
}
.builder__row:last-child { border-bottom: 0; }
.builder__row .input { height: 36px; font-size: 13px; }
.builder__row--head {
  background: var(--surface-2);
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--muted);
  font-weight: 500;
}
.builder__summary .row {
  display: flex; justify-content: space-between;
  padding: 8px 0;
  font-size: 13.5px;
}
.builder__summary .row--total {
  border-top: 2px solid var(--ink);
  margin-top: 6px;
  padding-top: 12px;
  font-size: 16px;
  font-weight: 600;
}
.builder__add {
  padding: 12px 14px;
  border-top: 1px dashed var(--line);
  background: var(--surface-2);
}
@media (max-width: 700px) {
  .builder__row {
    grid-template-columns: 1fr 1fr;
    gap: 6px;
  }
  .builder__row--head { display: none; }
  .builder__row .input { font-size: 13px; }
}

/* ============================================================
   MOBILE
   ============================================================ */
@media (max-width: 960px) {
  .app { grid-template-columns: 1fr; }
  .sidebar {
    position: fixed;
    left: 0; top: 0;
    width: 280px;
    height: 100vh;
    z-index: 40;
    transform: translateX(-100%);
    transition: transform .25s ease;
    box-shadow: var(--shadow-lg);
  }
  .sidebar.open { transform: translateX(0); }
  .sidebar__close { display: inline-flex; }
  .menu-toggle { display: inline-flex; }
  .content { padding: 16px; }
  .topbar { padding: 0 14px; }
  .topbar__search { display: none; }
  .table-wrap { display: none; }
  .cards-list { display: flex; }
  .page-head__title { font-size: 19px; }
}
@media (min-width: 961px) {
  .cards-list { display: none !important; }
}

/* Bottom nav (mobile only) */
.bottom-nav { display: none; }
@media (max-width: 700px) {
  .bottom-nav {
    display: flex;
    position: fixed;
    bottom: 0; left: 0; right: 0;
    background: var(--surface);
    border-top: 1px solid var(--line);
    padding: 6px 4px env(safe-area-inset-bottom);
    z-index: 25;
  }
  .bottom-nav a {
    flex: 1;
    display: flex; flex-direction: column; align-items: center; gap: 2px;
    padding: 8px 4px;
    color: var(--muted);
    font-size: 10.5px;
    font-weight: 500;
  }
  .bottom-nav a.active { color: var(--brand-700); }
  .bottom-nav svg { width: 20px; height: 20px; }
  .content { padding-bottom: 80px; }
}

/* ============================================================
   PRODUCTION — Mobile responsive improvements
   ============================================================ */

/* Filtra-kartelat (financa, tiketat) — kthen 4-6 kolona në 2/1 në mobile */
@media (max-width: 900px) {
  form[style*="grid-template-columns:repeat(6"],
  form[style*="grid-template-columns:repeat(5"],
  form[style*="grid-template-columns:repeat(4"] {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}
@media (max-width: 520px) {
  form[style*="grid-template-columns:repeat(6"],
  form[style*="grid-template-columns:repeat(5"],
  form[style*="grid-template-columns:repeat(4"] {
    grid-template-columns: 1fr !important;
  }
}

/* Tabs me overflow-scroll horizontal në mobile */
.tabs { -webkit-overflow-scrolling: touch; }
@media (max-width: 600px) {
  .tab { padding: 10px 12px; font-size: 13px; }
}

/* Modal — më kompakt në mobile, full-screen për format e mëdha */
@media (max-width: 600px) {
  .modal-backdrop { padding: 0; align-items: stretch; }
  .modal {
    max-width: 100% !important;
    border-radius: 0;
    max-height: 100vh;
    height: 100vh;
  }
  .modal__body { padding: 16px; }
  .modal__head { padding: 14px 16px; }
  .modal__foot { padding: 12px 16px; }
}

/* Perm matrix — scroll horizontal në mobile */
@media (max-width: 900px) {
  .table-wrap table {
    min-width: 600px;
  }
  /* për matrix-in e Cilësimeve specifikisht */
  .card .table-wrap { overflow-x: auto; }
}

/* Chips — wrap me hapësirë në mobile */
@media (max-width: 600px) {
  .chips { gap: 5px; }
  .chip { padding: 5px 10px; font-size: 12px; }
}

/* Page head në mobile — actions wrap nën titull */
@media (max-width: 600px) {
  .page-head { flex-direction: column; align-items: flex-start; }
  .page-head__actions { margin-left: 0; width: 100%; }
  .page-head__actions .btn { flex: 1; }
}

/* Stat cards — më kompakt */
@media (max-width: 600px) {
  .stat { padding: 14px; }
  .stat__value { font-size: 22px; }
  .stat__icon { width: 30px; height: 30px; top: 12px; right: 12px; }
  .stat__icon svg { width: 14px; height: 14px; }
}

/* Inputs më të mëdhenj në mobile për fingertaps */
@media (max-width: 600px) {
  .input, .select, .textarea { font-size: 15px; padding: 10px 12px; }
  .btn { font-size: 13.5px; }
  .btn--sm { height: 32px; padding: 0 12px; }
}

/* Tabela të bllokuar nuk shfaqen — kartat marrin padding */
@media (max-width: 960px) {
  .cards-list { padding: 14px; gap: 12px; }
}

/* Header brand në mobile — më e vogël */
@media (max-width: 600px) {
  .sidebar__brand { padding: 12px 16px; min-height: 64px; }
  .sidebar__logo { max-width: 140px; }
  .sidebar__logo svg, .sidebar__brand img { max-height: 44px; }
}

/* User chip në mobile — vetëm avatar */
@media (max-width: 500px) {
  .user-chip { padding: 4px; gap: 0; }
  .user-chip span, .user-chip svg:not(:first-child) { display: none; }
  .topbar__title { font-size: 14px; }
}

/* Tickets print preview — adapto layout pa A4 në mobile screen */
@media (max-width: 700px) {
  .print-bar { flex-direction: column; gap: 8px; padding: 10px 14px !important; }
  .print-bar__actions { width: 100%; justify-content: space-between; }
}

/* Selection bar te tiketat — wrap në mobile */
@media (max-width: 500px) {
  #selectionBar { flex-direction: column; align-items: stretch !important; }
  #selectionBar .btn { width: 100%; }
}

/* Builder rows në mobile bëhen kolona të mëdha */
@media (max-width: 600px) {
  .builder__row {
    grid-template-columns: 1fr 1fr;
    padding: 10px;
  }
  .builder__row > input:first-child {
    grid-column: 1 / -1;
  }
}

/* Utility */
.flex { display: flex; }
.items-center { align-items: center; }
.gap-2 { gap: 8px; }
.gap-3 { gap: 12px; }
.gap-4 { gap: 16px; }
.mt-1 { margin-top: 4px; } .mt-2 { margin-top: 8px; } .mt-3 { margin-top: 12px; } .mt-4 { margin-top: 16px; } .mt-6 { margin-top: 24px; }
.mb-1 { margin-bottom: 4px; } .mb-2 { margin-bottom: 8px; } .mb-3 { margin-bottom: 12px; } .mb-4 { margin-bottom: 16px; }
.w-full { width: 100%; }
.text-right { text-align: right; }
.text-muted { color: var(--muted); }
.hidden { display: none !important; }
.spacer { flex: 1; }
.divider { height: 1px; background: var(--line); margin: 14px 0; }
.nowrap { white-space: nowrap; }
