/**
 * NIBZ Official Brand Theme Stylesheet
 * Brand Color: Classic Royal Blue (#1683f4 / rgb(22, 131, 244))
 * The authentic Nibz theme color from the previous platform.
 */

:root,
[data-bs-theme="light"],
[data-bs-theme="dark"] {
  /* Brand Variables - Nibz Classic Royal Blue */
  --nibz-primary: #1683f4;
  --nibz-primary-rgb: 22, 131, 244;
  --nibz-primary-hover: #0b72de;
  --nibz-primary-dark: #085bb3;
  --nibz-navy: #0e2439;

  /* Finder Theme Overrides */
  --fn-primary: #1683f4 !important;
  --fn-primary-rgb: 22, 131, 244 !important;
  --fn-primary-text-emphasis: #0b72de !important;
  --fn-primary-bg-subtle: rgba(22, 131, 244, 0.12) !important;
  --fn-primary-border-subtle: rgba(22, 131, 244, 0.28) !important;
  --fn-link-color: #1683f4 !important;
  --fn-link-color-rgb: 22, 131, 244 !important;
  --fn-link-hover-color: #0b72de !important;
  --fn-link-hover-color-rgb: 11, 114, 222 !important;
}

/* ========================================================= */
/* 1. TOP NAVBAR / HEADER (#1683f4)                         */
/* ========================================================= */
header.navbar,
.nibz-navbar {
  background: #1683f4 !important;
  background-color: #1683f4 !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.18) !important;
  box-shadow: 0 4px 18px rgba(22, 131, 244, 0.25) !important;
  transition: background-color 0.25s ease-in-out;
}

/* Brand Logo Badge */
.nibz-logo-badge {
  background: #ffffff;
  padding: 4px 10px;
  border-radius: 0.85rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.12);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.navbar-brand:hover .nibz-logo-badge {
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
}

.nibz-brand-logo {
  height: 38px;
  width: auto;
  object-fit: contain;
  display: block;
}

/* Navbar Links */
header.navbar .navbar-nav .nav-link {
  color: #ffffff !important;
  font-weight: 500;
  padding: 0.5rem 1rem !important;
  border-radius: 50rem;
  transition: background-color 0.2s ease, color 0.2s ease;
}

header.navbar .navbar-nav .nav-link:hover,
header.navbar .navbar-nav .nav-link.active,
header.navbar .navbar-nav .show > .nav-link {
  color: #ffffff !important;
  background-color: rgba(255, 255, 255, 0.22) !important;
}

/* Header Buttons */
header.navbar .btn-outline-secondary {
  color: #ffffff !important;
  border-color: rgba(255, 255, 255, 0.45) !important;
  background: rgba(255, 255, 255, 0.15) !important;
}

header.navbar .btn-outline-secondary:hover {
  background: rgba(255, 255, 255, 0.3) !important;
  color: #ffffff !important;
}

/* Primary "Add business" button in header - crisp white pill */
header.navbar .btn-primary {
  background: #ffffff !important;
  background-color: #ffffff !important;
  color: #1683f4 !important;
  font-weight: 600 !important;
  border: none !important;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15) !important;
  transition: all 0.25s ease-in-out !important;
}

header.navbar .btn-primary:hover {
  background: #f0f7ff !important;
  color: #0b72de !important;
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.22) !important;
}

/* Clean Mobile Toggler Button (Mobile only: < 992px, Hidden on Desktop: >= 992px) */
@media (max-width: 991.98px) {
  .nibz-header-toggler,
  header.navbar .navbar-toggler {
    border: none !important;
    background: transparent !important;
    box-shadow: none !important;
    padding: 6px !important;
    border-radius: 0.5rem !important;
    color: #ffffff !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer;
    transition: background-color 0.2s ease;
  }

  .nibz-header-toggler:hover,
  .nibz-header-toggler:focus,
  header.navbar .navbar-toggler:hover,
  header.navbar .navbar-toggler:focus {
    background: rgba(255, 255, 255, 0.18) !important;
    color: #ffffff !important;
  }

  .nibz-header-toggler i {
    font-size: 1.45rem !important;
    line-height: 1 !important;
    color: #ffffff !important;
    margin-right: 0 !important;
  }
}

@media (min-width: 992px) {
  .nibz-header-toggler,
  header.navbar .navbar-toggler {
    display: none !important;
  }
}

/* Dropdown menus on navbar */
header.navbar .dropdown-menu {
  border: 1px solid rgba(22, 131, 244, 0.2);
  box-shadow: 0 10px 30px rgba(22, 131, 244, 0.2);
  border-radius: 1rem;
}

/* ========================================================= */
/* 2. HOMEPAGE HERO SECTION (#1683f4)                       */
/* ========================================================= */
.nibz-home-hero {
  background: #1683f4 !important;
  background-color: #1683f4 !important;
  color: #ffffff !important;
  position: relative;
  overflow: hidden;
}

.nibz-home-hero h1,
.nibz-home-hero h2,
.nibz-home-hero p,
.nibz-home-hero a.hover-effect-underline {
  color: #ffffff !important;
}

.nibz-home-hero p.fs-lg {
  color: rgba(255, 255, 255, 0.95) !important;
}

/* Category Quick Bubbles in Hero */
.nibz-home-hero .category-bubble {
  background: rgba(255, 255, 255, 0.2) !important;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.35) !important;
  transition: all 0.25s ease;
}

.nibz-home-hero article:hover .category-bubble {
  background: rgba(255, 255, 255, 0.32) !important;
  border-color: #ffffff !important;
  transform: scale(1.08);
}

.nibz-home-hero .category-icon-svg,
.nibz-home-hero article svg {
  color: #ffffff !important;
  fill: #ffffff !important;
}

.nibz-home-hero article h3,
.nibz-home-hero article h3 a {
  color: #ffffff !important;
}

.nibz-home-hero [class*="bg-"][class*="-subtle"] {
  background: rgba(255, 255, 255, 0.2) !important;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.35) !important;
}

.nibz-home-hero article:hover [class*="bg-"][class*="-subtle"] {
  background: rgba(255, 255, 255, 0.32) !important;
  border-color: #ffffff !important;
}

/* Homepage Hero Search Form - Prevent messy rectangular inner focus box */
.nibz-home-hero form .form-control,
.nibz-home-hero form .form-control:focus,
.nibz-home-hero form .form-select,
.nibz-home-hero form .form-select:focus,
.nibz-home-hero form .choices,
.nibz-home-hero form .choices.is-focused,
.nibz-home-hero form .choices__inner {
  border: 0 !important;
  border-color: transparent !important;
  box-shadow: none !important;
  outline: none !important;
  background-color: transparent !important;
}

/* Outer pill gets smooth, sleek glow when any search input is focused */
.nibz-home-hero form:focus-within > span.bg-body {
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.45), 0 8px 30px rgba(0, 0, 0, 0.15) !important;
  border-color: #ffffff !important;
  transition: all 0.2s ease-in-out;
}

/* Operating Hours Time Inputs (Desktop & Mobile) */
.time-input-field {
  min-width: 95px !important;
  font-size: 0.875rem !important;
  text-align: center;
  padding-left: 0.5rem !important;
  padding-right: 0.5rem !important;
}

@media (max-width: 575.98px) {
  .hours-entry-row {
    padding: 0.75rem 0.875rem !important;
  }
  .hours-inputs-wrap {
    width: 100% !important;
  }
  .hours-inputs-wrap .input-group {
    width: 100% !important;
  }
  .hours-inputs-wrap .input-group-text {
    min-width: 82px;
    justify-content: center;
    font-size: 0.75rem !important;
    padding-left: 0.5rem !important;
    padding-right: 0.5rem !important;
  }
}

/* ========================================================= */
/* 3. BUTTONS (#1683f4)                                     */
/* ========================================================= */
.btn-primary {
  background: #1683f4 !important;
  background-color: #1683f4 !important;
  border: 1px solid #1683f4 !important;
  color: #ffffff !important;
  box-shadow: 0 4px 14px rgba(22, 131, 244, 0.35) !important;
  transition: all 0.25s ease-in-out !important;
}

.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active,
.btn-primary.show,
.btn-primary:first-child:active,
:not(.btn-check) + .btn-primary:active {
  background: #0b72de !important;
  background-color: #0b72de !important;
  border-color: #0b72de !important;
  color: #ffffff !important;
  box-shadow: 0 6px 20px rgba(11, 114, 222, 0.45) !important;
  transform: translateY(-1px);
}

.btn-outline-primary {
  border-color: #1683f4 !important;
  color: #1683f4 !important;
}

[data-bs-theme="dark"] .btn-outline-primary {
  color: #1683f4 !important;
}

.btn-outline-primary:hover,
.btn-outline-primary:focus,
.btn-outline-primary:active {
  background: #1683f4 !important;
  background-color: #1683f4 !important;
  border-color: #1683f4 !important;
  color: #ffffff !important;
  box-shadow: 0 4px 14px rgba(22, 131, 244, 0.35) !important;
}

/* ========================================================= */
/* 4. BACKGROUNDS & SOLID ACCENTS                            */
/* ========================================================= */
.bg-primary,
.badge.bg-primary {
  background: #1683f4 !important;
  background-color: #1683f4 !important;
  color: #ffffff !important;
}

.nibz-solid-bg {
  background: #1683f4 !important;
  background-color: #1683f4 !important;
  color: #ffffff !important;
}

.bg-primary-subtle {
  background-color: rgba(22, 131, 244, 0.12) !important;
  color: #0b72de !important;
}

[data-bs-theme="dark"] .bg-primary-subtle {
  background-color: rgba(22, 131, 244, 0.18) !important;
  color: #1683f4 !important;
}

/* ========================================================= */
/* 5. TEXT & ACCENTS                                         */
/* ========================================================= */
.text-primary,
a.text-primary,
.text-primary-emphasis {
  color: #1683f4 !important;
}

.border-primary {
  border-color: #1683f4 !important;
}

/* ========================================================= */
/* 6. FORM CONTROLS & FOCUS STATES                           */
/* ========================================================= */
.form-control:not(.border-0):focus,
.form-select:not(.border-0):focus,
.form-floating > .form-control:focus,
.form-floating > .form-select:focus {
  border-color: #1683f4 !important;
  box-shadow: 0 0 0 0.25rem rgba(22, 131, 244, 0.22) !important;
}

.form-check-input:checked {
  background-color: #1683f4 !important;
  border-color: #1683f4 !important;
}

.form-switch .form-check-input:checked {
  background-color: #1683f4 !important;
  border-color: #1683f4 !important;
}

.time-select-field {
  min-width: 120px;
  font-size: 0.875rem !important;
  font-weight: 500;
  cursor: pointer;
}

@media (max-width: 575.98px) {
  .hours-inputs-wrap .input-group-text {
    min-width: 88px;
    font-size: 0.75rem !important;
  }
}

/* ========================================================= */
/* 7. STEP HEADERS, HERO & DASHBOARD HERO                    */
/* ========================================================= */
.nibz-hero-banner {
  background: #1683f4 !important;
  background-color: #1683f4 !important;
  color: #ffffff !important;
}

.nibz-hero-banner h1,
.nibz-hero-banner h2,
.nibz-hero-banner h3,
.nibz-hero-banner p {
  color: #ffffff !important;
}

/* Active navigation pill & indicator */
.nav-pills .nav-link.active,
.nav-pills .show > .nav-link {
  background: #1683f4 !important;
  background-color: #1683f4 !important;
  color: #ffffff !important;
}

.pagination .page-item.active .page-link {
  background: #1683f4 !important;
  background-color: #1683f4 !important;
  border-color: #1683f4 !important;
  color: #ffffff !important;
}

/* ========================================================= */
/* 8. FOOTER (#1683f4 Top Accent Border)                     */
/* ========================================================= */
footer.footer,
.nibz-footer {
  background: #0e2439 !important;
  background-color: #0e2439 !important;
  color: rgba(255, 255, 255, 0.85) !important;
  border-top: 3px solid #1683f4 !important;
}

footer.footer h5,
footer.footer h6,
footer.footer .h5,
footer.footer .accordion-button {
  color: #ffffff !important;
  font-weight: 600;
}

footer.footer .nav-link,
footer.footer a.text-dark-emphasis,
footer.footer a {
  color: rgba(255, 255, 255, 0.8) !important;
  transition: color 0.2s ease;
}

footer.footer .nav-link:hover,
footer.footer a:hover {
  color: #1683f4 !important;
}

footer.footer .border-top,
footer.footer .border-bottom,
footer.footer hr {
  border-color: rgba(255, 255, 255, 0.15) !important;
}

.nibz-footer-logo {
  height: 48px;
  width: auto;
  object-fit: contain;
  background: #ffffff;
  padding: 6px 14px;
  border-radius: 50rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* ========================================================= */
/* 9. ACCOUNT SIDEBAR & PROFILE STYLING                      */
/* ========================================================= */
/* Desktop sticky positioning (screens >= 992px) */
@media (min-width: 992px) {
  #accountSidebar.sticky-lg-top {
    top: 100px !important;
  }

  .nibz-account-sidebar-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 1rem;
    box-shadow: 0 1px 3px 0 rgba(15, 23, 42, 0.04), 0 1px 2px -1px rgba(15, 23, 42, 0.03);
    padding: 1.5rem;
  }
}

/* Mobile Offcanvas Drawer (screens < 992px) */
@media (max-width: 991.98px) {
  #accountSidebar.offcanvas-lg {
    top: 0 !important;
    bottom: 0 !important;
    left: 0 !important;
    height: 100% !important;
    max-height: 100vh !important;
    width: 320px !important;
    max-width: 85vw !important;
    background-color: #ffffff !important;
    border: none !important;
    border-radius: 0 1.25rem 1.25rem 0 !important;
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.2) !important;
    z-index: 1060 !important;
    overflow-y: auto !important;
  }

  .nibz-account-sidebar-card {
    background: #ffffff;
    border: none !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    padding: 1.25rem 1.25rem 2rem 1.25rem !important;
    min-height: 100% !important;
    display: flex !important;
    flex-direction: column !important;
  }

  #accountSidebar .offcanvas-header {
    position: relative;
    padding-top: 0.5rem !important;
  }

  #accountSidebar .offcanvas-body {
    flex: 1 1 auto;
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important;
  }
}

.nibz-avatar-circle {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, #e0f2fe 0%, #bae6fd 100%);
  color: #0284c7;
  font-size: 1.5rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(2, 132, 199, 0.18);
  border: 2px solid #ffffff;
  flex-shrink: 0;
}

.nibz-sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 0;
  margin: 0;
  list-style: none;
}

.nibz-sidebar-item {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  padding: 0.65rem 0.85rem;
  border-radius: 0.65rem;
  color: #475569;
  font-size: 0.9375rem;
  font-weight: 500;
  text-decoration: none !important;
  transition: all 0.2s ease-in-out;
}

.nibz-sidebar-item:hover {
  color: #1683f4 !important;
  background-color: #f8fafc;
  transform: translateX(3px);
}

.nibz-sidebar-item.active {
  color: #1683f4 !important;
  background-color: #eff6ff !important;
  font-weight: 600;
}

.nibz-sidebar-icon {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.5rem;
  background: #f1f5f9;
  color: #64748b;
  font-size: 1rem;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.nibz-sidebar-item:hover .nibz-sidebar-icon {
  background: #e0f2fe;
  color: #1683f4;
}

.nibz-sidebar-item.active .nibz-sidebar-icon {
  background: #1683f4;
  color: #ffffff;
  box-shadow: 0 4px 10px rgba(22, 131, 244, 0.25);
}

.nibz-sidebar-logout {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  padding: 0.65rem 0.85rem;
  border-radius: 0.65rem;
  color: #ef4444;
  font-size: 0.9375rem;
  font-weight: 500;
  background: transparent;
  border: none;
  width: 100%;
  text-align: left;
  transition: all 0.2s ease;
}

.nibz-sidebar-logout:hover {
  background-color: #fef2f2;
  color: #dc2626;
  transform: translateX(3px);
}

.nibz-sidebar-logout .nibz-sidebar-icon {
  background: #fee2e2;
  color: #ef4444;
}

.nibz-sidebar-logout:hover .nibz-sidebar-icon {
  background: #ef4444;
  color: #ffffff;
}

/* ========================================================= */
/* 10. ICON SPACING & ALIGNMENT FIXES                        */
/* ========================================================= */
i[class^="fi-"], i[class*=" fi-"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  vertical-align: -0.125em;
  line-height: 1;
}

/* Standalone & Centered Icons (Circles, Badges, Buttons, Avatars, Only-Children) */
i[class^="fi-"]:only-child,
i[class*=" fi-"]:only-child,
.rounded-circle i,
.rounded-circle [class^="fi-"],
.rounded-circle [class*=" fi-"],
.icon-circle i,
.icon-circle [class^="fi-"],
.icon-circle [class*=" fi-"],
.nibz-sidebar-icon i[class^="fi-"],
.nibz-sidebar-icon i[class*=" fi-"],
.nibz-stat-icon i,
.nibz-stat-icon [class^="fi-"],
.nibz-stat-icon [class*=" fi-"],
.btn-icon i[class^="fi-"],
.btn-icon i[class*=" fi-"],
.avatar i[class^="fi-"],
.avatar i[class*=" fi-"],
.d-flex.align-items-center.justify-content-center i,
.d-inline-flex.align-items-center.justify-content-center i {
  margin: 0 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
  vertical-align: middle !important;
  line-height: 1 !important;
}

/* In flex containers with gap, do not add stray right margin */
[class*="gap-"] > i[class^="fi-"]:not([class*="me-"]):not([class*="ms-"]),
[class*="gap-"] > i[class*=" fi-"]:not([class*="me-"]):not([class*="ms-"]) {
  margin-right: 0 !important;
  vertical-align: middle !important;
}

/* Explicit margin utility preservation */
i[class^="fi-"].me-1, i[class*=" fi-"].me-1 { margin-right: 0.25rem !important; }
i[class^="fi-"].me-2, i[class*=" fi-"].me-2 { margin-right: 0.5rem !important; }
i[class^="fi-"].me-3, i[class*=" fi-"].me-3 { margin-right: 1rem !important; }
i[class^="fi-"].m-0, i[class*=" fi-"].m-0 { margin: 0 !important; }

/* ========================================================= */
/* 11. BOOTSTRAP 5 PAGINATION STYLING & SVG SAFETY FIX       */
/* ========================================================= */
.pagination,
nav[role="navigation"] {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 0.35rem !important;
  margin-top: 1.5rem !important;
}

.pagination svg,
nav[role="navigation"] svg {
  width: 1rem !important;
  height: 1rem !important;
  max-width: 1rem !important;
  max-height: 1rem !important;
  display: inline-block !important;
  vertical-align: middle !important;
}

.pagination .page-item .page-link {
  border-radius: 50rem !important;
  min-width: 38px;
  height: 38px;
  padding: 0 0.75rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.875rem;
  font-weight: 500;
  color: #4b5563;
  background-color: #ffffff;
  border: 1px solid #e5e7eb;
  transition: all 0.2s ease;
  box-shadow: none !important;
}

.pagination .page-item .page-link:hover {
  background-color: #f3f4f6;
  color: #1683f4;
  border-color: #d1d5db;
}

.pagination .page-item.active .page-link {
  background-color: #1683f4 !important;
  border-color: #1683f4 !important;
  color: #ffffff !important;
  box-shadow: 0 4px 12px rgba(22, 131, 244, 0.25) !important;
}

.pagination .page-item.disabled .page-link {
  background-color: #f9fafb;
  color: #9ca3af;
  border-color: #f3f4f6;
}

/* ========================================================= */
/* 8. SELECT2 BOOTSTRAP 5 THEME CUSTOMIZATION                */
/* ========================================================= */
.select2-container--bootstrap-5:not(.select2-container--open) {
  width: 100% !important;
  display: block;
}
.select2-container--bootstrap-5.select2-container--open {
  display: block !important;
  box-sizing: border-box !important;
}
.select2-container--bootstrap-5 .select2-selection--single {
  height: 44px !important;
  min-height: 44px !important;
  padding: 0.55rem 1rem !important;
  font-size: 0.9375rem !important;
  line-height: 1.5 !important;
  border-radius: 0.5rem !important;
  border: 1px solid #cad0d9 !important;
  background-color: #fff !important;
  color: #212529 !important;
  display: flex !important;
  align-items: center !important;
  transition: border-color .15s ease-in-out, box-shadow .15s ease-in-out !important;
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='none' stroke='%234e5562' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: right 1rem center !important;
  background-size: 14px 10px !important;
}
.select2-container--bootstrap-5.select2-container--focus .select2-selection--single,
.select2-container--bootstrap-5.select2-container--open .select2-selection--single {
  border-color: #1683f4 !important;
  box-shadow: 0 0 0 0.25rem rgba(22, 131, 244, 0.22) !important;
  outline: 0 !important;
}
.select2-container--bootstrap-5 .select2-selection--single .select2-selection__rendered {
  padding-left: 0 !important;
  padding-right: 2.25rem !important;
  color: #212529 !important;
  font-size: 0.9375rem !important;
  font-weight: 400 !important;
  line-height: 1.5 !important;
}
.select2-container--bootstrap-5 .select2-selection--single .select2-selection__placeholder {
  color: #6c757d !important;
  font-size: 0.9375rem !important;
  font-weight: 400 !important;
}
.select2-container--bootstrap-5 .select2-selection--single .select2-selection__arrow {
  display: none !important;
}
.select2-container--bootstrap-5 .select2-selection--single .select2-selection__clear {
  position: absolute !important;
  right: 2.5rem !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  font-size: 1.15rem !important;
  color: #8892a0 !important;
}
.select2-container--bootstrap-5 .select2-selection--single .select2-selection__clear:hover {
  color: #dc3545 !important;
}
/* Select2 Dropdown Menu */
.select2-container--bootstrap-5 .select2-dropdown {
  border: 1px solid #1683f4 !important;
  border-radius: 0.5rem !important;
  box-shadow: 0 0.5rem 1.5rem rgba(0, 0, 0, 0.12) !important;
  overflow: hidden !important;
  z-index: 1070 !important;
  padding: 0.25rem 0;
}
.select2-container--bootstrap-5 .select2-dropdown .select2-search {
  padding: 0.625rem 0.875rem !important;
  background: #f8fafc !important;
  border-bottom: 1px solid #e2e8f0 !important;
}
.select2-container--bootstrap-5 .select2-dropdown .select2-search .select2-search__field {
  border-radius: 0.375rem !important;
  padding: 0.5rem 0.75rem !important;
  border: 1px solid #cad0d9 !important;
  font-size: 0.9375rem !important;
  background: #fff !important;
}
.select2-container--bootstrap-5 .select2-dropdown .select2-search .select2-search__field:focus {
  border-color: #1683f4 !important;
  box-shadow: 0 0 0 0.2rem rgba(22, 131, 244, 0.15) !important;
  outline: 0 !important;
}
.select2-container--bootstrap-5 .select2-results__option--highlighted.select2-results__option--selectable {
  background-color: #1683f4 !important;
  color: #fff !important;
}
.select2-container--bootstrap-5 .select2-results__option {
  padding: 0.625rem 1rem !important;
  font-size: 0.9375rem !important;
}

/* Modal Input Groups Clean Border Fix */
.modal-body .input-group .input-group-text {
  border-color: #cad0d9;
}
.modal-body .input-group .form-control {
  border-color: #cad0d9;
}

/* Filter bar select2 compact & seamless styling */
#filterCategorySelect + .select2-container--bootstrap-5 .select2-selection--single,
#filterServiceCategorySelect + .select2-container--bootstrap-5 .select2-selection--single {
  height: 38px !important;
  min-height: 38px !important;
  background-color: #f8f9fa !important;
  border: 0 !important;
  padding: 0.35rem 1rem !important;
  font-size: 0.875rem !important;
}

/* ========================================================= */
/* 12. MODERN VENDOR PORTAL CANVAS & ENTERPRISE CARDS         */
/* ========================================================= */
.nibz-portal-canvas,
.content-wrapper:has(#accountSidebar) {
  background-color: #f4f6f9 !important;
  min-height: calc(100vh - 72px);
}

/* Elevated Enterprise Cards */
.nibz-card-elevated {
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 1rem !important;
  box-shadow: 0 1px 3px 0 rgba(15, 23, 42, 0.04), 0 1px 2px -1px rgba(15, 23, 42, 0.03) !important;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.nibz-card-elevated:hover {
  border-color: #cbd5e1 !important;
  box-shadow: 0 10px 25px -5px rgba(15, 23, 42, 0.08), 0 8px 10px -6px rgba(15, 23, 42, 0.04) !important;
}

/* Stat Widget Cards */
.nibz-stat-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 1rem;
  padding: 1.25rem 1.35rem;
  box-shadow: 0 1px 3px 0 rgba(15, 23, 42, 0.04);
  transition: all 0.2s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.nibz-stat-card:hover {
  border-color: #cbd5e1;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px -2px rgba(15, 23, 42, 0.06);
}

.nibz-stat-icon {
  width: 44px;
  height: 44px;
  border-radius: 0.75rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
}

/* Business Card Specifics */
.nibz-business-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 1rem;
  overflow: visible !important;
  position: relative;
  box-shadow: 0 1px 3px 0 rgba(15, 23, 42, 0.04);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.nibz-business-card:hover,
.nibz-business-card:focus-within,
.nibz-business-card:has(.show),
.nibz-business-card.active-dropdown {
  border-color: #cbd5e1;
  box-shadow: 0 12px 28px -4px rgba(15, 23, 42, 0.09);
  z-index: 1050 !important;
}

.nibz-business-card .dropdown-menu {
  z-index: 1065 !important;
  border: 1px solid rgba(15, 23, 42, 0.1) !important;
  box-shadow: 0 14px 34px -4px rgba(15, 23, 42, 0.18), 0 6px 14px -2px rgba(15, 23, 42, 0.08) !important;
  border-radius: 0.75rem !important;
  margin-top: 6px !important;
}

.nibz-business-avatar {
  width: 64px;
  height: 64px;
  min-width: 64px;
  border-radius: 0.75rem;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.nibz-business-meta-strip {
  background-color: #f8fafc;
  border-top: 1px solid #f1f5f9;
  padding: 0.875rem 1.5rem;
  border-bottom-left-radius: calc(1rem - 1px);
  border-bottom-right-radius: calc(1rem - 1px);
}

.nibz-meta-label {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #64748b;
  margin-bottom: 0.25rem;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.nibz-meta-value {
  font-size: 0.875rem;
  font-weight: 600;
  color: #1e293b;
}

/* Store Switcher Dropdown (Constrained, elegant, prevents text overflow) */
.nibz-store-switcher-dropdown .dropdown-menu {
  width: 320px !important;
  max-width: calc(100vw - 32px) !important;
  z-index: 1060 !important;
  border: 1px solid rgba(15, 23, 42, 0.08) !important;
  box-shadow: 0 12px 32px -4px rgba(15, 23, 42, 0.16), 0 4px 12px -2px rgba(15, 23, 42, 0.08) !important;
  border-radius: 0.75rem !important;
  padding: 0.5rem !important;
}

.nibz-store-switcher-dropdown .dropdown-item {
  border-radius: 0.5rem;
  padding: 0.55rem 0.75rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: #1e293b;
  transition: all 0.15s ease-in-out;
}

.nibz-store-switcher-dropdown .dropdown-item:hover {
  background-color: #f1f5f9;
  color: #0f172a;
}

.nibz-store-switcher-dropdown .dropdown-item.active {
  background-color: rgba(22, 131, 244, 0.09) !important;
  color: #1683f4 !important;
  font-weight: 600;
}

.nibz-store-switcher-dropdown .dropdown-item .store-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  flex: 1 1 auto;
  min-width: 0;
}




