/* =========================================================
   S4Next - Hospital Management
   ========================================================= */
:root,
[data-bs-theme=light] {
  --hs-primary: #0e7c86;
  --hs-primary-dark: #0a5d65;
  --hs-primary-soft: rgba(14, 124, 134, 0.1);

  --hs-sidebar-bg: #13253f;
  --hs-sidebar-border: rgba(255, 255, 255, 0.07);
  --hs-sidebar-text: #b5c2d3;
  --hs-sidebar-muted: #6d7f99;
  --hs-sidebar-hover: rgba(255, 255, 255, 0.05);

  --hs-border: #dfe4ea;
  --hs-muted: #8a94a6;
  --hs-bg: #eef1f5;

  /* Velzon override -> primary teal */
  --vz-primary: #0e7c86;
  --vz-primary-rgb: 14, 124, 134;
  --vz-primary-text-emphasis: #0a5d65;
  --vz-primary-bg-subtle: rgba(14, 124, 134, 0.1);
  --vz-primary-border-subtle: rgba(14, 124, 134, 0.3);
  --vz-link-color: #0e7c86;
  --vz-link-color-rgb: 14, 124, 134;
  --vz-link-hover-color: #0a5d65;
  --vz-body-bg: #eef1f5;
  --vz-vertical-menu-width: 230px;
  --vz-header-height: 56px;
}

body {
  background: var(--hs-bg);
  font-size: .85rem;
}

/* ---------- Header ---------- */
#page-topbar {
  background: #fff;
  border-bottom: 1px solid var(--hs-border);
  box-shadow: 0 1px 3px rgba(16, 24, 40, 0.06);
}
.navbar-header {
  height: 56px;
  padding: 0 1rem 0 .4rem;
}
#topnav-hamburger-icon {
  display: inline-flex !important;
  visibility: visible !important;
  align-items: center;
  height: 56px;
}
.hamburger-icon span {
  background-color: #4b5563;
}
.hs-topbar-title {
  font-weight: 600;
  font-size: .9rem;
  color: #1f2937;
  margin-left: .25rem;
}
.hs-topbar-title small {
  display: block;
  font-weight: 400;
  font-size: .7rem;
  color: var(--hs-muted);
}
.header-item {
  height: 56px;
}
.hs-role-switch .btn {
  font-size: .78rem;
  font-weight: 500;
  border: 1px solid var(--hs-border);
  background: #fff;
  color: #1f2937;
  padding: .35rem .7rem;
}
.hs-role-switch .btn:hover {
  background: var(--hs-primary-soft);
  border-color: var(--hs-primary);
  color: var(--hs-primary);
}
.hs-role-switch .dropdown-item.active,
.hs-role-switch .dropdown-item:active {
  background: var(--hs-primary);
  color: #fff;
}
.dropdown-menu {
  font-size: .82rem;
  border: 1px solid var(--hs-border);
  box-shadow: 0 6px 20px rgba(16, 24, 40, 0.08);
}
.dropdown-item {
  padding: .4rem .9rem;
}
.dropdown-header {
  padding: .4rem .9rem;
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .5px;
}
.header-profile-user {
  width: 32px;
  height: 32px;
  object-fit: cover;
}
.topbar-user .btn {
  padding: .3rem .5rem;
  height: auto;
}
.topbar-user .user-name-text {
  font-size: .8rem;
}
.topbar-user .user-name-sub-text {
  font-size: .68rem;
  color: var(--hs-muted);
}
.hs-dot {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #f06548;
  border: 2px solid #fff;
}
.btn-topbar {
  width: 36px;
  height: 36px;
  font-size: 1rem;
}

/* ---------- Sidebar ---------- */
.app-menu.navbar-menu {
  background: var(--hs-sidebar-bg) !important;
  border-right: 1px solid rgba(0, 0, 0, 0.15) !important;
  box-shadow: none;
}
.navbar-menu .navbar-brand-box {
  height: 56px;
  display: flex;
  align-items: center;
  padding: 0 1rem;
  border-bottom: 1px solid var(--hs-sidebar-border);
}
.hs-brand {
  display: flex;
  align-items: center;
  gap: .55rem;
  text-decoration: none;
}
.hs-brand-icon {
  width: 30px;
  height: 30px;
  border-radius: 7px;
  background: var(--hs-primary);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
  flex-shrink: 0;
}
.hs-brand-text {
  color: #fff;
  font-weight: 700;
  font-size: .95rem;
  line-height: 1.1;
}
.hs-brand-text small {
  display: block;
  color: var(--hs-sidebar-muted);
  font-weight: 500;
  font-size: .62rem;
  text-transform: uppercase;
  letter-spacing: .6px;
  margin-top: 2px;
}
[data-sidebar-size=sm] .hs-brand-text {
  display: none;
}
[data-sidebar-size=sm] .navbar-menu .navbar-brand-box {
  justify-content: center;
  padding: 0;
}

#scrollbar {
  height: calc(100vh - 56px);
}
.navbar-menu .container-fluid {
  padding: 0;
}
.navbar-menu .navbar-nav {
  padding: 0;
}
.navbar-menu .menu-title {
  padding: .6rem 1rem .3rem !important;
  color: var(--hs-sidebar-muted) !important;
  font-size: 10px !important;
  font-weight: 700 !important;
  text-transform: uppercase;
  letter-spacing: .8px;
  text-align: left;
}
.navbar-menu .navbar-nav .nav-item {
  border-bottom: 1px solid var(--hs-sidebar-border);
}
.navbar-menu .navbar-nav .nav-link {
  color: var(--hs-sidebar-text) !important;
  padding: .5rem 1rem;
  margin: 0;
  border-radius: 0;
  font-size: .8rem;
  font-weight: 500;
  transition: background .15s ease, color .15s ease;
}
.navbar-menu .navbar-nav .nav-link i {
  color: inherit;
  font-size: 1rem;
  min-width: 1.5rem;
  line-height: 1;
}
.navbar-menu .navbar-nav .nav-link:hover {
  color: #fff !important;
  background: var(--hs-sidebar-hover);
}
.navbar-menu .navbar-nav > .nav-item > .nav-link.active {
  color: #fff !important;
  background: var(--hs-primary);
}
.navbar-menu .navbar-nav > .nav-item > .nav-link.active[data-bs-toggle=collapse] {
  background: var(--hs-sidebar-hover);
  color: #fff !important;
  box-shadow: inset 3px 0 0 var(--hs-primary);
}
.navbar-menu .navbar-nav .menu-link[data-bs-toggle=collapse]::after {
  color: inherit;
  opacity: .6;
  font-size: .9rem;
}

/* nën-menutë */
.navbar-menu .navbar-nav .menu-dropdown {
  background: rgba(0, 0, 0, 0.18);
}
.navbar-menu .navbar-nav .nav-sm {
  padding: .2rem 0;
}
.navbar-menu .navbar-nav .nav-sm .nav-item {
  border: 0;
}
.navbar-menu .navbar-nav .nav-sm .nav-link {
  padding: .32rem 1rem .32rem 2.5rem !important;
  margin: 0;
  font-size: .76rem;
  font-weight: 400;
  color: var(--hs-sidebar-text) !important;
  position: relative;
}
.navbar-menu .navbar-nav .nav-sm .nav-link::before {
  content: '';
  position: absolute;
  left: 1.45rem;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: currentColor;
  opacity: .4;
}
.navbar-menu .navbar-nav .nav-sm .nav-link:hover,
.navbar-menu .navbar-nav .nav-sm .nav-link.active {
  color: #fff !important;
  background: transparent;
}
.navbar-menu .navbar-nav .nav-sm .nav-link.active {
  font-weight: 600;
}
.navbar-menu .navbar-nav .nav-sm .nav-link.active::before {
  background: #2dd4bf;
  opacity: 1;
}

/* sidebar i ngushtë (vetëm ikona) */
[data-sidebar-size=sm] .navbar-menu .navbar-nav .nav-item:hover > a.menu-link {
  background: var(--hs-sidebar-bg) !important;
}
[data-sidebar-size=sm] .navbar-menu .navbar-nav .nav-item .menu-dropdown {
  background: var(--hs-sidebar-bg) !important;
}
[data-sidebar-size=sm] .navbar-menu .navbar-nav .nav-sm .nav-link::before {
  display: none;
}
[data-sidebar-size=sm] .navbar-menu .navbar-nav .nav-sm .nav-link {
  padding-left: 1rem !important;
}

/* ---------- Përmbajtja ---------- */
.page-content {
  padding: calc(56px + .75rem) .75rem 60px .75rem !important;
}
.hs-page-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  flex-wrap: wrap;
  margin-bottom: .75rem;
  padding-bottom: .6rem;
  border-bottom: 1px solid var(--hs-border);
}
.hs-page-head h4 {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
  color: #1f2937;
}
.hs-crumb {
  font-size: .74rem;
  color: var(--hs-muted);
  display: flex;
  align-items: center;
  gap: .15rem;
}
.hs-actions {
  display: flex;
  gap: .4rem;
  flex-wrap: wrap;
}

.card {
  margin-bottom: .75rem;
  border: 1px solid var(--hs-border);
  box-shadow: none;
  border-radius: 6px;
}
.card-header {
  padding: .6rem .9rem;
  background: #f8fafc;
  border-bottom: 1px solid var(--hs-border);
  border-radius: 6px 6px 0 0 !important;
}
.card-header .card-title {
  font-size: .85rem;
  font-weight: 600;
  margin: 0;
}
.card-body {
  padding: .9rem;
}

/* tabelat */
.table {
  border-color: var(--hs-border);
}
.table thead th {
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .4px;
  color: #6b7280;
  background: #f8fafc;
  font-weight: 600;
  white-space: nowrap;
  padding: .55rem .7rem;
  border-bottom: 1px solid var(--hs-border);
}
.table td {
  vertical-align: middle;
  font-size: .82rem;
  padding: .5rem .7rem;
}
.table-bordered > :not(caption) > * > * {
  border-color: var(--hs-border);
}
.table .btn-icon.btn-sm {
  width: 28px;
  height: 28px;
  font-size: .85rem;
}
.dataTables_wrapper .row {
  align-items: center;
}
.dataTables_wrapper .dataTables_length select,
.dataTables_wrapper .dataTables_filter input {
  font-size: .8rem;
}
.dataTables_wrapper .dataTables_length label,
.dataTables_wrapper .dataTables_filter label {
  font-size: .8rem;
  margin: 0;
}
.dt-buttons .btn {
  margin-right: .3rem;
  font-size: .76rem;
}
div.dataTables_wrapper div.dataTables_info,
div.dataTables_wrapper div.dataTables_paginate {
  font-size: .78rem;
}
.page-link {
  font-size: .78rem;
  padding: .3rem .6rem;
}

/* forma */
.form-label {
  font-size: .78rem;
  font-weight: 500;
  margin-bottom: .25rem;
}
.form-control,
.form-select {
  font-size: .82rem;
  border-color: var(--hs-border);
}

/* ===========================================================
   Forma e ngjeshur - per regjistrime te shpejta.
   Nje forme pranimi duhet te hyje ne nje ekran: sa me pak scroll,
   aq me shpejt regjistrohet pacienti te sporteli.
   =========================================================== */
.hs-form-compact .form-label {
  font-size: .72rem;
  margin-bottom: .12rem;
  color: var(--hs-muted);
}
.hs-form-compact .form-control,
.hs-form-compact .form-select {
  font-size: .82rem;
  padding: .34rem .6rem;
}
.hs-form-compact .input-group-text {
  font-size: .72rem;
  padding: .34rem .5rem;
}
.hs-form-compact .btn-check + .btn {
  font-size: .76rem;
  padding: .32rem .5rem;
}
.hs-form-compact .invalid-feedback {
  font-size: .7rem;
  margin-top: .1rem;
}

/* -----------------------------------------------------------
   Grupet e formes.
   Ndahen vetem me nje vije te holle - pa tituj e pa numra.
   Ndarja mjafton per rendin e leximit; teksti shtese e ngarkon
   pamjen pa i thene asgje atij qe e mbush formen cdo dite.
   ----------------------------------------------------------- */
.hs-form-group + .hs-form-group {
  margin-top: .85rem;
  padding-top: .85rem;
  border-top: 1px solid var(--hs-border);
}

/* Fusha me rendesi jetike - alergjite duhet te bien ne sy */
.hs-field-alert .form-label {
  color: #d1492f;
  font-weight: 600;
}
.hs-field-alert .form-control {
  border-color: #f3c4ba;
  background: #fffaf9;
}
.hs-field-alert .form-control:focus {
  border-color: #f06548;
  box-shadow: 0 0 0 .15rem rgba(240, 101, 72, .12);
}

/* -----------------------------------------------------------
   Pilula qe ndizen - zevendesojne nje kolone kutish zgjedhjeje.
   Nje rresht i vetem qe mbeshtjellet lexohet me shpejt se nente
   rreshta, dhe klikimi eshte me i madh se nje katror 13px.
   ----------------------------------------------------------- */
.hs-pills {
  display: flex;
  flex-wrap: wrap;
  gap: .3rem;
}
.hs-pills .btn {
  font-size: .74rem;
  padding: .25rem .6rem;
  border-radius: 999px;
  border-color: var(--hs-border);
  color: #5b6675;
  background: #fff;
}
.hs-pills .btn:hover {
  border-color: var(--hs-primary);
  color: var(--hs-primary);
}
.hs-pills .btn-check:checked + .btn {
  background: var(--hs-primary);
  border-color: var(--hs-primary);
  color: #fff;
}
.hs-pills .btn-check:focus-visible + .btn {
  box-shadow: 0 0 0 .15rem var(--hs-primary-soft);
}
.btn {
  font-size: .82rem;
}
.btn-sm {
  font-size: .76rem;
  padding: .3rem .65rem;
}
.modal-header {
  padding: .7rem 1rem;
  border-bottom: 1px solid var(--hs-border);
  background: #f8fafc;
}
.modal-title {
  font-size: .92rem;
  font-weight: 600;
}
.modal-body {
  padding: 1rem;
}
.modal-footer {
  padding: .6rem 1rem;
  border-top: 1px solid var(--hs-border);
}
.modal-content {
  border: 1px solid var(--hs-border);
  border-radius: 6px;
}

/* statusi */
.hs-status {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  font-size: .72rem;
  font-weight: 600;
  padding: .2rem .55rem;
  border-radius: 4px;
}
.hs-status.ok      { background: rgba(10, 179, 156, 0.12); color: #0a8f7d; }
.hs-status.wait    { background: rgba(247, 184, 75, 0.15); color: #b47a10; }
.hs-status.no      { background: rgba(240, 101, 72, 0.12); color: #d1492f; }
.hs-status.info    { background: rgba(41, 156, 219, 0.12); color: #1d7fb7; }
.hs-status.neutral { background: #eef2f7; color: #5b6675; }

/* footer */
.footer {
  height: 40px;
  padding: 11px .75rem;
  font-size: .74rem;
  border-top: 1px solid var(--hs-border);
  background: #fff;
}

/* kalendari */
.fc {
  font-size: .8rem;
}
.fc .fc-toolbar-title {
  font-size: .95rem;
  font-weight: 600;
}
.fc .fc-button-primary {
  background: var(--hs-primary);
  border-color: var(--hs-primary);
  text-transform: capitalize;
  font-size: .76rem;
  padding: .3rem .6rem;
}
.fc .fc-button-primary:not(:disabled).fc-button-active,
.fc .fc-button-primary:not(:disabled):active,
.fc .fc-button-primary:hover {
  background: var(--hs-primary-dark);
  border-color: var(--hs-primary-dark);
}
.fc .fc-daygrid-day.fc-day-today {
  background: var(--hs-primary-soft);
}
.fc-theme-standard td,
.fc-theme-standard th,
.fc-theme-standard .fc-scrollgrid {
  border-color: var(--hs-border);
}
.fc-event {
  border-radius: 3px;
  font-size: .74rem;
  padding: 1px 4px;
  cursor: pointer;
}

/* autorizimi i stafit */
.permission-toggle {
  border: 1px solid var(--hs-border);
  border-radius: 6px;
  padding: .55rem .8rem;
  background: #fff;
  font-size: .8rem;
}
.permission-toggle:hover {
  border-color: var(--hs-primary);
}

/* profili */
.profile-avatar {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--hs-primary);
}

/* shabllonet */
.hs-template {
  border: 1px solid var(--hs-border);
  border-radius: 6px;
  padding: .8rem .9rem;
  background: #fff;
  height: 100%;
  display: flex;
  align-items: center;
  gap: .7rem;
}
.hs-template:hover {
  border-color: var(--hs-primary);
}
.hs-template-icon {
  width: 34px;
  height: 34px;
  border-radius: 6px;
  background: var(--hs-primary-soft);
  color: var(--hs-primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}

/* ---------- Login ---------- */
.hs-login {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--hs-sidebar-bg);
  padding: 1.5rem;
}
.hs-login .card {
  width: 100%;
  max-width: 400px;
  border: 0;
  border-radius: 8px;
}
.hs-login .hs-brand-icon {
  width: 48px;
  height: 48px;
  font-size: 26px;
  border-radius: 10px;
}

@media (max-width: 767.98px) {
  .page-content {
    padding: calc(56px + .6rem) .5rem 60px .5rem !important;
  }
}

/* tabs */
.hs-tabs {
  border-bottom: 0;
  padding: 0 .5rem;
}
.hs-tabs .nav-link {
  font-size: .8rem;
  font-weight: 500;
  color: #6b7280;
  border: 0;
  border-bottom: 2px solid transparent;
  padding: .65rem .9rem;
  border-radius: 0;
}
.hs-tabs .nav-link:hover {
  color: var(--hs-primary);
}
.hs-tabs .nav-link.active {
  color: var(--hs-primary);
  background: transparent;
  border-bottom-color: var(--hs-primary);
}
.hs-tabs .badge {
  font-size: .66rem;
  font-weight: 600;
}
.card-footer {
  border-top: 1px solid var(--hs-border);
  padding: .6rem .9rem;
}

/* parametrat e vizitës (reparte) */
.hs-param-row {
  display: flex;
  gap: .4rem;
  align-items: center;
  padding: .3rem 0;
  border-bottom: 1px solid var(--hs-border);
}
.hs-param-row .hs-param-label {
  flex: 0 0 38%;
  font-weight: 500;
}
.hs-param-row .hs-param-value {
  flex: 1;
}
.hs-autosave {
  font-size: .74rem;
  color: #0a8f7d;
  opacity: 0;
  transition: opacity .2s;
}
.hs-autosave.show {
  opacity: 1;
}

/* kërkimi global në header */
.hs-search input {
  width: 280px;
  padding: .4rem .8rem .4rem 2.1rem;
  font-size: .8rem;
  background: #f4f6f9;
  border: 1px solid var(--hs-border);
  border-radius: 8px;
}
.hs-search input:focus {
  background: #fff;
  border-color: var(--hs-primary);
  box-shadow: none;
}
.hs-search-icon {
  position: absolute;
  left: .7rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--hs-muted);
  font-size: .95rem;
  pointer-events: none;
}
.hs-search-results {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  width: 340px;
  background: #fff;
  border: 1px solid var(--hs-border);
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(16, 24, 40, 0.12);
  max-height: 320px;
  overflow-y: auto;
  z-index: 1050;
}
.hs-search-results.show {
  display: block;
}
.hs-search-item {
  display: flex;
  align-items: center;
  gap: .6rem;
  padding: .5rem .8rem;
  text-decoration: none;
  border-bottom: 1px solid #f1f4f8;
}
.hs-search-item:last-child {
  border-bottom: 0;
}
.hs-search-item i {
  color: var(--hs-primary);
  font-size: 1rem;
  background: var(--hs-primary-soft);
  width: 28px;
  height: 28px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.hs-search-item strong {
  display: block;
  font-size: .8rem;
  color: #1f2937;
  font-weight: 600;
}
.hs-search-item small {
  display: block;
  font-size: .68rem;
  color: var(--hs-muted);
}
.hs-search-item:hover {
  background: #f6f9fb;
}
.hs-search-empty {
  padding: .8rem;
  font-size: .78rem;
  color: var(--hs-muted);
  text-align: center;
}

/* hero i dashboardit */
.hs-hero {
  background: linear-gradient(120deg, #13253f 0%, #0e7c86 100%);
  border-radius: 10px;
  color: #fff;
  padding: 1.1rem 1.4rem;
  position: relative;
  overflow: hidden;
}
.hs-hero::after {
  content: '';
  position: absolute;
  right: -60px;
  top: -60px;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
}
.hs-hero h4 {
  color: #fff;
  font-weight: 700;
  font-size: 1.15rem;
  margin: 0;
}
.hs-hero .hs-hero-date {
  color: rgba(255, 255, 255, 0.75);
  font-size: .78rem;
  text-transform: capitalize;
}
.hs-hero-stat {
  text-align: center;
  padding: .35rem 1.1rem;
  border-left: 1px solid rgba(255, 255, 255, 0.15);
}
.hs-hero-stat:first-child {
  border-left: 0;
}
.hs-hero-stat h5 {
  color: #fff;
  font-weight: 700;
  margin: 0;
  font-size: 1.15rem;
}
.hs-hero-stat p {
  color: rgba(255, 255, 255, 0.7);
  margin: 0;
  font-size: .7rem;
}

/* rreshtat e arkës në dashboard */
.hs-mini-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: .45rem .7rem;
  border: 1px solid var(--hs-border);
  border-radius: 6px;
  font-size: .78rem;
  margin-bottom: .4rem;
}
.hs-mini-row:last-child {
  margin-bottom: 0;
}

/* logoja në sidebar */
.hs-brand-logo {
  width: 32px;
  height: 32px;
  object-fit: cover;
  border-radius: 7px;
  flex-shrink: 0;
  background: #fff;
}

/* menutë e dropdown-it dalin mbi çdo kornizë (tabela me scroll, modale) */
.dropdown-menu {
  z-index: 1056;
}

/* =========================================================
   Flatpickr - kalendari kompakt në stilin e sistemit
   ========================================================= */
.flatpickr-calendar {
  width: 268px !important;
  font-size: .78rem;
  border: 1px solid var(--hs-border);
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(16, 24, 40, 0.12);
  padding: 0 0 6px;
  background: #fff;
}
.flatpickr-calendar.arrowTop::before,
.flatpickr-calendar.arrowTop::after,
.flatpickr-calendar.arrowBottom::before,
.flatpickr-calendar.arrowBottom::after {
  display: none;
}

/* koka: muaji dhe viti */
.flatpickr-months {
  background: var(--hs-primary);
  border-radius: 8px 8px 0 0;
  padding: 5px 0;
  align-items: center;
}
.flatpickr-months .flatpickr-month {
  height: 32px;
  color: #fff;
  fill: #fff;
}
.flatpickr-current-month {
  font-size: .82rem;
  font-weight: 600;
  padding: 5px 0 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .3rem;
  height: 32px;
  left: 0;
  width: 100%;
}
.flatpickr-current-month .flatpickr-monthDropdown-months {
  background: transparent;
  color: #fff;
  font-weight: 600;
  font-size: .82rem;
  border-radius: 4px;
}
.flatpickr-current-month .flatpickr-monthDropdown-months option {
  color: #1f2937;
  background: #fff;
}
.flatpickr-current-month input.cur-year {
  font-weight: 600;
  font-size: .82rem;
  color: #fff;
  padding: 0 0 0 2px;
}
.numInputWrapper span.arrowUp,
.numInputWrapper span.arrowDown {
  border-color: rgba(255, 255, 255, .3);
}
.numInputWrapper:hover {
  background: rgba(255, 255, 255, .1);
}

/* shigjetat */
.flatpickr-months .flatpickr-prev-month,
.flatpickr-months .flatpickr-next-month {
  color: #fff;
  fill: #fff;
  height: 32px;
  padding: 4px 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  line-height: 1;
}
.flatpickr-months .flatpickr-prev-month:hover,
.flatpickr-months .flatpickr-next-month:hover {
  color: #fff;
  opacity: .75;
}
.flatpickr-months .flatpickr-prev-month:hover svg,
.flatpickr-months .flatpickr-next-month:hover svg {
  fill: #fff;
}

/* emrat e ditëve */
.flatpickr-weekdays {
  height: 26px;
  background: transparent;
  margin-top: 4px;
}
span.flatpickr-weekday {
  color: var(--hs-muted);
  font-size: .68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .3px;
  background: transparent;
}

/* ditët */
.dayContainer {
  width: 252px;
  min-width: 252px;
  max-width: 252px;
  padding: 0 8px;
}
.flatpickr-days {
  width: 268px !important;
}
.flatpickr-day {
  max-width: 34px;
  height: 30px;
  line-height: 30px;
  border-radius: 6px;
  color: #374151;
  border: 0;
  margin: 1px 0;
}
.flatpickr-day:hover {
  background: var(--hs-primary-soft);
  color: var(--hs-primary);
}
.flatpickr-day.today {
  border: 1px solid var(--hs-primary);
  color: var(--hs-primary);
  font-weight: 600;
}
.flatpickr-day.selected,
.flatpickr-day.selected:hover,
.flatpickr-day.startRange,
.flatpickr-day.endRange {
  background: var(--hs-primary);
  border-color: var(--hs-primary);
  color: #fff;
  font-weight: 600;
}
.flatpickr-day.inRange,
.flatpickr-day.inRange:hover {
  background: var(--hs-primary-soft);
  color: var(--hs-primary);
  box-shadow: -5px 0 0 var(--hs-primary-soft), 5px 0 0 var(--hs-primary-soft);
  border-color: transparent;
}
.flatpickr-day.prevMonthDay,
.flatpickr-day.nextMonthDay,
.flatpickr-day.flatpickr-disabled {
  color: #cbd5e1;
}

/* ora */
.flatpickr-time {
  border-top: 1px solid var(--hs-border);
  height: 36px;
  line-height: 36px;
  max-height: 36px;
}
.flatpickr-time input,
.flatpickr-time .flatpickr-time-separator,
.flatpickr-time .flatpickr-am-pm {
  font-size: .82rem;
  font-weight: 600;
  color: #374151;
  height: 36px;
  line-height: 36px;
}
.flatpickr-time input:hover,
.flatpickr-time input:focus,
.flatpickr-time .flatpickr-am-pm:hover {
  background: var(--hs-primary-soft);
}

/* lista e analizave të grupit (checkbox) */
.hs-checklist {
  border: 1px solid var(--hs-border);
  border-radius: 6px;
  max-height: 190px;
  overflow-y: auto;
  background: #fff;
}
.hs-check-item {
  display: flex;
  align-items: center;
  gap: .5rem;
  padding: .4rem .7rem;
  font-size: .8rem;
  border-bottom: 1px solid #f1f4f8;
  cursor: pointer;
  margin: 0;
}
.hs-check-item:last-child {
  border-bottom: 0;
}
.hs-check-item:hover {
  background: #f8fafc;
}
.hs-check-item input {
  cursor: pointer;
  flex-shrink: 0;
}

/* fletëpagesa (llogaritja ATK) */
.hs-payslip {
  border: 1px solid var(--hs-border);
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
  font-size: .82rem;
}
.hs-payslip-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: .32rem .8rem;
  border-bottom: 1px solid #f1f4f8;
}
.hs-payslip-row span:last-child {
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.hs-payslip-minus span:last-child {
  color: #d1492f;
}
.hs-payslip-sum {
  background: #f8fafc;
}
.hs-payslip-total {
  background: var(--hs-primary);
  color: #fff;
  padding: .55rem .8rem;
  border-bottom: 0;
}
.hs-payslip-total span {
  font-weight: 700;
  font-size: .92rem;
}
.hs-payslip-note {
  padding: .45rem .8rem;
  background: #f8fafc;
  border-top: 1px solid var(--hs-border);
  font-size: .72rem;
  color: var(--hs-muted);
}

/* =========================================================
   Kartat statistikore (KPI)
   ========================================================= */
.hs-stat {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: .75rem .9rem;
}
.hs-stat-icon {
  width: 38px;
  height: 38px;
  min-width: 38px;
  border-radius: 9px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  line-height: 1;
  background: var(--hs-primary-soft);
  color: var(--hs-primary);
}
.hs-stat-icon.success { background: rgba(10, 179, 156, .12); color: #0a8f7d; }
.hs-stat-icon.warning { background: rgba(247, 184, 75, .16); color: #b47a10; }
.hs-stat-icon.danger  { background: rgba(240, 101, 72, .12); color: #d1492f; }
.hs-stat-icon.info    { background: rgba(41, 156, 219, .12); color: #1d7fb7; }
.hs-stat > div {
  min-width: 0;
}
.hs-stat p {
  margin: 0 0 1px;
  font-size: .72rem;
  font-weight: 500;
  color: var(--hs-muted);
  text-transform: uppercase;
  letter-spacing: .3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.hs-stat h5 {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
  color: #1f2937;
  font-variant-numeric: tabular-nums;
  line-height: 1.2;
}

/* =========================================================
   Arka — llogaria e sirtarit si veprim, jo si katër kuti

   Fillestare + Hyrjet − Daljet = Duhet të ketë. Katër numra pa lidhje
   e fshihnin veprimin; me shenjat mes tyre ai lexohet vetë, dhe rreshti
   i fundit është përgjigjja.
   ========================================================= */
.hs-arka-llogari {
  display: flex;
  align-items: stretch;
  flex-wrap: wrap;
  gap: .25rem;
}
.hs-arka-hap {
  flex: 1 1 130px;
  min-width: 0;
  padding: .55rem .7rem;
  border-radius: 9px;
  background: #f8fafc;
}
.hs-arka-hap p {
  margin: 0 0 2px;
  font-size: .68rem;
  font-weight: 600;
  color: var(--hs-muted);
  text-transform: uppercase;
  letter-spacing: .3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.hs-arka-hap h5 {
  margin: 0;
  font-size: 1.02rem;
  font-weight: 700;
  color: #1f2937;
  font-variant-numeric: tabular-nums;
  line-height: 1.2;
  white-space: nowrap;
}
.hs-arka-hap small {
  display: block;
  font-size: .66rem;
  color: var(--hs-muted);
  margin-top: 1px;
}
.hs-arka-hap.plus  h5 { color: #0a8f7d; }
.hs-arka-hap.minus h5 { color: #d1492f; }

/* Rezultati: i njëjti rresht, por i shquar — aty ndalet syri. */
.hs-arka-hap.fund {
  background: var(--hs-primary-soft);
}
.hs-arka-hap.fund h5 {
  color: var(--hs-primary);
  font-size: 1.18rem;
}

/* Shenja mes hapave. Fshihet kur rreshti thyhet në telefon: atje kutitë
   rrinë njëra nën tjetrën dhe shenja do të varej në ajër. */
.hs-arka-shenje {
  display: flex;
  align-items: center;
  padding: 0 .1rem;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--hs-muted);
  user-select: none;
}
@media (max-width: 575.98px) {
  .hs-arka-hap { flex: 1 1 100%; }
  .hs-arka-shenje { display: none; }
}

/* shiriti i datës së sotme te filtrat */
.hs-today {
  display: inline-flex;
  align-items: center;
  font-size: .78rem;
  color: var(--hs-primary);
  background: var(--hs-primary-soft);
  border-radius: 6px;
  padding: .3rem .7rem;
  white-space: nowrap;
}

/* Rreshtat e listes se stafit: dy rreshta teksti brenda nje qelize */
.hs-person {
  display: flex;
  align-items: center;
  gap: .6rem;
}
.hs-person-name {
  font-weight: 600;
  font-size: .82rem;
  line-height: 1.25;
  color: #212529;
}
.hs-person-sub {
  font-size: .72rem;
  color: var(--hs-muted);
  line-height: 1.25;
}

/* Titull i vogel per grupet e fushave brenda nje karte */
.hs-group-title {
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .4px;
  color: var(--hs-muted);
  font-weight: 600;
  margin-bottom: .5rem;
}

/* Zgjedhesi i paneleve (qasja ne sistem) */
.hs-panel-pick {
  display: flex;
  align-items: center;
  gap: .6rem;
  border: 1px solid var(--hs-border);
  border-radius: 8px;
  padding: .55rem .7rem;
  cursor: pointer;
  margin: 0;
  transition: border-color .15s, background .15s;
  height: 100%;
}
.hs-panel-pick:hover {
  border-color: var(--hs-primary);
}
.hs-panel-pick input:checked ~ .hs-panel-ico {
  background: var(--hs-primary);
  color: #fff;
}
.hs-panel-pick:has(input:checked) {
  border-color: var(--hs-primary);
  background: var(--hs-primary-soft);
}
.hs-panel-ico {
  width: 30px;
  height: 30px;
  border-radius: 7px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #eef2f7;
  color: #5b6675;
  font-size: 1rem;
  flex-shrink: 0;
}
.hs-panel-txt {
  font-size: .8rem;
  font-weight: 500;
  line-height: 1.2;
}

/* Parapamja e kontrates - duket si leter */
.hs-paper {
  background: #fff;
  border: 1px solid var(--hs-border);
  border-radius: 4px;
  padding: 2.2rem 2.6rem;
  font-family: "Times New Roman", Georgia, serif;
  font-size: .82rem;
  line-height: 1.65;
  color: #1a1a1a;
  white-space: pre-wrap;
  max-height: 46vh;
  overflow-y: auto;
  box-shadow: 0 1px 3px rgba(0, 0, 0, .06);
}

/* Rresht historiku me pike ne te majte */
.hs-timeline {
  position: relative;
  padding-left: 1.1rem;
}
.hs-timeline::before {
  content: "";
  position: absolute;
  left: 4px;
  top: .4rem;
  bottom: .4rem;
  width: 2px;
  background: var(--hs-border);
}
.hs-timeline-item {
  position: relative;
  padding: .35rem 0 .35rem .6rem;
  font-size: .78rem;
}
.hs-timeline-item::before {
  content: "";
  position: absolute;
  left: -1.1rem;
  top: .72rem;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid var(--hs-primary);
}

/* Kartat e permbledhjes qe filtrojne tabelen kur klikohen */
.hs-stat-card {
  cursor: pointer;
  transition: box-shadow .15s, border-color .15s, background .15s;
  border: 1px solid var(--hs-border);
  position: relative;
}
.hs-stat-card:hover {
  border-color: var(--hs-primary);
  box-shadow: 0 2px 10px rgba(14, 124, 134, .1);
}
.hs-stat-card.active {
  border-color: var(--hs-primary);
  background: var(--hs-primary-soft);
}
.hs-stat-card.active::after {
  content: "\ea6e";
  font-family: remixicon !important;
  position: absolute;
  top: .35rem;
  right: .5rem;
  font-size: .8rem;
  color: var(--hs-primary);
}

/* Rreshti qe tregon sa rezultate po shfaqen dhe si te pastrohen filtrat */
.hs-filter-note {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: .76rem;
  color: var(--hs-muted);
  border-top: 1px dashed var(--hs-border);
  margin-top: .6rem;
  padding-top: .5rem;
}

/* ===========================================================
   Laboratori
   =========================================================== */

/* Kerkimi i pacientit me sugjerime - lista del mbi gjithcka tjeter */
.hs-kerkim-wrap { position: relative; }
.hs-sugjerime {
  position: absolute;
  z-index: 1080;
  left: 0; right: 0; top: 100%;
  background: #fff;
  border: 1px solid var(--hs-border);
  border-radius: 0 0 6px 6px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, .12);
  max-height: 260px;
  overflow-y: auto;
}
.hs-sugjerim {
  padding: .45rem .7rem;
  cursor: pointer;
  border-bottom: 1px solid #f1f4f8;
  font-size: .8rem;
}
.hs-sugjerim:last-child { border-bottom: 0; }
.hs-sugjerim:hover,
.hs-sugjerim.aktiv { background: var(--hs-primary-soft); }
.hs-sugjerim small { color: var(--hs-muted); font-size: .72rem; }

/* Zgjedhja e analizave e ndare sipas paneleve */
.hs-panel-koka {
  display: flex;
  align-items: center;
  gap: .5rem;
  padding: .35rem .7rem;
  background: #f1f6f8;
  border-top: 1px solid var(--hs-border);
  border-bottom: 1px solid var(--hs-border);
  font-size: .76rem;
  font-weight: 600;
  cursor: pointer;
  position: sticky;
  top: 0;
  z-index: 2;
}
.hs-panel-koka:hover { background: var(--hs-primary-soft); }
.hs-panel-koka .sa { margin-left: auto; font-weight: 500; color: var(--hs-muted); }

/* Rezultati jashte referencave - duhet te bjere ne sy pa u lexuar */
.hs-rez-larte  { border-color: #f06548 !important; background: #fff7f6; font-weight: 600; }
.hs-rez-poshte { border-color: #299cdb !important; background: #f5fbff; font-weight: 600; }
.hs-shenje {
  font-size: .68rem;
  font-weight: 700;
  padding: 0 .3rem;
  border-radius: 3px;
}
.hs-shenje.larte  { color: #d1492f; background: rgba(240, 101, 72, .12); }
.hs-shenje.poshte { color: #1d7fb7; background: rgba(41, 156, 219, .12); }

/* Etiketa e epruvetes per printim */
.hs-etiketa {
  width: 62mm;
  border: 1px dashed #999;
  padding: 3mm;
  font-family: "Segoe UI", Arial, sans-serif;
}

/* ==========================================================================
   Zilja e njoftimeve
   Lista lexohet me bisht të syrit: ikona jep llojin, e trasha jep ngjarjen,
   e hollë jep kë prek, dhe koha rri djathtas ku syri e gjen pa e kërkuar.
   ========================================================================== */
.hs-bell-count {
  top: 4px;
  left: 72%;
  font-size: .6rem;
  padding: .2rem .35rem;
}
.hs-bell-menu {
  width: 340px;
  padding-bottom: .25rem;
}
.hs-bell-list {
  max-height: 360px;
  overflow-y: auto;
}
.hs-bell-item {
  display: flex;
  align-items: flex-start;
  gap: .6rem;
  padding: .55rem .9rem;
  text-decoration: none;
  border-bottom: 1px solid #f1f4f8;
}
.hs-bell-item:last-child {
  border-bottom: 0;
}
.hs-bell-item:hover {
  background: #f8fafc;
}
/* E palexuara mbahet e dallueshme me shirit, jo me ngjyrë të fortë:
   njoftimi është ftesë, jo alarm. */
.hs-bell-item.e-re {
  background: var(--hs-primary-soft, #eef4ff);
  box-shadow: inset 3px 0 0 var(--hs-primary, #3577f1);
}
.hs-bell-ikona {
  width: 30px;
  height: 30px;
  border-radius: 7px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1rem;
}
.hs-bell-tekst {
  flex: 1;
  min-width: 0;
}
.hs-bell-tekst strong {
  display: block;
  font-size: .78rem;
  color: #1f2937;
  font-weight: 600;
}
.hs-bell-tekst small {
  display: block;
  font-size: .7rem;
  color: var(--hs-muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.hs-bell-kur {
  font-size: .65rem;
  color: var(--hs-muted);
  flex-shrink: 0;
  padding-top: .15rem;
}

/* ==========================================================================
   Parametrat e vizitës — biometria, Doppler-i, anatomia fetale

   Fushat janë të vogla dhe të shumta me qëllim: gjinekologu i shtyp me radhë
   me tastierë, dhe secila duhet të hyjë në sy pa e zbritur faqen. Etiketa rri
   mbi fushë e jo përbri, që kolonat të mbeten të barabarta kudo.
   ========================================================================== */
.hs-pills .btn.active {
  background: var(--hs-primary);
  border-color: var(--hs-primary);
  color: #fff;
}
.hs-p-label {
  font-size: .7rem;
  margin-bottom: .15rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: block;
}
.hs-p-titull {
  font-size: .72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--hs-muted);
  border-bottom: 1px solid var(--hs-border);
  padding-bottom: .2rem;
  margin-bottom: .5rem;
}
.hs-p-gjendje {
  font-size: .74rem;
}

/* Doppler-i: tabelë ku nën çdo vlerë rri brezi referent i asaj jave. */
.hs-doppler {
  width: 100%;
  border-collapse: separate;
  border-spacing: .3rem;
  margin-bottom: .5rem;
}
.hs-doppler th {
  font-size: .72rem;
  font-weight: 600;
  color: var(--hs-muted);
  text-align: center;
  padding: 0;
}
.hs-doppler th[scope="row"] {
  text-align: left;
  font-style: italic;
  color: #1f2937;
  white-space: nowrap;
  padding-right: .4rem;
  vertical-align: top;
  padding-top: .35rem;
}
.hs-doppler td {
  padding: 0;
  min-width: 92px;
}
.hs-ref {
  display: block;
  font-size: .62rem;
  color: var(--hs-muted);
  text-align: center;
  letter-spacing: .02em;
  min-height: .9rem;
  padding-top: .1rem;
}

/* ==========================================================================
   Leximi i analizave

   Mjeku nuk e lexon listën nga lart poshtë: ai kërkon çka doli jashtë brezit.
   Prandaj ajo mblidhet lart si shenja, dhe rreshti i saj ngjyroset lehtë —
   aq sa të gjendet me bisht të syrit, jo aq sa faqja të bëhet alarm.
   ========================================================================== */
.hs-jashte {
  display: inline-flex;
  align-items: center;
  gap: .25rem;
  font-size: .74rem;
  padding: .15rem .5rem;
  border-radius: 999px;
  border: 1px solid transparent;
}
.hs-jashte.larte {
  background: #fdecec;
  border-color: #f5c2c2;
  color: #a62c2c;
}
.hs-jashte.poshte {
  background: #eaf3fb;
  border-color: #bcd9f0;
  color: #1b5e94;
}
.hs-rresht-jashte > td {
  background: #fffaf7;
}

/* Vija e brezit: skajet janë kufijtë, shenja është vlera e sotme. */
.hs-brez {
  position: relative;
  height: 5px;
  border-radius: 3px;
  margin-top: .3rem;
  background: linear-gradient(90deg, #f3c6c6 0%, #cfe8d4 18%, #cfe8d4 82%, #f3c6c6 100%);
}
.hs-brez-shenje {
  position: absolute;
  top: -3px;
  width: 3px;
  height: 11px;
  border-radius: 2px;
  background: #2f6f4e;
  transform: translateX(-1.5px);
}
.hs-brez-shenje.larte,
.hs-brez-shenje.poshte {
  background: #a62c2c;
}

/* ==========================================================================
   Kalendari i shtatzënisë

   Hapat rrinë njëri nën tjetrin dhe jo si vijë kohore horizontale: dritaret
   nuk janë të barabarta (6–10 javë ndaj 35–37), dhe një vijë proporcionale do
   t'i bënte disa aq të ngushta sa nuk lexohen. Ngjyra thotë gjendjen; syri
   lexon nga lart poshtë ashtu si rrjedh koha.
   ========================================================================== */
.hs-kal-hap {
  display: flex;
  align-items: center;
  gap: .8rem;
  padding: .5rem .7rem;
  border-left: 3px solid var(--hs-border);
  border-radius: 0 6px 6px 0;
  background: #fbfcfd;
  margin-bottom: .35rem;
}
.hs-kal-hap.kryer {
  border-left-color: #2f6f4e;
  background: #f2f9f5;
}
.hs-kal-hap.tani {
  border-left-color: var(--hs-primary, #3577f1);
  background: var(--hs-primary-soft, #eef4ff);
  box-shadow: 0 1px 6px rgba(53, 119, 241, .12);
}
.hs-kal-hap.kaloi {
  border-left-color: #d9a441;
  background: #fdfaf3;
}
.hs-kal-java {
  flex: 0 0 62px;
  text-align: center;
  font-weight: 700;
  font-size: .85rem;
  color: #1f2937;
  line-height: 1.1;
}
.hs-kal-java small {
  display: block;
  font-weight: 400;
  font-size: .62rem;
  color: var(--hs-muted);
}
.hs-kal-tekst { flex: 1; min-width: 0; }
.hs-kal-tekst strong { display: block; font-size: .8rem; }
.hs-kal-tekst small { display: block; font-size: .7rem; color: var(--hs-muted); }
.hs-kal-shenje { flex: 0 0 22px; text-align: center; font-size: 1.05rem; }
.hs-kal-hap.kryer .hs-kal-shenje { color: #2f6f4e; }
.hs-kal-hap.tani  .hs-kal-shenje { color: var(--hs-primary, #3577f1); }
.hs-kal-hap.kaloi .hs-kal-shenje { color: #d9a441; }

/* ==========================================================================
   Ekrani i vizitës — sipërfaqet e punës

   Shiriti nuk është "tab" në kuptimin e vjetër: ai nuk fsheh vendimet. Diagnoza,
   përmbledhja e matjeve dhe kontrolli rrinë djathtas gjithmonë; shiriti ndërron
   vetëm sipërfaqen ku SHKRUHET. Numri mbi secilin thotë sa është mbushur, që
   asgjë e shkruar të mos bëhet e padukshme.
   ========================================================================== */
.hs-seg {
  display: flex;
  gap: .25rem;
  padding: .25rem;
  background: #eef1f6;
  border-radius: 10px;
  overflow-x: auto;
}
.hs-seg-btn {
  flex: 1 1 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .35rem;
  white-space: nowrap;
  border: 0;
  background: transparent;
  color: #5b6675;
  font-size: .8rem;
  font-weight: 500;
  padding: .45rem .7rem;
  border-radius: 8px;
  cursor: pointer;
  transition: background .12s, color .12s, box-shadow .12s;
}
.hs-seg-btn i { font-size: .95rem; }
.hs-seg-btn:hover { color: var(--hs-primary, #3577f1); }
.hs-seg-btn.active {
  background: #fff;
  color: #1f2937;
  font-weight: 600;
  box-shadow: 0 1px 3px rgba(16, 24, 40, .12);
}
/* Numri i fushave të mbushura — shenjë, jo alarm. */
.hs-seg-nr {
  font-style: normal;
  font-size: .64rem;
  font-weight: 600;
  min-width: 17px;
  height: 17px;
  padding: 0 .25rem;
  border-radius: 9px;
  background: #d7dee8;
  color: #445;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.hs-seg-btn.active .hs-seg-nr {
  background: var(--hs-primary, #3577f1);
  color: #fff;
}
/* Nënshiriti i ekografisë: i njëjti mekanizëm, një shkallë më i qetë. */
.hs-seg-hollë {
  background: transparent;
  padding: 0;
  gap: .3rem;
  border-bottom: 1px solid var(--hs-border);
  border-radius: 0;
}
.hs-seg-hollë .hs-seg-btn {
  flex: 0 0 auto;
  border-radius: 6px 6px 0 0;
  padding: .4rem .8rem;
  font-size: .78rem;
}
.hs-seg-hollë .hs-seg-btn.active {
  background: #fff;
  box-shadow: none;
  border-bottom: 2px solid var(--hs-primary, #3577f1);
  margin-bottom: -1px;
}

/* Përmbledhja: ajo që u mat, e lexueshme me një vështrim. */
.hs-perm-grup { margin-bottom: .45rem; }
.hs-perm-grup:last-child { margin-bottom: 0; }
.hs-perm-grup small {
  display: block;
  font-size: .64rem;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--hs-muted);
  margin-bottom: .15rem;
}
.hs-perm-grup span {
  display: inline-block;
  font-size: .72rem;
  background: #f3f6fa;
  border: 1px solid #e4eaf1;
  border-radius: 5px;
  padding: .1rem .35rem;
  margin: 0 .2rem .2rem 0;
  color: #364152;
}
.hs-perm-grup span b { font-weight: 600; color: #1f2937; }

/* Vizita e fundit rri e mbledhur; shigjeta e vetvetishme hiqet. */
.hs-fundit > summary { list-style: none; cursor: pointer; }
.hs-fundit > summary::-webkit-details-marker { display: none; }
.hs-fundit > summary::after {
  content: "\ea4e";
  font-family: remixicon !important;
  color: var(--hs-muted);
  transition: transform .15s;
}
.hs-fundit[open] > summary::after { transform: rotate(180deg); }

/* Butonat e ruajtjes rrinë ngjitur për fund: sa më e gjatë faqja, aq më shumë
   duhet që ata të mos kërkohen. */
.hs-fundi {
  position: sticky;
  bottom: 0;
  z-index: 5;
  box-shadow: 0 -2px 10px rgba(16, 24, 40, .07);
}

/* ==========================================================================
   Kartela: përmbledhja dhe rrjedha

   Përmbledhja rri në kokë sepse ajo lexohet para se të preket pacienti.
   Rrjedha zëvendëson pesë lista të ndara: njeriut nuk i ndodhi asgjë në pesë
   kolona — i ndodhi me radhë.
   ========================================================================== */
.hs-permb {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem 2rem;
}
.hs-permb > div { min-width: 0; }
.hs-permb small {
  display: block;
  font-size: .66rem;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--hs-muted);
}
.hs-permb strong {
  display: block;
  font-size: .88rem;
  color: #1f2937;
  line-height: 1.25;
}
.hs-permb em {
  display: block;
  font-style: normal;
  font-size: .7rem;
  color: var(--hs-muted);
}

.hs-rrjedha { position: relative; padding-left: .25rem; }
.hs-rrjedha-vit {
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .06em;
  color: var(--hs-muted);
  margin: .8rem 0 .35rem;
}
.hs-rrjedha-vit:first-child { margin-top: 0; }
.hs-rrjedha-rresht {
  display: flex;
  align-items: flex-start;
  gap: .6rem;
  padding: .4rem 0;
  border-bottom: 1px solid #f2f5f8;
}
.hs-rrjedha-rresht:last-child { border-bottom: 0; }
.hs-rrjedha-ikona {
  flex: 0 0 26px;
  height: 26px;
  border-radius: 7px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: .9rem;
  background: #eef1f6;
  color: #5b6675;
}
.hs-rrjedha-ikona.ok   { background: #eaf6ee; color: #2f6f4e; }
.hs-rrjedha-ikona.wait { background: #fdf6e7; color: #9a6b12; }
.hs-rrjedha-ikona.info { background: #eaf3fb; color: #1b5e94; }
.hs-rrjedha-ikona.no   { background: #fdecec; color: #a62c2c; }
.hs-rrjedha-data {
  flex: 0 0 74px;
  font-size: .74rem;
  color: var(--hs-muted);
  padding-top: .18rem;
  white-space: nowrap;
}
.hs-rrjedha-tekst { flex: 1; min-width: 0; }
.hs-rrjedha-tekst strong { display: block; font-size: .8rem; font-weight: 600; }
.hs-rrjedha-tekst strong span { font-weight: 400; font-size: .7rem; margin-left: .3rem; }
.hs-rrjedha-tekst small { display: block; font-size: .76rem; color: #364152; }
.hs-rrjedha-tekst em { display: block; font-style: normal; font-size: .7rem; color: var(--hs-muted); }

/* ==========================================================================
   Ndarja e ndërrimit sipas mënyrës

   Katër numra që u shkojnë dy njerëzve: keshi te ai që numëron sirtarin, të
   tjerat te ai që barazon me bankën dhe me sigurimet. Keshi theksohet sepse
   është i vetmi që vërtet ndodhet në sirtar.
   ========================================================================== */
.hs-menyrat {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: .4rem;
}
.hs-menyra {
  border: 1px solid var(--hs-border);
  border-radius: 6px;
  padding: .35rem .55rem;
  background: #fff;
}
.hs-menyra span { display: block; font-size: .68rem; color: var(--hs-muted); }
.hs-menyra b { font-size: .86rem; font-weight: 600; }
.hs-menyra.kesh { border-color: var(--hs-primary); background: var(--hs-primary-soft); }
.hs-menyra.kesh b { color: var(--hs-primary-dark); }

/* ==========================================================================
   Anamneza e kartelës

   Nuk është tabelë: teksti është paragraf i shkruar nga dora e mjekut dhe
   lexohet si i tillë. Rreshti i kokës mban vetëm atë që i duhet lexuesit për
   ta vendosur në kohë — kur u shkrua, nga kush, dhe sa gjatë qëndroi ashtu.
   Shkrimi i fundit theksohet, sepse ai është gjendja e sotme.
   ========================================================================== */
.hs-anamneza-hyrje {
  border-left: 2px solid #e6ebf1;
  padding: 0 0 .9rem 1rem;
  margin-left: .35rem;
  position: relative;
}
.hs-anamneza-hyrje:last-child { padding-bottom: 0; }
.hs-anamneza-hyrje::before {
  content: "";
  position: absolute;
  left: -5px;
  top: .3rem;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #cbd4de;
}
.hs-anamneza-hyrje.tani { border-left-color: var(--hs-primary); }
.hs-anamneza-hyrje.tani::before { background: var(--hs-primary); }
.hs-anamneza-koka {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: .5rem;
  margin-bottom: .2rem;
}
.hs-anamneza-koka strong { font-size: .78rem; font-weight: 600; }
.hs-anamneza-koka span {
  font-size: .72rem;
  color: var(--hs-muted);
}
.hs-anamneza-koka em {
  font-style: normal;
  font-size: .68rem;
  color: var(--hs-muted);
  background: #f4f7fa;
  border-radius: 4px;
  padding: .05rem .35rem;
}
.hs-anamneza-lidhje { font-size: .8rem; color: var(--hs-muted); line-height: 1; }
.hs-anamneza-lidhje:hover { color: var(--hs-primary); }
.hs-anamneza-tekst {
  font-size: .82rem;
  color: #253241;
  white-space: pre-wrap;
  word-break: break-word;
}
.hs-anamneza-hyrje.tani .hs-anamneza-tekst { color: #14202e; }

/* ==========================================================================
   Ekrani i vizitës — shiriti i veglave dhe dritaret

   Shiriti i mëparshëm ndërronte sipërfaqe në vend: pesë zgjedhje rrinin mbi
   kokë edhe kur asnjëra nuk duhej, dhe faqja lexohej si një mur. Tani secili
   buton HAP një dritare dhe e mbyll kur mbaron — dhe ekrani i shkrimit rri i
   qetë. Numri mbi butonin thotë sa është mbushur brenda; korniza e theksuar
   thotë "këtu ka diçka". Asgjë nuk fshihet, vetëm pushon.
   ========================================================================== */
.hs-vegla {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
  align-items: center;
}
.hs-vegel {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  border: 1px solid var(--hs-border, #e3e6ec);
  background: #fff;
  color: #374151;
  border-radius: 9px;
  padding: .5rem .85rem;
  font-size: .82rem;
  font-weight: 500;
  cursor: pointer;
  transition: border-color .12s, color .12s, box-shadow .12s;
}
.hs-vegel:hover,
.hs-vegel.active {
  border-color: var(--hs-primary, #3577f1);
  color: var(--hs-primary, #3577f1);
  box-shadow: 0 1px 4px rgba(16, 24, 40, .08);
}
.hs-vegel i.kryesor { font-size: 1.05rem; }

/* "Këtu ka diçka" — e qetë, jo alarm. */
.hs-vegel.plot { border-color: #a9d9c4; background: #f4fbf8; }

.hs-vegel-nr {
  font-style: normal;
  font-size: .66rem;
  font-weight: 600;
  min-width: 18px;
  height: 18px;
  padding: 0 .3rem;
  border-radius: 9px;
  background: #eef1f6;
  color: #47536b;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.hs-vegel.plot .hs-vegel-nr { background: #cdeade; color: #17663f; }

/* --------------------------------------------------------------------------
   Dritaret: dialog i gjerë e i qendërzuar, jo faqe e plotë

   Faqja e plotë ishte provë e gabuar: dritarja mbulonte gjithçka, humbte
   konteksti i vizitës pas saj, dhe një formë me tri fusha dilte si ekran i
   zbrazët me cepa të largët. Tani dritarja është kuti mbi faqen, e gjerë sa
   i duhet (`--hs-gj`) dhe jo më shumë, me kokën e fundin të palëvizshëm dhe
   vetëm trupin që rrëshqet. Në telefon kthehet vetvetiu në faqe të plotë —
   aty kutia s'ka ku të rrijë.
   -------------------------------------------------------------------------- */
.hs-dritare {
  --hs-gj: 1240px;
}
@media (min-width: 768px) {
  .hs-dritare.modal-dialog {
    width: auto;
    max-width: min(var(--hs-gj), calc(100vw - 3rem));
    margin-inline: auto;
  }
  .hs-dritare .modal-content {
    border: 0;
    border-radius: 12px;
    box-shadow: 0 18px 50px rgba(16, 24, 40, .22);
  }
}
.hs-dritare .modal-header,
.hs-dritare .modal-footer,
.hs-dritare .hs-hapat { padding-inline: 1.25rem; }

.hs-dritare .modal-body { padding: 1rem 1.25rem 1.25rem; }

/* Koka dhe fundi rrinë; vetëm trupi lëviz, dhe vetëm nëse s'ka hyrë i teri. */
.hs-dritare .modal-header { border-bottom: 1px solid var(--hs-border, #e3e6ec); }
.hs-dritare .modal-footer { border-top: 1px solid var(--hs-border, #e3e6ec); }

/* --------------------------------------------------------------------------
   Dritaret anësore të vizitës

   Mjeku e ka syrin te pacienti, jo te ekrani. Një dritare në mes që errëson
   gjithçka e detyron të kthehet te kompjuteri "me kokë": humbet shënimi që po
   shkruante, humbet emri i pacientit. Panel anësor pa errësim: shënimi mbetet
   i lexueshëm majtas, matjet shkruhen djathtas, dhe Esc e mbyll. Gjerësia
   caktohet nga secila dritare (`--hs-gj`), jo nga ekrani.
   -------------------------------------------------------------------------- */
.hs-anesore {
  --hs-gj: 760px;
  width: min(var(--hs-gj), 94vw) !important;
  border-left: 1px solid var(--hs-border, #e3e6ec);
  box-shadow: -12px 0 40px rgba(16, 24, 40, .16);
}
.hs-anesore .offcanvas-header {
  padding: .7rem 1.1rem;
  border-bottom: 1px solid var(--hs-border, #e3e6ec);
  background: #f8fafc;
}
.hs-anesore .offcanvas-header .modal-title { margin: 0; }
.hs-anesore .offcanvas-body { padding: 1rem 1.1rem 1.25rem; }
.hs-anesore-fundi {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: .4rem;
  padding: .6rem 1.1rem;
  border-top: 1px solid var(--hs-border, #e3e6ec);
  background: #fff;
}
.hs-anesore-fundi .hs-esc {
  margin-right: auto;
  font-size: .72rem;
  color: var(--hs-muted);
}
.hs-anesore-fundi .hs-esc kbd {
  font-size: .68rem;
  padding: .05rem .35rem;
  background: #eef1f6;
  color: #47536b;
  border-radius: 4px;
}
@media (min-width: 992px) {
  .hs-anesore .hs-fletet {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .4rem;
  }
}

/* --------------------------------------------------------------------------
   Përcjellja e shtatzënisë — vija e 40 javëve

   Java, termini dhe menstruacioni i fundit janë tri pika të së njëjtës vijë;
   të ndara në kuti humbnin lidhjen. Vija e tregon me një vështrim: ku jemi,
   ku ndahen tremujorët, ku u bënë vizitat.
   -------------------------------------------------------------------------- */
.hs-prog-java {
  font-size: 1.7rem;
  font-weight: 700;
  line-height: 1;
  color: #1f2937;
  font-variant-numeric: tabular-nums;
}
.hs-prog-java small { font-size: 1rem; font-weight: 600; color: var(--hs-muted); }
.hs-prog-trim {
  display: inline-block;
  margin-left: .6rem;
  padding: .15rem .5rem;
  border-radius: 20px;
  font-size: .68rem;
  font-weight: 600;
  vertical-align: middle;
  background: var(--hs-primary-soft, #eef4ff);
  color: var(--hs-primary, #3577f1);
}
.hs-prog {
  position: relative;
  height: 10px;
  border-radius: 6px;
  background: #eef1f6;
  margin: .25rem 0 .3rem;
}
.hs-prog-bar {
  height: 100%;
  border-radius: 6px;
  background: linear-gradient(90deg, #7fb8ff, var(--hs-primary, #3577f1));
  transition: width .3s;
}
.hs-prog-shenje {
  position: absolute;
  top: -3px;
  width: 2px;
  height: 16px;
  background: #c3cad6;
}
.hs-prog-vizite {
  position: absolute;
  top: -3px;
  width: 16px;
  height: 16px;
  margin-left: -8px;
  border-radius: 50%;
  background: #fff;
  border: 3px solid #2f6f4e;
  box-shadow: 0 1px 3px rgba(16, 24, 40, .2);
}
.hs-prog-vizite:hover { border-color: var(--hs-primary, #3577f1); }

/* Dritarja e tanishme e kontrollit. */
.hs-tani-ikona {
  flex: 0 0 34px;
  width: 34px;
  height: 34px;
  border-radius: 9px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  background: var(--hs-primary-soft, #eef4ff);
  color: var(--hs-primary, #3577f1);
}
.hs-tani-ikona.kryer { background: #f2f9f5; color: #2f6f4e; }

/* Kartat që hapen vetëm kur duhen (të dhënat, përfundimi). */
details.hs-fundit > summary { cursor: pointer; }
details.hs-fundit > summary::after { margin-left: auto; }
details.hs-fundit > summary .card-title { display: inline; }

/* Ruajtja e heshtur te fundi i vizitës. */
.hs-autoruaj {
  font-size: .72rem;
  color: var(--hs-muted);
  white-space: nowrap;
}
.hs-autoruaj.po  { color: #0a8f7d; }
.hs-autoruaj.gab { color: #d1492f; }

/* Fletët e printimit: dhjetë rreshta njëri mbi tjetrin do ta rikthenin
   rrotullimin që sapo u hoq. Në faqe të plotë ato rrinë në dy shtylla. */
@media (min-width: 992px) {
  .hs-dritare .hs-fletet {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .4rem;
  }
}

/* --------------------------------------------------------------------------
   Mbyllja në tre hapa

   Çmimi, fletët dhe kontrolli janë tri vendime të ndryshme në të njëjtin çast.
   Të treja përnjëherë do të ishin një mur; njëra pas tjetrës lexohen si pyetje.
   -------------------------------------------------------------------------- */
.hs-hapat {
  display: flex;
  gap: .25rem;
  padding: .5rem .9rem;
  background: #f6f8fb;
  border-bottom: 1px solid var(--hs-border, #e3e6ec);
  font-size: .76rem;
  color: #8a93a3;
}
.hs-hap {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  padding: .1rem .5rem;
  border-radius: 20px;
  white-space: nowrap;
}
.hs-hap b {
  width: 17px;
  height: 17px;
  border-radius: 50%;
  background: #dfe4ec;
  color: #5b6675;
  font-size: .66rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.hs-hap.active { color: #1f2937; font-weight: 600; }
.hs-hap.active b { background: var(--hs-primary, #3577f1); color: #fff; }
.hs-hap.kryer b { background: #17663f; color: #fff; }

/* --------------------------------------------------------------------------
   Zgjedhja e fletëve për printim

   Mjeku zgjedh një, dy apo të gjitha. Fleta pa përmbajtje nuk fshihet — ajo
   thotë pse është e zbrazët, sepse një rresht që zhduket e lë njeriun duke
   kërkuar diçka që ai e di se ekziston.
   -------------------------------------------------------------------------- */
.hs-fletet { display: flex; flex-direction: column; gap: .35rem; }
.hs-fleta {
  display: flex;
  align-items: center;
  gap: .6rem;
  padding: .5rem .7rem;
  border: 1px solid var(--hs-border, #e3e6ec);
  border-radius: 8px;
  cursor: pointer;
  margin: 0;
  transition: border-color .12s, background .12s;
}
.hs-fleta:hover { border-color: var(--hs-primary, #3577f1); }
.hs-fleta input { margin: 0; flex: 0 0 auto; }
.hs-fleta > i { font-size: 1.1rem; color: #8a93a3; flex: 0 0 auto; }
.hs-fleta span { display: flex; flex-direction: column; line-height: 1.25; }
.hs-fleta b { font-size: .82rem; font-weight: 600; color: #1f2937; }
.hs-fleta small { font-size: .72rem; color: #8a93a3; }
.hs-fleta.bosh { background: #fbfbfc; }
.hs-fleta.bosh b { color: #8a93a3; font-weight: 500; }
.hs-fleta.bosh small { color: #c08a2e; }

/* Kalimi mes paneleve: paneli i mjekut mban edhe specialitetin, sepse prej tij
   ndërtohet ekrani i vizitës — "Doktori" i vetëm nuk thotë cili doktor. */
.hs-panel-item { display: flex; align-items: center; }
.hs-panel-item > span { display: flex; flex-direction: column; line-height: 1.2; }
.hs-panel-item small { font-size: .7rem; opacity: .7; font-weight: 400; }

/* ==========================================================================
   Zgjedhje e shumëfishtë në një listë rënëse

   Tetëmbëdhjetë kuti të shtrira mbi ekran lexohen si mur; të mbledhura nën një
   fushë të vetme lexohen si zgjedhje. Ajo që u zgjodh rri poshtë si shenja —
   sepse lista mbyllet, dhe një zgjedhje që zhduket bashkë me të do të duhej
   rihapur sa herë kërkohet.
   ========================================================================== */
.hs-multi { position: relative; }
.hs-multi-btn { cursor: pointer; }
.hs-multi-btn::after { display: none; }        /* shigjeta e vet select-it mjafton */

.hs-multi-menu {
  width: 100%;
  min-width: 260px;
  max-height: 330px;
  overflow-y: auto;
  padding: .25rem;
}
.hs-multi-item {
  display: flex;
  align-items: flex-start;
  gap: .55rem;
  padding: .4rem .55rem;
  border-radius: 6px;
  cursor: pointer;
  margin: 0;
}
.hs-multi-item:hover { background: var(--hs-primary-soft, #eef4ff); }
.hs-multi-item input { margin-top: .15rem; flex: 0 0 auto; }
.hs-multi-item span { display: flex; flex-direction: column; line-height: 1.25; }
.hs-multi-item b { font-size: .82rem; font-weight: 600; color: #1f2937; }
.hs-multi-item small { font-size: .7rem; color: #8a93a3; }

/* Shenjat e asaj që u zgjodh. Kryesori mban yllin: dallimi mes "çka është" dhe
   "çka guxon" duhet parë pa u lexuar teksti. */
.hs-chips { display: flex; flex-wrap: wrap; gap: .3rem; }
.hs-chip {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  padding: .2rem .3rem .2rem .55rem;
  border: 1px solid var(--hs-border, #e3e6ec);
  border-radius: 20px;
  background: #fff;
  font-size: .74rem;
  color: #374151;
}
.hs-chip.kryesor { border-color: #a9d9c4; background: #f4fbf8; font-weight: 600; }
.hs-chip.kryesor i { color: #d9a441; font-size: .72rem; }
.hs-chip-x {
  border: 0;
  background: transparent;
  color: #8a93a3;
  line-height: 1;
  font-size: .95rem;
  padding: 0 .2rem;
  cursor: pointer;
}
.hs-chip-x:hover { color: #b00; }

/* Lista e specialiteteve te koka e vizitës: një mjek me shumë të drejta nuk
   guxon ta shtyjë faqen poshtë ekranit. */
.hs-spec-menu { max-height: 320px; overflow-y: auto; }

/* ==========================================================================
   Protokollet e diagnozës

   Nuk janë sugjerime të programit. Janë terapitë që ky mjek i ka shkruar vetë
   për këtë diagnozë gjatë njëzet vjetëve, dhe numri thotë sa herë. Prandaj
   numri rri i dukshëm: pa të, rreshti do të dukej si këshillë e panjohur.
   ========================================================================== */
.hs-protokollet { display: flex; flex-direction: column; gap: .25rem; }
.hs-proto-titull {
  display: block;
  font-size: .64rem;
  text-transform: uppercase;
  letter-spacing: .3px;
  color: #8a93a3;
  margin-bottom: .1rem;
}
.hs-proto {
  display: flex;
  align-items: center;
  gap: .5rem;
  width: 100%;
  text-align: left;
  border: 1px solid var(--hs-border, #e3e6ec);
  background: #fff;
  border-radius: 7px;
  padding: .35rem .55rem;
  font-size: .76rem;
  color: #374151;
  cursor: pointer;
  transition: border-color .12s, background .12s;
}
.hs-proto:hover { border-color: var(--hs-primary, #3577f1); background: var(--hs-primary-soft, #eef4ff); }
.hs-proto span { flex: 1 1 auto; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hs-proto em {
  flex: 0 0 auto;
  font-style: normal;
  font-size: .66rem;
  font-weight: 600;
  color: #17663f;
  background: #e8f6ef;
  border-radius: 9px;
  padding: .05rem .35rem;
}

/* Brezi i vetë ordinancës nën një matje biometrie.
   Dallohet nga ai i literaturës (.hs-ref me data-ref) me një vijë të hollë
   majtas: syri duhet ta dijë pa lexuar se prej nga vjen numri. */
.hs-lokale {
  border-left: 2px solid #a9d9c4;
  padding-left: .3rem;
  color: #17663f !important;
}
.hs-lokale:empty { display: none; }
