/* ============================================
   Modern Professional Header Styles
   JLR BEC Portal - Responsive Header Design
   ============================================ */

/* ============================================
   Brand Font: Land Rover OT4 Medium
   ============================================ */
@font-face {
  font-family: "LandRoverOT4";
  src: url("../theme/LandRoverOT4-Medium.woff") format("woff");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

/* Apply brand font to header + profile dropdown text (keep icon fonts intact) */
.main-header,
.main-header .navbar,
.main-header .navbar *:not(i):not(.fa):not([class*="fa-"]) {
  font-family: "LandRoverOT4", "Source Sans Pro", Arial, sans-serif;

}

/* ============================================
   HEADER WRAPPER
   ============================================ */


.header-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-height);
  padding: 0 1.5rem;
  background: var(--header-bg-light);
  border-bottom: 1px solid var(--header-wrapper-border);
  box-shadow: var(--header-shadow);
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: var(--header-transition);
}

[data-bs-theme="dark"] .header-wrapper {
  background: var(--header-bg-light);
  border-color: var(--header-wrapper-border) ;
}

/* ============================================
   HAMBURGER MENU BUTTON
   ============================================ */
.header-menu-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 40px !important;
  height: 40px !important;
  padding: 0 !important;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: var(--header-text-secondary);
  cursor: pointer;
  transition: var(--header-transition-fast);
}

.header-menu-btn:hover {
  background: var(--header-bg-muted);
  color: var(--header-primary);
}

.header-menu-btn:focus {
  outline: none;
  box-shadow: 0 0 0 2px var(--header-menu-btn-shadow);
}

/* Hamburger Icon Animation */
.hamburger-icon {
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: 20px;
  height: 14px;
  position: relative;
  cursor: pointer;
}

.hamburger-icon span {
  display: block;
  height: 2px;
  width: 100%;
  background: currentColor;
  border-radius: 2px;
  position: absolute;
  transition: var(--header-transition);
}

.hamburger-icon span:first-child {
  top: 0;
  width: 80%;
}

.hamburger-icon span:nth-child(2) {
  top: 50%;
  transform: translateY(-50%);
}

.hamburger-icon span:nth-child(3) {
  bottom: 0;
  width: 60%;
}

.hamburger-icon.open span:first-child {
  top: 50%;
  transform: translateY(-50%) rotate(45deg);
  width: 100%;
}

.hamburger-icon.open span:nth-child(2) {
  opacity: 0;
  transform: translateY(-50%) scaleX(0);
}

.hamburger-icon.open span:nth-child(3) {
  bottom: 50%;
  transform: translateY(50%) rotate(-45deg);
  width: 100%;
}

/* ============================================
   HEADER LEFT SECTION
   ============================================ */
.header-left {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.header-mobile-logo {
  display: none;
  align-items: center;
}

.header-logo-img {
  height: 32px;
  width: auto;
  object-fit: contain;
}

.header-brand {
  display: none;
  align-items: center;
  gap: 0.75rem;
}

.header-brand-logo {
  height: 32px;
  width: auto;
}

.header-brand-text {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--header-primary);
}

/* ============================================
   HEADER RIGHT SECTION - ACTIONS
   ============================================ */
.header-right {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-left: auto;
}

/* ============================================
   NOTIFICATION DROPDOWN
   ============================================ */
/* Notification Dropdown */
.navbar-custom-menu .navbar-nav > .notifications-menu > .dropdown-menu.notification-dropdown,
.notification-dropdown.notification-modal {
    width: 280px !important;
    padding: 0 !important;
    margin-top: 8px !important;
    border: 1px solid #d1d5db !important;
    border-radius: 6px !important;
    background: #ffffff !important;
    box-shadow: 0 14px 30px rgba(15, 23, 42, 0.16) !important;
    overflow: hidden !important;
}

/* Header */
.notification-dropdown .notification-header {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding: 16px 18px !important;
    background: #073a73 !important;
    color: #ffffff !important;
}

.notification-dropdown .notification-header h6 {
    margin: 0 !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    color: #ffffff !important;
}

.notification-dropdown .notification-count {
    font-size: 12px !important;
    font-weight: 700 !important;
    padding: 5px 10px !important;
    border-radius: 14px !important;
    background: rgba(255, 255, 255, 0.18) !important;
    color: #ffffff !important;
}

/* Body */
.notification-dropdown .notification-body,
.notification-dropdown .menu2 {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
    max-height: 320px !important;
    overflow-y: auto !important;
}

/* Empty State */
.notification-dropdown .notification-empty {
    min-height: 170px !important;
    padding: 35px 20px !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    color: #9ca3af !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    text-align: center !important;
}

.notification-dropdown .notification-empty-icon {
    font-size: 38px !important;
    color: #cfd4dc !important;
    margin-bottom: 14px !important;
}

/* Notification Item */
.notification-dropdown .notification-item {
    list-style: none !important;
    padding: 0 !important;
    border-bottom: 1px solid #e5e7eb !important;
}

.notification-dropdown .notification-item a {
    display: block !important;
    padding: 14px 18px !important;
    text-decoration: none !important;
    color: #334155 !important;
    background: #ffffff !important;
}

.notification-dropdown .notification-item a:hover {
    background: #f8fafc !important;
}

.notification-dropdown .notification-message {
    font-size: 14px !important;
    line-height: 1.5 !important;
    font-weight: 500 !important;
    color: #334155 !important;
    margin: 0 !important;
}

/* Footer */
.notification-dropdown .notification-footer-link {
    list-style: none !important;
    border-top: 1px solid #e5e7eb !important;
    background: #ffffff !important;
}

.notification-dropdown .notification-footer-link a {
    display: block !important;
    padding: 12px 16px !important;
    text-align: center !important;
    color: #073a73 !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    text-decoration: none !important;
}

.notification-dropdown .notification-footer-link a:hover {
    background: #f8fafc !important;
}

/* ============================================
   PROFILE DROPDOWN MENU
   ============================================ */

   /* Header profile fix */
.header-profile .profile-trigger {
    padding: 0 !important;
    background: transparent !important;
}

.header-profile .profile-content {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    padding: 6px 10px !important;
    min-width: 170px !important;
    height: 50px !important;
    border-radius: 8px !important;
    background: transparent !important;
}

.header-profile .profile-avatar-wrapper {
    width: 38px !important;
    height: 38px !important;
    min-width: 38px !important;
    border-radius: 50% !important;
    overflow: hidden !important;
}

.header-profile .profile-avatar-icon {
    font-size: 38px !important;
    color: #0f172a !important;
    line-height: 1 !important;
}

.header-profile .profile-info {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    justify-content: center !important;
    line-height: 1.2 !important;
    max-width: 110px !important;
    overflow: hidden !important;
}

.header-profile .profile-name {
    font-size: 12px !important;
    font-weight: 500 !important;
    color: #334155 !important;
    max-width: 110px !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
}

.header-profile .profile-role {
    font-size: 11px !important;
    font-weight: 600 !important;
    color: #94a3b8 !important;
    text-transform: uppercase !important;
    white-space: nowrap !important;
}

.header-profile .profile-arrow {
    width: 12px !important;
    height: 12px !important;
    margin-left: 0 !important;
    color: #64748b !important;
}

.header-profile .profile-arrow i {
    font-size: 12px !important;
}

.profile-dropdown {
  min-width: 280px;
  padding: 0rem !important;
  border: 1px solid var(--header-border);
  border-radius: 0px;
  box-shadow: 0 10px 40px var(--header-profile-shadow);
  margin-top: 0.5rem;
  background: var(--header-bg-light);
}

[data-bs-theme="dark"] .profile-dropdown {
  background: var(--header-bg-light);
  border-color: var(--header-border);
  box-shadow: 0 10px 40px var(--header-profile-shadow);
}

/* Dropdown Header Section */
.profile-dropdown-header {
  padding: 1rem;
  background: linear-gradient(135deg,
      var(--header-bg-muted) 0%,
      var(--header-bg-light) 100%);
  border-radius: 0px;
  margin-bottom: 0.5rem;
}

[data-bs-theme="dark"] .profile-dropdown-header {
  background: linear-gradient(135deg,
      var(--header-profile-bg) 0%,
      var(--header-profile-bg-linear) 100%);
}

.profile-dropdown-label {
  display: block;
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--header-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 0.35rem;
}

.profile-dropdown-email {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--header-text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.profile-dropdown-header.guest-header {
  text-align: center;
}

/* Menu Item Design */
.profile-menu-item {
  display: flex !important;
  align-items: center !important;
  gap: 1rem !important;
  padding: 0.875rem 1rem !important;
  border-radius: 8px !important;
  margin: 0.25rem 0 !important;
  background: transparent !important;
  border: none !important;
  color: var(--header-text-secondary) !important;
}

.profile-menu-item:hover {
  background: var(--header-bg-muted) !important;
  color: var(--header-primary) !important;
}

[data-bs-theme="dark"] .profile-menu-item:hover {
  background: var(--header-profile-bg) !important;
}

/* Menu Icon */
.menu-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--header-bg-muted);
  color: var(--header-primary);
  font-size: 1rem;
  flex-shrink: 0;
  transition: all 0.2s ease;
}

.profile-menu-item:hover .menu-icon {
  background: var(--header-primary);
  color: var(--notification-header-text);
}

[data-bs-theme="dark"] .menu-icon {
  background: var(--header-wrapper-border);
}

[data-bs-theme="dark"] .profile-menu-item:hover .menu-icon {
  background: var(--header-primary);
}

.menu-icon.logout-icon {
  background: var(--header-logout-icon-bg);
  color: var(--header-logout-icon-text);
}

.profile-menu-item.logout-item:hover .menu-icon.logout-icon {
  background: var(--header-logout-icon-text);
  color: var(--header-logout-icon-text-hover);
}

/* Menu Content */
.menu-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.15rem;
}

.menu-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--header-text-primary);
}

.menu-subtitle {
  font-size: 0.775rem;
  color: var(--header-text-muted);
}

.profile-menu-item:hover .menu-title {
  color: var(--header-primary);
}

/* Logout Item Special Styling */
.logout-item:hover .menu-title {
  color: var(--header-logout-icon-text);
}

/* Dropdown Divider */
.profile-dropdown .dropdown-divider {
  margin: 0.1rem 0;
  border-top: 1px solid var(--header-border);
  opacity: 0.6;
}

.profile-avatar-icon {
  font-size: 40px;
  color: #0f172a;
  width: 100%;
  height: 100%;
  display: flex !important;
  align-items: center;
  justify-content: center;
}

.profile-arrow i {
  font-size: 14px;
}

/* ============================================
   THEME TOGGLE BUTTON
   ============================================ */
.header-theme-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 40px !important;
  height: 40px !important;
  padding: 0 !important;
  border: none !important;
  border-radius: 10px !important;
  background: transparent !important;
  color: var(--header-text-secondary) !important;
  cursor: pointer !important;
  transition: var(--header-transition-fast) !important;
  position: relative;
  overflow: hidden !important;
}

.header-theme-toggle:hover {
  background: var(--header-bg-muted) !important;
  color: var(--header-primary) !important;
}

.header-theme-toggle:focus {
  outline: none !important;
  box-shadow: 0 0 0 2px var(--header-theme-toggle-hover) !important;
}

.theme-icon {
  position: absolute;
  transition: var(--header-transition) !important;
  font-size: 1.125rem !important;
}

.theme-icon-sun {
  opacity: 1;
  transform: rotate(0deg) scale(1) !important;
}

.theme-icon-moon {
  opacity: 0;
  transform: rotate(90deg) scale(0.5) !important;
}

[data-bs-theme="dark"] .theme-icon-sun {
  opacity: 0;
  transform: rotate(-90deg) scale(0.5) !important;
}

[data-bs-theme="dark"] .theme-icon-moon {
  opacity: 1;
  transform: rotate(0deg) scale(1) !important;
}

/* ============================================
   RESPONSIVE DESIGN - LAPTOP (max-width: 1199px)
   ============================================ */
@media (min-width: 1200px) {
  .header-menu-btn {
    display: none;
  }

  .header-menu-btn .hamburger-icon {
    display: none;
  }
}

@media (max-width: 1199px) {
  .header-mobile-logo {
    display: flex;
  }

  .header-logo-img {
    height: 32px;
  }
}

/* ============================================
   RESPONSIVE DESIGN - TABLET (max-width: 991px)
   ============================================ */
@media (max-width: 991px) {
  .header-wrapper {
    height: var(--header-height-mobile);
    padding: 0 1rem;
    z-index: 1000;
  }

  .header-mobile-logo {
    display: flex;
  }

  .header-brand {
    display: flex;
  }

  .profile-info {
    display: none;
  }

  .header-profile .profile-btn,
  .header-profile .profile-trigger {
    padding: 0 !important;
  }

  .profile-content {
    padding: 0.375rem;
    gap: 0.5rem;
  }

  .profile-avatar-wrapper {
    width: 38px;
    height: 38px;
  }

  .profile-avatar-wrapper .MuiAvatar-circular {
    font-size: 0.8rem;
  }

  .notification-dropdown {
    width: 320px;
    max-height: 420px;
  }

  .notification-body {
    max-height: 300px;
  }
}

/* ============================================
   RESPONSIVE DESIGN - MOBILE (max-width: 575px)
   ============================================ */
@media (max-width: 575px) {
  .header-mobile-logo {
    display: flex;
  }

  .profile-avatar-wrapper .MuiAvatar-circular {
    width: 28px;
    height: 28px;
    font-size: 0.6rem;
  }

  .header-wrapper {
    padding: 0 0.75rem;
  }

  .header-brand-text {
    display: none;
  }

  .header-brand-logo {
    height: 28px;
  }

  .header-logo-img {
    height: 28px;
  }

  .header-btn {
    width: 36px;
    height: 36px;
  }

  .header-btn-icon {
    font-size: 1.125rem;
  }

  .header-badge {
    min-width: 16px;
    height: 16px;
    font-size: 0.625rem;
  }

  .profile-avatar-wrapper {
    width: 32px;
    height: 32px;
  }

  .profile-content {
    padding: 0.25rem;
  }

  .profile-arrow {
    display: none;
  }

  .notification-dropdown,
  .profile-dropdown {
    position: fixed !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    max-height: calc(100vh - var(--header-height-mobile)) !important;
    margin: 0;
    border-radius: 0 0 12px 12px;
    border-top: none;
  }

  .notification-dropdown {
    width: 100% !important;
    max-width: 100% !important;
  }

  .notification-header {
    border-radius: 0;
  }

  .notification-body {
    max-height: calc(100vh - var(--header-height-mobile) - 60px);
  }
}

/* ============================================
   RESPONSIVE DESIGN - LARGE DESKTOP (min-width: 1400px)
   ============================================ */
@media (min-width: 1400px) {
  .header-wrapper {
    padding: 0 2rem;
  }

  .header-right {
    gap: 0.75rem;
  }

  .profile-name {
    max-width: 120px;
  }
}

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.dropdown-menu.show {
  animation: slideDown 0.2s ease-out;
}

/* Smooth scroll for notification list */
.notification-body {
  scroll-behavior: smooth;
}

.notification-body::-webkit-scrollbar {
  width: 4px;
}

.notification-body::-webkit-scrollbar-track {
  background: transparent;
}

.notification-body::-webkit-scrollbar-thumb {
  background: var(--header-border);
  border-radius: 2px;
}

.notification-body::-webkit-scrollbar-thumb:hover {
  background: var(--header-text-muted);
}

notification-body::-webkit-scrollbar-track {
  background: transparent;
}

.notification-body::-webkit-scrollbar-thumb {
  background: var(--header-border);
  border-radius: 2px;
}

.notification-body::-webkit-scrollbar-thumb:hover {
  background: var(--header-text-muted);
}


/* ============================================
   DMF AdminLTE Header White Theme Override
   Match Modern White Header UI
============================================ */

.main-header {
    margin-left: 280px !important;
    width: calc(100% - 280px) !important;
    height: 64px !important;
    background: #ffffff !important;
    border-bottom: 1px solid #e5e7eb !important;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.08) !important;
    position: fixed !important;
    top: 0 !important;
    right: 0 !important;
    z-index: 1030 !important;
}

.main-header .navbar {
    height: 64px !important;
    min-height: 64px !important;
    background: #ffffff !important;
    border: none !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    margin: 0 !important;
}

.main-header .sidebar-toggle {
    width: 40px !important;
    height: 40px !important;
    border-radius: 8px !important;
    background: transparent !important;
    color: #64748b !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 16px !important;
    border: none !important;
}

.main-header .sidebar-toggle:before {
    content: "\f0c9" !important;
    font-family: FontAwesome !important;
}

.navbar-left-section {
    display: flex !important;
    align-items: center !important;
    gap: 24px !important;
}

.user-info-header {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
}

.modern-user-title {
    margin: 0 !important;
    line-height: 1.2 !important;
}

.company-name {
    display: block !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    color: #0f172a !important;
    letter-spacing: 0.5px !important;
    text-transform: uppercase !important;
}

.user-role,
.user-name {
    display: inline-block !important;
    font-size: 11px !important;
    font-weight: 500 !important;
    color: #94a3b8 !important;
    text-transform: uppercase !important;
}

.navbar-custom-menu {
    margin-left: auto !important;
}

.navbar-custom-menu .navbar-nav {
    display: flex !important;
    align-items: center !important;
    gap: 14px !important;
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
    list-style-type: none !important;
}

.navbar-custom-menu .navbar-nav > li {
    display: block !important;
    list-style: none !important;
    list-style-type: none !important;
}

.navbar-custom-menu .navbar-nav > li::marker,
.navbar-custom-menu .navbar-nav::marker,
.navbar-nav > li::marker,
.navbar-nav::marker {
    display: none !important;
    content: "" !important;
    font-size: 0 !important;
    color: transparent !important;
    width: 0 !important;
    height: 0 !important;
}

.navbar-custom-menu .navbar-nav > li > a {
    background: transparent !important;
    color: #64748b !important;
    height: 40px !important;
    padding: 8px 10px !important;
    display: flex !important;
    align-items: center !important;
    border-radius: 10px !important;
}

.navbar-custom-menu .navbar-nav > li > a:hover {
    background: #f1f5f9 !important;
    color: #0f172a !important;
}

.navbar-custom-menu .label-success {
    background: #22c55e !important;
    border-radius: 999px !important;
    font-size: 10px !important;
    padding: 3px 6px !important;
}

.navbar-custom-menu .user-menu .user-image i {
    color: #334155 !important;
    font-size: 28px !important;
}

.navbar-custom-menu .user-menu .hidden-xs {
    color: #0f172a !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    letter-spacing: 0.4px !important;
}

.content-wrapper {
    padding-top: 64px !important;
}

@media (max-width: 768px) {
    .main-header {
        margin-left: 0 !important;
        width: 100% !important;
    }

    .main-header .navbar {
        padding: 0 14px !important;
    }

    .user-info-header {
        display: none !important;
    }
}

/* ============================================
   NSC PROFILE DROPDOWN (AdminLTE markup)
   ============================================ */
.dropdown-menu.nsc-profile-dropdown {
    width: 300px !important;
    padding: 0 !important;
    margin-top: 8px !important;
    border: 1px solid #d1d5db !important;
    border-radius: 8px !important;
    background: #ffffff !important;
    box-shadow: 0 14px 30px rgba(15, 23, 42, 0.16) !important;
    overflow: hidden !important;
}

.navbar-custom-menu .navbar-nav > .user-menu > .dropdown-menu.nsc-profile-dropdown {
    margin-left: -100px;
}

.navbar-nav.navbar-right > li > .dropdown-menu.nsc-profile-dropdown {
    left: auto !important;
    right: 0 !important;
}

/* HEADER SECTION */
.nsc-profile-dropdown .nsc-profile-meta {
    padding: 14px 16px !important;
    border-bottom: 1px solid #e5e7eb !important;
    background: #ffffff !important;
}

.nsc-profile-dropdown .meta-label {
    display: block;
    font-size: 12px !important;
    line-height: 1.2 !important;
    font-weight: 700 !important;
    color: #94a3b8;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    margin-bottom: 6px;
}

.nsc-profile-dropdown .meta-email {
    display: block;
    font-size: 15px !important;
    line-height: 1.4 !important;
    font-weight: 500 !important;
    color: #0f172a;
    word-break: break-word;
}

/* ACTION AREA */
.nsc-profile-dropdown .nsc-profile-actions {
    padding: 12px !important;
    background: #ffffff !important;
}

.nsc-profile-dropdown .nsc-profile-item {
    display: flex !important;
    align-items: center;
    gap: 12px;
    width: 100%;
    text-decoration: none !important;
    border-radius: 10px;
    padding: 10px 12px !important;
    margin-bottom: 8px;
    border: 1px solid transparent !important;
    transition: all 0.2s ease;
}

.nsc-profile-dropdown .nsc-profile-item:last-child {
    margin-bottom: 0;
}

.nsc-profile-dropdown .nsc-profile-item:hover {
    background: #f8fafc !important;
    border-color: #e2e8f0 !important;
}

/* ICON */
.nsc-profile-dropdown .item-icon {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #eef2ff !important;
    color: #3b82f6 !important;
    flex-shrink: 0;
    font-size: 16px;
    transition: all 0.2s ease;
}

.nsc-profile-dropdown .item-icon.logout-icon {
    background: #fee2e2 !important;
    color: #ef4444 !important;
}

/* Icon colors on hover */
.nsc-profile-dropdown .nsc-profile-item:hover .item-icon {
    background: #002d62 !important;
    color: #ffffff !important;
}

.nsc-profile-dropdown .nsc-profile-item:hover .item-icon.logout-icon {
    background: #ef4444 !important;
    color: #ffffff !important;
}

/* TEXT CONTENT */
.nsc-profile-dropdown .item-content {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.nsc-profile-dropdown .item-title {
    font-size: 15px !important;
    line-height: 1.2 !important;
    font-weight: 700 !important;
    color: #1f2937 !important;
    transition: color 0.2s ease;
}

.nsc-profile-dropdown .item-subtitle {
    font-size: 12px !important;
    line-height: 1.3 !important;
    font-weight: 500 !important;
    color: #9ca3af !important;
    margin-top: 2px;
}

.skin-black .main-header li.user-header{
  background-color: #ffffff !important;
}

/* ============================================
   QMP Period Selector Dropdown Modal Styling
   ============================================ */
.navbar-custom-menu .navbar-nav > li.dropdown > .dropdown-menu.set-qmp-modal {
    width: 320px !important;
    padding: 0 !important;
    margin-top: 15px !important; /* Pushes the modal beautifully below the trigger capsule, avoiding any overlap! */
    border: 1px solid #e2e8f0 !important;
    border-radius: 12px !important;
    background: #ffffff !important;
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.16) !important;
    overflow: hidden !important;
    right: 0 !important;
    left: auto !important; /* Right aligns to the trigger pill container */
}

/* Override AdminLTE user-header within QMP Modal */
.navbar-custom-menu .navbar-nav > li.dropdown > .dropdown-menu.set-qmp-modal > li.user-header {
    height: auto !important; /* Removes AdminLTE's forced 175px height */
    background-color: #ffffff !important;
    padding: 1.5rem !important;
    border-radius: 12px !important;
    text-align: left !important;
}

/* Form inputs & styling inside the QMP Selector modal */
.set-qmp-modal .form-group {
    margin-bottom: 1.25rem !important;
}

.set-qmp-modal label {
    display: block !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    color: #475569 !important;
    margin-bottom: 0.5rem !important;
    text-transform: uppercase !important;
    letter-spacing: 0.75px !important;
    text-align: left !important; /* Modern elegant left alignment */
}

.set-qmp-modal select.form-control {
    width: 100% !important;
    height: 40px !important;
    padding: 0 12px !important;
    border-radius: 8px !important;
    border: 1px solid #cbd5e1 !important;
    background-color: #ffffff !important;
    color: #0f172a !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    transition: all 0.2s ease !important;
    box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.05) !important;
}

.set-qmp-modal select.form-control:focus {
    border-color: #002d62 !important;
    box-shadow: 0 0 0 3px rgba(0, 45, 98, 0.12) !important;
    outline: none !important;
}

.set-qmp-modal #setFinanceYear.common-btn-primary {
    margin-top: 8px !important;
    height: 38px !important;
    width: 100% !important;
    border-radius: 8px !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    letter-spacing: 0.5px !important;
}

/* ===== Pagination Theme Override ===== */
.pagination {
    display: inline-flex !important;
    gap: 0 !important;
    border-radius: 6px !important;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.pagination > li > a,
.pagination > li > span {
    color: #002d62 !important;
    background-color: #fff !important;
    border: 1px solid #dee2e6 !important;
    padding: 6px 12px !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    line-height: 1.5 !important;
    transition: all 0.2s ease;
    margin-left: -1px;
}

.pagination > li:first-child > a,
.pagination > li:first-child > span {
    border-top-left-radius: 6px !important;
    border-bottom-left-radius: 6px !important;
    margin-left: 0;
}

.pagination > li:last-child > a,
.pagination > li:last-child > span {
    border-top-right-radius: 6px !important;
    border-bottom-right-radius: 6px !important;
}

.pagination > li > a:hover,
.pagination > li > span:hover,
.pagination > li > a:focus,
.pagination > li > span:focus {
    color: #fff !important;
    background-color: #002d62 !important;
    border-color: #002d62 !important;
    z-index: 2;
}

.pagination > .active > a,
.pagination > .active > span,
.pagination > .active > a:hover,
.pagination > .active > span:hover,
.pagination > .active > a:focus,
.pagination > .active > span:focus {
    background-color: #002d62 !important;
    border-color: #002d62 !important;
    color: #fff !important;
    z-index: 3;
}

.pagination > .disabled > a,
.pagination > .disabled > span,
.pagination > .disabled > a:hover,
.pagination > .disabled > span:hover {
    color: #94a3b8 !important;
    background-color: #fff !important;
    border-color: #dee2e6 !important;
    cursor: not-allowed;
}

/* ==========================================================================
   JLR REUSABLE COMMON MODAL BRANDED STYLING (.jlr-common-modal)
   ========================================================================== */
.jlr-common-modal.modal {
    text-align: center !important;
    padding: 0 !important;
}
.jlr-common-modal.modal::before {
    content: "" !important;
    display: inline-block !important;
    height: 100% !important;
    vertical-align: middle !important;
    margin-right: -4px !important;
}
.jlr-common-modal .modal-dialog {
    display: inline-block !important;
    text-align: left !important;
    vertical-align: middle !important;
    max-width: 500px !important;
    width: 100% !important;
    margin: 10px auto !important;
}
.jlr-common-modal .modal-content {
    border-radius: 16px !important;
    overflow: hidden !important;
    border: none !important;
    box-shadow: 0 20px 50px rgba(0, 45, 98, 0.15) !important; /* Premium brand shadow */
}
.jlr-common-modal .modal-header {
    background-color: #002d62 !important; /* Corporate dark blue theme */
    color: #ffffff !important;
    border-bottom: none !important;
    padding: 22px 28px !important;
    position: relative;
    display: flex;
    align-items: center;
}
.jlr-common-modal .modal-header .close {
    color: #ffffff !important;
    opacity: 0.8 !important;
    font-size: 20px !important;
    position: absolute;
    right: 28px;
    top: 50%;
    transform: translateY(-50%) !important;
    margin-top: 0 !important;
    background: rgba(255, 255, 255, 0.15) !important;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    outline: none !important;
    transition: all 0.2s ease !important;
    line-height: 1 !important;
    padding: 0 !important;
}
.jlr-common-modal .modal-header .close:hover {
    opacity: 1 !important;
    background: rgba(255, 255, 255, 0.25) !important;
    transform: translateY(-50%) scale(1.05) !important;
}
.jlr-common-modal .modal-title {
    font-size: 18px !important;
    font-weight: 700 !important;
    letter-spacing: 0.5px !important;
    margin: 0 !important;
    color: #ffffff !important;
    display: flex;
    align-items: center;
    gap: 10px;
    text-transform: uppercase;
}
.jlr-common-modal .modal-title i {
    font-size: 20px !important;
}
.jlr-common-modal .modal-body {
    padding: 30px 28px !important;
}
.jlr-common-modal .modal-body label {
    font-weight: 600 !important;
    color: #2d3748 !important;
    font-size: 13px !important;
    margin-bottom: 8px !important;
}
.jlr-common-modal .modal-body .form-control {
    /* border-radius: 10px !important; */
    height: 42px !important;
    border: 1px solid #cbd5e1 !important;
    box-shadow: none !important;
    padding: 10px 14px !important;
    transition: all 0.2s ease !important;
    font-size: 13px !important;
}
.jlr-common-modal .modal-body .form-control:focus {
    border-color: #002d62 !important;
    box-shadow: 0 0 0 3px rgba(0, 45, 98, 0.1) !important;
}
.jlr-common-modal .modal-footer {
    background-color: #ffffff !important;
    border-top: none !important;
    padding: 0 28px 28px 28px !important;
    display: flex !important;
    justify-content: flex-end !important;
    gap: 12px !important;
}
/* Themed buttons in footer matching screenshot precisely */
.jlr-common-modal .modal-footer .btn {
    height: 38px !important;
    padding: 0 28px !important;
    border-radius: 8px !important;
    font-weight: 700 !important;
    font-size: 13px !important;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin: 0 !important;
    outline: none !important;
    letter-spacing: 0.5px !important;
}
.jlr-common-modal .modal-footer .btn-default {
    border: 1.5px solid #002d62 !important;
    background: #ffffff !important;
    color: #002d62 !important;
}
.jlr-common-modal .modal-footer .btn-default:hover {
    background: #f8fafc !important;
    color: #001f42 !important;
    border-color: #001f42 !important;
}
.jlr-common-modal .modal-footer .btn-success {
    background: #002d62 !important;
    border: 1.5px solid #002d62 !important;
    color: #ffffff !important;
}
.jlr-common-modal .modal-footer .btn-success:hover {
    background: #001f42 !important;
    border-color: #ffffff !important;
    color: #ffffff !important;
}

/* ==========================================================================
   PREMIUM JLR BRANDED TOASTR NOTIFICATIONS Standardized Styles
   ========================================================================== */
#toast-container {
    z-index: 999999 !important;
}

#toast-container.toast-top-right,
.toast-top-right {
    top: 85px !important;
    right: 20px !important;
}

#toast-container.toast-top-left,
.toast-top-left {
    top: 85px !important;
    left: 20px !important;
}

#toast-container > div {
    opacity: 1 !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25) !important;
    border-radius: 12px !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    font-family: 'Outfit', 'Inter', 'Roboto', sans-serif !important;
    padding: 16px 18px 16px 52px !important;
    font-size: 13px !important;
    line-height: 1.5 !important;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1) !important;
}

#toast-container > div:hover {
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.35) !important;
    transform: translateY(-2px);
}

#toast-container > .toast-info {
    background-color: #002d62 !important; /* JLR Corporate Blue */
}

#toast-container > .toast-success {
    background-color: #27ae60 !important; /* Premium Success Green */
}

#toast-container > .toast-warning {
    background-color: #f39c12 !important; /* Premium Amber Gold */
}

#toast-container > .toast-error {
    background-color: #c0392b !important; /* Premium Crimson Red */
}

#toast-container .toast-title {
    font-weight: 700 !important;
    font-size: 14px !important;
    margin-bottom: 4px !important;
    letter-spacing: 0.3px !important;
    color: #ffffff !important;
}

#toast-container .toast-message {
    font-weight: 400 !important;
    color: rgba(255, 255, 255, 0.95) !important;
}

#toast-container .toast-close-button {
    color: #ffffff !important;
    opacity: 0.75 !important;
    text-shadow: none !important;
    transition: opacity 0.2s ease !important;
}

#toast-container .toast-close-button:hover {
    opacity: 1 !important;
}

#toast-container .toast-progress {
    background-color: rgba(255, 255, 255, 0.35) !important;
    opacity: 1 !important;
    height: 3px !important;
}

/* Profile Capsule Trigger for User/Dealer Dashboards */
.navbar-nav > li > a.profile-capsule {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    border-radius: 999px !important;
    padding: 0 16px 0 4px !important;
    background: #ffffff !important;
    transition: all 0.2s ease !important;
    height: 40px !important;
    width: auto !important;
    line-height: normal !important;
    margin-top: 10px !important;
    margin-bottom: 10px !important;
    margin-right: 15px !important;
    box-sizing: border-box !important;
}

.navbar-nav > li > a.profile-capsule:hover,
.navbar-nav > li > a.profile-capsule:focus,
.navbar-nav > li.open > a.profile-capsule,
.navbar-nav > li.open > a.profile-capsule:hover,
.navbar-nav > li.open > a.profile-capsule:focus {
    background: #f8fafc !important;
    border-color: #cbd5e1 !important;
    text-decoration: none !important;
}

.navbar-nav > li > a.profile-capsule img.user-image {
    width: 30px !important;
    height: 30px !important;
    max-width: 30px !important;
    max-height: 30px !important;
    min-width: 30px !important;
    min-height: 30px !important;
    margin: 0 !important;
    border-radius: 50% !important;
    float: none !important;
    object-fit: cover !important;
}

.navbar-nav > li > a.profile-capsule .hidden-xs {
    color: #0f172a !important;
    font-weight: 600 !important;
    font-size: 13px !important;
}

/* ==========================================================================
   Dealer/User Dashboard Navbar Header Alignment Overrides
   ========================================================================== */
.navbar-header {
    display: flex !important;
    align-items: center !important;
    float: left !important;
    height: 60px !important;
    gap: 15px !important;
}

.navbar-header .navbar-toggle {
    position: static !important;
    float: none !important;
    margin: 0 !important;
    padding: 9px 10px !important;
    display: block !important; /* Force visible on desktop as in screenshot */
    border: none !important;
    background: transparent !important;
}

.navbar-header .navbar-toggle .icon-bar {
    background-color: #0f172a !important;
    width: 22px !important;
    height: 2px !important;
    display: block !important;
}

.navbar-header .navbar-toggle .icon-bar + .icon-bar {
    margin-top: 4px !important;
}

.navbar-header .user-info-header {
    display: block !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
}

.navbar-header .modern-user-title {
    margin: 0 !important;
    line-height: 1.3 !important;
}

.navbar-header .company-name {
    display: block !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    color: #0c2340 !important; /* JLR Corporate Navy */
    letter-spacing: 0.5px !important;
    text-transform: uppercase !important;
}

.navbar-header .user-role,
.navbar-header .user-name {
    display: inline-block !important;
    font-size: 11px !important;
    font-weight: 500 !important;
    color: #94a3b8 !important;
    text-transform: uppercase !important;
}

/* Sync Light Bootstrap Dashboard Header Background */
.main-panel > .navbar-default {
    background-color: #ffffff !important;
    border-bottom: 1px solid #e2e8f0 !important;
    border-top: none !important;
    border-left: none !important;
    border-right: none !important;
}
