/* TIM-OE 2026-05-07 v8
   SQ: Rregullon popup-in e ngjyrave/kontrastit ne admin: nuk del me i madh,
       nuk mbulon header-in keq, teksti lexohet ne dark/light dhe titulli NGJYRAT
       brenda popup-it fshihet; butoni mbetet vetem ikonë.
   DE: Fix fuer Farben/Kontrast-Popup im Admin: kompakt, lesbar in Dark/Light,
       Titelzeile im Popup ausgeblendet; Trigger bleibt Icon-only.
*/

body.timoe-vibiz-admin header.sticky {
  overflow: visible !important;
  z-index: 120 !important;
}

body.timoe-vibiz-admin header.sticky > div,
body.timoe-vibiz-admin header.sticky > div > div,
body.timoe-vibiz-admin header.sticky [class*="relative"] {
  overflow: visible !important;
}

/* Trigger button: icon only, same size in all themes. */
body.timoe-vibiz-admin header.sticky button[class*="h-11"][class*="w-11"][class*="rounded-2xl"],
body.timoe-vibiz-admin header.sticky .tmf-theme > button {
  width: 44px !important;
  min-width: 44px !important;
  max-width: 44px !important;
  height: 42px !important;
  min-height: 42px !important;
  padding: 0 !important;
  border-radius: 16px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
}

/* Dropdown container: force compact, readable and positioned under the button. */
body.timoe-vibiz-admin header.sticky .absolute.right-0.mt-3.w-56,
body.timoe-vibiz-admin header.sticky div[class*="absolute"][class*="right-0"][class*="mt-3"][class*="w-56"] {
  position: absolute !important;
  top: calc(100% + 8px) !important;
  right: 0 !important;
  left: auto !important;
  width: 168px !important;
  min-width: 168px !important;
  max-width: min(168px, calc(100vw - 24px)) !important;
  max-height: 260px !important;
  margin: 0 !important;
  padding: 6px !important;
  overflow: visible !important;
  border-radius: 18px !important;
  z-index: 99999 !important;
  transform: none !important;
}

/* Hide the title block inside dropdown (NGJYRAT/KONTRAST + subtitle). */
body.timoe-vibiz-admin header.sticky .absolute.right-0.mt-3.w-56 > div:first-child[class*="border-b"],
body.timoe-vibiz-admin header.sticky div[class*="absolute"][class*="right-0"][class*="mt-3"][class*="w-56"] > div:first-child[class*="border-b"] {
  display: none !important;
}

/* Options area spacing. */
body.timoe-vibiz-admin header.sticky .absolute.right-0.mt-3.w-56 > div:last-child,
body.timoe-vibiz-admin header.sticky div[class*="absolute"][class*="right-0"][class*="mt-3"][class*="w-56"] > div:last-child {
  padding: 0 !important;
}

body.timoe-vibiz-admin header.sticky .absolute.right-0.mt-3.w-56 button,
body.timoe-vibiz-admin header.sticky div[class*="absolute"][class*="right-0"][class*="mt-3"][class*="w-56"] button {
  min-height: 34px !important;
  padding: 8px 10px !important;
  border-radius: 13px !important;
  gap: 8px !important;
  font-size: 13px !important;
  line-height: 1.15 !important;
  opacity: 1 !important;
}

body.timoe-vibiz-admin header.sticky .absolute.right-0.mt-3.w-56 button span,
body.timoe-vibiz-admin header.sticky div[class*="absolute"][class*="right-0"][class*="mt-3"][class*="w-56"] button span {
  font-size: 13px !important;
  font-weight: 800 !important;
  opacity: 1 !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

body.timoe-vibiz-admin header.sticky .absolute.right-0.mt-3.w-56 button svg,
body.timoe-vibiz-admin header.sticky div[class*="absolute"][class*="right-0"][class*="mt-3"][class*="w-56"] button svg {
  width: 15px !important;
  height: 15px !important;
  min-width: 15px !important;
  opacity: 1 !important;
}

/* Light theme dropdown colors. */
body.timoe-vibiz-admin:not(.theme-dark):not(.dark) header.sticky .absolute.right-0.mt-3.w-56,
body.timoe-vibiz-admin:not(.theme-dark):not(.dark) header.sticky div[class*="absolute"][class*="right-0"][class*="mt-3"][class*="w-56"] {
  background: rgba(255,255,255,.98) !important;
  border: 1px solid rgba(203,213,225,.9) !important;
  color: #0f172a !important;
  box-shadow: 0 18px 42px rgba(15,23,42,.18) !important;
  backdrop-filter: blur(14px) !important;
}

body.timoe-vibiz-admin:not(.theme-dark):not(.dark) header.sticky .absolute.right-0.mt-3.w-56 button:not([class*="bg-slate-900"]),
body.timoe-vibiz-admin:not(.theme-dark):not(.dark) header.sticky div[class*="absolute"][class*="right-0"][class*="mt-3"][class*="w-56"] button:not([class*="bg-slate-900"]) {
  color: #0f172a !important;
  background: transparent !important;
}

body.timoe-vibiz-admin:not(.theme-dark):not(.dark) header.sticky .absolute.right-0.mt-3.w-56 button:not([class*="bg-slate-900"]):hover,
body.timoe-vibiz-admin:not(.theme-dark):not(.dark) header.sticky div[class*="absolute"][class*="right-0"][class*="mt-3"][class*="w-56"] button:not([class*="bg-slate-900"]):hover {
  background: #f1f5f9 !important;
}

/* Dark theme dropdown colors. These override older v6 rules that made Light/Hellblau unreadable. */
html.dark body.timoe-vibiz-admin header.sticky .absolute.right-0.mt-3.w-56,
body.timoe-vibiz-admin.theme-dark header.sticky .absolute.right-0.mt-3.w-56,
body.timoe-vibiz-admin.dark header.sticky .absolute.right-0.mt-3.w-56,
body.timoe-vibiz-admin:has(.theme-dark) header.sticky .absolute.right-0.mt-3.w-56,
body.timoe-vibiz-admin:has(.dark) header.sticky .absolute.right-0.mt-3.w-56,
html.dark body.timoe-vibiz-admin header.sticky div[class*="absolute"][class*="right-0"][class*="mt-3"][class*="w-56"],
body.timoe-vibiz-admin.theme-dark header.sticky div[class*="absolute"][class*="right-0"][class*="mt-3"][class*="w-56"],
body.timoe-vibiz-admin.dark header.sticky div[class*="absolute"][class*="right-0"][class*="mt-3"][class*="w-56"],
body.timoe-vibiz-admin:has(.theme-dark) header.sticky div[class*="absolute"][class*="right-0"][class*="mt-3"][class*="w-56"],
body.timoe-vibiz-admin:has(.dark) header.sticky div[class*="absolute"][class*="right-0"][class*="mt-3"][class*="w-56"] {
  background: linear-gradient(180deg, rgba(15,23,42,.99), rgba(10,18,34,.98)) !important;
  border: 1px solid rgba(71,85,105,.82) !important;
  color: #e5edf8 !important;
  box-shadow: 0 22px 48px rgba(2,6,23,.48) !important;
}

html.dark body.timoe-vibiz-admin header.sticky .absolute.right-0.mt-3.w-56 button,
body.timoe-vibiz-admin.theme-dark header.sticky .absolute.right-0.mt-3.w-56 button,
body.timoe-vibiz-admin.dark header.sticky .absolute.right-0.mt-3.w-56 button,
body.timoe-vibiz-admin:has(.theme-dark) header.sticky .absolute.right-0.mt-3.w-56 button,
body.timoe-vibiz-admin:has(.dark) header.sticky .absolute.right-0.mt-3.w-56 button,
html.dark body.timoe-vibiz-admin header.sticky div[class*="absolute"][class*="right-0"][class*="mt-3"][class*="w-56"] button,
body.timoe-vibiz-admin.theme-dark header.sticky div[class*="absolute"][class*="right-0"][class*="mt-3"][class*="w-56"] button,
body.timoe-vibiz-admin.dark header.sticky div[class*="absolute"][class*="right-0"][class*="mt-3"][class*="w-56"] button,
body.timoe-vibiz-admin:has(.theme-dark) header.sticky div[class*="absolute"][class*="right-0"][class*="mt-3"][class*="w-56"] button,
body.timoe-vibiz-admin:has(.dark) header.sticky div[class*="absolute"][class*="right-0"][class*="mt-3"][class*="w-56"] button {
  color: #e5edf8 !important;
}

html.dark body.timoe-vibiz-admin header.sticky .absolute.right-0.mt-3.w-56 button:not([class*="bg-slate-900"]):hover,
body.timoe-vibiz-admin.theme-dark header.sticky .absolute.right-0.mt-3.w-56 button:not([class*="bg-slate-900"]):hover,
body.timoe-vibiz-admin.dark header.sticky .absolute.right-0.mt-3.w-56 button:not([class*="bg-slate-900"]):hover,
body.timoe-vibiz-admin:has(.theme-dark) header.sticky .absolute.right-0.mt-3.w-56 button:not([class*="bg-slate-900"]):hover,
body.timoe-vibiz-admin:has(.dark) header.sticky .absolute.right-0.mt-3.w-56 button:not([class*="bg-slate-900"]):hover,
html.dark body.timoe-vibiz-admin header.sticky div[class*="absolute"][class*="right-0"][class*="mt-3"][class*="w-56"] button:not([class*="bg-slate-900"]):hover,
body.timoe-vibiz-admin.theme-dark header.sticky div[class*="absolute"][class*="right-0"][class*="mt-3"][class*="w-56"] button:not([class*="bg-slate-900"]):hover,
body.timoe-vibiz-admin.dark header.sticky div[class*="absolute"][class*="right-0"][class*="mt-3"][class*="w-56"] button:not([class*="bg-slate-900"]):hover,
body.timoe-vibiz-admin:has(.theme-dark) header.sticky div[class*="absolute"][class*="right-0"][class*="mt-3"][class*="w-56"] button:not([class*="bg-slate-900"]):hover,
body.timoe-vibiz-admin:has(.dark) header.sticky div[class*="absolute"][class*="right-0"][class*="mt-3"][class*="w-56"] button:not([class*="bg-slate-900"]):hover {
  background: rgba(30,41,59,.95) !important;
}

body.timoe-vibiz-admin header.sticky .absolute.right-0.mt-3.w-56 button[class*="bg-slate-900"],
body.timoe-vibiz-admin header.sticky div[class*="absolute"][class*="right-0"][class*="mt-3"][class*="w-56"] button[class*="bg-slate-900"] {
  background: linear-gradient(135deg, #0f172a, #1d4ed8) !important;
  color: #ffffff !important;
}

body.timoe-vibiz-admin header.sticky .absolute.right-0.mt-3.w-56 button[class*="bg-slate-900"] *,
body.timoe-vibiz-admin header.sticky div[class*="absolute"][class*="right-0"][class*="mt-3"][class*="w-56"] button[class*="bg-slate-900"] * {
  color: #ffffff !important;
  opacity: 1 !important;
}

@media (max-width: 768px) {
  body.timoe-vibiz-admin header.sticky .absolute.right-0.mt-3.w-56,
  body.timoe-vibiz-admin header.sticky div[class*="absolute"][class*="right-0"][class*="mt-3"][class*="w-56"] {
    position: fixed !important;
    top: 74px !important;
    right: 12px !important;
    left: auto !important;
    width: 160px !important;
    min-width: 160px !important;
    max-width: calc(100vw - 24px) !important;
  }
}
