/* Read-only tenant items */
.card.card-sidebar .list-group .regium-readonly {
  pointer-events: none;
  cursor: default;
}
.card.card-sidebar .list-group .regium-readonly:hover {
  text-decoration: none;
}

/* Hide the left "Service Details Overview" toggle card on product details */
[menuitemname="Service Details Overview"] { display: none !important; }

/* ===== REGIUM 2055: PROFESSIONAL ENTERPRISE REDESIGN ===== */
:root {
  /* Professional medium background - modern SaaS aesthetic */
  --bg-base: #F5F7FC;       /* very light blue-gray */
  --bg-secondary: #F1F4FA;  /* soft blue-gray */
  --bg-tertiary: #EBF0F8;   /* subtle blue tint */

  /* Card & panel colors - clean and bright */
  --panel: #FFFFFF;
  --panel-hover: #F8FAFB;
  --panel-light: #FAFBFD;
  --panel-accent: #F3F5F9;

  /* Modern borders - subtle but refined */
  --stroke: rgba(37, 99, 235, 0.08);
  --stroke-hover: rgba(37, 99, 235, 0.14);

  /* Typography - dark text */
  --txt: #1A2847;
  --txt-secondary: #4A5B7A;
  --txt-muted: #8B95AB;
  --txt-invert: #1A2847;

  /* Accent colors - refined and professional */
  --accent-primary: #2563EB;
  --accent-primary-dark: #1D4ED8;
  --accent-primary-light: #3B82F6;

  /* Status colors - professional palette */
  --status-danger: #DC2626;
  --status-warning: #EA580C;
  --status-success: #16A34A;
  --status-info: #2563EB;
}

/* Global styles - professional typography & spacing */
body {
  background: linear-gradient(135deg, var(--bg-base) 0%, var(--bg-secondary) 40%, var(--bg-tertiary) 100%) !important;
  color: var(--txt);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
  font-size: 15px;
  line-height: 1.6;
  letter-spacing: -0.25px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background-attachment: fixed;
  min-height: 100vh;
}

/* Header & footer - subtle and clean */
.header, .footer {
  background: transparent;
  border-bottom: 1px solid var(--stroke);
}

/* Hide Contacts menu items from all locations */
#Secondary_Navbar-Account-Contacts,
#Primary_Sidebar-Account-Contacts_Sub-Accounts {
  display: none !important;
}

.footer .container {
  display: flex;
  flex-direction: row;
  gap: 24px;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
}

/* Reduce list margins */
.footer .list-inline {
  margin-bottom: 0 !important;
  gap: 8px;
  display: flex;
  align-items: center;
}

.footer .list-inline-item {
  margin-right: 0 !important;
  flex-shrink: 0;
}

/* Footer nav links styling */
.footer .nav {
  margin-bottom: 0 !important;
  gap: 24px;
  display: flex;
  align-items: center;
}

.footer .nav-link {
  padding: 4px 0 !important;
  color: var(--txt-muted) !important;
  font-size: 13px;
  font-weight: 500;
  transition: all 0.24s ease;
  text-decoration: none;
}

.footer .nav-link:hover {
  color: var(--accent-primary) !important;
  transform: translateY(-1px);
}

/* Footer button styling (language/currency) */
.footer .btn {
  padding: 6px 12px !important;
  font-size: 13px;
  font-weight: 500;
  color: var(--txt-muted) !important;
  background: transparent;
  border: 1px solid var(--stroke) !important;
  border-radius: 8px;
  transition: all 0.24s ease;
}

.footer .btn:hover {
  color: var(--accent-primary) !important;
  border-color: var(--stroke-hover) !important;
  background: rgba(37, 99, 235, 0.04);
}

/* Copyright text styling */
.footer .copyright {
  font-size: 12px;
  color: var(--txt-muted);
  text-align: center;
  margin: 0 !important;
  line-height: 1.4;
  flex-basis: 100%;
  order: 3;
}

/* ===== HERO SECTION - 2055 MODERN ===== */
.regium-hero {
  padding: 40px 20px;
  margin: 0 -15px;
  position: relative;
}

.regium-hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--stroke), transparent);
}

.regium-title {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-weight: 800;
  font-size: 42px;
  letter-spacing: -0.8px;
  background: linear-gradient(135deg, var(--txt) 0%, var(--accent-primary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 16px;
  line-height: 1.1;
  text-transform: none;
}

.regium-sub {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 18px;
  font-weight: 650;
  color: var(--txt-secondary);
  opacity: 1;
  letter-spacing: 0.15px;
  line-height: 1.6;
}

/* ===== KPI GRID - MODERN CARDS ===== */
.regium-kpis {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
  padding: 12px;
  overflow: visible;
  white-space: normal;
}

.kpi-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 24px;
  border-radius: 14px;
  background: var(--panel) !important;
  border: 1px solid var(--stroke) !important;
  color: var(--txt) !important;
  text-decoration: none;
  box-shadow: 0 4px 16px rgba(26, 40, 71, 0.08), 0 1px 3px rgba(26, 40, 71, 0.04);
  transition: all 0.28s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.kpi-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent-primary-light), transparent);
  opacity: 0;
  transition: opacity 0.28s ease;
}

.kpi-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 14px;
  opacity: 0;
  transition: opacity 0.28s ease;
  background: radial-gradient(600px at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(37, 99, 235, 0.06), transparent 80%);
  pointer-events: none;
}

.kpi-card:hover {
  background: var(--panel-hover) !important;
  border-color: var(--stroke-hover) !important;
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(37, 99, 235, 0.12), 0 2px 6px rgba(26, 40, 71, 0.06);
}

.kpi-card:hover::before {
  opacity: 1;
}

.kpi-card:hover::after {
  opacity: 1;
}

.kpi-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  opacity: 1;
  margin-bottom: 8px;
}

.kpi-value {
  font-size: 36px;
  font-weight: 700;
  margin: 8px 0 4px;
  color: var(--txt);
  letter-spacing: -0.5px;
}

.kpi-foot {
  font-size: 13px;
  opacity: 0.7;
  color: var(--txt-secondary);
  font-weight: 400;
}

/* Status-specific styling for KPI cards */
.kpi-card.due {
  border-color: rgba(220, 38, 38, 0.2) !important;
}

.kpi-card.due:hover {
  background: rgba(220, 38, 38, 0.03) !important;
  border-color: rgba(220, 38, 38, 0.25) !important;
  box-shadow: 0 12px 28px rgba(220, 38, 38, 0.1) !important;
}

.kpi-card.requests {
  border-color: rgba(37, 99, 235, 0.2) !important;
}

.kpi-card.requests:hover {
  background: rgba(37, 99, 235, 0.03) !important;
  border-color: rgba(37, 99, 235, 0.25) !important;
  box-shadow: 0 12px 28px rgba(37, 99, 235, 0.1) !important;
}

.kpi-card.props {
  border-color: rgba(22, 163, 74, 0.2) !important;
}

.kpi-card.props:hover {
  background: rgba(22, 163, 74, 0.03) !important;
  border-color: rgba(22, 163, 74, 0.25) !important;
  box-shadow: 0 12px 28px rgba(22, 163, 74, 0.1) !important;
}

.kpi-card.credit {
  border-color: rgba(22, 163, 74, 0.2) !important;
}

.kpi-card.credit:hover {
  background: rgba(22, 163, 74, 0.03) !important;
  border-color: rgba(22, 163, 74, 0.25) !important;
  box-shadow: 0 12px 28px rgba(22, 163, 74, 0.1) !important;
}

/* ===== ANNOUNCEMENT CARDS ===== */
.regium-card {
  background: var(--panel) !important;
  border: 1px solid var(--stroke) !important;
  border-radius: 14px;
  margin: 18px 12px;
  color: var(--txt) !important;
  box-shadow: 0 4px 16px rgba(26, 40, 71, 0.08), 0 1px 3px rgba(26, 40, 71, 0.04);
  transition: all 0.28s cubic-bezier(0.4, 0, 0.2, 1);
}

.regium-card:hover {
  border-color: var(--stroke-hover) !important;
  box-shadow: 0 12px 28px rgba(37, 99, 235, 0.12), 0 2px 6px rgba(26, 40, 71, 0.06);
  transform: translateY(-2px);
}

.card-title {
  color: var(--txt);
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.35px;
  margin-bottom: 4px;
}

/* ===== SIDEBAR & CARDS ===== */
.sidebar .card,
.card-sidebar,
.sidebar .list-group-item {
  background: var(--panel) !important;
  color: var(--txt) !important;
  border: 1px solid var(--stroke) !important;
  border-radius: 14px;
  box-shadow: 0 4px 16px rgba(26, 40, 71, 0.08), 0 1px 3px rgba(26, 40, 71, 0.04);
  transition: all 0.28s cubic-bezier(0.4, 0, 0.2, 1);
}

.sidebar .card:hover,
.card-sidebar:hover,
.sidebar .list-group-item:hover {
  border-color: var(--stroke-hover) !important;
  box-shadow: 0 12px 28px rgba(37, 99, 235, 0.12), 0 2px 6px rgba(26, 40, 71, 0.06);
}

.card-sidebar .card-header {
  background: linear-gradient(90deg, var(--panel-accent), var(--panel)) !important;
  color: var(--txt) !important;
  border-bottom: 1px solid var(--stroke) !important;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: -0.3px;
  border-radius: 13px 13px 0 0;
}

.sidebar .text-muted,
.card-sidebar .text-muted {
  color: var(--txt-muted) !important;
  font-weight: 400;
}

/* ===== LOGIN CARD FOOTER - CALL TO ACTION ===== */
.login-form .card-footer {
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.08), rgba(37, 99, 235, 0.04)) !important;
  border-top: 2px solid var(--accent-primary-light) !important;
  padding: 28px 32px !important;
  border-radius: 0 0 14px 14px;
  position: relative;
  overflow: hidden;
}

.login-form .card-footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
  animation: shimmer 3s ease-in-out infinite;
}

.login-form .card-footer a {
  position: relative;
  z-index: 1;
  color: var(--accent-primary) !important;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.28s cubic-bezier(0.4, 0, 0.2, 1);
  padding: 10px 16px;
  border-radius: 8px;
  background: rgba(37, 99, 235, 0.1);
  border: 1px solid var(--accent-primary-light);
  display: inline-block;
}

.login-form .card-footer a::before {
  content: '🔑 ';
  margin-right: 4px;
  font-size: 16px;
}

.login-form .card-footer a:hover {
  color: #FFFFFF !important;
  background: linear-gradient(135deg, var(--accent-primary-light), var(--accent-primary)) !important;
  border-color: var(--accent-primary) !important;
  box-shadow: 0 8px 24px rgba(37, 99, 235, 0.35);
  transform: translateY(-3px);
}

@keyframes shimmer {
  0% {
    left: -100%;
  }
  50% {
    left: 100%;
  }
  100% {
    left: 100%;
  }
}

/* ===== LINKS - PROFESSIONAL COLORS ===== */
a {
  color: var(--accent-primary);
  font-weight: 500;
  transition: all 0.24s ease;
}

a:hover {
  color: var(--accent-primary-light);
  text-decoration: none;
  opacity: 0.95;
}

a:active {
  color: var(--accent-primary-dark);
}

/* ===== BUTTONS - PROFESSIONAL STYLE ===== */
.btn-primary {
  background: linear-gradient(135deg, var(--accent-primary), var(--accent-primary-dark)) !important;
  border-color: var(--accent-primary) !important;
  color: #FFFFFF !important;
  font-weight: 700;
  letter-spacing: -0.2px;
  border-radius: 10px;
  transition: all 0.28s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
  text-transform: none;
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--accent-primary-light), var(--accent-primary)) !important;
  border-color: var(--accent-primary-light) !important;
  box-shadow: 0 8px 20px rgba(37, 99, 235, 0.35);
  transform: translateY(-2px);
}

.btn-primary:active {
  transform: translateY(0px);
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.2);
}

.btn {
  border-radius: 10px;
  font-weight: 700;
  transition: all 0.28s cubic-bezier(0.4, 0, 0.2, 1);
  letter-spacing: -0.2px;
  font-size: 14px;
}

.btn-default {
  background: var(--panel) !important;
  border: 1px solid var(--stroke) !important;
  color: var(--txt) !important;
  box-shadow: 0 2px 8px rgba(26, 40, 71, 0.06);
}

.btn-default:hover {
  background: var(--panel-hover) !important;
  border-color: var(--stroke-hover) !important;
  box-shadow: 0 6px 16px rgba(37, 99, 235, 0.1);
}

/* ===== HEADER & NAVIGATION - 2055 PROFESSIONAL ===== */
.header {
  background: linear-gradient(180deg, #FFFFFF 0%, #F9FBFD 100%);
  border-bottom: 1px solid rgba(37, 99, 235, 0.1);
  box-shadow: 0 2px 12px rgba(26, 40, 71, 0.08);
  padding: 0;
  display: flex;
  flex-direction: column;
}

.topbar {
  background: transparent;
  border-bottom: 1px solid rgba(37, 99, 235, 0.08);
  padding: 12px 0;
  order: -1;
}

/* Combine navbar sections into one visual line */
.navbar {
  background: transparent !important;
  border: none !important;
  padding: 8px 0;
  margin: 0 !important;
}

.navbar:first-of-type {
  padding: 12px 0;
}

/* Logo positioning */
.navbar-brand {
  transition: all 0.24s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  align-items: center;
  padding: 8px 0 !important;
  margin: 0 24px 0 0 !important;
}

.navbar-brand img {
  max-height: 40px;
  transition: all 0.24s ease;
  filter: drop-shadow(0 2px 4px rgba(26, 40, 71, 0.08));
}

.navbar-brand:hover img {
  opacity: 0.9;
  transform: translateY(-2px);
  filter: drop-shadow(0 4px 8px rgba(26, 40, 71, 0.12));
}

/* Header layout - logo and menu on same line */
.header {
  display: block !important;
}

.topbar {
  display: block !important;
  width: 100%;
}

/* Only the navbar with logo - keep on left */
.navbar:not(.main-navbar-wrapper):has(.navbar-brand) {
  display: inline-block !important;
  width: auto;
  vertical-align: middle;
  padding: 12px 0 !important;
  margin: 0 !important;
  float: left !important;
}

/* Mobile: fix navbar layout for hamburger */
@media (max-width: 1199px) {
  .navbar:not(.main-navbar-wrapper):has(.navbar-brand) {
    display: flex !important;
    width: 100% !important;
    float: none !important;
    align-items: center;
  }
}

.navbar-brand {
  display: inline-block !important;
  margin-right: 0 !important;
  margin-left: 0 !important;
  padding: 0 !important;
  vertical-align: middle;
  height: 44px !important;
  display: flex !important;
  align-items: center !important;
}

/* Main navbar wrapper - same line, tight to logo, centered */
.main-navbar-wrapper {
  display: block !important;
  width: auto !important;
  background: transparent !important;
  border: none !important;
  padding: 12px 0 !important;
  margin: 0 auto !important;
  vertical-align: middle;
  text-align: center !important;
}

/* Mobile: expand navbar collapse properly */
@media (max-width: 1199px) {
  /* Show hamburger button */
  .toolbar .nav-item.d-xl-none {
    display: flex !important;
  }

  .main-navbar-wrapper {
    width: 100% !important;
    padding: 0 !important;
  }

  .main-navbar-wrapper .container {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  .navbar-collapse {
    display: none !important;
  }

  .navbar-collapse.show {
    display: block !important;
  }

  .collapse:not(.show) {
    display: none !important;
  }
}

.navbar-light .navbar-nav .nav-link {
  color: var(--txt-secondary) !important;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  transition: all 0.28s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  padding: 10px 16px !important;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: transparent;
  border: 1px solid transparent;
  white-space: nowrap;
}

/* Mobile: stack nav items vertically */
@media (max-width: 1199px) {
  .navbar-light .navbar-nav .nav-link {
    display: flex !important;
    width: 100% !important;
    padding: 12px 16px !important;
    margin: 4px 0 !important;
    border-radius: 8px;
    white-space: normal;
  }
}

/* Add icons to menu items - inline */
#Primary_Navbar-Home > a::before {
  content: '⌂ ';
  font-size: 16px;
}

#Primary_Navbar-Services > a::before {
  content: '🏠 ';
  font-size: 14px;
}

#Primary_Navbar-Billing > a::before {
  content: '💳 ';
  font-size: 14px;
}

#Primary_Navbar-Support > a::before {
  content: '🔧 ';
  font-size: 14px;
}

#Primary_Navbar-Open_Ticket > a::before {
  content: '✉️ ';
  font-size: 14px;
}

#Primary_Navbar-DocumentsTop > a i {
  display: none !important;
}

#Primary_Navbar-DocumentsTop > a::before {
  content: '⚡ ' !important;
  font-size: 16px;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.6; }
}

.navbar-light .navbar-nav .nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 18px;
  right: 18px;
  height: 2px;
  background: linear-gradient(90deg, var(--accent-primary), transparent);
  border-radius: 2px;
  opacity: 0;
  transition: all 0.28s cubic-bezier(0.4, 0, 0.2, 1);
}

.navbar-light .navbar-nav .nav-link:hover {
  color: var(--accent-primary) !important;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.12), rgba(37, 99, 235, 0.06));
  border: 1px solid rgba(37, 99, 235, 0.2);
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(37, 99, 235, 0.15);
}

.navbar-light .navbar-nav .nav-link:hover::after {
  opacity: 1;
  left: 14px;
  right: 14px;
}

.navbar-light .navbar-nav .nav-link.active,
.navbar-light .navbar-nav .nav-link.active:focus {
  color: #FFFFFF !important;
  background: linear-gradient(135deg, var(--accent-primary), var(--accent-primary-dark));
  font-weight: 700;
  border: 1px solid rgba(37, 99, 235, 0.3);
  box-shadow: 0 8px 24px rgba(37, 99, 235, 0.25);
}

.navbar-light .navbar-nav .nav-link.active::after {
  opacity: 1;
  left: 14px;
  right: 14px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255, 0.6));
  height: 3px;
}

.navbar-light .navbar-nav .dropdown-toggle::after {
  border: none;
  content: '▼';
  font-size: 8px;
  margin-left: 6px;
  opacity: 0.6;
  transition: all 0.28s cubic-bezier(0.4, 0, 0.2, 1);
  transform: translateY(0) scaleY(1);
  display: inline-block;
}

.navbar-light .navbar-nav .dropdown-toggle[aria-expanded="true"]::after {
  opacity: 1;
  transform: translateY(-2px) scaleY(1.2);
}

.dropdown:hover > .dropdown-toggle::after {
  opacity: 1;
  color: var(--accent-primary);
}

/* Ensure dropdown toggle styling on hover */
.navbar-light .navbar-nav .dropdown:hover > .dropdown-toggle {
  color: var(--accent-primary) !important;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.12), rgba(37, 99, 235, 0.06)) !important;
  border: 1px solid rgba(37, 99, 235, 0.2) !important;
}

/* Remove bullets from dropdowns */
.dropdown-menu,
.dropdown-menu li,
.dropdown-menu ul {
  list-style: none !important;
  list-style-type: none !important;
}

/* Dropdown menus */
.dropdown-menu {
  background: linear-gradient(135deg, #FFFFFF 0%, #FAFBFD 100%) !important;
  border: 1px solid rgba(37, 99, 235, 0.15) !important;
  border-radius: 14px;
  box-shadow: 0 12px 32px rgba(26, 40, 71, 0.15), 0 4px 12px rgba(26, 40, 71, 0.08) !important;
  padding: 10px 0 !important;
  margin-top: 8px !important;
  min-width: 240px;
  backdrop-filter: blur(8px);
  border-top: 2px solid rgba(37, 99, 235, 0.2);
  display: none !important;
  position: relative;
}

/* Bridge gap between nav link and dropdown */
.dropdown-menu::before {
  content: '';
  position: absolute;
  top: -8px;
  left: 0;
  right: 0;
  height: 8px;
  background: transparent;
}

/* Show on hover - force display block on any hover of the dropdown container or the menu itself */
.dropdown:hover .dropdown-menu,
li.dropdown:hover > .dropdown-menu,
.navbar-nav .dropdown:hover .dropdown-menu,
.dropdown-menu:hover {
  display: block !important;
  animation: slideDown 0.24s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Show when dropdown has show class (Bootstrap) */
.dropdown-menu.show {
  display: block !important;
}

/* Keep parent nav link styled when hovering over dropdown menu */
.dropdown:has(.dropdown-menu:hover) > .nav-link,
.dropdown:has(.dropdown-menu:hover) > a.dropdown-toggle,
.dropdown:hover > .nav-link,
.dropdown:hover > a.dropdown-toggle {
  color: var(--accent-primary) !important;
  background: rgba(37, 99, 235, 0.08) !important;
}

/* Fix nested items - completely override dropdown-item styling on nested a tags */
.dropdown-menu li.dropdown-item {
  padding: 12px 18px !important;
  display: flex !important;
  align-items: center !important;
  height: 36px !important;
}

.dropdown-menu li.dropdown-item > a.dropdown-item {
  padding: 0 !important;
  margin: 0 !important;
  background: transparent !important;
  border: none !important;
  display: contents !important;
  font-size: inherit !important;
  color: inherit !important;
  font-weight: inherit !important;
  letter-spacing: inherit !important;
  text-indent: 0 !important;
  text-decoration: none !important;
}

.dropdown-menu li.dropdown-item > a.dropdown-item:hover {
  background: transparent !important;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.dropdown-menu li.dropdown-item {
  color: var(--txt-secondary) !important;
  font-weight: 500;
  font-size: 14px;
  letter-spacing: -0.2px;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 10px;
  margin: 0 6px !important;
  position: relative;
  background: transparent !important;
  border: none !important;
}

.dropdown-menu li.dropdown-item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 3px;
  height: 0;
  background: linear-gradient(180deg, var(--accent-primary), transparent);
  border-radius: 3px;
  transition: all 0.2s ease;
}

.dropdown-menu li.dropdown-item:hover {
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.12), rgba(37, 99, 235, 0.06)) !important;
  color: var(--accent-primary) !important;
  transform: translateX(6px);
  padding-left: 24px !important;
}

.dropdown-menu li.dropdown-item:hover::before {
  height: 18px;
}

.dropdown-menu li.dropdown-item.active {
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.18), rgba(37, 99, 235, 0.1)) !important;
  color: var(--accent-primary) !important;
  font-weight: 600;
}

.dropdown-menu li.dropdown-item.active::before {
  height: 20px;
}

.dropdown-divider {
  border-top: 1px solid rgba(37, 99, 235, 0.08) !important;
  margin: 8px 12px !important;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(37, 99, 235, 0.1), transparent);
}

/* Hide knowledgebase search from header */
form[action*="knowledgebase/search"] {
  display: none !important;
}

/* Account/user info styling */
.active-client {
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-active-client {
  background: rgba(37, 99, 235, 0.1) !important;
  border: 1px solid rgba(37, 99, 235, 0.15) !important;
  color: var(--accent-primary) !important;
  font-weight: 700;
  border-radius: 10px;
  padding: 8px 14px !important;
  transition: all 0.24s ease;
}

.btn-active-client:hover {
  background: rgba(37, 99, 235, 0.2) !important;
  border-color: rgba(37, 99, 235, 0.3) !important;
  transform: translateY(-1px);
}

/* Notification button */
#accountNotifications {
  color: var(--txt-secondary) !important;
  font-weight: 600;
  border: none;
  background: transparent;
  border-radius: 10px;
  padding: 8px 14px;
  transition: all 0.24s ease;
}

#accountNotifications:hover {
  color: var(--accent-primary) !important;
  background: rgba(37, 99, 235, 0.08);
  transform: translateY(-1px);
}

/* Toolbar - push to far right */
.toolbar {
  display: flex !important;
  margin-left: auto !important;
  margin-right: 0 !important;
  align-items: center;
}

/* Toolbar buttons styling */
.toolbar .btn {
  color: var(--txt-secondary) !important;
  background: transparent;
  border: none;
  transition: all 0.24s ease;
  padding: 8px 12px;
  font-size: 16px;
  display: flex !important;
  align-items: center !important;
}

.toolbar .btn:hover {
  color: var(--accent-primary) !important;
  background: rgba(37, 99, 235, 0.08);
  border-radius: 8px;
}

/* Mobile: make hamburger button larger */
@media (max-width: 1199px) {
  .toolbar .btn {
    padding: 12px 20px !important;
    font-size: 18px !important;
    border-radius: 8px;
    border: 1px solid rgba(37, 99, 235, 0.2) !important;
  }
}

/* Main navbar wrapper */
.main-navbar-wrapper {
  background: transparent !important;
  border-top: 1px solid rgba(37, 99, 235, 0.08);
  padding: 0;
}

/* Input group text styling */
.input-group-text {
  background: transparent !important;
  border: none !important;
  color: var(--txt-secondary) !important;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: -0.2px;
  padding: 0 12px;
}

/* Return to admin button */
.btn-return-to-admin {
  background: rgba(220, 38, 38, 0.1) !important;
  border: 1px solid rgba(220, 38, 38, 0.15) !important;
  color: #DC2626 !important;
  font-weight: 600;
  border-radius: 10px;
  padding: 8px 12px !important;
  transition: all 0.24s ease;
}

.btn-return-to-admin:hover {
  background: rgba(220, 38, 38, 0.2) !important;
  border-color: rgba(220, 38, 38, 0.3) !important;
  transform: translateY(-1px);
}

/* Collapse button for mobile */
.navbar-light .navbar-toggler {
  color: var(--txt-secondary) !important;
  border: 1px solid var(--stroke) !important;
  background: transparent;
  border-radius: 8px;
  padding: 8px 12px;
  transition: all 0.24s ease;
}

.navbar-light .navbar-toggler:hover {
  background: rgba(37, 99, 235, 0.1);
  border-color: var(--accent-primary);
  color: var(--accent-primary) !important;
}

.navbar-light .navbar-toggler:focus {
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

/* Account dropdown styling */
.navbar-nav .account > .dropdown-menu {
  position: absolute !important;
  right: 0 !important;
  left: auto !important;
}

/* Show all menu items in one line - DESKTOP ONLY (1200px+) */
@media (min-width: 1200px) {
  #nav li {
    display: inline-block !important;
    margin: 0 !important;
  }
}

/* Hide the empty More dropdown - completely */
.collapsable-dropdown,
.d-none.dropdown.collapsable-dropdown,
li.d-none.dropdown.collapsable-dropdown {
  display: none !important;
  visibility: hidden !important;
}

/* Move account dropdown to the right side - tighter spacing - DESKTOP ONLY (1200px+) */
@media (min-width: 1200px) {
  .navbar-nav.ml-auto {
    margin-left: 0 !important;
    display: inline-block !important;
    align-items: center !important;
    float: right !important;
    margin-right: -10px !important;
  }

  /* Account dropdown styling */
  .navbar-nav .account {
    display: inline-block !important;
    margin-left: 0 !important;
  }

  .navbar-nav .account > a {
    display: inline-block !important;
  }
}

/* Responsive adjustments - MOBILE/TABLET (below 1200px) */
@media (max-width: 1199px) {
  /* Ensure hamburger button is visible */
  button[data-toggle="collapse"] {
    display: block !important;
  }

  /* Reset menu items to stack vertically */
  #nav li {
    display: list-item !important;
    margin: 0 !important;
  }

  .navbar-light .navbar-nav .nav-link {
    padding: 10px 0 !important;
    height: auto;
  }

  .main-navbar-wrapper {
    margin-top: 0 !important;
  }

  /* Reset account dropdown for mobile */
  .navbar-nav.ml-auto {
    float: none !important;
    margin-right: 0 !important;
    display: block !important;
  }

  .navbar-nav .account {
    display: block !important;
  }

  .navbar-nav .account > a {
    display: block !important;
  }
}

/* ===== TEXT TRUNCATION & WRAPPING ===== */
.truncate {
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
  word-break: break-word;
}

/* Recent tickets styling */
.recent-ticket {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
  width: 100%;
}

.recent-ticket .truncate {
  font-weight: 600;
  font-size: 14px;
  color: var(--txt);
  line-height: 1.4;
}

.recent-ticket small {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: var(--txt-muted);
  gap: 8px;
}

.recent-ticket small span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* List group items - proper text handling */
.list-group-item {
  overflow: hidden;
  word-break: break-word;
}

.list-group-item a {
  display: block;
  overflow: hidden;
}

.sidebar-menu-item-wrapper {
  display: flex;
  flex-direction: column;
  min-width: 0;
  width: 100%;
}

.sidebar-menu-item-label {
  display: flex;
  flex-direction: column;
  min-width: 0;
  width: 100%;
  overflow: hidden;
}

/* Long text handling in general */
.list-group-item-action {
  overflow: hidden;
}

.list-group-item-action:hover {
  overflow: visible;
}

/* Prevent text from breaking layout */
div[role="tablist"] {
  overflow: hidden;
}

/* Status badge styling */
.list-group-item small span:last-child {
  padding: 2px 8px;
  border-radius: 6px;
  font-weight: 600;
  background: rgba(139, 149, 171, 0.1);
  flex-shrink: 0;
}

/* Pull-right/float-right styling */
.pull-right,
.float-right {
  white-space: nowrap;
  flex-shrink: 0;
}

/* Tooltip styling for long text */
.tooltip-inner {
  max-width: 400px;
  text-align: left;
  background: var(--panel-accent);
  color: var(--txt);
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(26, 40, 71, 0.12);
  padding: 10px 12px;
  font-size: 13px;
  font-weight: 500;
}

.tooltip.bs-tooltip-bottom .arrow::before {
  border-bottom-color: var(--panel-accent);
}

.tooltip.bs-tooltip-top .arrow::before {
  border-top-color: var(--panel-accent);
}
