/* MedApp – rregullimet pas kontrollit të faqeve (18.10.2026).
   Ky skedar ngarkohet pas medapp.css, prandaj rregullat këtu kanë përparësi. */

/* ---- 1. Listat në kompjuter: kolonat marrin gjerësinë sipas përmbajtjes ----
   Fjalët dhe numrat nuk ndahen më në mes (PRF-2026-0001, telefonat, emailat),
   titujt e kolonave ndahen vetëm te hapësirat dhe kolona e fundit nuk pritet.
   Në telefon (deri 900px) mbeten kartelat si më parë. */
@media (min-width: 901px) {
  body.change-list:not(.model-user) #result_list { table-layout: auto !important; }
  body.change-list:not(.model-user) #result_list :is(th, td),
  body.change-list:not(.model-user) #result_list thead th :is(.text, a, div, span) {
    overflow-wrap: normal !important; word-break: normal !important; hyphens: manual;
  }
  body.change-list:not(.model-user) #result_list tbody :is(td, th) { overflow: visible !important; }
  body.change-list:not(.model-user) #result_list tbody :is(td, th) a { white-space: nowrap !important; }
  body.change-list:not(.model-user) #result_list tbody td:is(.field-telefoni, .field-email, .field-numri_serik, .field-ref, [class*="field-numri"], [class*="field-data"]) { white-space: nowrap; }
  body.change-list:not(.model-user) #result_list thead th { padding: 8px 8px 8px 6px; }
  body.change-list:not(.model-user) #result_list :is(thead th.action-checkbox-column, td.action-checkbox) {
    width: 34px !important; padding-left: 4px !important; padding-right: 4px !important;
  }
  /* rezervë: nëse një emër shumë i gjatë nuk zë, tabela lëviz brenda kartës, jo e gjithë faqja */
  body.change-list:not(.model-user) #changelist .results { overflow-x: auto; }
}

/* ---- 2. Lista e dokumenteve: pa filtra të dyfishtë ----
   Njësia zgjidhet te skedat (Të gjitha / Medical / Safety / Pharmacy me numrat),
   lloji te butonat (Ofertë, Pro faturë, Faturë...). */
body.model-dokumenti.change-list #njesia-bar { display: none !important; }
body.model-dokumenti.change-list #changelist-filter details[data-filter-title="Lloji i dokumentit"] { display: none !important; }

/* ---- 3. Menyja: "Privilegjet" nën "Përdorues" me ikonën e çelësit ---- */
#nav-sidebar tr.model-privilegjet th a::before { background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><circle cx='7.5' cy='15.5' r='4.5'/><path d='M10.7 12.3L21 2M16 7l3 3M18.5 4.5l2 2'/></svg>"); }
