/* Klex admin polish overrides — make Unfold admin match the polished tenant pages */

/* Hide Unfold sidebar icons — simple text-only nav */
#nav-sidebar svg,
.sidebar svg,
[data-simplebar] svg[class*="icon"],
[data-simplebar] .material-symbols-outlined,
aside .material-symbols-outlined,
aside svg.h-4,
aside svg.h-5,
aside svg.w-4,
aside svg.w-5 {
    display: none !important;
}

/* Simpler sidebar background (match tenant_base) */
aside[data-simplebar],
#nav-sidebar,
.unfold-sidebar {
    background: #f9fafb !important;
    border-right: 1px solid #e5e7eb !important;
}

/* Sidebar title (brand) — match tenant style */
.unfold-sidebar h1,
aside h1 {
    font-size: 22px !important;
    font-weight: 600 !important;
    color: #2563eb !important;
    letter-spacing: -0.5px !important;
}

/* Nav items — simpler look */
aside a[href],
.unfold-sidebar a[href] {
    font-size: 13px !important;
    color: #6b7280 !important;
    padding: 8px 10px !important;
    border-radius: 6px !important;
}

aside a[href]:hover,
.unfold-sidebar a[href]:hover {
    background: #f3f4f6 !important;
    color: #111827 !important;
}

/* Active nav item */
aside a[href].bg-primary-50,
aside a[href][aria-current="page"],
aside a[href].active,
.unfold-sidebar a[aria-current="page"] {
    background: #eff6ff !important;
    color: #1e40af !important;
    font-weight: 500 !important;
}

/* Section headers in sidebar */
aside h2,
aside .text-xs.uppercase,
.unfold-sidebar h2 {
    font-size: 10px !important;
    text-transform: uppercase !important;
    color: #9ca3af !important;
    letter-spacing: 0.5px !important;
    padding: 12px 10px 4px !important;
}

/* Search box — hide (simple design has none) */
#navbar-search,
aside input[type="search"],
.unfold-sidebar form[role="search"] {
    display: none !important;
}


/* Ensure Add button is always visible in Unfold admin */
.object-tools {
  display: flex !important;
  gap: 0.5rem !important;
  margin: 0 0 1rem 0 !important;
  padding: 0 !important;
  list-style: none !important;
  justify-content: flex-end !important;
}

.object-tools li {
  display: inline-block !important;
  margin: 0 !important;
}

.object-tools a.addlink,
.object-tools a {
  background: #2563eb !important;
  color: white !important;
  padding: 0.5rem 0.85rem !important;
  border-radius: 0.5rem !important;
  font-size: 0.875rem !important;
  font-weight: 500 !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 0.375rem !important;
  text-decoration: none !important;
  line-height: 1.2 !important;
  border: none !important;
  box-shadow: none !important;
}

.object-tools a.addlink::before {
  content: "+ ";
  font-weight: 600;
}

.object-tools a:hover {
  background: #1d4ed8 !important;
}

/* Hide edit/view/delete related buttons (broken empty boxes) — keep + add */
a.change-related,
a.view-related,
a.delete-related {
  display: none !important;
}

/* Style the "+ add new" button with a visible plus sign */
a.add-related {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 32px !important;
  height: 32px !important;
  background: #eff6ff !important;
  border: 1px solid #bfdbfe !important;
  border-radius: 6px !important;
  text-decoration: none !important;
  position: relative;
}
a.add-related::before {
  content: "+";
  font-size: 18px;
  font-weight: 600;
  color: #2563eb;
  line-height: 1;
}
a.add-related img,
a.add-related svg,
a.add-related span {
  display: none !important;
}
a.add-related:hover {
  background: #dbeafe !important;
}
