:root {
  --bg: #f0f4f8;
  --bg2: #e8eef5;
  --glass: rgba(255, 255, 255, 0.72);
  --glass-border: rgba(255, 255, 255, 0.9);
  --glass-shadow: 0 8px 32px rgba(100, 130, 170, 0.12);
  /* --accent: #4f8ef7; */
  --accent: #2c6cf0;
  --accent2: #38c9a0;
  --accent3: #f7874f;
  --accent4: #a06ef7;
  --text: #1a2540;
  --text2: #3a4a62;
  --text3: #708096;
  --red: #f76f6f;
  --yellow: #f7c44f;
  --blue: #2c6cf0;
  --blue-soft: #eef3fe;
  --purple: #151516;
  --teal: #36c0c7;
  --green: #3bb877;
  --orange: #fb9740;
  --pink: #e780af;
  --red: #ef5f6b;
  --transition: 0.3s cubic-bezier(.4, 0, .2, 1);
}

html,
body {
  height: 100%;
  font-family: "Work Sans", sans-serif;
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
  margin: 0 !important;
  padding: 0 !important;
}

/* ── Topbar ── */
.topbar {
  /* position: sticky;
  top: 0;
  z-index: 50; */
  background: var(--glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(200, 215, 235, 0.6);
  padding: 0 15px;
  height: 64px;
  display: flex;
  align-items: center;
  gap: 16px;
  box-shadow: 0 2px 20px rgba(100, 130, 170, 0.07);
}

#impersonate-bar {
  background: linear-gradient(90deg, var(--green), var(--green));
  color: #fff;
  padding: 5px 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: .78rem;
  font-weight: 500;
  transition: all 0.3s;
  width: 100% !important;
  margin-left: 0 !important;
  position: -webkit-sticky;
  position: sticky;
  top: 0;
  z-index: 999;
}

#impersonate-bar~#warraper>#top-header {
  top: 35px;
}

.sidebar-closed #impersonate-bar {
  width: 100% !important;
  margin-left: 0 !important;
}

.toggle-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: transparent;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #5f6368;
  transition: background-color 0.2s ease, color 0.2s ease;
  flex-shrink: 0;
}

.toggle-btn:hover {
  background: rgba(44, 108, 240, 0.08);
  color: #2c6cf0;
}

.topbar-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  flex: 1;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--text3);
  margin-top: 0;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-left: auto;
}

.punch-info {
  /* background: rgba(79, 142, 247, 0.07);
  border: 1px solid rgba(79, 142, 247, 0.15); */
  border-radius: 10px;
  padding: 6px 12px;
  font-size: 11px;
  color: var(--text2);
  line-height: 1.4;
  display: flex;
  align-items: baseline;
  gap: 8px;
}

#elapsed-time {
  display: inline-block;
  min-width: 96px;
}

.punch-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent2);
  flex-shrink: 0;
  animation: pulse 2s infinite;
}

@keyframes pulse {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.4;
  }
}

.chip {
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: opacity var(--transition), transform var(--transition);
}

.chip:hover {
  /* opacity: 0.85; */
  transform: translateY(-1px);
  color: #fff;
}

.chip-blue {
  background: linear-gradient(135deg, var(--blue), var(--blue));
  color: #fff;
}

.chip-red {
  background: linear-gradient(135deg, var(--red), var(--red));
  color: #fff;
}

.icon-btn {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: transparent;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text2);
  transition: background var(--transition), color var(--transition);
  position: relative;
  box-shadow: none;
  outline: none;
}

.icon-btn:hover {
  background: rgba(79, 142, 247, 0.08);
  color: var(--blue);
}

.topbar .icon-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: transparent;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #5f6368;
  transition: background-color 0.2s ease, color 0.2s ease;
  position: relative;
  box-shadow: none;
  outline: none;
}

.topbar .icon-btn:hover,
.topbar .icon-btn[aria-expanded="true"] {
  background: rgba(44, 108, 240, 0.08);
  color: #2c6cf0;
  border-color: transparent;
}

.notif-dot {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--red);
  border: 2px solid var(--glass);
}

.greeting {
  display: flex;
  flex-direction: column;
  text-align: right;
  margin-right: 10px;
}

.greeting-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
}

.greeting-role {
  font-size: 11px;
  color: var(--text3);
}

.profile-logo-wrap {
  display: flex;
  gap: 7px;
  align-items: center;
  padding: 5px 5px 5px 15px;
  border: 1px solid #ddd;
  border-radius: 30px;
  cursor: pointer;
}

.profile-logo-wrap>img {
  width: 75px !important;
  height: 32px;
  object-fit: contain;
}

.profile-logo-wrap .tenant-logo {
  width: 67px;
  height: 28px;
  object-fit: contain;
  border-radius: 10px;
  object-position: center;
}

.profile-logo-wrap .company-name-marquee {
  display: inline-block;
  width: 110px;
  height: 28px;
  overflow: hidden;
  position: relative;
  white-space: nowrap;
  text-decoration: none;
  cursor: pointer;
}

.profile-logo-wrap .company-name-marquee .company-name-track {
  display: inline-flex;
  align-items: center;
  height: 100%;
  white-space: nowrap;
  will-change: transform;
}

.profile-logo-wrap .company-name-marquee .company-name-text {
  display: inline-block;
  white-space: nowrap;
  font-size: 12px;
  padding-right: 24px;
}

.profile-logo-wrap .company-name-marquee:not(.is-overflowing) .company-name-track {
  display: flex;
  justify-content: center;
  width: 100%;
}

.profile-logo-wrap .company-name-marquee:not(.is-overflowing) .company-name-text {
  padding-right: 0;
}

.profile-logo-wrap .company-name-marquee .company-name-text[aria-hidden="true"] {
  display: none;
}

.profile-logo-wrap .company-name-marquee.is-overflowing .company-name-text[aria-hidden="true"] {
  display: inline-block;
}

.profile-logo-wrap .company-name-marquee.is-overflowing .company-name-track {
  animation: profile-marquee-scroll 8s linear infinite;
}

.profile-logo-wrap .company-name-marquee.is-overflowing:hover .company-name-track {
  animation-play-state: paused;
}

@keyframes profile-marquee-scroll {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-50%);
  }
}

.header-user-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blue), var(--accent4));
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  flex-shrink: 0;
  cursor: pointer;
  overflow: hidden;
}

.header-user-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background-color: #fff;
  border: 1px solid #ddd;
  border-radius: 50%;
}

.header-user-progress-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px;
}

.header-user-progress-ring {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.header-user-progress-badge {
  position: absolute;
  bottom: -2px;
  right: -2px;
  background: #22c55e;
  color: #fff;
  font-size: 9px;
  font-weight: 800;
  line-height: 1;
  padding: 2px 4px;
  border-radius: 999px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, .25);
  border: 1.5px solid #fff;
  pointer-events: none;
}

/* Custom dropdown styling to match */
.custom-dropdown-menu {
  border-radius: 16px;
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  padding: 8px;
  margin-top: 15px !important;
}

.custom-dropdown-item {
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 13px;
  color: var(--text2);
  transition: all 0.2s;
}

.custom-dropdown-item:hover {
  background: rgba(79, 142, 247, 0.08);
  color: var(--blue);
}

@media (max-width: 768px) {
  .punch-info {
    display: none;
  }

  .topbar {
    padding: 0 15px;
  }
}

/* ── Sidebar ── */
.side-bar {
  width: 260px;
  min-height: 100vh;
  background: var(--glass);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-right: 1px solid var(--glass-border);
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  z-index: 100;
  transition: transform var(--transition), width var(--transition);
  overflow: hidden;
  box-shadow: 4px 0 30px rgba(100, 130, 170, 0.09);
  padding: 0 !important;
  margin: 0 !important;
}

.sidebar-logo {
  padding: 7px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid rgba(200, 215, 235, 0.5);
  height: 64px;
  justify-content: center;
}

.sidebar-toggle-wrap {
  padding: 7px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid rgba(200, 215, 235, 0.5);
  height: 64px;
}


.logo-wrap {
  margin-left: 15px;
  width: 145px;
}

.logo-wrap>a {
  /* width: max-content; */
  display: flex;
}

.logo-wrap .full-logo {
  max-height: 50px;
  width: auto;
  display: block;
  margin: 0;
  object-fit: contain;
  max-width: 100%;
}

.logo-wrap .fav-logo {
  display: none;
  max-height: 45px;
  height: 45px;
  width: auto;
  border-radius: 5px;
  object-fit: contain;
}

.logo-icon {
  width: 40px;
  height: 40px;
  /* background: linear-gradient(135deg, var(--blue), var(--accent2)); */
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.logo-text {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  letter-spacing: -0.3px;
  white-space: nowrap;
}

.logo-sub {
  font-size: 10px;
  color: var(--text3);
  font-weight: 400;
  margin-top: 1px;
  white-space: nowrap;
}

.sidebar-nav {
  flex: 1;
  overflow-y: auto;
  padding: 16px 12px;
  height: calc(100vh - 64px);
}

.sidebar-nav::-webkit-scrollbar {
  width: 4px;
}

.sidebar-nav::-webkit-scrollbar-track {
  background: transparent;
}

.sidebar-nav::-webkit-scrollbar-thumb {
  background: rgba(100, 130, 170, 0.2);
  border-radius: 4px;
}

.nav-section {
  margin-bottom: 0px;
}

.nav-section-label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--text3);
  padding: 12px 12px 6px;
}

.nav-item-wrap {
  margin-bottom: 4px;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 10px 14px;
  border-radius: 10px;
  cursor: pointer;
  transition: all var(--transition);
  color: var(--text2);
  font-size: 14px;
  font-weight: 500;
  position: relative;
  user-select: none;
  text-decoration: none !important;
}

.nav-item:hover {
  background: rgba(79, 142, 247, 0.08);
  color: var(--blue);
}

.nav-item.active {
  background: linear-gradient(135deg, rgba(79, 142, 247, 0.12), rgba(56, 201, 160, 0.06));
  color: var(--blue);
}

.nav-item.active::before {
  content: '';
  position: absolute;
  left: 0;
  top: 25%;
  bottom: 25%;
  width: 3px;
  background: var(--blue);
  border-radius: 0 3px 3px 0;
}

.nav-item i {
  font-size: 15px !important;
  width: 20px;
  text-align: center;
  color: inherit !important;
  margin-right: 5px;
}

.logo-text-wrap {
  display: flex;
  flex-direction: column;
  transition: opacity var(--transition);
}

/* Fix for two arrows - disable old style.css arrows */
.sub-btn .oc-status::after {
  display: none !important;
}

.nav-chevron {
  margin-left: auto;
  transition: transform var(--transition);
  font-size: 12px !important;
  opacity: 0.5;
}

/* Simplified rotation logic to match JS toggling and Blade state */
.nav-chevron.open,
.dropdown-icon.open {
  transform: rotate(90deg) !important;
}

.nav-sub {
  padding-left: 15px;
  overflow: hidden;
  display: none;
  /* JS toggles this via slideToggle */
  margin-top: 4px;
}

.nav-sub-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  border-radius: 8px;
  cursor: pointer;
  color: var(--text2);
  font-size: 12.5px;
  font-weight: 400;
  transition: all var(--transition);
  text-decoration: none !important;
}

.nav-sub-item::before {
  content: '';
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: currentColor;
  flex-shrink: 0;
  opacity: 0.3;
}

.nav-sub-item:hover {
  background: rgba(79, 142, 247, 0.06);
  color: var(--blue);
}

.nav-sub-item.active {
  color: var(--blue);
  font-weight: 600;
  background: rgba(79, 142, 247, 0.04);
}

/* Handle Small Menu (Collapsed State) */
body:not(.sidebar-hover) .small-menu .side-bar {
  width: 75px;
}

body:not(.sidebar-hover) .small-menu .side-bar .nav-section-label,
body:not(.sidebar-hover) .small-menu .side-bar span,
body:not(.sidebar-hover) .small-menu .side-bar .nav-chevron {
  display: none !important;
}

body:not(.sidebar-hover) .small-menu .side-bar .sidebar-logo {
  justify-content: center;
  padding: 16px 0;
}

body:not(.sidebar-hover) #left-menu.small-menu-wrap .logo-wrap .full-logo {
  display: none !important;
}

body:not(.sidebar-hover) #left-menu.small-menu-wrap .logo-wrap .fav-logo {
  display: block !important;
}

body:not(.sidebar-hover) #left-menu.small-menu-wrap .logo-text-wrap {
  display: none !important;
}

#left-menu:not(.small-menu-wrap) .logo-wrap .full-logo,
body.sidebar-hover #left-menu.small-menu-wrap .logo-wrap .full-logo {
  display: block !important;
}

#left-menu:not(.small-menu-wrap) .logo-wrap .fav-logo,
body.sidebar-hover #left-menu.small-menu-wrap .logo-wrap .fav-logo {
  display: none !important;
}

#left-menu:not(.small-menu-wrap) .logo-text-wrap,
body.sidebar-hover #left-menu.small-menu-wrap .logo-text-wrap {
  display: flex !important;
}

body:not(.sidebar-hover) .small-menu .side-bar .nav-item {
  justify-content: center;
  padding: 12px 0;
}

body:not(.sidebar-hover) .small-menu .side-bar .nav-item i {
  margin-right: 0;
  font-size: 22px !important;
}

body:not(.sidebar-hover) .small-menu .side-bar .nav-sub {
  display: none !important;
}


/* Layout adjustments when sidebar is collapsed */
.small-menu #main-content {
  margin-left: 85px !important;
}

.small-menu .topbar {
  /* topbar is fixed, might need adjustment if it has left margin */
}

.sidebar-footer {
  padding: 3px 15px;
  border-top: 1px solid rgba(200, 215, 235, 0.5);
  display: flex;
  align-items: center;
  gap: 10px;
  justify-content: center;
}

.sidebar-footer .logo-wrap .full-logo {
  height: 45px;
}

.footer-info {
  flex: 1;
  min-width: 0;
}

.footer-name {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.footer-role {
  font-size: 11px;
  color: var(--text3);
}

@media (max-width: 768px) {
  .side-bar {
    transform: translateX(-100%);
  }

  .mobile-open .side-bar {
    transform: translateX(0);
  }
}

/* ── Main Dashboard ── */
.main-body-wrap {
  padding: 15px 5px;
}

.content-title {
  font-size: 22px;
  font-weight: 600;
  color: var(--text);
  letter-spacing: -0.5px;
}

.content-title span {
  color: var(--blue);
}

.stats-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 32px;
}

.stat-card-wrap {
  flex: 1;
  min-width: calc(25% - 20px);
}

.stat-card {
  background: var(--glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: transform var(--transition), box-shadow var(--transition);
  box-shadow: 0 4px 20px rgba(100, 170, 170, 0.04);
  text-decoration: none !important;
  height: 100%;
  overflow: hidden;
}

.stat-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 30px rgba(100, 130, 170, 0.12);
  background: rgba(255, 255, 255, 0.85);
}

.stat-card::before {
  content: '';
  position: absolute;
  top: -40px;
  right: -40px;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  opacity: 0.07;
}

.stat-card.c1::before {
  background: var(--blue);
}

.stat-card.c2::before {
  background: var(--accent2);
}

.stat-card.c3::before {
  background: var(--accent3);
}

.stat-card.c4::before {
  background: var(--accent4);
}

.stat-card.c1 .stat-icon-wrap {
  background: rgba(79, 142, 247, 0.1);
  color: var(--blue);
}

.stat-card.c2 .stat-icon-wrap {
  background: rgba(56, 201, 160, 0.1);
  color: var(--accent2);
}

.stat-card.c3 .stat-icon-wrap {
  background: rgba(247, 135, 79, 0.1);
  color: var(--accent3);
}

.stat-card.c4 .stat-icon-wrap {
  background: rgba(160, 110, 247, 0.1);
  color: var(--accent4);
}

.stat-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.stat-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}

.stat-icon.blue {
  background: rgba(79, 142, 247, 0.1);
  color: var(--blue);
}

.stat-icon.green {
  background: rgba(56, 201, 160, 0.1);
  color: var(--accent2);
}

.stat-icon.orange {
  background: rgba(247, 135, 79, 0.1);
  color: var(--accent3);
}

.stat-icon.purple {
  background: rgba(160, 110, 247, 0.1);
  color: var(--accent4);
}

.stat-trend {
  font-size: 11px;
  font-weight: 600;
  padding: 4px 8px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.trend-up {
  background: rgba(56, 201, 160, 0.1);
  color: var(--accent2);
}

.stat-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.stat-label {
  font-size: 12px;
  font-weight: 500;
  color: var(--text2);
  /* text-transform: uppercase; */
  letter-spacing: 0.5px;
}

.stat-value {
  font-size: 22px;
  font-weight: 600;
  color: var(--text);
  letter-spacing: -0.5px;
}

/* Dashboard Content Wrapper */
.card-item {
  background: transparent !important;
  box-shadow: none !important;
  padding: 0 !important;
  border: none !important;
}

.dashboard-overview-title {
  font-size: 18px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}

/* .dashboard-overview-title::before {
  content: '';
  width: 4px;
  height: 18px;
  background: var(--blue);
  border-radius: 4px;
} */
.footer-wrap p {
  color: var(--text2);
}

@media (max-width: 1200px) {
  .stat-card-wrap {
    min-width: calc(33.33% - 20px);
  }
}

@media (max-width: 992px) {
  .stat-card-wrap {
    min-width: calc(50% - 20px);
  }
}

@media (max-width: 576px) {
  .stat-card-wrap {
    min-width: 100%;
  }
}

/* ── Content Area & Filter Bar ── */
.filter-card {
  background: var(--glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  padding: 24px;
  margin-bottom: 24px;
  box-shadow: 0 4px 20px rgba(100, 130, 170, 0.06);
}

.filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: flex-start;
}

.field-group {
  flex: 1;
  min-width: 200px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.field-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text2);
  margin-bottom: 2px;
}

.field-label .req,
.field-label .error,
.form-label .req,
.form-label .error,
.req,
.mandatory-star {
  color: var(--red) !important;
  font-weight: 500;
  margin-left: 2px;
}

.input,
.select,
.form-control,
.form-select {
  height: 42px;
  background-color: rgba(255, 255, 255, 0.7) !important;
  border: 1px solid rgba(200, 215, 235, 0.85) !important;
  border-radius: 10px !important;
  padding: 0 8px !important;
  font-size: 13.5px !important;
  color: var(--text) !important;
  transition: all var(--transition) !important;
  outline: none !important;
  line-height: 40px;
}

select.form-select.form-select-sm,
input.form-control.form-control-sm {
  height: 32px;
  line-height: 1;
}

.form-select {
  padding-right: 30px !important;
}

.input:focus,
.select:focus,
.form-control:focus,
.form-select:focus {
  border-color: var(--blue) !important;
  background-color: #fff !important;
  box-shadow: 0 0 0 3px rgba(79, 142, 247, 0.15) !important;
}

table thead .input,
table thead .select,
table thead .form-control,
table thead .form-select {
  height: 34px;
  font-size: 12.5px !important;
}

.select2 .selection .select2-selection {
  height: 42px;
  background: rgba(255, 255, 255, 0.7) !important;
  border: 1px solid rgba(200, 215, 235, 0.85) !important;
  border-radius: 12px !important;
  /* padding: 0 14px 5px !important; */
  font-size: 13.5px !important;
  color: var(--text) !important;
  transition: all var(--transition) !important;
  outline: none !important;
}

.select2-container .select2-search--inline .select2-search__field {
  margin-top: 11px;
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
  background: transparent !important;
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
  line-height: 40px !important;
}

.select2-container--default .select2-selection--single .select2-selection__arrow {
  height: 40px !important;
}

/* A select2 field whose value is set programmatically (e.g. auto-derived from
   another field) rather than picked by the user — dropdown is blocked via JS
   (select2:opening preventDefault), this just signals it visually. */
.readonly-select2+.select2-container .select2-selection {
  background-color: #e9ecef !important;
  cursor: not-allowed !important;
}

.readonly-select2+.select2-container .select2-selection__rendered,
.readonly-select2+.select2-container .select2-selection__arrow {
  cursor: not-allowed !important;
}

.select2 .selection .select2-container--default .select2-selection--multiple,
.select2 .selection .select2-selection.select2-selection--multiple {
  height: auto;
  min-height: 42px;
}

.service-wrapper .select2-container--default .select2-selection--single .select2-selection__rendered {
  padding-left: 15px;
}

.btn {
  height: 36px;
  padding: 5px 15px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all var(--transition);
  border: none;
}

.btn.btn-sm {
  height: 36px;
  font-size: 13px;
  gap: 6px;
}

.btn:hover {
  transform: translateY(-2px);
  opacity: 0.95;
}

.btn:focus {
  box-shadow: none !important;
}

.btn-primary {
  background: linear-gradient(135deg, var(--blue), var(--blue)) !important;
  color: #fff !important;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.16) !important;
}

.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active,
.btn-primary.active {
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.22) !important;
}

.btn-light-blue {
  background: var(--blue-soft);
  color: var(--blue);
}

.btn-light-blue:hover {
  background: var(--blue);
  color: #fff;
}

.topbar-actions .btn-light-blue {
  border: 1px solid rgb(44 108 240 / 25%);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.7) !important;
  border: 1px solid rgba(200, 215, 235, 0.85) !important;
  color: var(--text2) !important;
}

.btn-warning {
  /* box-shadow: 0 10px 12px -10px #6c757d; */
}

.btn-success {
  background: linear-gradient(135deg, var(--green), var(--green)) !important;
  color: #fff !important;
  box-shadow: 0 4px 14px rgba(56, 201, 160, 0.3) !important;
}

.btn-dark {
  background: linear-gradient(135deg, #2a3a5e, #2a3a5e);
  color: #fff;
  box-shadow: 0 4px 14px rgba(42, 58, 94, 0.3);
}

.btn-default {
  background: #e4ebf1;
  background-color: #e4ebf1;
  color: #6c757d;
}

/* ── Table Card ── */
.table-card {
  background: var(--glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  padding: 24px;
  box-shadow: 0 4px 20px rgba(100, 130, 170, 0.06);
}

.table-wrap .data-table {
  border-radius: 14px;
  border: 1px solid rgba(200, 215, 235, 0.5);
  overflow: hidden;
  background: rgba(255, 255, 255, 0.3);
}

.table-wrap .dataTables_scrollHeadInner .data-table {
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
  border-bottom: 0;
}

.table-wrap .dataTables_scrollBody .data-table {
  border-top-left-radius: 0;
  border-top-right-radius: 0;
  border-top: 0;
}

.table-wrap .dataTables_scrollBody thead {
  display: none;
}

.data-table .desc-box,
.items-table .desc-box {
  max-width: 280px;
}

.desc-box {
  outline: none !important;
  transition: border-color 0.15s ease, box-shadow 0.15s ease !important;
}

.desc-box:focus,
.desc-box:focus-within,
.desc-box:focus-visible {
  border-color: #2563eb !important;
  box-shadow: 0 0 0 3.5px rgba(37, 99, 235, 0.28) !important;
  outline: none !important;
}

.desc-box:hover .desc-actions,
.desc-box:focus .desc-actions,
.desc-box:focus-within .desc-actions,
.desc-box:focus-visible .desc-actions {
  opacity: 1 !important;
  transform: translateY(0px) !important;
  pointer-events: auto !important;
}

.data-table thead th,
table.dataTable>thead th {
  background: rgba(79, 142, 247, 0.05) !important;
  color: var(--text) !important;
  font-weight: 700 !important;
  font-size: 13px !important;
  padding: 14px 12px !important;
  border-bottom: 1px solid rgba(200, 215, 235, 0.5) !important;
  text-transform: none !important;
  vertical-align: middle !important;
}

.data-table thead th.sorting,
table.dataTable>thead>tr>th.sorting,
table.dataTable>thead>tr>th.sorting_asc,
table.dataTable>thead>tr>th.sorting_desc {
  padding-right: 20px !important;
  position: relative;
}

table.dataTable>thead .sorting:before,
table.dataTable>thead .sorting:after,
table.dataTable>thead .sorting_asc:before,
table.dataTable>thead .sorting_asc:after,
table.dataTable>thead .sorting_desc:before,
table.dataTable>thead .sorting_desc:after,
table.dataTable>thead .sorting_asc_disabled:before,
table.dataTable>thead .sorting_asc_disabled:after,
table.dataTable>thead .sorting_desc_disabled:before,
table.dataTable>thead .sorting_desc_disabled:after,
table.dataTable>thead>tr>th.sorting:before,
table.dataTable>thead>tr>th.sorting:after,
table.dataTable>thead>tr>th.sorting_asc:before,
table.dataTable>thead>tr>th.sorting_asc:after,
table.dataTable>thead>tr>th.sorting_desc:before,
table.dataTable>thead>tr>th.sorting_desc:after {
  top: 50% !important;
  bottom: auto !important;
  transform: translateY(-50%) !important;
  line-height: 1 !important;
}

table.dataTable>thead .sorting:before,
table.dataTable>thead .sorting:after,
table.dataTable>thead .sorting_asc:before,
table.dataTable>thead .sorting_asc:after,
table.dataTable>thead .sorting_desc:before,
table.dataTable>thead .sorting_desc:after {
  color: var(--text3) !important;
}

.data-table tbody td {
  padding: 11px 12px !important;
  border-bottom: 1px solid rgba(200, 215, 235, 0.45) !important;
  font-size: 13.5px !important;
  vertical-align: middle !important;
  color: var(--text2) !important;
  white-space: nowrap !important;
  font-weight: 500;
}

.data-table tbody tr:hover td {
  background: rgba(79, 142, 247, 0.03) !important;
}

/* Action buttons */
.action-cell {
  display: flex;
  gap: 6px;
  justify-content: center;
}

.act-btn {
  width: 25px;
  height: 25px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
  color: #fff !important;
  border: 1px solid transparent !important;
  padding: 0 !important;
  position: relative;
}

.act-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(100, 130, 170, 0.18);
}

.act-btn[disabled] {
  opacity: 0.4;
  cursor: not-allowed;
  pointer-events: none;
  filter: grayscale(1);
}

.act-btn[disabled]:hover {
  transform: none;
  box-shadow: none;
}

.act-btn svg {
  width: 13px;
  height: 13px;
  fill: none;
  /* stroke: currentColor; */
}

.act-pdf {
  background: linear-gradient(135deg, var(--red), var(--red)) !important;
}

.act-mail {
  /* background: linear-gradient(135deg, var(--accent4), #b28cf5) !important; */
  background: linear-gradient(135deg, var(--yellow), var(--yellow)) !important;
  color: var(--red) !important;
}

.act-whatsapp {
  background: linear-gradient(135deg, #25d366, #25d366) !important;
  color: #fff !important;
}

.act-whatsapp svg {
  fill: #fff !important;
  stroke: none !important;
}

.act-comments span.badge.bg-danger {
  position: absolute !important;
  right: -4px;
  top: -7px;
}

.act-mail svg {
  stroke: var(--red) !important;
}

.act-tracking {
  background: linear-gradient(135deg, var(--red), var(--red)) !important;
}

.act-tracking.pending {
  background: linear-gradient(135deg, var(--yellow), var(--yellow)) !important;
}

.act-tracking.success {
  background: linear-gradient(135deg, var(--accent2), var(--accent2)) !important;
}

.act-copy {
  /* background: linear-gradient(135deg, #2a3a5e, #3b4f7e) !important; */
  background: linear-gradient(135deg, #747a87, #747a87) !important;
}

.act-edit {
  background: linear-gradient(135deg, var(--blue), var(--blue)) !important;
}

.act-po {
  background: linear-gradient(135deg, var(--yellow), var(--yellow)) !important;
  color: var(--red) !important;
}

.act-po svg {
  stroke: var(--red) !important;
}

.act-pi {
  background: linear-gradient(135deg, var(--accent2), var(--accent2)) !important;
  color: #fff !important;
}

.act-bookmark {
  background: linear-gradient(135deg, #747a87, #747a87) !important;
}

.act-bookmark.is-bookmarked {
  background: linear-gradient(135deg, var(--yellow), var(--yellow)) !important;
}

.data-table thead th svg {
  color: var(--text3);
  stroke: var(--text3);
}

.data-table thead th.sorting_asc svg {
  color: var(--text3);
  stroke: var(--text3);
}

.data-table thead th.sorting_desc svg {
  color: var(--yellow);
  stroke: var(--yellow);
}

.act-del {
  background: linear-gradient(135deg, var(--red), var(--red)) !important;
}

.act-view {
  background: linear-gradient(135deg, var(--accent2), var(--accent2)) !important;
}

/* Status & Currency Pills */
.currency-pill {
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
}

.currency-inr {
  background: rgba(79, 142, 247, 0.1);
  color: var(--blue);
}

.currency-usd {
  background: rgba(56, 201, 160, 0.12);
  color: var(--accent2);
}

.currency-gbp {
  background: rgba(160, 110, 247, 0.12);
  color: var(--accent4);
}

.currency-aed {
  background: rgba(247, 135, 79, 0.12);
  color: var(--accent3);
}

.quotation-type-pill {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
}

.qt-hot {
  background: rgba(239, 95, 107, 0.12);
  color: var(--red);
}

.qt-cold {
  background: rgba(44, 108, 240, 0.1);
  color: var(--blue);
}

.qt-average {
  background: rgba(251, 151, 64, 0.12);
  color: var(--orange);
}

.qt-lost {
  background: rgba(112, 128, 150, 0.12);
  color: var(--text3);
}

/* ── Company column tag row: [Customer/Lead] [Source] [Quotation type] ── */
.company-tag-row {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: 3px;
}

.company-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: .2px;
}

.company-tag.ct-customer {
  background: rgba(34, 197, 94, 0.12);
  color: #16a34a;
}

.company-tag.ct-lead {
  background: rgba(44, 108, 240, 0.1);
  color: var(--blue);
}

.company-tag.ct-source {
  background: rgba(112, 128, 150, 0.12);
  color: var(--text3);
}

/* ── Badges & Status Pills ── */
.badge-soft {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.badge-to {
  background: rgba(79, 142, 247, 0.1);
  color: var(--blue);
}

.badge-cc {
  background: rgba(56, 201, 160, 0.1);
  color: var(--accent2);
}

.badge-bcc {
  background: rgba(160, 110, 247, 0.1);
  color: var(--accent4);
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
}

.status-opened {
  background: rgba(56, 201, 160, 0.1);
  color: var(--accent2);
}

.status-not {
  background: rgba(220, 53, 69, 0.1);
  color: var(--red);
}

.status-toggle-loading {
  opacity: 0.6;
  pointer-events: none;
}

.status-toggle-loading::before {
  content: '';
  width: 10px;
  height: 10px;
  border: 2px solid currentColor;
  border-top-color: transparent;
  border-radius: 50%;
  animation: status-pill-spin 0.6s linear infinite;
}

@keyframes status-pill-spin {
  to {
    transform: rotate(360deg);
  }
}

.dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
}

.dot-opened {
  background: var(--accent2);
}

.dot-not {
  background: var(--red);
}

/* ── Tracking Modal ── */
.tracking-ui {
  border-radius: 24px !important;
  overflow: hidden;
  border: none !important;
  background: var(--glass) !important;
  backdrop-filter: blur(20px) !important;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15) !important;
}

.tracking-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(79, 142, 247, 0.1);
  color: var(--blue);
  font-size: 24px;
}

.tracking-skeleton .sk-card {
  height: 90px;
  border-radius: 16px;
  background: linear-gradient(90deg, rgba(200, 215, 235, 0.2) 0%, rgba(200, 215, 235, 0.4) 50%, rgba(200, 215, 235, 0.2) 100%);
  background-size: 200% 100%;
  animation: sk 1.5s infinite linear;
}

@keyframes sk {
  0% {
    background-position: 200% 0;
  }

  100% {
    background-position: -200% 0;
  }
}

.accordion-item {
  background: transparent !important;
  border: 1px solid rgba(200, 215, 235, 0.4) !important;
  border-radius: 16px !important;
  margin-bottom: 12px;
  overflow: hidden;
}

.accordion-button {
  background: rgba(255, 255, 255, 0.4) !important;
  color: var(--text) !important;
  font-weight: 600 !important;
  padding: 16px 20px !important;
}

.accordion-button:not(.collapsed) {
  background: rgba(79, 142, 247, 0.05) !important;
  box-shadow: none !important;
}

.tracking-panel {
  padding: 24px;
}

.metric-card {
  background: rgba(255, 255, 255, 0.5);
  border: 1px solid rgba(200, 215, 235, 0.4);
  border-radius: 14px;
  padding: 16px;
  text-align: center;
  transition: transform 0.2s ease;
}

.metric-card:hover {
  transform: translateY(-2px);
  background: #fff;
}

.metric-label {
  font-size: 10px;
  text-transform: uppercase;
  color: var(--text3);
  font-weight: 600;
  margin-bottom: 6px;
  letter-spacing: 0.8px;
}

.metric-value {
  font-size: 22px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 2px;
}

.metric-sub {
  font-size: 10px;
  color: var(--text3);
}

.tracking-search.input-wrap {
  width: 240px;
  height: 36px;
  background: #fff !important;
  border-radius: 10px !important;
}

.tracking-search .lead-ico {
  padding-left: 10px !important;
  font-size: 14px;
}

.tracking-search input {
  padding: 0 10px !important;
  font-size: 13px !important;
  height: 34px !important;
}

.reminder-select {
  height: 28px !important;
  border-radius: 8px !important;
  border: 1px solid rgba(200, 215, 235, 0.85) !important;
  background: #fff !important;
  padding: 0 24px 0 10px !important;
  font-family: inherit !important;
  font-size: 12px !important;
  color: var(--text2) !important;
  outline: none !important;
  appearance: none !important;
  -webkit-appearance: none !important;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 24 24' fill='none' stroke='%235a6a85' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'/></svg>") !important;
  background-repeat: no-repeat !important;
  background-position: right 8px center !important;
  transition: border-color var(--transition) !important;
}

.reminder-select:focus {
  border-color: var(--blue) !important;
}

.reminder-select.is-yes {
  color: var(--accent2) !important;
  border-color: rgba(56, 201, 160, 0.5) !important;
  background-color: rgba(56, 201, 160, 0.06) !important;
}

/* -- Quotation Create / Edit -- */
.glass-card {
  background: var(--glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  border-radius: 18px;
  padding: 20px;
  box-shadow: var(--glass-shadow);
  margin-bottom: 18px;
}

/* backdrop-filter creates a new containing block for descendants, which
   breaks TinyMCE's floating toolbar menus/color pickers — they get
   positioned relative to this card instead of the viewport and can land
   far down the page instead of under the button that opened them. Drop
   the blur specifically on any glass-card that hosts an editor. */
.glass-card:has(.tox-tinymce) {
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.section-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
}

.section-head .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blue), var(--accent2));
}

.section-head h3 {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  letter-spacing: -0.2px;
  margin: 0;
}

.section-head .sub {
  font-size: 11.5px;
  color: var(--text3);
  margin-left: auto;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px 15px;
}

.grid-6 {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 10px 15px;
}

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 15px;
}

/* Date & Time / Status meta pair - shares a single grid column */
.meta-field-group {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.meta-field-group>div:first-child {
  flex: 1 1 auto;
  min-width: 0;
}

.meta-field-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text2);
  margin-bottom: 2px;
  white-space: nowrap;
}

.meta-field-group .input-wrap {
  margin-bottom: 0;
  min-width: 0;
}

.meta-field-group #current_date_time,
.meta-field-group #qc_company_created_at {
  font-size: 12px;
  padding-left: 8px;
}

/* Pill-style status toggle (section-head "Status" control) */
.status-switch-wrap {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
}

.status-switch {
  position: relative;
  display: inline-block;
  width: 46px;
  height: 26px;
  flex: 0 0 auto;
}

.status-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.status-switch .slider {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background-color: #d1d7e0;
  transition: background-color .25s ease;
  border-radius: 24px;
}

.status-switch .slider:before {
  position: absolute;
  content: "";
  height: 20px;
  width: 20px;
  left: 3px;
  top: 3px;
  background-color: #fff;
  transition: transform .25s ease;
  border-radius: 50%;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
}

.status-switch input:checked+.slider {
  background-color: #16a34a;
}

.status-switch input:checked+.slider:before {
  transform: translateX(20px);
}

.status-switch input:focus-visible+.slider {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.field-full {
  grid-column: 1 / -1;
}

.field-half {
  grid-column: span 2;
}

.input-with-icon {
  position: relative;
}

.input-with-icon .ico {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text3);
  pointer-events: none;
}

.input-with-icon .ico svg {
  width: 15px;
  height: 15px;
}

/* Items Table */
.items-wrap {
  overflow-x: auto;
  border-radius: 12px;
  border: 1px solid rgba(200, 215, 235, 0.7);
  background: rgba(255, 255, 255, 0.5);
}

.step-content-scroll .items-wrap {
  overflow-x: unset;
}

.items-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  /* min-width: 1100px; */
  font-size: 12.5px;
}

.step-content-scroll .items-wrap .items-table thead {
  position: sticky;
  top: 0px;
  z-index: 20;
}

.items-table thead th {
  /* background: linear-gradient(180deg, rgba(79, 142, 247, 0.12), rgba(79, 142, 247, 0.06)); */
  background: rgb(233 241 253);
  color: var(--text);
  font-size: 11.5px;
  font-weight: 600;
  padding: 12px 12px;
  text-align: center;
  border-bottom: 1px solid rgba(200, 215, 235, 0.7);
  white-space: nowrap;
}

.items-table tbody td {
  padding: 14px 10px;
  vertical-align: top;
  border-bottom: 1px solid rgba(200, 215, 235, 0.45);
}

.items-table tbody tr:last-child td {
  border-bottom: none;
}

.items-table td.col-sr {
  width: 56px;
  text-align: center;
  font-weight: 600;
  color: var(--blue);
  padding-top: 22px !important;
}

.items-table td.col-action {
  width: 70px;
  text-align: center;
  padding-top: 22px !important;
}

.items-table .col-unit {
  width: 110px;
}

.items-table .col-qty {
  width: 90px;
}

.items-table .col-rate {
  width: 130px;
}

.items-table .col-amount {
  width: 140px;
}

/* DataTables Container */
.table-card {
  background: var(--glass);
  backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  border-radius: 18px;
  padding: 20px;
  box-shadow: var(--glass-shadow);
}

.table-wrap {
  overflow-x: auto;
  width: 100%;
  position: relative;
  padding-bottom: 5px;
  /* Space for scrollbar */
}

.data-table {
  width: 100% !important;
  margin-bottom: 0 !important;
}

.table-top-scroll,
.table-wrap {
  scrollbar-width: thin;
  scrollbar-color: rgba(79, 142, 247, 0.25) rgba(0, 0, 0, 0.03);
}

.table-top-scroll::-webkit-scrollbar,
.table-wrap::-webkit-scrollbar {
  height: 5px;
}

.table-top-scroll::-webkit-scrollbar-track,
.table-wrap::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.03);
  border-radius: 10px;
}

.table-top-scroll::-webkit-scrollbar-thumb,
.table-wrap::-webkit-scrollbar-thumb {
  background: rgba(79, 142, 247, 0.25);
  border-radius: 10px;
}

.table-top-scroll::-webkit-scrollbar-thumb:hover,
.table-wrap::-webkit-scrollbar-thumb:hover {
  background: rgba(79, 142, 247, 0.5);
}

.item-remove {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  background: linear-gradient(135deg, var(--red), var(--red));
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform var(--transition), box-shadow var(--transition);
}

.item-remove:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(247, 111, 111, 0.35);
}

.item-remove svg {
  width: 14px;
  height: 14px;
}

.add-row-wrap {
  display: flex;
  justify-content: flex-end;
  padding: 12px 0 0;
}

.btn-add-row {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  background: linear-gradient(135deg, var(--blue), var(--blue));
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(79, 142, 247, 0.32);
  transition: transform var(--transition);
}

.btn-add-row:hover {
  transform: translateY(-2px) rotate(90deg);
}

.btn-add-row svg {
  width: 16px;
  height: 16px;
}

/* Compose Grid & Totals */
.compose-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 18px;
  align-items: start;
}

.totals-card {
  padding: 22px;
}

.total-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px;
  margin-bottom: 10px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid rgba(200, 215, 235, 0.7);
  gap: 5px;
}

.total-row.grand {
  background: linear-gradient(135deg, rgba(79, 142, 247, 0.12), rgba(56, 201, 160, 0.10));
  border-color: rgba(79, 142, 247, 0.35);
  margin-bottom: 0;
}

.total-label {
  font-size: 12.5px;
  color: var(--text2);
  font-weight: 600;
}

.total-val {
  font-family: 'DM Sans', sans-serif;
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
}

.total-row.grand .total-val {
  font-size: 19px;
  color: var(--blue);
}

/* ── Summary Card V2 (Premium UI) ── */
.summary-v2 .total-row {
  padding: 16px 20px;
  margin-bottom: 12px;
  border-radius: 14px;
  background: #fff;
  border: 1px solid rgba(200, 215, 235, 0.6);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.summary-v2 .total-row:hover {
  border-color: var(--blue);
  transform: translateX(4px);
  box-shadow: 0 8px 20px -5px rgba(100, 130, 170, 0.08);
}

.summary-v2 .total-row.grand {
  background: linear-gradient(135deg, #f0f7ff, #ffffff);
  border-color: rgba(79, 142, 247, 0.4);
  box-shadow: 0 4px 15px rgba(79, 142, 247, 0.06);
}

.summary-v2 .total-label {
  font-size: 14px;
  font-weight: 600;
  color: #5a6a85;
}

.summary-v2 .total-val {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
}

.summary-v2 .currency-mini {
  font-size: 9px;
  font-weight: 600;
  color: #94a3b8;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.summary-v2 .total-val input {
  background: #fff !important;
  border: 1.2px solid #e2e8f0 !important;
  border-radius: 10px !important;
  padding: 0 14px !important;
  height: 42px !important;
  font-size: 16px !important;
  font-weight: 700 !important;
  color: #1a2540 !important;
  width: 150px !important;
  text-align: right !important;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.01) !important;
}

.summary-v2 .total-row.grand .total-label {
  color: var(--blue);
}

.summary-v2 .total-row.grand input {
  color: var(--blue) !important;
  border-color: rgba(79, 142, 247, 0.3) !important;
  background: #fff !important;
  font-size: 18px !important;
}

/* Attachments */
.attach-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.file-drop {
  border: 1.5px dashed rgba(79, 142, 247, 0.4);
  background: rgba(79, 142, 247, 0.04);
  border-radius: 12px;
  padding: 12px 20px;
  cursor: pointer;
  transition: background var(--transition), border-color var(--transition);
  display: flex;
  align-items: center;
  gap: 16px;
}

.file-drop:hover {
  background: rgba(79, 142, 247, 0.08);
  border-color: var(--blue);
}

.file-drop svg {
  width: 28px;
  height: 28px;
  color: var(--blue);
  flex-shrink: 0;
}

.file-drop .fd-content {
  flex: 1;
  min-width: 0;
}

.file-drop .lbl {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
}

.file-drop .lbl .blue {
  color: var(--blue);
}

.file-drop .hint {
  font-size: 11.5px;
  color: var(--text3);
  margin-top: 2px;
}

.attach-list {
  border: 1px solid rgba(200, 215, 235, 0.7);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.6);
  padding: 10px;
  min-height: 60px;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 8px;
  align-content: start;
}

@media (max-width: 992px) {
  .attach-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 576px) {
  .attach-list {
    grid-template-columns: 1fr;
  }
}

#existing-attachment-list:empty {
  display: none !important;
}

.attach-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(200, 215, 235, 0.7);
  font-size: 12px;
  color: var(--text);
  min-width: 0;
}

.attach-item .ai-icon {
  width: 28px;
  height: 28px;
  border-radius: 7px;
  background: linear-gradient(135deg, rgba(79, 142, 247, 0.15), rgba(56, 201, 160, 0.10));
  color: var(--blue);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.attach-item .ai-icon svg {
  width: 13px;
  height: 13px;
}

.attach-item .ai-name {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 500;
}

.attach-item .ai-name a {
  text-decoration: none;
  color: var(--text)
}

.attach-item .ai-size {
  font-size: 11px;
  color: var(--text3);
}

.attach-item .ai-rm {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  border: none;
  background: rgba(247, 111, 111, 0.12);
  color: var(--red);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.attach-item .ai-rm:hover {
  background: rgba(247, 111, 111, 0.22);
}

.attach-item .ai-rm svg {
  width: 11px;
  height: 11px;
}

.attach-empty {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text3);
  font-size: 12px;
  font-style: italic;
  padding: 20px;
}

/* Action Bar */
.action-bar {
  position: fixed;
  bottom: 0;
  left: 260px;
  right: 0;
  background: var(--glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid rgba(200, 215, 235, 0.7);
  padding: 14px 28px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  z-index: 40;
  transition: left var(--transition);
  box-shadow: 0 -4px 20px rgba(100, 130, 170, 0.07);
}

.small-menu .action-bar {
  left: 75px;
}

.action-bar .total-mini {
  margin-right: auto;
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 12.5px;
  color: var(--text2);
}

.action-bar .total-mini strong {
  color: var(--text);
  font-weight: 600;
  font-family: 'DM Sans', sans-serif;
}

.action-bar .total-mini .grand {
  color: var(--blue);
  font-size: 15px;
}

@media (max-width: 1200px) {
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }

  .grid-6 {
    grid-template-columns: repeat(3, 1fr);
  }

  .compose-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 992px) {
  .grid-6 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .action-bar {
    left: 0 !important;
    flex-wrap: wrap;
  }

  .action-bar .total-mini {
    margin: 0 0 8px 0;
    flex-basis: 100%;
  }

  .grid-4 {
    grid-template-columns: 1fr;
  }

  .grid-6 {
    grid-template-columns: 1fr;
  }

  .attach-grid {
    grid-template-columns: 1fr;
  }
}

.btn-draft {
  background: rgba(247, 196, 79, 0.12) !important;
  color: var(--accent3) !important;
  border: 1px solid rgba(247, 196, 79, 0.4) !important;
}

.btn-draft:hover {
  background: rgba(247, 196, 79, 0.2) !important;
}

.btn-ghost {
  background: #e3e3e3 !important;
  color: var(--text2) !important;
  border: 1px solid transparent !important;
}

.btn-ghost:hover {
  background: rgb(240 244 248) !important;
  color: var(--text) !important;
}

.currency-mini {
  font-size: 11px;
  color: var(--text3);
  font-weight: 600;
  margin-right: 4px;
}


/* -- Service History Modal -- */
.service-history-modal {
  border-radius: 16px !important;
  border: none !important;
  background: #ffffff !important;
  box-shadow: 0 10px 32px rgba(31, 42, 68, 0.18) !important;
  backdrop-filter: none !important;
}

.service-history-header {
  background: #ffffff !important;
  background-image: none !important;
  border-bottom: 1px solid #eceff5 !important;
  padding: 16px 24px !important;
  color: #1f2a44 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  flex-direction: row !important;
}

.service-history-header .modal-title {
  font-size: 16px !important;
  font-weight: 600 !important;
  color: #1f2a44 !important;
  margin: 0 !important;
}

.service-history-header .text-muted {
  color: #9aa6bd !important;
}

.service-history-header .btn-close,
.service-history-header .close,
.service-history-close {
  width: 32px !important;
  height: 32px !important;
  border-radius: 50% !important;
  background: #f7f9fc !important;
  border: 1px solid #e3e8f0 !important;
  opacity: 1 !important;
  padding: 0 !important;
  margin: 0 0 0 16px !important;
  color: #64718a !important;
  font-size: 20px !important;
  line-height: 28px !important;
  text-align: center !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
  flex-shrink: 0 !important;
}

.history-card {
  background: #f7f9fc;
  border: 1px solid #eceff5;
  border-radius: 11px;
  padding: 12px 16px;
  height: 100%;
  transition: transform var(--transition);
}

.history-card:hover {
  transform: translateY(-2px);
  background: #ffffff;
}

.history-card-label {
  font-size: 9.5px;
  font-weight: 700;
  color: #9aa6bd;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  margin-bottom: 4px;
}

.history-card-value {
  font-size: 20px;
  font-weight: 700;
  color: #1f2a44;
  font-family: 'DM Sans', sans-serif;
}

.service-history-table-wrap {
  border: none !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

.service-history-table thead th,
#serviceHistoryTable thead th,
.dataTables_wrapper table.dataTable thead th {
  background: #eef3fe !important;
  color: #1e3a8a !important;
  font-weight: 700 !important;
  font-size: 11px !important;
  text-transform: uppercase !important;
  letter-spacing: 0.05em !important;
  border-bottom: 2px solid #cbd5e1 !important;
  border-top: none !important;
  padding: 12px 20px 12px 10px !important;
  vertical-align: -webkit-baseline-middle;
  vertical-align: middle;
  line-height: 1.3;
}

.service-history-table td:first-child,
.service-history-table th:first-child,
#serviceHistoryTable td:first-child,
#serviceHistoryTable th:first-child {
  white-space: nowrap !important;
}

.service-history-table tbody td {
  font-size: 12.5px !important;
  color: #1f2a44 !important;
  border-bottom: 1px solid #eceff5 !important;
}

/* ───────────── LOGIN PAGE ───────────── */
.login-app {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  min-height: 100vh;
  width: 100vw;
  position: relative;
  background: var(--bg);
}

.login-app .left {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 0% 100%, rgba(56, 201, 160, 0.18) 0%, transparent 55%),
    radial-gradient(ellipse at 100% 0%, rgba(160, 110, 247, 0.16) 0%, transparent 55%),
    linear-gradient(135deg, #eef3fb 0%, #e6edf7 50%, #f3edfb 100%);
  color: var(--text);
  padding: 64px 70px;
  display: flex;
  flex-direction: column;
}

.login-app .left::before,
.login-app .left::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
}

.login-app .left::before {
  width: 520px;
  height: 520px;
  background: radial-gradient(circle, rgba(79, 142, 247, 0.30) 0%, transparent 70%);
  top: -120px;
  right: -80px;
  animation: blobL1 14s ease-in-out infinite alternate;
}

.login-app .left::after {
  width: 460px;
  height: 460px;
  background: radial-gradient(circle, rgba(247, 135, 79, 0.22) 0%, transparent 70%);
  bottom: -120px;
  left: -100px;
  animation: blobL2 18s ease-in-out infinite alternate;
}

@keyframes blobL1 {
  0% {
    transform: translate(0, 0) scale(1)
  }

  100% {
    transform: translate(-60px, 80px) scale(1.1)
  }
}

@keyframes blobL2 {
  0% {
    transform: translate(0, 0) scale(1)
  }

  100% {
    transform: translate(80px, -60px) scale(1.15)
  }
}

.login-app .left .grid-bg {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(26, 37, 64, 0.08) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: radial-gradient(ellipse at center, #000 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse at center, #000 30%, transparent 80%);
  pointer-events: none;
}

.login-app .left>* {
  position: relative;
  z-index: 2;
}

.login-app .brand {
  display: flex;
  align-items: center;
  gap: 0;
}

.login-app .brand img {
  height: 60px;
  width: auto;
  display: block;
  filter: drop-shadow(0 6px 18px rgba(26, 37, 64, 0.12));
}

.login-app .brand-tag-row {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  padding: 5px 12px 5px 8px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  font-size: 11px;
  font-weight: 600;
  color: var(--text2);
  text-transform: uppercase;
  letter-spacing: 0.6px;
  width: max-content;
}

.login-app .brand-tag-row .pill-dot {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blue), var(--accent2));
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.login-app .brand-tag-row .pill-dot svg {
  width: 9px;
  height: 9px;
  color: #fff;
}

.login-app .hero {
  margin-top: auto;
  margin-bottom: auto;
  max-width: 540px;
}

.login-app .hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.95);
  font-size: 11.5px;
  font-weight: 600;
  color: var(--blue);
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-bottom: 22px;
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 14px rgba(100, 130, 170, 0.10);
}

.login-app .hero-eyebrow .pulse {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent2);
  box-shadow: 0 0 0 3px rgba(56, 201, 160, 0.25);
  animation: pulseSm 1.8s infinite;
}

@keyframes pulseSm {

  0%,
  100% {
    opacity: 1
  }

  50% {
    opacity: 0.45
  }
}

.login-app .hero h1 {
  font-size: 44px;
  line-height: 1.1;
  font-weight: 600;
  letter-spacing: -1.4px;
  margin-bottom: 18px;
  text-wrap: pretty;
  color: var(--text);
}

.login-app .hero h1 .grad {
  background: linear-gradient(135deg, var(--blue) 0%, var(--accent2) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.login-app .hero p {
  font-size: 15px;
  line-height: 1.6;
  color: var(--text2);
  max-width: 460px;
}

.login-app .feature-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 32px;
  max-width: 520px;
}

.login-app .feature {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.95);
  border-radius: 14px;
  backdrop-filter: blur(12px);
  box-shadow: 0 6px 18px rgba(100, 130, 170, 0.08);
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
}

.login-app .feature:hover {
  background: rgba(255, 255, 255, 0.85);
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(100, 130, 170, 0.14);
}

.login-app .feature-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.login-app .feature-icon svg {
  width: 16px;
  height: 16px;
}

.login-app .feature.f1 .feature-icon {
  background: rgba(79, 142, 247, 0.14);
  color: var(--blue);
}

.login-app .feature.f2 .feature-icon {
  background: rgba(56, 201, 160, 0.16);
  color: var(--accent2);
}

.login-app .feature.f3 .feature-icon {
  background: rgba(247, 135, 79, 0.16);
  color: var(--accent3);
}

.login-app .feature.f4 .feature-icon {
  background: rgba(160, 110, 247, 0.16);
  color: var(--accent4);
}

.login-app .feature-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
}

.login-app .feature-sub {
  font-size: 11px;
  color: var(--text3);
  margin-top: 2px;
}

.login-app .deco-orb {
  position: absolute;
  top: 80px;
  right: 70px;
  width: 96px;
  height: 96px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(79, 142, 247, 0.25), rgba(56, 201, 160, 0.25));
  border: 1px solid rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: inset 0 0 30px rgba(255, 255, 255, 0.5), 0 12px 32px rgba(100, 130, 170, 0.15);
  z-index: 2;
  animation: floaty 7s ease-in-out infinite;
}

.login-app .deco-orb::before {
  content: '';
  position: absolute;
  top: 16%;
  left: 18%;
  width: 32%;
  height: 32%;
  background: rgba(255, 255, 255, 0.7);
  border-radius: 50%;
  filter: blur(8px);
}

@keyframes floaty {

  0%,
  100% {
    transform: translateY(0)
  }

  50% {
    transform: translateY(-12px)
  }
}

.login-app .deco-ring {
  position: absolute;
  bottom: 110px;
  right: 60px;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  border: 1.5px dashed rgba(79, 142, 247, 0.30);
  z-index: 2;
  animation: spin 40s linear infinite;
}

.login-app .deco-ring::before,
.login-app .deco-ring::after {
  content: '';
  position: absolute;
  border-radius: 50%;
}

.login-app .deco-ring::before {
  inset: 22px;
  border: 1.5px dashed rgba(56, 201, 160, 0.30);
}

.login-app .deco-ring::after {
  inset: 70px;
  background: linear-gradient(135deg, var(--blue), var(--accent2));
  opacity: 0.6;
  box-shadow: 0 6px 20px rgba(79, 142, 247, 0.35);
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.login-app .left-footer {
  margin-top: 24px;
  font-size: 11.5px;
  color: var(--text3);
  display: flex;
  align-items: center;
  gap: 8px;
}

.login-app .left-footer a {
  color: var(--text2);
  text-decoration: none;
  font-weight: 500;
}

.login-app .left-footer a:hover {
  color: var(--blue);
}

.login-app .right {
  position: relative;
  /* background: var(--bg); */
  background: #fff;
  display: flex;
  flex-direction: column;
}

.login-app .right::before,
.login-app .right::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  z-index: 0;
  pointer-events: none;
}

.login-app .right::before {
  width: 380px;
  height: 380px;
  background: radial-gradient(circle, rgba(79, 142, 247, 0.18) 0%, transparent 70%);
  top: -100px;
  right: -80px;
  animation: blobR1 12s ease-in-out infinite alternate;
  display: none;
}

.login-app .right::after {
  width: 360px;
  height: 360px;
  background: radial-gradient(circle, rgba(56, 201, 160, 0.14) 0%, transparent 70%);
  bottom: -120px;
  left: -60px;
  animation: blobR2 15s ease-in-out infinite alternate;
  display: none;
}

@keyframes blobR1 {
  0% {
    transform: translate(0, 0)
  }

  100% {
    transform: translate(40px, 40px)
  }
}

@keyframes blobR2 {
  0% {
    transform: translate(0, 0)
  }

  100% {
    transform: translate(-30px, -30px)
  }
}

.login-app .right-inner {
  position: relative;
  z-index: 1;
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 32px 64px;
}

.login-app .top-row {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  font-size: 12.5px;
  color: var(--text2);
  margin-bottom: auto;
}

.login-app .top-row a {
  color: var(--blue);
  font-weight: 600;
  text-decoration: none;
  margin-left: 6px;
}

.login-app .top-row a:hover {
  text-decoration: underline;
}

.login-app .form-wrap {
  max-width: 440px;
  width: 100%;
  margin: 0 auto;
  padding: 32px 0;
  animation: fadeUp 0.6s ease both;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(18px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.login-app .form-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, rgba(79, 142, 247, 0.12), rgba(56, 201, 160, 0.10));
  border: 1px solid rgba(79, 142, 247, 0.25);
  border-radius: 20px;
  padding: 5px 12px 5px 8px;
  font-size: 11px;
  font-weight: 600;
  color: var(--blue);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 18px;
}

.login-app .form-eyebrow .dot {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blue), var(--accent2));
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.login-app .form-eyebrow .dot svg {
  width: 9px;
  height: 9px;
  color: #fff;
}

.login-app .form-title {
  font-size: 30px;
  font-weight: 600;
  color: var(--text);
  letter-spacing: -0.7px;
  line-height: 1.1;
  margin-bottom: 8px;
}

.login-app .form-title .wave {
  display: inline-block;
  transform-origin: 70% 70%;
  animation: wave 2.2s ease-in-out infinite;
}

@keyframes wave {

  0%,
  60%,
  100% {
    transform: rotate(0);
  }

  10% {
    transform: rotate(14deg);
  }

  20% {
    transform: rotate(-8deg);
  }

  30% {
    transform: rotate(14deg);
  }

  40% {
    transform: rotate(-4deg);
  }

  50% {
    transform: rotate(10deg);
  }
}

.login-app .form-sub {
  font-size: 14px;
  color: var(--text2);
  line-height: 1.5;
  margin-bottom: 28px;
}

.login-app .field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 18px;
}

.login-app .field-label {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text2);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.login-app .field-label .error,
.login-app .field-label .req {
  color: var(--red, #f76f6f);
  margin-left: 2px;
  margin-right: auto;
}

.login-app .field-label a {
  color: var(--blue);
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
}

.login-app .field-label a:hover {
  text-decoration: underline;
}

.login-app .input-wrap {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
  box-sizing: border-box;
  /* background: rgba(255, 255, 255, 0.9); */
  background: rgb(232 240 254);
  border: 1.5px solid rgba(200, 215, 235, 0.85);
  border-radius: 12px;
  overflow: hidden !important;
  transition: border-color var(--transition), box-shadow var(--transition), background var(--transition);
}

.login-app .input-wrap:focus-within {
  border-color: var(--blue);
  background: #e8f0fe;
  box-shadow: 0 0 0 4px rgba(79, 142, 247, 0.15);
}

.login-app .input-wrap .lead-ico {
  padding-left: 14px;
  color: var(--text3);
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  flex-shrink: 0;
}

.login-app .input-wrap:focus-within .lead-ico {
  color: var(--blue);
}

.login-app .input-wrap .lead-ico svg {
  width: 16px;
  height: 16px;
}

.login-app .input-wrap input {
  flex: 1 1 0% !important;
  width: 0 !important;
  min-width: 0 !important;
  height: 50px;
  padding: 0 14px;
  border: none;
  background: transparent;
  font-family: inherit;
  font-size: 14px;
  color: var(--text);
  outline: none;
  box-sizing: border-box;
}

.login-app .input-wrap .domain-suffix {
  align-self: center;
  color: var(--text2, #5a6a85);
  font-size: 0.85rem;
  white-space: nowrap;
  padding-right: 14px;
  padding-left: 4px;
  flex: 0 0 auto !important;
  flex-shrink: 0 !important;
}

.login-app .input-wrap input::placeholder {
  color: var(--text3);
}

.login-app .toggle-pwd {
  padding: 0 14px;
  background: transparent;
  border: none;
  cursor: pointer;
  color: var(--text3);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color var(--transition);
}

.login-app .toggle-pwd:hover {
  color: var(--blue);
}

.login-app .toggle-pwd svg {
  width: 17px;
  height: 17px;
}

.login-app .form-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 6px 0 24px;
  font-size: 12.5px;
}

.login-app .check {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  color: var(--text2);
  font-weight: 500;
  user-select: none;
}

.login-app .check input {
  display: none;
}

.login-app .check .box {
  width: 18px;
  height: 18px;
  border-radius: 6px;
  border: 1.5px solid rgba(200, 215, 235, 1);
  background: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition), border-color var(--transition);
}

.login-app .check .box svg {
  width: 12px;
  height: 12px;
  color: #fff;
  opacity: 0;
  transform: scale(0.6);
  transition: opacity var(--transition), transform var(--transition);
}

.login-app .check input:checked+.box {
  background: linear-gradient(135deg, var(--blue), var(--accent2));
  border-color: transparent;
}

.login-app .check input:checked+.box svg {
  opacity: 1;
  transform: scale(1);
}

.login-app .forgot-link {
  color: var(--blue);
  font-weight: 600;
  text-decoration: none;
}

.login-app .forgot-link:hover {
  text-decoration: underline;
}

.login-app .btn-submit {
  width: 100%;
  height: 52px;
  border: none;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--blue), #6fa8f8 50%, var(--accent2));
  background-size: 200% 100%;
  background-position: 0% 50%;
  color: #fff;
  font-family: inherit;
  font-size: 14.5px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  box-shadow: 0 10px 28px rgba(79, 142, 247, 0.35);
  transition: background-position 0.5s ease, transform var(--transition), box-shadow var(--transition);
  letter-spacing: 0.2px;
}

.login-app .btn-submit:hover {
  background-position: 100% 50%;
  transform: translateY(-2px);
  box-shadow: 0 14px 34px rgba(79, 142, 247, 0.45);
}

.login-app .btn-submit:active {
  transform: translateY(0);
}

.login-app .btn-submit svg {
  width: 16px;
  height: 16px;
  transition: transform var(--transition);
}

.login-app .btn-submit:hover svg {
  transform: translateX(3px);
}

.login-app .or-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 26px 0;
  font-size: 11px;
  font-weight: 600;
  color: var(--text3);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.login-app .or-divider::before,
.login-app .or-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(200, 215, 235, 1), transparent);
}

.login-app .sso-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 26px;
}

.login-app .sso-btn {
  height: 48px;
  border-radius: 12px;
  border: 1.5px solid rgba(200, 215, 235, 0.85);
  background: rgba(255, 255, 255, 0.7);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  transition: background var(--transition), border-color var(--transition), transform var(--transition);
}

.login-app .sso-btn:hover {
  background: #fff;
  border-color: var(--blue);
  transform: translateY(-1px);
}

.login-app .sso-btn svg {
  width: 18px;
  height: 18px;
}

.login-app .secure-note {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  background: rgba(56, 201, 160, 0.08);
  border: 1px solid rgba(56, 201, 160, 0.25);
  border-radius: 10px;
  font-size: 11.5px;
  color: #1e8567;
  font-weight: 500;
}

.login-app .secure-note svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  color: var(--accent2);
}

.login-app .right-footer {
  margin-top: auto;
  padding-top: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11.5px;
  color: var(--text3);
}

.login-app .right-footer a {
  color: var(--text2);
  text-decoration: none;
  margin-left: 16px;
  transition: color var(--transition);
}

.login-app .right-footer a:hover {
  color: var(--blue);
}

@media (max-width: 1100px) {
  .login-app .left {
    padding: 48px 50px;
  }

  .login-app .right-inner {
    padding: 32px 48px;
  }

  .login-app .hero h1 {
    font-size: 38px;
  }
}

@media (max-width: 900px) {
  .login-app {
    grid-template-columns: 1fr;
    height: auto;
    min-height: 100vh;
  }

  .login-app .left {
    padding: 40px 28px 60px;
    min-height: 360px;
  }

  .login-app .hero h1 {
    font-size: 32px;
  }

  .login-app .feature-list {
    grid-template-columns: 1fr 1fr;
  }

  .login-app .right-inner {
    padding: 32px 28px;
  }
}

@media (max-width: 480px) {
  .login-app .left {
    padding: 32px 22px 48px;
  }

  .login-app .right-inner {
    padding: 24px 22px;
  }

  .login-app .feature-list {
    grid-template-columns: 1fr;
  }

  .login-app .sso-row {
    grid-template-columns: 1fr;
  }

  .login-app .form-title {
    font-size: 28px;
  }
}

/* ───────────── GLOBAL MODALS (NEW UI) ───────────── */
.modal.new-ui-modal .modal-content {
  border: none !important;
  border-radius: 20px !important;
  overflow: hidden !important;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25) !important;
  background: #f8fafc !important;
}

.modal.new-ui-modal .modal-header {
  background: linear-gradient(135deg, var(--blue), var(--accent2)) !important;
  padding: 18px 32px !important;
  border: none !important;
  color: #fff !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-start !important;
  position: relative !important;
}

.modal.new-ui-modal .modal-header .modal-title {
  color: #fff !important;
  font-weight: 700 !important;
  font-size: 22px !important;
  margin-bottom: 4px !important;
  letter-spacing: -0.5px !important;
}

.modal.new-ui-modal .modal-header small,
.modal.new-ui-modal .modal-header .text-muted {
  color: rgba(255, 255, 255, 0.8) !important;
  font-size: 13px !important;
  font-weight: 500 !important;
}

.modal.new-ui-modal .modal-header .btn-close {
  position: absolute !important;
  top: 24px !important;
  right: 24px !important;
  filter: brightness(0) invert(1) !important;
  opacity: 0.8 !important;
  margin: 0 !important;
  padding: 8px !important;
  background-size: 12px !important;
  transition: all 0.2s !important;
}

.modal.new-ui-modal .modal-header .btn-close:hover {
  opacity: 1 !important;
  transform: rotate(90deg) !important;
}

.modal.new-ui-modal .modal-body {
  padding: 18px !important;
}

.modal.new-ui-modal .modal-footer {
  padding: 20px 32px !important;
  border-top: 1px solid rgba(200, 215, 235, 0.4) !important;
  background: #fff !important;
}

/* Modal Form Elements */
.modal.new-ui-modal .field {
  display: flex !important;
  flex-direction: column !important;
  gap: 8px !important;
  margin-bottom: 20px !important;
}

.modal.new-ui-modal .field-label {
  font-size: 13px !important;
  font-weight: 600 !important;
  color: var(--text2) !important;
  margin-bottom: 2px !important;
}

.modal.new-ui-modal .input-wrap {
  position: relative !important;
  display: flex !important;
  align-items: center !important;
  background: #fff !important;
  border: 1.5px solid rgba(200, 215, 235, 0.8) !important;
  border-radius: 12px !important;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.modal.new-ui-modal .input-wrap:focus-within {
  border-color: var(--blue) !important;
  box-shadow: 0 0 0 4px rgba(79, 142, 247, 0.1) !important;
  background: #fff !important;
}

.modal.new-ui-modal .input-wrap input,
.modal.new-ui-modal .input-wrap select,
.modal.new-ui-modal .input-wrap textarea {
  flex: 1 !important;
  padding: 12px 16px !important;
  border: none !important;
  background: transparent !important;
  outline: none !important;
  font-family: inherit !important;
  font-size: 14px !important;
  color: var(--text) !important;
  max-width: 100%;
}

.modal.new-ui-modal .input-wrap input[type="file"] {
  padding: 0px !important;
}

.modal.new-ui-modal .input-wrap .lead-ico {
  padding-left: 14px !important;
  color: var(--text3) !important;
  display: flex !important;
  align-items: center !important;
}

.modal.new-ui-modal .input-wrap:focus-within .lead-ico {
  color: var(--blue) !important;
}

/* Buttons in Modal */
.modal.new-ui-modal .btn-submit,
.modal.new-ui-modal .btn-primary {
  background: linear-gradient(135deg, var(--blue), var(--accent2)) !important;
  border: none !important;
  border-radius: 12px !important;
  padding: 12px 28px !important;
  font-weight: 700 !important;
  color: #fff !important;
  font-size: 14px !important;
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.18) !important;
  transition: all 0.3s ease !important;
}

.modal.new-ui-modal .btn-submit:hover,
.modal.new-ui-modal .btn-primary:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.25) !important;
}

.modal.new-ui-modal .btn-link {
  color: var(--text3) !important;
  font-weight: 600 !important;
  text-decoration: none !important;
  font-size: 13.5px !important;
}

.modal.new-ui-modal .btn-link:hover {
  color: var(--blue) !important;
}

/* ── DataTables Pagination ── */
.dataTables_wrapper .dataTables_paginate {
  margin-top: 24px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: flex-end !important;
  gap: 6px !important;
}

.dataTables_wrapper .dataTables_paginate span {
  display: flex !important;
  gap: 6px !important;
  margin: 0 !important;
  padding: 0 !important;
  border: none !important;
}

.dataTables_wrapper .dataTables_paginate .paginate_button>a {
  height: 36px !important;
  min-width: 36px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 0 16px !important;
  border-radius: 4px !important;
  border: 1px solid #e2e8f0 !important;
  background: #fff !important;
  color: var(--text2) !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  cursor: pointer !important;
  transition: all 0.2s ease !important;
  margin: 0 !important;
  box-shadow: none !important;
}

.dataTables_wrapper .dataTables_paginate .paginate_button:hover:not(.current):not(.disabled)>a {
  background: #f8fafc !important;
  border-color: var(--blue) !important;
  color: var(--blue) !important;
}

.dataTables_wrapper .dataTables_paginate .paginate_button.active>a,
.dataTables_wrapper .dataTables_paginate .paginate_button.active:hover>a {
  background: linear-gradient(135deg, var(--blue), var(--blue)) !important;
  color: #fff !important;
  border-color: var(--blue) !important;
}

.dataTables_wrapper .dataTables_paginate .paginate_button.disabled>a,
.dataTables_wrapper .dataTables_paginate .paginate_button.disabled:hover>a,
.dataTables_wrapper .dataTables_paginate .paginate_button.disabled:active>a {
  opacity: 0.5 !important;
  cursor: not-allowed !important;
  background: #f8fafc !important;
  border-color: rgba(200, 215, 235, 0.4) !important;
  color: var(--text3) !important;
}

.dataTables_wrapper .dataTables_paginate .paginate_button.previous>a,
.dataTables_wrapper .dataTables_paginate .paginate_button.next>a {
  font-size: 11px !important;
  text-transform: uppercase;
  letter-spacing: 0.8px;
}

/* ── SweetAlert Modernization ── */
.swal2-popup {
  border-radius: 24px !important;
  padding: 12px 15px 30px !important;
  background: #fff !important;
  border: none !important;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.12) !important;
}

.swal2-title {
  font-size: 26px !important;
  font-weight: 600 !important;
  color: #1a2540 !important;
  letter-spacing: -0.8px !important;
  margin-bottom: 24px !important;
}

.swal2-html-container {
  margin: 0 !important;
}

.swal2-actions {
  margin-top: 32px !important;
  gap: 16px !important;
}

.swal-form-wrap small {
  font-size: 10px;
}

.swal2-confirm,
.swal2-cancel,
.swal2-deny {
  border-radius: 16px !important;
  padding: 0 32px !important;
  height: 48px !important;
  font-weight: 700 !important;
  font-size: 15px !important;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
  border: none !important;
  display: flex;
  align-items: center !important;
  justify-content: center !important;
}

.swal2-confirm {
  background: linear-gradient(135deg, #4f8ef7, #6fa8f8 50%, #3cd5af) !important;
  color: #fff !important;
  box-shadow: 0 10px 20px rgba(79, 142, 247, 0.2) !important;
}

.swal2-cancel {
  background: #f1f5f9 !important;
  color: #5a6a85 !important;
}

.swal2-deny {
  background: #bef3db !important;
  color: #198754 !important;
}

.swal2-confirm:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 14px 28px rgba(79, 142, 247, 0.3) !important;
}

.swal2-cancel:hover {
  background: #e2e8f0 !important;
  transform: translateY(-1px) !important;
}

.swal2-deny:hover {
  background: #93ebc4 !important;
  transform: translateY(-1px) !important;
}

.swal-form-wrap .field-label {
  font-size: 13px;
  font-weight: 600;
  color: #5a6a85;
  margin-bottom: 8px;
  display: block;
}

.swal-form-wrap .input-wrap {
  display: flex !important;
  align-items: center !important;
  background: #f8fafc !important;
  border: 1.5px solid #e2e8f0 !important;
  height: 48px !important;
  border-radius: 12px !important;
  overflow: hidden !important;
  transition: all 0.2s ease !important;
}

.swal-form-wrap .input-wrap:focus-within {
  background: #fff !important;
  border-color: #4f8ef7 !important;
  box-shadow: 0 0 0 4px rgba(79, 142, 247, 0.1) !important;
}

.swal-form-wrap .input-wrap .lead-ico {
  width: 46px !important;
  height: 100% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  color: #94a3b8 !important;
  border-right: 1.5px solid #e2e8f0 !important;
  flex-shrink: 0 !important;
}

.swal-form-wrap .input-wrap:focus-within .lead-ico {
  color: #4f8ef7 !important;
  border-color: #4f8ef7 !important;
}

.swal-form-wrap .input-wrap input,
.swal-form-wrap .input-wrap select {
  flex: 1 !important;
  border: none !important;
  background: transparent !important;
  padding: 0 16px !important;
  height: 100% !important;
  outline: none !important;
  font-size: 14px !important;
  color: #1a2540 !important;
  width: 100% !important;
  appearance: auto;
}

.swal-form-wrap .input-wrap input::placeholder {
  color: #94a3b8 !important;
}

/* ── Glass Tabs ── */
.glass-tabs {
  /* border-bottom: 1px solid rgba(200, 215, 235, 0.4) !important; */
  display: flex !important;
  gap: 16px !important;
  margin-bottom: 24px !important;
  padding-bottom: 12px !important;
  border-top: none !important;
  border-left: none !important;
  border-right: none !important;
}

.glass-tabs .nav-link {
  border: none !important;
  background: transparent !important;
  color: var(--blue) !important;
  font-weight: 600 !important;
  padding: 8px 20px !important;
  border-radius: 8px !important;
  border: 1px solid transparent !important;
  font-size: 14px !important;
  transition: all 0.3s ease !important;
  /* margin-bottom: -13px !important; */
  /* to sit on the border */
}

.glass-tabs .nav-link:hover:not(.active) {
  background: rgba(79, 142, 247, 0.05) !important;
  color: var(--blue) !important;
}

.glass-tabs .nav-link.active {
  background: var(--blue) !important;
  color: #fff !important;
  border: 1px solid var(--blue) !important;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.16) !important;
}

/* ── Lead Sync Progress ── */
.sync-wrap {
  --card-radius: 18px;
}

.sync-wrap .card {
  border-radius: var(--card-radius);
}

.sync-wrap .shadow-soft {
  box-shadow: 0 12px 34px rgba(16, 24, 40, 0.10);
}

.sync-wrap .muted {
  color: #667085;
}

.sync-wrap .title {
  margin: 0;
  font-weight: 900;
  letter-spacing: .2px;
}

.sync-wrap .sub {
  font-size: 12px;
}

.sync-wrap .topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.sync-wrap .btn {
  border-radius: 14px;
  padding: 10px 14px;
}

.sync-wrap .btn i {
  margin-right: 6px;
}

.sync-wrap .pill {
  border-radius: 999px;
  padding: 6px 12px;
  font-weight: 600;
  letter-spacing: .4px;
  font-size: 12px;
}

.sync-wrap .pill-running {
  background: #FEEFC3;
  color: #7A4B00;
}

.sync-wrap .pill-success {
  background: #D1FADF;
  color: #05603A;
}

.sync-wrap .pill-failed {
  background: #FEE4E2;
  color: #912018;
}

.sync-wrap .chips {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.sync-wrap .chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  background: #F9FAFB;
  border: 1px solid rgba(17, 24, 39, .08);
  font-size: 12px;
  color: #475467;
}

.sync-wrap .dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: rgba(17, 24, 39, .22);
}

.sync-wrap .mini {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
  color: #667085;
  font-size: 12px;
}

.sync-wrap .mini b {
  color: #344054;
}

.sync-wrap .progress-wrap.hide {
  display: none;
}

.sync-wrap .progress {
  height: 14px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(17, 24, 39, .06);
}

.sync-wrap .progress-bar {
  width: 0%;
  transition: width .6s ease;
}

.sync-wrap .metric {
  background: #FFFFFF;
  border-radius: 16px;
  padding: 14px;
  border: 1px solid rgba(17, 24, 39, .06);
}

.sync-wrap .metric .k {
  font-size: 12px;
  color: #667085;
  font-weight: 600;
}

.sync-wrap .metric .v {
  font-size: 32px;
  font-weight: 900;
  line-height: 1.05;
  color: #101828;
}

.sync-wrap .metric .s {
  font-size: 11px;
  color: #98A2B3;
  margin-top: 6px;
}

.sync-wrap .logbox {
  background: var(--blue);
  color: #E5E7EB;
  border-radius: 16px;
  padding: 12px 14px;
  font-size: 12px;
  line-height: 1.55;
}

.sync-wrap .divider {
  height: 1px;
  background: rgba(17, 24, 39, .06);
  margin: 14px 0;
}

/* .modal-header {
  background: linear-gradient(135deg, var(--blue), var(--accent2)) !important;
  padding: 24px 32px !important;
  border: none !important;
  color: #fff !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-start !important;
  position: relative !important;
} */
.table-card div.dataTables_wrapper div.dataTables_info {
  padding-top: 0;
}

#main-content .dataTables_processing {
  z-index: 1001 !important;
}

label.error {
  color: var(--red);
  font-size: 13px;
  font-weight: 500;
  display: block;
  margin-top: 4px;
}

.field label.error {
  margin-top: 0;
}

/* ── Customer Behavior Analytics Chart Scoped Styles ── */
.card-chart .card-head {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin-bottom: 14px;
  gap: 10px;
}

.card-chart .card-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text, #1a2540);
  letter-spacing: -0.2px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.card-chart .mini-select {
  position: relative;
  display: inline-block;
}

.card-chart .mini-select select {
  appearance: none;
  -webkit-appearance: none;
  height: 32px;
  padding: 0 28px 0 12px;
  border: 1px solid var(--border, #e0e7ff);
  border-radius: 9px;
  background: var(--glass, rgba(255, 255, 255, 0.72)) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='8' height='8' viewBox='0 0 8 8'%3E%3Cpath fill='%23708096' d='M0 2l4 4 4-4z'/%3E%3C/svg%3E") no-repeat right 11px center;
  font-family: inherit;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--text2, #3a4a62);
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s;
  outline: none;
}

.card-chart .mini-select select:hover {
  border-color: var(--accent, #4f8ef7);
  color: var(--accent, #4f8ef7);
}

.card-chart .rev-head {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-bottom: 14px;
}

.card-chart .rev-label {
  font-size: 11px;
  color: var(--text3, #708096);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.card-chart .rev-val {
  font-family: var(--font-num, sans-serif);
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -0.5px;
  color: var(--text, #1a2540);
}

.card-chart .rev-delta {
  font-size: 11px;
  font-weight: 600;
  color: var(--accent2, #38c9a0);
  display: flex;
  align-items: center;
  gap: 5px;
  margin-top: 2px;
}

.card-chart .btn-untapped-chart {
  font-size: 11px;
  color: var(--text2, #3a4a62);
  /* border: 1px solid var(--glass-border, rgba(255, 255, 255, 0.9)); */
  border: 1px solid #eceff5;
  background: var(--glass, rgba(255, 255, 255, 0.72));
  padding: 5px 12px;
  border-radius: 9px;
  cursor: pointer;
  height: 32px;
  display: flex;
  align-items: center;
  gap: 5px;
  font-weight: 600;
  transition: all 0.2s;
  width: auto;
}

.card-chart .btn-untapped-chart:hover {
  border-color: var(--accent, #4f8ef7);
  color: var(--accent, #4f8ef7);
  background: rgba(255, 255, 255, 0.9);
}

/* ── Step Form Layout ── */
.section-card {
  display: none !important;
}

.section-card.active {
  display: flex !important;
  flex-direction: column;
  animation: stepFadeIn 0.28s ease-in-out;
}

@media (min-width: 769px) {
  .section-card.active {
    min-height: 620px;
  }
}

.section-card.active .form-actions {
  margin-top: auto;
}

@keyframes stepFadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ── Step Dots Styling ── */
.step-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #e2e8f0;
  transition: all 0.3s ease;
}

.step-dot.done {
  background: var(--accent, #1a7f4b);
  opacity: 0.6;
}

.step-dot.current {
  background: var(--accent, #1a7f4b);
  width: 20px;
  border-radius: 4px;
}

/* ── Summary Panel sticky style ── */
.summary-panel {
  position: sticky;
  top: 85px;
  z-index: 10;
  width: 25%;
}

/* ─── Custom Search Bar with Advanced Filter Dropdown ─── */
.search-wrap {
  position: relative;
  min-width: 300px;
}

.search-wrap>i {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text3, #708096);
  font-size: 14px;
  pointer-events: none;
}

.search-wrap input[type="search"] {
  width: 100%;
  height: 36px;
  border: 1px solid rgba(200, 215, 235, 0.8);
  background: var(--glass, rgba(255, 255, 255, 0.72));
  border-radius: 10px;
  padding: 0 36px 0 34px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text, #1a2540);
  outline: 0;
  transition: all var(--transition, 0.3s cubic-bezier(.4, 0, .2, 1));
}

.search-wrap input[type="search"]:focus {
  background: #ffffff;
  border-color: var(--accent, #2c6cf0);
  box-shadow: 0 0 0 3px rgba(44, 108, 240, 0.12);
}

.search-wrap .adv-toggle {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  width: 26px;
  height: 26px;
  border: 0;
  background: transparent;
  border-radius: 6px;
  color: var(--text3, #708096);
  cursor: pointer;
  display: grid;
  place-items: center;
  font-size: 13px;
  transition: all var(--transition, 0.3s cubic-bezier(.4, 0, .2, 1));
}

.search-wrap .adv-toggle:hover {
  background: rgba(79, 142, 247, 0.08);
  color: var(--accent, #2c6cf0);
}

.adv-panel {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  background: #ffffff;
  border: 1px solid rgba(200, 215, 235, 0.9);
  border-radius: 14px;
  box-shadow: 0 10px 30px rgba(100, 130, 170, 0.15);
  z-index: 1000;
  padding: 18px;
  display: none;
  grid-template-columns: 1fr 1fr;
  gap: 12px 16px;
  min-width: 480px;
}

.adv-panel.is-open {
  display: grid;
}

.adv-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.adv-field.full-width {
  grid-column: span 2;
}

.adv-field label.field-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--text2, #3a4a62);
  letter-spacing: 0.02em;
  text-transform: uppercase;
  margin-bottom: 2px;
}

.adv-field select,
.adv-field input[type="date"],
.adv-field .adv-text {
  height: 36px;
  padding: 0 12px;
  border: 1px solid rgba(200, 215, 235, 0.8);
  background-color: #f8fafc;
  border-radius: 8px;
  font-size: 13px;
  color: var(--text, #1a2540);
  outline: 0;
  width: 100%;
  transition: all var(--transition, 0.3s cubic-bezier(.4, 0, .2, 1));
}

.adv-field select:focus,
.adv-field input:focus {
  border-color: var(--accent, #2c6cf0);
  background-color: #ffffff;
}

.adv-actions {
  grid-column: span 2;
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  border-top: 1px solid rgba(200, 215, 235, 0.5);
  padding-top: 14px;
  margin-top: 6px;
}

/* Align select2 dropdown inputs inside advanced field */
.adv-field .select2-container {
  width: 100% !important;
}

.adv-field .select2-container .select2-selection--single,
.adv-field .select2-container .select2-selection--multiple {
  border: 1px solid rgba(200, 215, 235, 0.8) !important;
  background: #f8fafc !important;
  border-radius: 8px !important;
  min-height: 36px !important;
  box-shadow: none !important;
  display: flex !important;
  align-items: center !important;
}

.adv-field .select2-container--default .select2-selection--single .select2-selection__rendered {
  color: var(--text, #1a2540) !important;
  font-size: 13px !important;
  padding-left: 12px !important;
  line-height: 34px !important;
}

.adv-field .select2-container--default .select2-selection--single .select2-selection__arrow {
  height: 34px !important;
  right: 8px !important;
}

.adv-field .select2-container .select2-selection--multiple .select2-selection__choice {
  background-color: rgba(79, 142, 247, 0.08) !important;
  border: 1px solid rgba(79, 142, 247, 0.2) !important;
  color: var(--blue, #2c6cf0) !important;
  border-radius: 4px !important;
  padding: 2px 8px 2px 24px !important;
  font-size: 12px !important;
  margin-top: 4px !important;
  position: relative !important;
}

.adv-field .select2-container .select2-selection--multiple .select2-selection__choice__remove {
  border: none !important;
  border-right: 1px solid rgba(79, 142, 247, 0.2) !important;
  color: var(--blue, #2c6cf0) !important;
  padding: 0 6px !important;
  height: 100% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  transition: all 0.2s ease !important;
  top: 0 !important;
  left: 0 !important;
}

.adv-field .select2-container .select2-selection--multiple .select2-selection__choice__remove:hover {
  background-color: rgba(79, 142, 247, 0.15) !important;
  color: #d31d54 !important;
}

/* ─── Email Intelligence Dashboard CSS ─── */
:root {
  --g-text: #202124;
  --g-text2: #5f6368;
  --g-blue: #1a73e8;
  --g-border: #e8eaed;
  --g-hover: #f5f7fb;
}

.threads-panel {
  background: #ffffff;
  border: 1px solid var(--g-border);
  border-radius: 16px;
  box-shadow: 0 4px 24px rgba(60, 80, 120, 0.06);
  overflow: hidden;
  animation: emailFadeUp 0.4s ease both;
}

@keyframes emailFadeUp {
  from {
    opacity: 0;
    transform: translateY(12px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Section header */
.threads-head {
  position: relative;
  display: flex;
  align-items: center;
  padding: 22px 28px 18px;
}

.threads-head-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.threads-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--g-blue);
  flex-shrink: 0;
}

.threads-title {
  font-size: 18px;
  font-weight: 600;
  color: var(--g-text);
  letter-spacing: -0.2px;
}

.threads-sub {
  position: absolute;
  left: 0;
  right: 0;
  text-align: center;
  font-size: 13.5px;
  color: var(--g-text2);
  pointer-events: none;
}

/* Category tabs */
.tab-bar {
  display: flex;
  align-items: stretch;
  border-bottom: 1px solid var(--g-border);
  padding: 0 16px;
  margin-bottom: 15px;
}

.cat-tab {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 14px 22px 15px;
  cursor: pointer;
  border-bottom: 2.5px solid transparent;
  color: var(--g-text2);
  font-size: 14px;
  font-weight: 500;
  transition: background 0.16s, color 0.16s;
  user-select: none;
  white-space: nowrap;
  margin-bottom: -1px;
  text-decoration: none !important;
}

.cat-tab svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  color: #80868b;
  transition: color 0.16s;
}

.cat-tab .tab-count {
  color: inherit;
  font-weight: 500;
}

.cat-tab:hover {
  background: var(--g-hover);
}

.cat-tab.active {
  color: var(--g-blue);
  font-weight: 600;
  border-bottom-color: var(--g-blue);
}

.cat-tab.active svg {
  color: var(--g-blue);
}

/* Thread rows without checkbox */
.thread-list {
  display: flex;
  flex-direction: column;
}

.thread-row {
  display: grid;
  grid-template-columns: 160px 1fr auto;
  gap: 0 18px;
  align-items: start;
  padding: 16px 28px;
  border-bottom: 1px solid #eef1f4;
  cursor: pointer;
  transition: background 0.15s;
}

.thread-row:last-child {
  border-bottom: none;
}

.thread-row:hover {
  background: var(--g-hover);
}

/* sender */
.row-sender {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-top: 1px;
  min-width: 0;
}

.sender-name {
  font-size: 14px;
  font-weight: 500;
  color: var(--g-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sender-count {
  font-size: 13px;
  color: #80868b;
  font-weight: 400;
  flex-shrink: 0;
}

/* main content */
.row-main {
  min-width: 0;
}

.row-subjectline {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.row-subject {
  font-size: 15px;
  font-weight: 600;
  color: var(--g-text);
  letter-spacing: -0.1px;
}

.crm-tags {
  display: flex;
  align-items: center;
  gap: 7px;
  flex-wrap: wrap;
}

.crm-tag {
  display: inline-flex;
  align-items: center;
  height: 21px;
  padding: 0 9px;
  border-radius: 5px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.3px;
  white-space: nowrap;
}

.crm-tag.uppercase {
  text-transform: uppercase;
}

.tag-blue {
  background: #e8f0fe;
  color: #1a73e8;
}

.tag-green {
  background: #e6f4ea;
  color: #137333;
}

.tag-amber {
  background: #fef7e0;
  color: #b06000;
}

.tag-purple {
  background: #f3e8fd;
  color: #8430ce;
}

/* timestamp */
.row-time {
  font-size: 13px;
  font-weight: 500;
  color: var(--g-text2);
  white-space: nowrap;
  margin-top: 2px;
  text-align: right;
}

/* empty state */
.empty-state {
  padding: 60px 28px;
  text-align: center;
  color: var(--g-text2);
  font-size: 14px;
}

@media (max-width: 1100px) {
  .threads-sub {
    display: none;
  }

  .thread-row {
    grid-template-columns: 130px 1fr auto;
    gap: 0 12px;
  }
}

@media (max-width: 768px) {
  .thread-row {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .row-sender {
    grid-column: 1;
  }

  .row-main {
    grid-column: 1;
  }

  .row-time {
    grid-column: 1;
    text-align: left;
    margin-top: 4px;
  }
}

/* ==========================================================================
   EMAIL THREAD DETAILS LAYOUT (GMAIL-STYLE CONVERSATION)
   ========================================================================== */

.email-thread-detail-page .convo-card {
  background: #fff;
  border: 1px solid var(--g-border2, #e8eaed);
  border-radius: 16px;
  padding: 30px 36px 32px;
  box-shadow: 0 4px 24px rgba(60, 80, 120, .06);
}

.email-thread-detail-page .convo-subject {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 26px;
}

.email-thread-detail-page .subject-text {
  font-size: 28px;
  font-weight: 600;
  color: var(--g-text, #202124);
  letter-spacing: -.4px;
}

.email-thread-detail-page .inbox-badge {
  display: inline-flex;
  align-items: center;
  height: 24px;
  padding: 0 12px;
  border-radius: 20px;
  background: #f1f3f4;
  color: var(--g-text2, #5f6368);
  font-size: 12px;
  font-weight: 500;
}

.email-thread-detail-page .msg {
  display: grid;
  grid-template-columns: 44px 1fr auto;
  gap: 0 16px;
  padding: 18px 0;
}

.email-thread-detail-page .msg-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  flex-shrink: 0;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.email-thread-detail-page .av-company {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #0d0d0f;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1px;
}

.email-thread-detail-page .av-company .av-brand {
  font-size: 8.5px;
  font-weight: 700;
  color: #e6332a;
  letter-spacing: .2px;
  line-height: 1;
}

.email-thread-detail-page .av-company .av-bar {
  width: 22px;
  height: 2px;
  background: #e6332a;
  border-radius: 1px;
  opacity: .85;
}

.email-thread-detail-page .av-default {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #c4d5f5;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  overflow: hidden;
}

.email-thread-detail-page .av-default svg {
  width: 30px;
  height: 30px;
  color: #6b92dd;
  margin-bottom: -1px;
}

.email-thread-detail-page .msg-body {
  min-width: 0;
  padding-top: 1px;
}

.email-thread-detail-page .msg-sender {
  font-size: 15px;
  font-weight: 600;
  color: var(--g-text, #202124);
}

.email-thread-detail-page .msg-recipients {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 13px;
  color: var(--g-text2, #5f6368);
  margin-top: 3px;
  position: relative;
}

.email-thread-detail-page .msg-text {
  font-size: 14px;
  color: #3c4043;
  line-height: 1.65;
  margin-top: 10px;
}

.email-thread-detail-page .msg-text p {
  margin: 0;
}

.email-thread-detail-page .msg-text p+p {
  margin-top: 10px;
}

.email-thread-detail-page .msg-time {
  font-size: 13px;
  color: var(--g-text2, #5f6368);
  white-space: nowrap;
  text-align: right;
  padding-top: 2px;
}

.email-thread-detail-page .msg-head {
  display: flex;
  align-items: baseline;
  gap: 8px;
  min-width: 0;
}

.email-thread-detail-page .msg-snippet {
  flex: 1;
  min-width: 0;
  font-size: 14px;
  color: var(--g-text2, #5f6368);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: none;
}

.email-thread-detail-page .msg.collapsed {
  align-items: center;
  padding: 13px 14px;
  margin: 0 -14px;
  border-radius: 10px;
  cursor: pointer;
  transition: background 0.2s;
}

.email-thread-detail-page .msg.collapsed:hover {
  background: var(--g-hover, #f5f7fb);
}

.email-thread-detail-page .msg.collapsed .msg-head {
  align-items: baseline;
}

.email-thread-detail-page .msg.collapsed .msg-snippet {
  display: block;
}

.email-thread-detail-page .msg.collapsed .msg-recipients,
.email-thread-detail-page .msg.collapsed .msg-text {
  display: none;
}

.email-thread-detail-page .msg:not(.collapsed) .msg-head {
  cursor: pointer;
}

.email-thread-detail-page .msg.collapsed .msg-avatar {
  width: 36px;
  height: 36px;
}

.email-thread-detail-page .msg.collapsed .av-company,
.email-thread-detail-page .msg.collapsed .av-default {
  width: 36px;
  height: 36px;
}

.email-thread-detail-page .msg.collapsed .av-company .av-brand {
  font-size: 7px;
}

.email-thread-detail-page .msg.collapsed .av-default svg {
  width: 24px;
  height: 24px;
}

.email-thread-detail-page .msg-sep {
  height: 1px;
  background: var(--g-border2, #e8eaed);
}

.email-thread-detail-page .gmail-attachment-card:hover {
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.email-thread-detail-page .gmail-attachment-card:hover .attachment-overlay {
  opacity: 1 !important;
}

@media (max-width:768px) {
  .email-thread-detail-page .convo-card {
    padding: 24px 20px;
  }

  .email-thread-detail-page .msg {
    grid-template-columns: 40px 1fr;
    gap: 0 12px;
  }

  .email-thread-detail-page .msg-time {
    grid-column: 2;
    text-align: left;
    margin-top: 2px;
    order: -1;
  }

  .email-thread-detail-page .subject-text {
    font-size: 23px;
  }
}

.email-thread-detail-page .convo-actions {
  display: flex;
  gap: 12px;
  padding-top: 24px;
  margin-top: 8px;
  border-top: 1px solid var(--g-border2, #e8eaed);
}

.email-thread-detail-page .reply-btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  height: 40px;
  padding: 0 22px;
  border-radius: 20px;
  border: 1px solid var(--g-border, #dadce0);
  background: #fff;
  color: var(--g-text, #202124);
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: background .16s, border-color .16s, box-shadow .16s;
  text-decoration: none !important;
}

.email-thread-detail-page .reply-btn:hover {
  background: var(--g-hover, #f5f7fb);
  border-color: #c4c9d0;
  box-shadow: 0 1px 4px rgba(60, 64, 67, .1);
}

.email-thread-detail-page .reply-btn svg {
  width: 16px;
  height: 16px;
  color: var(--g-text2, #5f6368);
}

/* Composer styles nested under parent class */
.email-thread-detail-page .composer {
  margin-top: 20px;
  border: 1px solid var(--g-border, #dadce0);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 6px 30px rgba(60, 64, 67, .14);
  overflow: visible;
  max-height: 0;
  opacity: 0;
  transform: translateY(8px);
  transition: max-height .4s cubic-bezier(.4, 0, .2, 1), opacity .3s ease, transform .3s ease;
  pointer-events: none;
}

.email-thread-detail-page .composer.open {
  max-height: 1600px;
  opacity: 1;
  transform: none;
  pointer-events: auto;
}

.email-thread-detail-page .composer.minimized .composer-collapsible {
  display: none;
}

.email-thread-detail-page .composer.minimized {
  box-shadow: 0 4px 16px rgba(60, 64, 67, .12);
}

.email-thread-detail-page .composer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 46px;
  padding: 0 8px 0 18px;
  background: #f2f6fc;
  border-bottom: 1px solid var(--g-border2, #e8eaed);
  border-radius: 14px 14px 0 0;
  cursor: pointer;
}

.email-thread-detail-page .composer.minimized .composer-head {
  border-radius: 14px;
}

.email-thread-detail-page .composer-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--g-text, #202124);
}

.email-thread-detail-page .composer-head-actions {
  display: flex;
  gap: 2px;
}

.editor-wrap .form-control:focus {
  box-shadow: none !important;
}

.email-thread-detail-page .ch-btn {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  border: none;
  background: transparent;
  color: var(--g-text2, #5f6368);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .15s;
}

.email-thread-detail-page .ch-btn:hover {
  background: rgba(60, 64, 67, .1);
}

.email-thread-detail-page .rcpt-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 8px 18px;
  border-bottom: 1px solid var(--g-border2, #e8eaed);
  min-height: 46px;
  font-size: 14px;
  position: relative;
}

.email-thread-detail-page .rcpt-row.hidden {
  display: none;
}

.email-thread-detail-page .rcpt-label {
  color: var(--g-text2, #5f6368);
  padding-top: 6px;
  flex-shrink: 0;
  min-width: 30px;
}

.email-thread-detail-page .rcpt-field {
  flex: 1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
  min-width: 0;
}

.email-thread-detail-page .rcpt-from {
  color: var(--g-text, #202124);
  padding-top: 5px;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.email-thread-detail-page .rcpt-from .from-email {
  color: var(--g-text2, #5f6368);
}

.email-thread-detail-page .from-chev {
  width: 16px;
  height: 16px;
  color: #9aa0a6;
  cursor: pointer;
  padding-top: 0;
}

.email-thread-detail-page .ccbcc {
  display: flex;
  gap: 14px;
  align-items: center;
  padding-top: 6px;
  flex-shrink: 0;
}

.email-thread-detail-page .ccbcc span {
  cursor: pointer;
  font-size: 13px;
  font-weight: 500;
  color: var(--g-text2, #5f6368);
}

.email-thread-detail-page .ccbcc span:hover {
  color: var(--g-blue, #1a73e8);
}

.email-thread-detail-page .subject-row {
  padding: 10px 18px;
}

.email-thread-detail-page .subject-row input {
  width: 100%;
  border: none;
  outline: none;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  color: var(--g-text, #202124);
  background: transparent;
}

.email-thread-detail-page .subject-row input::placeholder {
  font-weight: 400;
  color: #9aa0a6;
}

.email-thread-detail-page .composer-toolbar {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 6px 16px 14px;
  flex-wrap: wrap;
}

.email-thread-detail-page .send-split {
  display: flex;
  align-items: stretch;
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(26, 115, 232, .4);
  margin-right: 8px;
  position: relative;
}

.email-thread-detail-page .send-main {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 40px;
  padding: 0 22px;
  border: none;
  background: var(--tw-accent, #1a73e8);
  color: #fff;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background .15s;
}

.email-thread-detail-page .send-main:hover {
  background: var(--tw-accent-dark, #1765cc);
}

.email-thread-detail-page .tool-icon {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: none;
  background: transparent;
  color: #5f6368;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .15s, color .15s;
  position: relative;
}

.email-thread-detail-page .tool-icon:hover {
  background: rgba(60, 64, 67, .09);
}

.email-thread-detail-page .tool-icon svg,
.email-thread-detail-page .tool-icon i {
  font-size: 16px;
}

.email-thread-detail-page .tool-sep {
  width: 1px;
  height: 22px;
  background: var(--g-border2, #e8eaed);
  margin: 0 4px;
}

/* Gmail-style Recipient Chips */
.email-thread-detail-page .chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 28px;
  padding: 0 5px 0 11px;
  background: #e8eef9;
  border: 1px solid transparent;
  border-radius: 16px;
  font-size: 13px;
  color: #1f3a5f;
  max-width: 100%;
  white-space: nowrap;
}

.email-thread-detail-page .chip .chip-txt {
  overflow: hidden;
  text-overflow: ellipsis;
}

.email-thread-detail-page .chip.invalid {
  background: #fce8e6;
  color: #c5221f;
}

.email-thread-detail-page .chip-x {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #5a6a85;
  flex-shrink: 0;
}

.email-thread-detail-page .chip-x:hover {
  background: rgba(60, 64, 67, 0.16);
}

.email-thread-detail-page .chip-x svg {
  width: 11px;
  height: 11px;
}

.email-thread-detail-page .chip-input {
  flex: 1;
  min-width: 140px;
  border: none;
  outline: none;
  font-family: inherit;
  font-size: 14px;
  color: var(--g-text, #202124);
  background: transparent;
  height: 30px;
}

/* contact suggestions */
.email-thread-detail-page .suggest {
  position: fixed;
  z-index: 300;
  background: #fff;
  border: 1px solid var(--g-border2, #e8eaed);
  border-radius: 10px;
  box-shadow: 0 8px 30px rgba(60, 64, 67, 0.22);
  min-width: 300px;
  max-height: 260px;
  overflow: auto;
  padding: 6px 0;
  display: none;
}

.email-thread-detail-page .suggest.show {
  display: block;
}

.email-thread-detail-page .sug-item {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 8px 14px;
  cursor: pointer;
}

.email-thread-detail-page .sug-item:hover,
.email-thread-detail-page .sug-item.active {
  background: var(--g-hover, #f5f7fb);
}

.email-thread-detail-page .sug-av {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #c4d5f5;
  color: #33518a;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12.5px;
  font-weight: 600;
  flex-shrink: 0;
}

.email-thread-detail-page .sug-meta {
  min-width: 0;
}

.email-thread-detail-page .sug-name {
  font-size: 13px;
  color: var(--g-text, #202124);
  font-weight: 500;
}

.email-thread-detail-page .sug-email {
  font-size: 12px;
  color: var(--g-text2, #5f6368);
}

/* ==========================================================================
   KPI SLIDER NAVIGATION ARROWS (SLICK CAROUSEL)
   ========================================================================== */
.dashboard-new-ui .kpi-row {
  position: relative;
}

.dashboard-new-ui .kpi-row .slick-prev,
.dashboard-new-ui .kpi-row .slick-next {
  position: absolute;
  top: 79px;
  /* Vertical center of 158px high KPI cards */
  transform: translateY(-50%);
  z-index: 10;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(200, 215, 235, 0.6);
  box-shadow: 0 4px 12px rgba(100, 130, 170, 0.15);
  color: #2c6cf0;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  outline: none;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  padding: 0;
}

/* Position and overlap the cards */
.dashboard-new-ui .kpi-row .slick-prev {
  left: -15px;
}

.dashboard-new-ui .kpi-row .slick-next {
  right: -15px;
}

/* Hover and Active Micro-interactions */
.dashboard-new-ui .kpi-row .slick-prev:hover,
.dashboard-new-ui .kpi-row .slick-next:hover {
  background: #2c6cf0;
  color: #ffffff;
  border-color: #2c6cf0;
  box-shadow: 0 6px 16px rgba(44, 108, 240, 0.35);
  transform: translateY(-50%) scale(1.08);
}

.dashboard-new-ui .kpi-row .slick-prev:active,
.dashboard-new-ui .kpi-row .slick-next:active {
  transform: translateY(-50%) scale(0.95);
}

/* Handle disabled / boundary states */
.dashboard-new-ui .kpi-row .slick-disabled {
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
}

/* Adjust Chevron Icon sizing */
.dashboard-new-ui .kpi-row .slick-prev i,
.dashboard-new-ui .kpi-row .slick-next i {
  font-size: 14px;
}

/* Hide on mobile for better touch swiping experience and to avoid overflow */
@media (max-width: 576px) {

  .dashboard-new-ui .kpi-row .slick-prev,
  .dashboard-new-ui .kpi-row .slick-next {
    display: none !important;
  }
}

/* ── Quotation step form sticky container and scrolling ── */
@media (min-width: 769px) {
  .quotation-step-form-container {
    height: calc(100vh - 202px);
    align-items: stretch !important;
  }

  .quotation-step-form-container .glass-card {
    margin-bottom: 0;
  }

  .form-column {
    height: 100%;
  }

  .section-card.active {
    display: flex !important;
    flex-direction: column;
    height: 100%;
    min-height: 0 !important;
    box-sizing: border-box;
  }

  .step-content-scroll {
    flex: 1;
    overflow-y: auto;
    min-height: 0;
    padding-right: 8px;
    overflow-x: hidden;
  }

  /* Scrollbar customization */
  .step-content-scroll::-webkit-scrollbar {
    width: 6px;
  }

  .step-content-scroll::-webkit-scrollbar-track {
    background: transparent;
  }

  .step-content-scroll::-webkit-scrollbar-thumb {
    background: rgba(79, 142, 247, 0.2);
    border-radius: 4px;
  }

  .step-content-scroll::-webkit-scrollbar-thumb:hover {
    background: rgba(79, 142, 247, 0.4);
  }
}

/* ── Gmail-style Full Body PDF & Attachment Preview Overlay ── */
.attachment-preview-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(15, 18, 25, 0.72) !important;
  backdrop-filter: blur(14px) saturate(180%) !important;
  -webkit-backdrop-filter: blur(14px) saturate(180%) !important;
  z-index: 99999;
  display: flex;
  flex-direction: column;
  color: #fff;
  animation: previewFadeIn 0.2s ease-out;
}

body.preview-open {
  overflow: hidden !important;
}

@keyframes previewFadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

.preview-header-bar {
  height: 56px;
  background: rgba(22, 26, 35, 0.82) !important;
  backdrop-filter: blur(10px) !important;
  -webkit-backdrop-filter: blur(10px) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  flex-shrink: 0;
  z-index: 100001;
}

.preview-header-bar .header-left {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  max-width: 35%;
}

.pdf-badge-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.preview-header-bar .header-file-title {
  font-size: 14px;
  font-weight: 500;
  color: #f3f4f6;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.preview-header-bar .header-center {
  display: flex;
  align-items: center;
  justify-content: center;
}

.gmail-open-newtab-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.08);
  color: #e5e7eb;
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.2s ease;
}

.gmail-open-newtab-btn:hover {
  background: rgba(255, 255, 255, 0.18);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.3);
}

.preview-header-bar .header-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.header-action-btn {
  background: transparent;
  border: none;
  color: #9ca3af;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  transition: all 0.2s ease;
  text-decoration: none;
}

.header-action-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
}

/* Full Body Scrollable Viewport */
.preview-viewport {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  position: relative;
  overflow: hidden;
}

.preview-viewport.pdf-scroll-body {
  overflow-y: auto !important;
  overflow-x: auto !important;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 24px 15px 90px 15px;
  background: transparent !important;
  scroll-behavior: smooth;
}

.preview-media-content {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.preview-media-content.pdf-content-wrap {
  width: 100%;
  height: auto !important;
  min-height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
}

.pdf-pages-stack {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  width: 100%;
}

.pdf-page-wrapper {
  background: #ffffff;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.45);
  border-radius: 4px;
  overflow: hidden;
  transition: transform 0.2s ease;
}

.pdf-page-wrapper canvas {
  display: block;
  max-width: 100%;
  height: auto !important;
}

.preview-media-object {
  width: 900px;
  max-width: 95vw;
  height: 85vh;
  border: none;
  border-radius: 4px;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.45);
}

.preview-media-img {
  max-width: 90%;
  max-height: 90%;
  object-fit: contain;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
  border-radius: 4px;
  animation: previewMediaScale 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes previewMediaScale {
  from {
    transform: scale(0.95);
    opacity: 0;
  }

  to {
    transform: scale(1);
    opacity: 1;
  }
}

.preview-media-iframe {
  width: 90%;
  height: 95%;
  border: none;
  background: #ffffff;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
  border-radius: 8px;
}

/* Floating Bottom Controls Pill Bar */
.gmail-pdf-floating-bar {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 100005;
  background: rgba(30, 32, 38, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 30px;
  padding: 6px 18px;
  display: flex;
  align-items: center;
  gap: 14px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
  color: #f3f4f6;
  font-size: 13px;
}

.pdf-page-info {
  font-weight: 500;
  letter-spacing: 0.3px;
  white-space: nowrap;
}

.pdf-bar-divider {
  width: 1px;
  height: 18px;
  background: rgba(255, 255, 255, 0.18);
}

.pdf-zoom-btn {
  background: transparent;
  border: none;
  color: #d1d5db;
  cursor: pointer;
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.15s ease;
}

.pdf-zoom-btn:hover {
  background: rgba(255, 255, 255, 0.15);
  color: #ffffff;
}

.preview-fallback-card {
  background: rgba(30, 35, 45, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 40px 30px;
  max-width: 480px;
  width: 100%;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.fallback-icon-wrapper {
  width: 72px;
  height: 72px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.fallback-icon-svg {
  width: 36px;
  height: 36px;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
}

.preview-fallback-card.fallback-word .fallback-icon-wrapper {
  background: rgba(37, 99, 235, 0.15);
  color: #3b82f6;
}

.preview-fallback-card.fallback-ppt .fallback-icon-wrapper {
  background: rgba(239, 68, 68, 0.15);
  color: #ef4444;
}

.preview-fallback-card.fallback-excel .fallback-icon-wrapper {
  background: rgba(34, 197, 94, 0.15);
  color: #22c55e;
}

.fallback-filename {
  font-size: 16px;
  font-weight: 600;
  color: #f3f4f6;
  margin-bottom: 8px;
  word-break: break-all;
}

.fallback-text {
  font-size: 13.5px;
  color: #9ca3af;
  margin-bottom: 24px;
}

.fallback-download-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 24px;
  font-weight: 600;
  font-size: 14px;
  border-radius: 10px;
  transition: all 0.2s ease;
  background: var(--blue, #2c6cf0) !important;
  border-color: var(--blue, #2c6cf0) !important;
}

.fallback-download-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(44, 108, 240, 0.3);
}

/* Navigation buttons */
.preview-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: rgba(30, 35, 45, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #9ca3af;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: all 0.2s ease;
  user-select: none;
  -webkit-user-select: none;
}

.preview-nav-btn:hover {
  background: rgba(30, 35, 45, 0.9);
  color: #ffffff;
  transform: translateY(-50%) scale(1.05);
}

.preview-nav-btn:active {
  transform: translateY(-50%) scale(0.95);
}

.preview-nav-btn.prev {
  left: 24px;
}

.preview-nav-btn.next {
  right: 24px;
}

.preview-nav-btn svg {
  width: 24px;
  height: 24px;
}

/* ─── NEW SIDEBAR STYLES ─── */
:root {
  --rail: 60px;
  --full: 260px;
  --th: 64px;
  --tr: 0.2s cubic-bezier(.4, 0, .2, 1);
  --g-text: #202124;
  --g-text2: #5f6368;
  --g-blue: #1a73e8;
  --g-border: #e8eaed;
  --g-hover: #f5f7fb;
}

/* ─── NEW SIDEBAR (icon rail by default) ─── */
#left-menu {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  bottom: 0 !important;
  z-index: 1040 !important;
  min-height: calc(100vh - var(--th)) !important;
  height: calc(100vh - var(--th)) !important;
  margin-top: var(--th) !important;
  transition: width var(--tr) !important;
  background: transparent !important;
}

/* Some pages have a sticky/fixed bottom action bar with a z-index above
   999 (e.g. quotation add/edit's financial summary bar). Since #left-menu
   establishes its own stacking context, a flyout submenu's own z-index
   can't outrank such a bar unless #left-menu itself is raised above it —
   only while a flyout is actually open, so the sidebar doesn't otherwise
   sit above modals/overlays. */
#left-menu.has-open-flyout {
  z-index: 1100 !important;
}

.has-impersonate-bar #left-menu {
  margin-top: calc(var(--th) + 35px) !important;
  height: calc(100vh - var(--th) - 35px) !important;
  min-height: calc(100vh - var(--th) - 35px) !important;
}

.side-bar {
  width: 100% !important;
  height: 100% !important;
  min-height: 100% !important;
  background: var(--glass);
  backdrop-filter: blur(24px);
  border-right: 1px solid var(--glass-border);
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  overflow: hidden;
  box-shadow: 2px 0 20px rgba(100, 130, 170, .08);
  transition: width var(--tr) !important;
}

#warraper:not(.small-menu) .side-bar {
  align-items: stretch;
}

/* Sidebar top – same height as topbar */
.topbar .sidebar-toggle-wrap {
  width: auto !important;
  height: auto !important;
  border-bottom: none !important;
  padding: 0 !important;
  background: transparent !important;
  display: flex;
  align-items: center;
}

#warraper:not(.small-menu) .sidebar-toggle-wrap {
  justify-content: flex-start;
  padding: 0 !important;
  gap: 12px;
}

/* ─── ICON RAIL ─── */
.icon-rail {
  flex: 1;
  width: 100%;
  padding: 8px 5px;
  display: flex;
  flex-direction: column;
  gap: 1px;
  overflow-y: auto;
  overflow-x: hidden;
}

.icon-rail::-webkit-scrollbar {
  width: 0;
}

#warraper:not(.small-menu) .icon-rail {
  display: none;
}

.rail-divider {
  height: 1px;
  background: rgba(200, 215, 235, .5);
  margin: 6px 10px;
  flex-shrink: 0;
}

.side-bar .icon-btn,
.icon-rail .icon-btn {
  /* width: var(--rail); */
  width: auto;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text2);
  transition: background var(--tr), color var(--tr);
  position: relative;
  flex-shrink: 0;
  border: none !important;
  background: transparent !important;
  border-radius: 9px !important;
  box-shadow: none !important;
}

.side-bar .icon-btn:hover,
.icon-rail .icon-btn:hover,
.side-bar .icon-btn.active,
.icon-rail .icon-btn.active {
  border-radius: 9px !important;
  box-shadow: none !important;
}

.side-bar .icon-btn.active::before {
  content: '';
  position: absolute;
  left: 0;
  top: 22%;
  bottom: 22%;
  width: 3px;
  background: var(--blue);
  border-radius: 0 3px 3px 0;
}

.side-bar .icon-btn svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

/* ─── FLYOUT ─── */
.flyout {
  position: fixed;
  left: var(--rail);
  background: #ffffff !important;
  border: 1px solid var(--g-border);
  border-left: none;
  border-radius: 0 12px 12px 0;
  box-shadow: 6px 0 24px rgba(60, 80, 120, .13);
  min-width: 215px;
  z-index: 1050 !important;
  display: none;
  padding: 6px 0 8px;
  max-height: 80vh;
  overflow-y: auto;
}

.flyout::-webkit-scrollbar {
  width: 3px;
}

.flyout::-webkit-scrollbar-thumb {
  background: rgba(100, 130, 170, .2);
  border-radius: 4px;
}

.flyout.show {
  display: block;
}

.fly-sec-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--text3);
  padding: 8px 14px 3px;
}

.fly-parent {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  padding: 7px 14px;
  /* cursor: pointer; */
  transition: background var(--tr), color var(--tr);
}

/* 
.fly-parent:hover {
  background: rgba(79, 142, 247, .06);
  color: var(--blue);
} */

.fly-hr {
  height: 1px;
  background: var(--g-border);
  margin: 3px 0;
}

.fly-sub-wrap {
  margin: 4px 8px 6px;
  padding: 4px;
  border-radius: 9px;
  background: rgba(100, 116, 139, 0.06);
}

.fly-sub {
  font-size: 14px;
  font-weight: 500;
  line-height: 1.429;
  color: var(--text2);
  padding: 6px 10px;
  border-radius: 6px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 9px;
  transition: background var(--tr), color var(--tr);
  text-decoration: none !important;
}

.fly-sub::before {
  display: none !important;
}

.fly-sub:hover {
  background: var(--g-hover);
  color: var(--blue);
}

.fly-sub.active {
  color: var(--blue) !important;
  font-weight: 600;
}

/* Single-item flyout */
.fly-single {
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  padding: 9px 14px;
  cursor: pointer;
  transition: background var(--tr), color var(--tr);
  text-decoration: none !important;
  display: block;
}

.fly-single:hover {
  background: rgba(79, 142, 247, .06);
  color: var(--blue);
}

.fly-single.active {
  color: var(--blue) !important;
  font-weight: 600;
  background: rgba(79, 142, 247, .06);
}

/* ─── EXPANDED SIDEBAR NAV ─── */
.exp-nav {
  display: none;
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 6px 8px 8px;
}

.exp-nav::-webkit-scrollbar {
  width: 4px;
}

.exp-nav::-webkit-scrollbar-thumb {
  background: rgba(100, 130, 170, .2);
  border-radius: 4px;
}

#warraper:not(.small-menu) .exp-nav {
  display: block;
}

.exp-section {
  margin-bottom: 2px;
}

.exp-sec-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--text3);
  padding: 10px 12px 4px;
}

.exp-item {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 8px 12px;
  border-radius: 9px;
  cursor: pointer;
  color: var(--text2);
  font-size: 14px;
  font-weight: 500;
  transition: background var(--tr), color var(--tr);
  position: relative;
  white-space: nowrap;
  text-decoration: none !important;
}

.exp-item:hover {
  background: rgba(79, 142, 247, .08);
  color: var(--blue);
}

.exp-item.active {
  background: linear-gradient(135deg, rgba(79, 142, 247, .14), rgba(56, 201, 160, .07));
  color: var(--blue);
}

.exp-item.active::before {
  content: '';
  position: absolute;
  left: 0;
  top: 24%;
  bottom: 24%;
  width: 3px;
  background: var(--blue);
  border-radius: 0 3px 3px 0;
}

.exp-item svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.exp-chev {
  margin-left: auto;
  transition: transform var(--tr);
  width: 12px !important;
  height: 12px !important;
  color: var(--text3);
  flex-shrink: 0;
}

.exp-item.open .exp-chev {
  transform: rotate(90deg) !important;
}

.exp-sub-wrap {
  overflow: hidden;
  max-height: 0;
  transition: max-height .35s ease, padding .35s ease, background-color .2s ease;
  padding-left: 14px;
  border-radius: 8px;
  margin-top: 2px;
  margin-bottom: 2px;
}

.exp-sub-wrap.open {
  max-height: 600px;
  padding-top: 4px;
  padding-bottom: 4px;
}

.exp-sub {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px;
  border-radius: 8px;
  cursor: pointer;
  color: var(--text2);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.572;
  transition: background var(--tr), color var(--tr);
  text-decoration: none !important;
}

.exp-sub::before {
  display: none !important;
}

.exp-sub:hover {
  background: rgba(79, 142, 247, .07);
  color: var(--blue);
}

.exp-sub.active {
  color: var(--blue);
  font-weight: 600;
}

/* Sidebar SVG Icons Styling & ChatGPT / LLM Style Micro-Animation */
.exp-sub svg,
.fly-sub svg,
.exp-item>svg:not(.exp-chev),
.icon-btn svg {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
  opacity: 0.72;
  stroke-width: 2;
  transition: transform 0.22s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.2s ease, color 0.2s ease;
  transform-origin: center center;
}

.exp-sub:hover svg,
.fly-sub:hover svg,
.exp-item:hover>svg:not(.exp-chev),
.icon-btn:hover svg {
  opacity: 1;
  transform: translateY(-1px) scale(1.15);
  color: var(--blue);
}

.exp-item>span {
  font-weight: 600;
}

.exp-sub.active svg,
.fly-sub.active svg,
.exp-item.active>svg:not(.exp-chev),
.icon-btn.active svg {
  opacity: 1;
  color: var(--blue);
}

.exp-sub.active:hover svg,
.fly-sub.active:hover svg {
  transform: translateY(-1px) scale(1.15);
}

/* ─── SIDEBAR FOOTER ─── */
.sidebar-foot {
  padding: 10px 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-top: 1px solid rgba(200, 215, 235, .5);
  flex-shrink: 0;
}

#warraper:not(.small-menu) .sidebar-foot {
  padding: 12px 15px;
  justify-content: flex-start;
  gap: 10px;
}

.side-bar .avatar {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--blue), var(--accent4));
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  flex-shrink: 0;
  cursor: pointer;
}

.foot-info {
  display: none;
}

#warraper:not(.small-menu) .foot-info {
  display: block;
}

.foot-name {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text);
}

.foot-role {
  font-size: 11px;
  color: var(--text3);
}

/* Layout overrides */
#warraper.small-menu #main-content {
  margin-left: var(--rail) !important;
}

#warraper:not(.small-menu) #main-content {
  margin-left: var(--full) !important;
}

#warraper.small-menu #top-header {
  margin-left: 0 !important;
  width: 100% !important;
}

#warraper:not(.small-menu) #top-header {
  margin-left: 0 !important;
  width: 100% !important;
}

#warraper.small-menu #left-menu {
  width: var(--rail) !important;
}

#warraper:not(.small-menu) #left-menu {
  width: var(--full) !important;
}

.header-sep {
  width: 1px;
  height: 30px;
  background: rgba(200, 215, 235, 0.8);
  flex-shrink: 0;
  margin: 0 2px;
}

/* ── Email Dashboard Threads & Tabs ── */
.thread-card {
  cursor: pointer;
  transition: 0.2s;
}

.thread-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.badge-quotation {
  background-color: #4f8ef7;
  color: white;
}

.badge-lead {
  background-color: #38c9a0;
  color: white;
}

.badge-proforma_invoice {
  background-color: #38c9a0;
  color: white;
}

.badge-requirement {
  background-color: #0d6efd;
  color: white;
}

.badge-negotiation {
  background-color: #f7874f;
  color: white;
}

.badge-follow_up {
  background-color: #0dcaf0;
  color: white;
}

.badge-other {
  background-color: #6c757d;
  color: white;
}

/* ── Gmail category tabs UI ── */
.threads-panel {
  background: #fff;
  border: 1px solid #e8eaed;
  border-radius: 16px;
  box-shadow: 0 4px 24px rgba(60, 80, 120, .06);
  overflow: hidden;
}

.threads-head {
  position: relative;
  display: flex;
  align-items: center;
  padding: 22px 28px 18px;
}

.threads-head-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.threads-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #1a73e8;
  flex-shrink: 0;
}

.threads-title {
  font-size: 18px;
  font-weight: 600;
  color: #202124;
  letter-spacing: -.2px;
}

.threads-sub {
  position: absolute;
  left: 0;
  right: 0;
  text-align: center;
  font-size: 13.5px;
  color: #5f6368;
  pointer-events: none;
}

.tab-bar {
  display: flex;
  align-items: stretch;
  border-bottom: 1px solid #e8eaed;
  padding: 0 16px;
  overflow-x: auto;
}

.cat-tab {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 14px 22px 15px;
  cursor: pointer;
  border-bottom: 2.5px solid transparent;
  color: #5f6368;
  font-size: 14px;
  font-weight: 500;
  transition: background .16s, color .16s;
  user-select: none;
  white-space: nowrap;
  margin-bottom: -1px;
  text-decoration: none !important;
}

.cat-tab svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  color: #80868b;
  transition: color .16s;
}

.cat-tab .tab-count {
  color: inherit;
  font-weight: 500;
  margin-left: 2px;
}

.cat-tab:hover {
  background: #f5f7fb;
  color: #5f6368;
}

.cat-tab.active {
  color: #1a73e8;
  font-weight: 600;
  border-bottom-color: #1a73e8;
}

.cat-tab.active svg {
  color: #1a73e8;
}

@media (max-width: 1100px) {
  .threads-sub {
    display: none;
  }
}

/* ─── 404 Error Page ─── */
.error-page-wrap {
  display: flex;
  align-items: center;
  min-height: 100vh;
  padding: 40px 0;
  background-color: #f3f4fa;
  background-image: url('../images/404-bg.png');
  background-repeat: no-repeat;
  background-position: right 10% center;
  background-size: 50% auto;
  position: relative;
  box-sizing: border-box;
}

@media (min-width: 992px) {
  .error-page-wrap {
    min-height: 100vh;
    overflow: hidden;
    padding: 0;
  }
}

@media (max-height: 850px) and (min-width: 992px) {
  .error-hero {
    font-size: 90px;
    margin-bottom: 5px;
  }

  .error-headline {
    font-size: 32px;
    margin-bottom: 12px;
  }

  .error-divider {
    margin-bottom: 15px;
  }

  .error-paragraph {
    font-size: 15px;
    margin-bottom: 10px;
  }

  .error-sub-paragraph {
    margin-bottom: 25px;
  }

  .error-buttons {
    margin-bottom: 25px;
  }

  .support-card-wrap {
    margin-top: 20px;
    padding: 16px 20px;
  }

  .bottom-quote-wrap {
    margin-top: 20px;
  }
}

@media (max-height: 740px) and (min-width: 992px) {
  .error-hero {
    font-size: 75px;
    margin-bottom: 2px;
  }

  .error-headline {
    font-size: 28px;
    margin-bottom: 8px;
  }

  .error-divider {
    margin-bottom: 10px;
  }

  .error-paragraph {
    font-size: 14px;
    margin-bottom: 6px;
  }

  .error-sub-paragraph {
    margin-bottom: 20px;
  }

  .error-buttons {
    margin-bottom: 20px;
  }

  .support-card-wrap {
    margin-top: 15px;
    padding: 12px 18px;
  }

  .bottom-quote-wrap {
    margin-top: 15px;
  }
}

@media (max-width: 1200px) {
  .error-page-wrap {
    background-position: right center;
    background-size: 45% auto;
  }
}

@media (max-width: 991.98px) {
  .error-page-wrap {
    background-image: none;
    display: flex;
    justify-content: center;
    text-align: center;
    padding: 40px 20px;
  }
}

.error-container {
  max-width: 1140px;
  width: 100%;
  margin: 0 auto;
  padding: 0 15px;
}

.error-hero {
  font-size: 110px;
  font-weight: 800;
  line-height: 1;
  margin-bottom: 10px;
  letter-spacing: -2px;
  display: inline-block;
  background: linear-gradient(135deg, #00ce89 0%, #4f8ef7 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent
}

.error-headline {
  font-size: 38px;
  font-weight: 800;
  color: #1a2540;
  margin-bottom: 18px;
}

.error-divider {
  width: 80px;
  height: 4px;
  background-color: #306bf3;
  margin-bottom: 25px;
  border-radius: 2px;
}

@media (max-width: 991.98px) {
  .error-divider {
    margin: 0 auto 25px auto;
  }
}

.error-paragraph {
  font-size: 17px;
  color: #5a6a85;
  line-height: 1.6;
  margin-bottom: 15px;
  font-weight: 500;
}

.error-sub-paragraph {
  font-size: 16px;
  color: #5a6a85;
  font-weight: 600;
  margin-bottom: 35px;
}

.error-buttons {
  display: flex;
  gap: 16px;
  margin-bottom: 60px;
}

@media (max-width: 991.98px) {
  .error-buttons {
    justify-content: center;
    flex-wrap: wrap;
  }
}

.btn-primary-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background-color: #306bf3;
  color: #ffffff !important;
  font-weight: 600;
  font-size: 15px;
  padding: 13px 26px;
  border-radius: 10px;
  text-decoration: none !important;
  box-shadow: 0 4px 14px rgba(48, 107, 243, 0.3);
  transition: all 0.3s ease;
  border: 1px solid #306bf3;
}

.btn-primary-cta:hover {
  background-color: #1b52d5;
  border-color: #1b52d5;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(48, 107, 243, 0.4);
}

.btn-secondary-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background-color: transparent;
  color: #306bf3 !important;
  font-weight: 600;
  font-size: 15px;
  padding: 13px 26px;
  border-radius: 10px;
  text-decoration: none !important;
  border: 1.5px solid #306bf3;
  transition: all 0.3s ease;
}

.btn-secondary-cta:hover {
  background-color: rgba(48, 107, 243, 0.05);
  transform: translateY(-2px);
}

/* Need help? Support Card */
.support-card-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #ffffff;
  border: 1px solid rgba(200, 215, 235, 0.6);
  border-radius: 16px;
  padding: 24px 30px;
  margin-top: 40px;
  box-shadow: 0 8px 24px rgba(100, 130, 170, 0.05);
  max-width: 900px;
}

@media (max-width: 767.98px) {
  .support-card-wrap {
    flex-direction: column;
    gap: 20px;
    text-align: center;
    padding: 20px;
    margin-left: auto;
    margin-right: auto;
  }
}

.support-card-content {
  display: flex;
  align-items: center;
  gap: 20px;
}

@media (max-width: 767.98px) {
  .support-card-content {
    flex-direction: column;
    gap: 12px;
  }
}

.support-icon-circle {
  width: 52px;
  height: 52px;
  background-color: rgba(48, 107, 243, 0.08);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #306bf3;
  font-size: 24px;
}

.support-text h3 {
  font-size: 16px;
  font-weight: 700;
  color: #1a2540;
  margin: 0 0 4px 0;
  text-align: left;
}

@media (max-width: 767.98px) {
  .support-text h3 {
    text-align: center;
  }
}

.support-text p {
  font-size: 14px;
  color: #5a6a85;
  margin: 0;
}

.btn-support-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1.5px solid #306bf3;
  border-radius: 8px;
  padding: 10px 20px;
  color: #306bf3 !important;
  font-weight: 600;
  font-size: 14px;
  text-decoration: none !important;
  transition: all 0.3s ease;
  background: transparent;
}

.btn-support-cta:hover {
  background-color: rgba(48, 107, 243, 0.05);
}

/* Bottom Quote */
.bottom-quote-wrap {
  text-align: center;
  margin-top: 50px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  max-width: 900px;
}

.bottom-quote-wrap i {
  font-size: 20px;
  color: #306bf3;
}

.bottom-quote-wrap p {
  font-size: 14px;
  color: #5a6a85;
  margin: 0;
  font-weight: 500;
}

#qc_company_section .field {
  gap: 0px !important;
  margin-bottom: 0px !important;
}

#qc_company_section .field-label {
  margin-bottom: 0px !important;
}

/* ── Unified Phone Country Code Input Pill (Global Admin & Profile Page) ── */
.input-wrap.phone-input-wrap,
.input-group.phone-input-wrap,
.input-wrap:has(.phone-code-select-container),
.input-group:has(.phone-code-select-container) {
  display: flex !important;
  flex-wrap: nowrap !important;
  align-items: center !important;
  background: #ffffff !important;
  border: 1.5px solid rgba(200, 215, 235, 0.85) !important;
  border-radius: 12px !important;
  height: 42px !important;
  width: 100% !important;
  padding: 0 !important;
  margin: 0 !important;
  overflow: hidden !important;
  transition: border-color 0.2s ease, box-shadow 0.2s ease !important;
}

.input-wrap.phone-input-wrap:focus-within,
.input-group.phone-input-wrap:focus-within {
  border-color: #2563eb !important;
  box-shadow: 0 0 0 3.5px rgba(37, 99, 235, 0.28) !important;
}

.phone-input-wrap>.input-group,
.input-wrap>.input-group {
  display: flex !important;
  flex-wrap: nowrap !important;
  align-items: center !important;
  width: 100% !important;
  height: 100% !important;
  border: none !important;
  background: transparent !important;
  margin: 0 !important;
  padding: 0 !important;
  gap: 0 !important;
  box-shadow: none !important;
  justify-content: left;
}

.phone-code-select-container,
.select2-container.phone-code-select-container,
.input-group>.phone-code-select-container,
.input-group>.select2-container.phone-code-select-container {
  position: relative !important;
  width: 112px !important;
  min-width: 112px !important;
  max-width: 112px !important;
  flex: 0 0 112px !important;
  height: 100% !important;
  display: inline-flex !important;
  align-items: center !important;
  border: none !important;
  border-right: 1px solid rgba(200, 215, 235, 0.85) !important;
  background: transparent !important;
  margin: 0 !important;
  padding: 0 !important;
  box-sizing: border-box !important;
}

.phone-code-select-container .select2-selection--single {
  position: relative !important;
  width: 100% !important;
  height: 100% !important;
  background: transparent !important;
  border: none !important;
  border-radius: 0 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  padding: 0 !important;
  margin: 0 !important;
  box-sizing: border-box !important;
  outline: none !important;
  box-shadow: none !important;
}

.phone-code-select-container .select2-selection__rendered {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  height: 100% !important;
  width: 100% !important;
  line-height: 1 !important;
  padding-left: 8px !important;
  padding-right: 20px !important;
  color: #1a2540 !important;
  font-size: 13px !important;
  font-weight: 500 !important;
  white-space: nowrap !important;
  overflow: visible !important;
  border: none !important;
  border-right: none !important;
}

.phone-code-select-container .select2-selection__rendered span {
  display: inline-flex !important;
  align-items: center !important;
  line-height: 1 !important;
  color: #1a2540 !important;
}

.phone-code-select-container .select2-selection__arrow {
  position: absolute !important;
  top: 0 !important;
  right: 5px !important;
  bottom: 0 !important;
  height: 100% !important;
  width: 14px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  pointer-events: none !important;
  z-index: 2 !important;
  border: none !important;
  border-right: none !important;
}

.phone-code-select-container .select2-selection__arrow b {
  position: relative !important;
  top: auto !important;
  left: auto !important;
  margin: 0 !important;
  border-color: #5a6a85 transparent transparent transparent !important;
  border-width: 5px 4px 0 4px !important;
}

.input-group>input.form-control,
.input-group>input[name="mobile_no"],
.input-group>input[name="phone"],
.input-group>input[name="phone_no"],
.input-group>input[name="alt_mobile_no"],
.phone-code-select-container+input.form-control {
  flex: 1 1 auto !important;
  width: calc(100% - 112px) !important;
  height: 100% !important;
  min-height: 100% !important;
  border: none !important;
  border-left: none !important;
  background: transparent !important;
  border-radius: 0 !important;
  font-size: 14px !important;
  color: #1a2540 !important;
  padding: 0 14px !important;
  margin: 0 !important;
  outline: none !important;
  box-shadow: none !important;
}

.phone-input-wrap .selection {
  width: 100% !important;
}

.form-group {
  margin-bottom: 10px;
}

/* Global Validation Error Message Position & Placement Fix */
.input-wrap,
.phone-input-wrap,
.input-group,
.date-input-container {
  position: relative !important;
}

label.error {
  color: #ef4444 !important;
  font-size: 12px !important;
  font-weight: 500 !important;
  display: block !important;
  margin-top: 4px !important;
  width: 100% !important;
  clear: both !important;
}

/* When label.error is inserted OUTSIDE the container */
.input-wrap+label.error,
.date-input-container+label.error,
.phone-input-wrap+label.error,
.input-group+label.error,
.select2-container+label.error {
  margin-top: 4px !important;
  display: block !important;
  clear: both !important;
  width: 100% !important;
  position: relative !important;
  top: auto !important;
}

/* When label.error is inserted INSIDE the flex container */
.input-wrap>label.error,
.date-input-container>label.error,
.phone-input-wrap>label.error,
.input-group>label.error {
  position: absolute !important;
  top: 100% !important;
  left: 0 !important;
  margin-top: 4px !important;
  display: block !important;
  width: 100% !important;
  color: #ef4444 !important;
  font-size: 12px !important;
  font-weight: 500 !important;
  white-space: normal !important;
  z-index: 10 !important;
  line-height: 1.3 !important;
}

/* ── File Upload Control UI Styling for .input-wrap & .form-control ── */
.input-wrap input[type="file"].form-control,
.input-wrap input[type="file"],
.form-control[type="file"],
input[type="file"] {
  background: transparent !important;
  height: 40px !important;
  min-height: 40px !important;
  max-height: 40px !important;
  padding: 0 !important;
  margin: 0 !important;
  display: flex !important;
  align-items: center !important;
  font-size: 13px !important;
  color: #64748b !important;
  cursor: pointer !important;
  box-shadow: none !important;
  outline: none !important;
  flex: 1 1 auto !important;
  width: 100% !important;
  min-width: 0 !important;
}

.input-wrap input[type="file"].form-control::file-selector-button,
.input-wrap input[type="file"]::file-selector-button,
.form-control[type="file"]::file-selector-button,
input[type="file"]::file-selector-button {
  background: #f1f5f9 !important;
  color: #334155 !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  border: none !important;
  border-right: 1.5px solid rgba(200, 215, 235, 0.85) !important;
  height: 40px !important;
  min-height: 40px !important;
  max-height: 40px !important;
  line-height: 40px !important;
  padding: 0 16px !important;
  margin-right: 14px !important;
  border-top-left-radius: 10px !important;
  border-bottom-left-radius: 10px !important;
  border-top-right-radius: 0 !important;
  border-bottom-right-radius: 0 !important;
  transition: background 0.2s ease, color 0.2s ease !important;
  cursor: pointer !important;
}

.input-wrap:has(input[type="file"]),
.field:has(input[type="file"])>.input-wrap,
.field:has(input[type="file"])>input[type="file"],
.form-group:has(input[type="file"])>.input-wrap,
.form-group:has(input[type="file"])>input[type="file"] {
  height: 40px !important;
  min-height: 40px !important;
  max-height: 40px !important;
  width: 100% !important;
}

/* The multi-image gallery field (company/lead Images) grows to fit its
   uploaded/preview thumbnails below the "Choose Files" bar - the generic
   file-input height cap above would otherwise clip its own layout height
   while the thumbnails keep rendering past it, visually overlapping
   whatever grid row comes next. */
.input-wrap.images-upload-wrap,
.form-group:has(input[type="file"])>.input-wrap.images-upload-wrap {
  height: auto !important;
  min-height: 40px !important;
  max-height: none !important;
}

.input-wrap input[type="file"].form-control::file-selector-button:hover,
.input-wrap input[type="file"]::file-selector-button:hover,
.form-control[type="file"]::file-selector-button:hover,
input[type="file"]::file-selector-button:hover {
  background: #e2e8f0 !important;
  color: #0f172a !important;
}

/* ── Select2 Dropdown Overflow & Modal z-index Fix ── */
.input-wrap:has(.select2-container),
.input-wrap:has(.qs-select2),
.input-wrap:has(.select2dropdown) {
  overflow: visible !important;
}

.input-wrap>.select2-container {
  width: 100% !important;
  height: 100% !important;
}

.input-wrap .select2-selection--single {
  height: 100% !important;
  border: none !important;
  background: transparent !important;
  display: flex !important;
  align-items: center !important;
  padding: 0 12px !important;
}

.input-wrap .select2-selection__rendered {
  line-height: 40px !important;
  padding-left: 0 !important;
  color: #1a2540 !important;
  font-size: 14px !important;
}

.input-wrap .select2-selection__arrow {
  height: 100% !important;
  top: 0 !important;
  right: 10px !important;
  display: flex !important;
  align-items: center !important;
}

.select2-container--open {
  z-index: 99999 !important;
}

.select2-dropdown {
  z-index: 99999 !important;
  border-radius: 12px !important;
  border: 1px solid rgba(200, 215, 235, 0.85) !important;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1) !important;
}

input[type="file"].swal2-file {
  display: none !important;
}

/* ==========================================================================
   GLOBAL KEYBOARD ACCESSIBILITY & FOCUS HIGHLIGHTS
   ========================================================================== */

/* 1. Global Focus-Visible Outline for Keyboard Tabbing (Buttons & Interactive Elements) */
a:focus-visible,
button:focus-visible,
.btn:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid #2563eb !important;
  outline-offset: 2px !important;
}

/* Suppress sharp square outlines on form fields and control containers */
input:focus,
input:focus-visible,
textarea:focus,
textarea:focus-visible,
select:focus,
select:focus-visible,
.form-control:focus,
.form-control:focus-visible,
.form-select:focus,
.form-select:focus-visible,
.input-wrap:focus-visible,
.input-group:focus-visible,
.select2-selection:focus,
.select2-selection:focus-visible,
.select2-container:focus-visible {
  outline: none !important;
  outline-offset: 0 !important;
}

/* 2. Base Border Radius & Focus Ring for Form Controls & Input Wrappers */
.input-wrap:not(.phone-input-wrap),
.input-group:not(.phone-input-wrap),
.date-input-container {
  border-radius: 12px !important;
}

.form-control,
.form-select,
input.form-control,
textarea.form-control,
select.form-select,
.select2-container--default .select2-selection--single,
.select2-container--default .select2-selection--multiple {
  border-radius: 12px !important;
}

/* Standalone HTML Form Controls Focus Highlights */
input.form-control:focus,
input.form-control:focus-visible,
textarea.form-control:focus,
textarea.form-control:focus-visible,
select.form-control:focus,
select.form-control:focus-visible,
select.form-select:focus,
select.form-select:focus-visible,
input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus,
input[type="number"]:focus,
input[type="tel"]:focus,
input[type="url"]:focus,
input[type="search"]:focus,
input[type="date"]:focus,
input[type="datetime-local"]:focus,
input[type="time"]:focus,
textarea:focus,
select:focus,
.sw-submit:focus,
.sw-back-step:focus,
.sw-skip-step:focus {
  border-color: #2563eb !important;
  box-shadow: 0 0 0 3.5px rgba(37, 99, 235, 0.28) !important;
  outline: none !important;
  border-radius: 12px !important;
}

/* 3. Multi-Field Wrappers & Input Groups Focus Highlights */
.input-wrap input:focus,
.input-wrap input:focus-visible,
.input-wrap textarea:focus,
.input-wrap textarea:focus-visible,
.input-wrap select:focus,
.input-wrap select:focus-visible,
.input-group input:focus,
.input-group input:focus-visible,
.input-group textarea:focus,
.input-group textarea:focus-visible,
.input-group select:focus,
.input-group select:focus-visible,
.date-input-container input:focus,
.date-input-container input:focus-visible,
.ai-composer-inner textarea:focus,
.ai-composer-inner textarea:focus-visible,
.ai-composer-inner textarea:active,
.ai-composer-input:focus,
.ai-composer-input:focus-visible,
.ai-composer-input:active,
#aiQuotationPrompt:focus,
#aiQuotationPrompt:focus-visible,
#aiQuotationPrompt:active {
  border: none !important;
  border-color: transparent !important;
  box-shadow: none !important;
  outline: none !important;
  background: transparent !important;
}

.input-wrap:focus-within,
.input-wrap:has(:focus),
.input-wrap:has(:focus-visible),
.input-group:focus-within,
.input-group:has(:focus),
.input-group:has(:focus-visible),
.date-input-container:focus-within,
.date-input-container:has(:focus),
.date-input-container:has(:focus-visible) {
  border-color: #2563eb !important;
  box-shadow: 0 0 0 3.5px rgba(37, 99, 235, 0.28) !important;
  outline: none !important;
  border-radius: 12px !important;
}

/* 4. Select2 Dropdowns System-Wide Focus Highlights */
.select2-container--focus .select2-selection--single,
.select2-container--focus .select2-selection--multiple,
.select2-container--default.select2-container--focus .select2-selection--single,
.select2-container--default.select2-container--focus .select2-selection--multiple,
.select2-container .select2-selection:focus,
.select2-container .select2-selection:focus-visible,
.select2-container--open .select2-selection--single,
.select2-container--open .select2-selection--multiple {
  border-color: #2563eb !important;
  box-shadow: 0 0 0 3.5px rgba(37, 99, 235, 0.28) !important;
  outline: none !important;
  border-radius: 12px !important;
}

.input-wrap .select2-selection--single,
.input-wrap .select2-selection--multiple {
  box-shadow: none !important;
  border-color: transparent !important;
}

.input-wrap:has(.select2-container--focus),
.input-wrap:has(.select2-container--open) {
  border-color: #2563eb !important;
  box-shadow: 0 0 0 3.5px rgba(37, 99, 235, 0.28) !important;
  border-radius: 12px !important;
}

/* 5. Select2 Search Field inside Open Dropdown & Inline Search Field */
.select2-dropdown .select2-search__field:focus,
.select2-dropdown .select2-search__field:focus-visible {
  border-color: #2563eb !important;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.25) !important;
  outline: none !important;
}

.select2-container .select2-search--inline .select2-search__field,
.select2-container .select2-search--inline .select2-search__field:focus,
.select2-container .select2-search--inline .select2-search__field:focus-visible,
.select2-container .select2-selection--multiple .select2-search__field,
.select2-container .select2-selection--multiple .select2-search__field:focus,
.select2-container .select2-selection--multiple .select2-search__field:focus-visible {
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
  background: transparent !important;
}

/* Multi-select chips (Tags/Interests, Category, etc.) - rounded pill tags
   in a wrapped grid, with the remove "x" trailing the label. */
.customselect2 .select2-container--default .select2-selection--multiple {
  background: #fff;
  padding: 6px 8px;
  min-height: 44px;
}

.customselect2 .select2-container--default .select2-selection--multiple .select2-selection__rendered {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 0;
  margin: 0;
}

.customselect2 .select2-container--default .select2-selection--multiple .select2-selection__choice {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  background: #eff6ff !important;
  border: 1px solid #bfdbfe !important;
  border-radius: 6px !important;
  color: #1e40af !important;
  font-size: 12.5px !important;
  font-weight: 500 !important;
  line-height: 1.3 !important;
  padding: 3px 6px 3px 9px !important;
}

.customselect2 .select2-container--default .select2-selection--multiple .select2-selection__choice__display {
  order: 1;
  padding: 0;
  line-height: 13px;
}

.customselect2 .select2-container--default .select2-selection--multiple .select2-selection__choice__remove {
  order: 2;
  position: static;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  margin: 0;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: transparent;
  color: #60a5fa !important;
  font-size: 15px;
  line-height: 1;
}

.customselect2 .select2-container--default .select2-selection--multiple .select2-selection__choice__remove:hover {
  background: rgba(239, 68, 68, 0.12);
  color: #ef4444;
}

.customselect2 .select2-container--default .select2-selection--multiple .select2-search--inline {
  margin: 0;
}

/* View mode tag styling */
.tags-view-wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  padding: 5px 8px;
  min-height: 44px;
  background: #f8fafc;
  border-radius: 12px;
  width: 100%;
  border: 1px solid #e2e8f0;
}

.tag-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  border-radius: 6px;
  color: #1e40af;
  font-size: 12.5px;
  font-weight: 500;
  line-height: 1.3;
  padding: 3px 9px;
}

/* 6. Phone Number & Country Code Dropdown Specific Focus Highlights */
.phone-input-wrap:focus-within,
.phone-input-wrap:has(:focus) {
  border-color: #2563eb !important;
  box-shadow: 0 0 0 3.5px rgba(37, 99, 235, 0.28) !important;
}

.phone-input-wrap .form-control,
.phone-input-wrap input,
.phone-input-wrap .select2-container,
.phone-input-wrap .select2-selection,
.phone-input-wrap .form-control:focus,
.phone-input-wrap input:focus,
.phone-input-wrap .select2-container:focus {
  z-index: 1 !important;
  margin: 0 !important;
}

.phone-code-select-container,
.phone-code-select-container *,
.phone-code-select-container .select2-selection,
.phone-code-select-container .select2-selection--single,
.phone-code-select-container .select2-selection:focus,
.phone-code-select-container .select2-selection:focus-visible,
.phone-code-select-container .select2-selection--single:focus,
.phone-code-select-container .select2-selection--single:focus-visible,
.phone-code-select-container.select2-container--focus,
.phone-code-select-container.select2-container--focus .select2-selection--single {
  outline: none !important;
  border-top: none !important;
  border-bottom: none !important;
  border-left: none !important;
  box-shadow: none !important;
}

.phone-code-select-container,
.select2-container.phone-code-select-container,
.input-group>.phone-code-select-container,
.input-group>.select2-container.phone-code-select-container {
  position: relative !important;
  width: 112px !important;
  min-width: 112px !important;
  max-width: 112px !important;
  flex: 0 0 112px !important;
  height: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  border: none !important;
  border-right: 1px solid rgba(200, 215, 235, 0.85) !important;
  background: transparent !important;
  box-shadow: none !important;
}

.phone-code-select-container .select2-selection__rendered {
  padding-left: 12px !important;
  padding-right: 20px !important;
  margin: 0 !important;
  border: none !important;
}

.phone-code-select-container.select2-container--focus,
.phone-code-select-container.select2-container--focus .select2-selection--single,
.phone-code-select-container.select2-container--open,
.phone-code-select-container .select2-selection--single:focus,
.phone-code-select-container .select2-selection--single:focus-visible {
  background: rgba(37, 99, 235, 0.08) !important;
  border-top-left-radius: 9px !important;
  border-bottom-left-radius: 9px !important;
  outline: none !important;
  box-shadow: none !important;
}

.phone-input-wrap input:focus,
.phone-input-wrap input:focus-visible,
.phone-code-select-container+input.form-control:focus,
.phone-code-select-container+input.form-control:focus-visible {
  background: rgba(37, 99, 235, 0.03) !important;
  border-top-right-radius: 9px !important;
  border-bottom-right-radius: 9px !important;
  outline: none !important;
  border: none !important;
  box-shadow: none !important;
}

/* Header Support Button */
.support-icon-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: transparent;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #5f6368;
  transition: background-color 0.2s ease, color 0.2s ease;
  position: relative;
  box-shadow: none;
  outline: none;
}

.support-icon-btn:hover,
.support-icon-btn[aria-expanded="true"] {
  background: rgba(44, 108, 240, 0.08);
  color: #2c6cf0 !important;
  border-color: transparent;
}

.support-icon-btn i {
  font-size: 15px;
  color: inherit;
}

.support-avatar-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: rgba(16, 185, 129, 0.12);
  color: #059669;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  flex-shrink: 0;
}

.support-contact-item {
  background: rgba(44, 108, 240, 0.05);
  transition: background 0.2s ease, transform 0.2s ease;
}

.support-contact-item:hover {
  background: rgba(44, 108, 240, 0.12);
  transform: translateY(-1px);
}

.support-item-icon {
  width: 30px;
  height: 30px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  flex-shrink: 0;
}

.support-item-icon.phone-icon {
  background: rgba(44, 108, 240, 0.12);
  color: #2c6cf0;
}

.support-item-icon.whatsapp-icon {
  background: rgba(37, 211, 102, 0.15);
  color: #25d366;
}

/* ==========================================================================
   Header Topbar Icon-Only Action Buttons (Gmail-style unbordered circular hover)
   ========================================================================== */
.topbar-icon-btn,
.topbar .icon-btn,
.topbar .support-icon-btn,
.topbar .reset-btn,
.topbar .toggle-btn {
  width: 35px !important;
  height: 35px !important;
  min-width: 35px !important;
  border-radius: 50% !important;
  background: transparent !important;
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #5f6368 !important;
  transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
  position: relative;
  padding: 0 !important;
  text-decoration: none !important;
  flex-shrink: 0;
}

.topbar-icon-btn:hover,
.topbar .icon-btn:hover,
.topbar .support-icon-btn:hover,
.topbar .reset-btn:hover,
.topbar .toggle-btn:hover,
.topbar .icon-btn[aria-expanded="true"],
.topbar .support-icon-btn[aria-expanded="true"] {
  background: rgba(44, 108, 240, 0.08) !important;
  color: #2c6cf0 !important;
  border: none !important;
  box-shadow: none !important;
  text-decoration: none !important;
}

.topbar-icon-btn:disabled,
.topbar-icon-btn[disabled],
.topbar-icon-btn.disabled {
  opacity: 0.4 !important;
  cursor: not-allowed !important;
  pointer-events: none !important;
  background: transparent !important;
  color: #9ca3af !important;
}

.topbar-icon-btn:active,
.topbar .icon-btn:active,
.topbar .support-icon-btn:active,
.topbar .reset-btn:active,
.topbar .toggle-btn:active {
  background: rgba(44, 108, 240, 0.16) !important;
  color: #2c6cf0 !important;
}

.topbar-icon-btn svg,
.topbar .icon-btn svg,
.topbar .support-icon-btn svg,
.topbar .reset-btn svg,
.topbar .toggle-btn svg {
  width: 17px;
  height: 17px;
  stroke: currentColor;
  color: inherit;
  display: block;
}

.topbar-icon-btn i,
.topbar .icon-btn i,
.topbar .support-icon-btn i,
.topbar .reset-btn i,
.topbar .toggle-btn i {
  font-size: 15px;
  color: inherit !important;
  display: inline-block;
  line-height: 1;
}

/* ==========================================================================
   AI Feature Quotation Button (Crisp Animated Icon - Zero Blur)
   ========================================================================== */
.topbar-ai-btn,
#aiPilotBtn {
  position: relative;
  background: transparent !important;
  color: #6366f1 !important;
  transition: color 0.2s ease !important;
  isolation: isolate;
}

.topbar-ai-btn::before,
#aiPilotBtn::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: #6366f1;
  z-index: -1;
  pointer-events: none;
  animation: bgCirclePulse 1.8s ease-in-out infinite;
}

.topbar-ai-btn:hover,
#aiPilotBtn:hover {
  color: #4f46e5 !important;
  box-shadow: none !important;
  transform: none !important;
}

.topbar-ai-btn:hover::before,
#aiPilotBtn:hover::before {
  opacity: 0.2;
}

.topbar-ai-btn:active::before,
#aiPilotBtn:active::before {
  opacity: 0.24;
}

.topbar-ai-btn i,
#aiPilotBtn i,
.topbar-ai-btn .fa-magic,
#aiPilotBtn .fa-magic,
.topbar-ai-btn .fa-wand-magic-sparkles,
#aiPilotBtn .fa-wand-magic-sparkles {
  position: relative;
  z-index: 1;
  font-size: 16px !important;
  color: #6366f1 !important;
  display: inline-block !important;
  transform-origin: center center;
  backface-visibility: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  will-change: transform;
  animation: aiWandWave 3.5s ease-in-out infinite;
}

/* Font Awesome 5 fallback for standard admin pages: wand with sparkles (\f0d0) */
#aiPilotBtn i::before,
#aiPilotBtn .fa-wand-magic-sparkles::before,
.topbar-ai-btn i::before,
.topbar-ai-btn .fa-wand-magic-sparkles::before,
.fa-wand-magic-sparkles::before {
  content: "\f0d0";
  font-family: "Font Awesome 5 Free", "FontAwesome";
  font-weight: 900;
}

@keyframes aiWandWave {

  0%,
  100% {
    transform: rotate(0deg);
  }

  6% {
    transform: rotate(-14deg);
  }

  12% {
    transform: rotate(12deg);
  }

  18% {
    transform: rotate(-8deg);
  }

  24% {
    transform: rotate(4deg);
  }

  30% {
    transform: rotate(0deg);
  }
}

.topbar-ai-btn:hover i,
#aiPilotBtn:hover i,
.topbar-ai-btn:hover .fa-magic,
#aiPilotBtn:hover .fa-magic,
.topbar-ai-btn:hover .fa-wand-magic-sparkles,
#aiPilotBtn:hover .fa-wand-magic-sparkles {
  animation: aiWandHover 0.6s ease-in-out infinite alternate;
}

@keyframes aiWandHover {
  0% {
    transform: rotate(-12deg);
  }

  100% {
    transform: rotate(12deg);
  }
}

.topbar-sync-ai-btn {
  position: relative;
  background: transparent !important;
  color: #6366f1 !important;
  transition: color 0.2s ease !important;
  isolation: isolate;
}

.topbar-sync-ai-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: #6366f1;
  z-index: -1;
  pointer-events: none;
  animation: bgCirclePulse 1.8s ease-in-out infinite;
}

.topbar-sync-ai-btn svg {
  position: relative;
  z-index: 1;
  /* animation: syncAiIconFloat 2.4s ease-in-out infinite; */
  transform-origin: center center;
}

.topbar-sync-ai-btn:hover {
  color: #4f46e5 !important;
  box-shadow: none !important;
}

.topbar-sync-ai-btn:hover::before {
  opacity: 0.2;
}

.topbar-sync-ai-btn:active::before {
  opacity: 0.24;
}

.topbar-sync-ai-btn:hover svg {
  animation: syncAiIconSpin 0.7s ease-in-out;
}

@keyframes syncAiIconFloat {

  0%,
  100% {
    transform: translateY(0) rotate(0deg);
  }

  50% {
    transform: translateY(-1.5px) rotate(-6deg);
  }
}

@keyframes syncAiIconSpin {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

@keyframes bgCirclePulse {

  0%,
  100% {
    transform: scale(0.85);
    opacity: 0.10;
  }

  50% {
    transform: scale(1.08);
    opacity: 0.22;
  }
}

.topbar-sync-companies-btn {
  position: relative;
  background: transparent !important;
  color: #16a34a !important;
  transition: color 0.2s ease !important;
  isolation: isolate;
}

.topbar-sync-companies-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: #16a34a;
  z-index: -1;
  pointer-events: none;
  animation: bgCirclePulse 1.8s ease-in-out infinite;
}

.topbar-sync-companies-btn i {
  position: relative;
  z-index: 1;
  display: inline-block;
}

.topbar-sync-companies-btn:hover {
  color: #0f7a37 !important;
  box-shadow: none !important;
}

.topbar-sync-companies-btn:hover::before {
  opacity: 0.2;
}

.topbar-sync-companies-btn:active::before {
  opacity: 0.24;
}

.topbar-sync-companies-btn:hover i {
  animation: syncCompaniesIconWave 0.6s ease-in-out infinite alternate;
}

@keyframes syncCompaniesIconWave {
  0% {
    transform: rotate(-12deg);
  }

  100% {
    transform: rotate(12deg);
  }
}

/* Animated gradient ring around the two header sync buttons.
   A conic gradient is masked down to a 2px ring and rotated. */
.topbar-sync-ai-btn::after,
.topbar-sync-companies-btn::after {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: 50%;
  padding: 2px;
  z-index: 2;
  pointer-events: none;
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#fff 0 0) content-box exclude, linear-gradient(#fff 0 0);
  animation: syncBorderSpin 2.4s linear infinite;
}

.topbar-sync-ai-btn::after {
  background: conic-gradient(#6366f1, #06b6d4, #ec4899, #f59e0b, #6366f1);
}

.topbar-sync-companies-btn::after {
  background: conic-gradient(#16a34a, #06b6d4, #84cc16, #facc15, #16a34a);
}

@keyframes syncBorderSpin {
  to {
    transform: rotate(360deg);
  }
}

.topbar .notif-dot {
  position: absolute;
  top: 5px;
  right: 5px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #ef4444;
  border: 1.5px solid #ffffff;
}

/* Modern sleek dark tooltip */
.tooltip {
  font-size: 12px !important;
  pointer-events: none;
  z-index: 1070;
}

.tooltip-inner {
  background-color: #202124 !important;
  color: #ffffff !important;
  padding: 5px 10px !important;
  border-radius: 6px !important;
  font-weight: 500 !important;
  font-family: inherit;
  letter-spacing: 0.2px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.22) !important;
}

.tooltip.bs-tooltip-bottom .tooltip-arrow::before {
  border-bottom-color: #202124 !important;
}

.tooltip.bs-tooltip-top .tooltip-arrow::before {
  border-top-color: #202124 !important;
}

/* Header Topbar Filter Inputs (Period Select & Date Range Button) */
.period-select {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.period-select select,
#periodSelect,
.period-select-input {
  -webkit-appearance: none !important;
  -moz-appearance: none !important;
  appearance: none !important;
  height: 36px !important;
  box-sizing: border-box !important;
  padding: 0 30px 0 13px !important;
  border: 1px solid var(--border-2, #e2e8f0) !important;
  border-radius: 10px !important;
  background-color: var(--surface, #ffffff) !important;
  background-image: none !important;
  font-family: inherit !important;
  font-size: 12.5px !important;
  font-weight: 600 !important;
  color: var(--text, #1e293b) !important;
  line-height: 34px !important;
  cursor: pointer !important;
  transition: all 0.2s ease !important;
  outline: none !important;
  box-shadow: none !important;
  display: inline-block !important;
  vertical-align: middle !important;
}

.period-select select:hover,
#periodSelect:hover,
.period-select-input:hover {
  border-color: var(--blue, #2c6cf0) !important;
}

.period-select select:focus,
#periodSelect:focus,
.period-select-input:focus,
.period-select select:active,
#periodSelect:active,
.period-select-input:active {
  border-color: var(--blue, #2c6cf0) !important;
  outline: none !important;
  box-shadow: 0 0 0 2px rgba(44, 108, 240, 0.15) !important;
}

.period-select::after {
  content: "\f078";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  font-size: 9px;
  color: var(--text-3, #94a3b8);
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  transition: color 0.15s ease;
}

.period-select:hover::after,
.period-select:focus-within::after {
  color: var(--blue, #2c6cf0);
}

/*  */
.daterange-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 36px;
  box-sizing: border-box;
  padding: 0 13px;
  border: 1px solid var(--border-2, #e2e8f0);
  border-radius: 10px;
  background: var(--surface, #ffffff);
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text, #1e293b);
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.daterange-btn:hover {
  border-color: var(--blue, #2c6cf0);
}

.daterange-btn:focus,
.daterange-btn:focus-visible,
.daterange-btn.active,
div:has(> .dr-pop.open)>.daterange-btn {
  border-color: var(--blue, #2c6cf0) !important;
  outline: none !important;
  box-shadow: 0 0 0 2px rgba(44, 108, 240, 0.15) !important;
}

/* Calendar icon: grey by default, blue when active, focused, or hovered */
.daterange-btn i.fa-calendar {
  color: #5f6368 !important;
  font-size: 13px;
  transition: color 0.15s ease;
}

.daterange-btn:hover i.fa-calendar,
.daterange-btn:focus i.fa-calendar,
.daterange-btn:focus-visible i.fa-calendar,
.daterange-btn:active i.fa-calendar,
.daterange-btn.active i.fa-calendar,
.daterange-btn.is-active i.fa-calendar,
div:has(> .dr-pop.open)>.daterange-btn i.fa-calendar {
  color: var(--blue, #2c6cf0) !important;
}

.daterange-btn i.fa-chevron-down {
  font-size: 9px;
  color: var(--text-3, #94a3b8);
  transition: color 0.15s ease;
}

.daterange-btn:hover i.fa-chevron-down,
.daterange-btn:focus i.fa-chevron-down,
.daterange-btn.active i.fa-chevron-down,
div:has(> .dr-pop.open)>.daterange-btn i.fa-chevron-down {
  color: var(--blue, #2c6cf0);
}

.tox.tox-tinymce {
  width: 100%;
  border-radius: 12px !important;
}

textarea.form-control.description,
.modal.new-ui-modal .input-wrap textarea.form-control.description {
  height: auto;
  min-height: auto;
  padding: 0 8px !important;
}

.tox-statusbar__branding {
  display: none;
}

.btn-sm-round {
  height: 32px;
  width: 32px;
  border-radius: 50%;
  padding: 5px;
}

/* ========================================================
   Custom Sidebar SVG Element Micro-Animations on Hover
   ======================================================== */

/* General SVG transition & prevent cropping */
.exp-sub svg,
.fly-sub svg,
.exp-item>svg:not(.exp-chev),
.icon-btn svg,
.side-bar svg {
  width: 16px;
  height: 16px;
  overflow: visible !important;
  transition: transform 0.22s cubic-bezier(0.34, 1.56, 0.64, 1), color 0.15s ease, opacity 0.15s ease;
  flex-shrink: 0;
}

.exp-sub:hover svg,
.fly-sub:hover svg,
.exp-item:hover>svg:not(.exp-chev),
.icon-btn:hover svg {
  opacity: 1;
  transform: scale(1.08);
  color: var(--blue);
}

.exp-sub.active svg,
.fly-sub.active svg,
.exp-item.active>svg:not(.exp-chev),
.icon-btn.active svg {
  opacity: 1;
  color: var(--blue);
}

/* --------------------------------------------------
   0. Dashboard 4 Grid Squares Sequence (Top-Left -> Bottom-Right)
   -------------------------------------------------- */
@keyframes sqAppear {
  0% {
    transform: scale(0.75);
    opacity: 0.4;
  }

  50% {
    transform: scale(1.1);
    opacity: 1;
  }

  100% {
    transform: scale(1);
    opacity: 1;
  }
}

.exp-item:hover .sq-1,
.icon-btn:hover .sq-1 {
  animation: sqAppear 0.28s ease-out 0s 1 forwards;
  transform-origin: 6.5px 6.5px;
}

.exp-item:hover .sq-2,
.icon-btn:hover .sq-2 {
  animation: sqAppear 0.28s ease-out 0.05s 1 forwards;
  transform-origin: 17.5px 6.5px;
}

.exp-item:hover .sq-3,
.icon-btn:hover .sq-3 {
  animation: sqAppear 0.28s ease-out 0.10s 1 forwards;
  transform-origin: 6.5px 17.5px;
}

.exp-item:hover .sq-4,
.icon-btn:hover .sq-4 {
  animation: sqAppear 0.28s ease-out 0.15s 1 forwards;
  transform-origin: 17.5px 17.5px;
}

/* --------------------------------------------------
   Companies Building Windows Light-up Animation
   -------------------------------------------------- */
@keyframes winLight {
  0% {
    opacity: 0.2;
  }

  50% {
    opacity: 1;
    stroke-width: 3;
  }

  100% {
    opacity: 1;
  }
}

.icon-btn:hover .win-1,
.exp-item:hover .win-1 {
  animation: winLight 0.35s ease 0s 1 forwards;
}

.icon-btn:hover .win-2,
.exp-item:hover .win-2 {
  animation: winLight 0.35s ease 0.08s 1 forwards;
}

.icon-btn:hover .win-3,
.exp-item:hover .win-3 {
  animation: winLight 0.35s ease 0.16s 1 forwards;
}

.icon-btn:hover .win-4,
.exp-item:hover .win-4 {
  animation: winLight 0.35s ease 0.24s 1 forwards;
}

/* --------------------------------------------------
   Finance Dollar Line Animation
   -------------------------------------------------- */
@keyframes dollarDraw {
  0% {
    stroke-dasharray: 22;
    stroke-dashoffset: 22;
  }

  100% {
    stroke-dasharray: 22;
    stroke-dashoffset: 0;
  }
}

.icon-btn:hover .dollar-line,
.exp-item:hover .dollar-line {
  animation: dollarDraw 0.4s ease 1 forwards;
}

/* --------------------------------------------------
   1. Quotation / Document Lines Animation (Writing Effect)
   -------------------------------------------------- */
@keyframes docLineWrite {
  0% {
    stroke-dasharray: 12;
    stroke-dashoffset: 12;
    opacity: 0.3;
  }

  60% {
    stroke-dasharray: 12;
    stroke-dashoffset: 0;
    opacity: 1;
  }

  100% {
    stroke-dasharray: 12;
    stroke-dashoffset: 0;
    opacity: 1;
  }
}

.exp-sub:hover .doc-line-1,
.fly-sub:hover .doc-line-1,
.exp-item:hover .doc-line-1,
.icon-btn:hover .doc-line-1 {
  animation: docLineWrite 0.45s ease 0.02s 1 forwards;
}

.exp-sub:hover .doc-line-2,
.fly-sub:hover .doc-line-2,
.exp-item:hover .doc-line-2,
.icon-btn:hover .doc-line-2 {
  animation: docLineWrite 0.45s ease 0.12s 1 forwards;
}

.exp-sub:hover .doc-line-3,
.fly-sub:hover .doc-line-3,
.exp-item:hover .doc-line-3,
.icon-btn:hover .doc-line-3 {
  animation: docLineWrite 0.45s ease 0.22s 1 forwards;
}

/* --------------------------------------------------
   2. Clock Pins Circular Rotation Animation (1 Full Turn)
   -------------------------------------------------- */
@keyframes clockPinRotate {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

.exp-sub:hover .clock-pin,
.fly-sub:hover .clock-pin,
.icon-btn:hover .clock-pin {
  animation: clockPinRotate 0.65s cubic-bezier(0.4, 0, 0.2, 1) 1 forwards;
  transform-origin: 12px 12px;
}

/* --------------------------------------------------
   3. Email Envelope Flap Open then Close Animation
   -------------------------------------------------- */
@keyframes envOpenClose {
  0% {
    transform: scaleY(1);
  }

  40% {
    transform: scaleY(-0.85) translateY(-3px);
    stroke: currentColor;
  }

  65% {
    transform: scaleY(-0.85) translateY(-3px);
  }

  100% {
    transform: scaleY(1);
  }
}

.exp-sub:hover .env-flap,
.fly-sub:hover .env-flap,
.icon-btn:hover .env-flap {
  animation: envOpenClose 0.6s cubic-bezier(0.34, 1.4, 0.64, 1) 1 forwards;
  transform-origin: 12px 6px;
}

/* --------------------------------------------------
   4. Plus Sign Rotation (Create Quotation)
   -------------------------------------------------- */
@keyframes plusRotate {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(180deg);
  }
}

.exp-sub:hover .plus-v,
.exp-sub:hover .plus-h,
.fly-sub:hover .plus-v,
.fly-sub:hover .plus-h {
  animation: plusRotate 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) 1 forwards;
  transform-origin: 12px 15px;
}

/* --------------------------------------------------
   5. Shopping Cart Roll & Wheel Rotation (Purchase Orders)
   -------------------------------------------------- */
@keyframes wheelSpin {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

@keyframes cartMove {
  0% {
    transform: translateX(0);
  }

  50% {
    transform: translateX(2.5px);
  }

  100% {
    transform: translateX(0);
  }
}

.exp-sub:hover .cart-body,
.fly-sub:hover .cart-body {
  animation: cartMove 0.5s ease 1 forwards;
}

.exp-sub:hover .cart-wheel-1,
.fly-sub:hover .cart-wheel-1 {
  animation: wheelSpin 0.5s ease 1 forwards;
  transform-origin: 9px 21px;
}

.exp-sub:hover .cart-wheel-2,
.fly-sub:hover .cart-wheel-2 {
  animation: wheelSpin 0.5s ease 1 forwards;
  transform-origin: 20px 21px;
}

/* --------------------------------------------------
   6. Service / Product Stack Layer Expansion (Minimal)
   -------------------------------------------------- */
@keyframes layerExpandTop {
  0% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-1.2px);
  }

  100% {
    transform: translateY(0);
  }
}

@keyframes layerExpandMid {
  0% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(0);
  }

  100% {
    transform: translateY(0);
  }
}

@keyframes layerExpandBot {
  0% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(1px);
  }

  100% {
    transform: translateY(0);
  }
}

.exp-sub:hover .layer-top,
.fly-sub:hover .layer-top,
.exp-item:hover .layer-top,
.icon-btn:hover .layer-top {
  animation: layerExpandTop 0.45s ease 1 forwards;
}

.exp-sub:hover .layer-mid,
.fly-sub:hover .layer-mid,
.exp-item:hover .layer-mid,
.icon-btn:hover .layer-mid {
  animation: layerExpandMid 0.45s ease 1 forwards;
}

.exp-sub:hover .layer-bot,
.fly-sub:hover .layer-bot,
.exp-item:hover .layer-bot,
.icon-btn:hover .layer-bot {
  animation: layerExpandBot 0.45s ease 1 forwards;
}

/* --------------------------------------------------
   7. User / Configuration Figure Separation & Re-align
   -------------------------------------------------- */
@keyframes userSepMain {
  0% {
    transform: translateX(0);
  }

  40% {
    transform: translateX(-2px);
  }

  100% {
    transform: translateX(0);
  }
}

@keyframes userSepSub {
  0% {
    transform: translateX(0);
  }

  40% {
    transform: translateX(2px);
  }

  100% {
    transform: translateX(0);
  }
}

.exp-item:hover .user-fig-main,
.icon-btn:hover .user-fig-main {
  animation: userSepMain 0.5s ease 1 forwards;
}

.exp-item:hover .user-fig-sub,
.icon-btn:hover .user-fig-sub {
  animation: userSepSub 0.5s ease 1 forwards;
}

.exp-sub:hover .user-head,
.fly-sub:hover .user-head,
.icon-btn:hover .user-head {
  animation: userSepMain 0.5s ease 1 forwards;
}

/* --------------------------------------------------
   8. All Master Outer Circular Ring Rotation
   -------------------------------------------------- */
@keyframes masterRingRotate {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

.exp-item:hover .master-ring,
.icon-btn:hover .master-ring {
  animation: masterRingRotate 0.7s cubic-bezier(0.4, 0, 0.2, 1) 1 forwards;
  transform-origin: 12px 12px;
}

@keyframes gearSpin {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(180deg);
  }
}

.exp-sub:hover .gear-ring,
.fly-sub:hover .gear-ring {
  animation: gearSpin 0.6s cubic-bezier(0.34, 1.4, 0.64, 1) 1 forwards;
  transform-origin: 12px 12px;
}

/* --------------------------------------------------
   9. Untapped Mail Paper Airplane Float
   -------------------------------------------------- */
@keyframes planeFly {
  0% {
    transform: translate(0, 0);
  }

  50% {
    transform: translate(3px, -3px);
  }

  100% {
    transform: translate(0, 0);
  }
}

.exp-sub:hover .fly-plane,
.fly-sub:hover .fly-plane {
  animation: planeFly 0.45s ease 1 forwards;
}

/* --------------------------------------------------
   10. Topbar Header Icon Hover Animations (Matching Sidebar)
   -------------------------------------------------- */
.topbar-icon-btn:hover .doc-line-1,
.topbar .icon-btn:hover .doc-line-1 {
  animation: docLineWrite 0.45s ease 0.02s 1 forwards;
}

.topbar-icon-btn:hover .doc-line-2,
.topbar .icon-btn:hover .doc-line-2 {
  animation: docLineWrite 0.45s ease 0.12s 1 forwards;
}

.topbar-icon-btn:hover .doc-line-3,
.topbar .icon-btn:hover .doc-line-3 {
  animation: docLineWrite 0.45s ease 0.22s 1 forwards;
}

.topbar-icon-btn:hover .win-1,
.topbar .icon-btn:hover .win-1 {
  animation: winLight 0.35s ease 0s 1 forwards;
}

.topbar-icon-btn:hover .win-2,
.topbar .icon-btn:hover .win-2 {
  animation: winLight 0.35s ease 0.08s 1 forwards;
}

.topbar-icon-btn:hover .win-3,
.topbar .icon-btn:hover .win-3 {
  animation: winLight 0.35s ease 0.16s 1 forwards;
}

.topbar-icon-btn:hover .win-4,
.topbar .icon-btn:hover .win-4 {
  animation: winLight 0.35s ease 0.24s 1 forwards;
}

.topbar-icon-btn:hover .plus-v,
.topbar-icon-btn:hover .plus-h,
.topbar .icon-btn:hover .plus-v,
.topbar .icon-btn:hover .plus-h {
  animation: plusRotate 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) 1 forwards;
  transform-box: fill-box;
  transform-origin: center;
}

@keyframes bellSwing {
  0% {
    transform: rotate(0deg);
  }

  25% {
    transform: rotate(15deg);
  }

  50% {
    transform: rotate(-15deg);
  }

  75% {
    transform: rotate(8deg);
  }

  100% {
    transform: rotate(0deg);
  }
}

.topbar-icon-btn:hover .bell-clapper,
.topbar .icon-btn:hover .bell-clapper {
  animation: bellSwing 0.5s ease 1 forwards;
  transform-origin: 12px 14px;
}

.topbar-icon-btn:hover .clock-pin,
.topbar .icon-btn:hover .clock-pin {
  animation: clockPinRotate 0.65s cubic-bezier(0.4, 0, 0.2, 1) 1 forwards;
  transform-origin: 12px 12px;
}

/* ========================================================
   Sidebar Main Icons & Text: Default Gray, Hover/Open/Active Respective Colors
   ======================================================== */

/* Default Idle State: Same crisp slate gray as flyout menu (var(--text2)) */
.icon-btn svg,
.exp-item>svg:not(.exp-chev) {
  color: var(--text2) !important;
  opacity: 0.85;
}

/* 1. Dashboard (Blue: #2f68fd) */
.icon-btn[data-fly="fly-dashboard"]:hover,
.icon-btn[data-fly="fly-dashboard"].active,
.icon-btn[data-fly="fly-dashboard"].hover,
.exp-item.nav-dashboard:hover,
.exp-item.nav-dashboard.open,
.exp-item.nav-dashboard.active {
  color: #2f68fd !important;
  background: rgba(47, 104, 253, 0.08) !important;
}

.icon-btn[data-fly="fly-dashboard"]:hover svg,
.icon-btn[data-fly="fly-dashboard"].active svg,
.icon-btn[data-fly="fly-dashboard"].hover svg,
.icon-btn[data-fly="fly-dashboard"]:hover svg *,
.icon-btn[data-fly="fly-dashboard"].active svg *,
.icon-btn[data-fly="fly-dashboard"].hover svg *,
.exp-item.nav-dashboard:hover>span,
.exp-item.nav-dashboard.open>span,
.exp-item.nav-dashboard.active>span,
.exp-item.nav-dashboard:hover svg,
.exp-item.nav-dashboard.open svg,
.exp-item.nav-dashboard.active svg,
.exp-item.nav-dashboard:hover svg *,
.exp-item.nav-dashboard.open svg *,
.exp-item.nav-dashboard.active svg *,
.exp-item.nav-dashboard:hover .exp-chev,
.exp-item.nav-dashboard.open .exp-chev,
.exp-item.nav-dashboard.active .exp-chev {
  color: #2f68fd !important;
  stroke: #2f68fd !important;
  opacity: 1 !important;
}

.icon-btn[data-fly="fly-dashboard"].active::before,
.exp-item.nav-dashboard.active::before {
  background: #2f68fd !important;
}

.exp-item.nav-dashboard+.exp-sub-wrap,
#fly-dashboard .fly-sub-wrap {
  background: rgba(47, 104, 253, 0.06);
}

.exp-item.nav-dashboard+.exp-sub-wrap .exp-sub:hover,
.exp-item.nav-dashboard+.exp-sub-wrap .exp-sub.active,
#fly-dashboard .fly-sub:hover,
#fly-dashboard .fly-sub.active,
#fly-dashboard .fly-single:hover,
#fly-dashboard .fly-single.active {
  color: #2f68fd !important;
  background: rgba(47, 104, 253, 0.12) !important;
}

.exp-item.nav-dashboard+.exp-sub-wrap .exp-sub:hover svg,
.exp-item.nav-dashboard+.exp-sub-wrap .exp-sub.active svg,
.exp-item.nav-dashboard+.exp-sub-wrap .exp-sub:hover svg *,
.exp-item.nav-dashboard+.exp-sub-wrap .exp-sub.active svg *,
#fly-dashboard .fly-sub:hover svg,
#fly-dashboard .fly-sub.active svg,
#fly-dashboard .fly-sub:hover svg *,
#fly-dashboard .fly-sub.active svg * {
  color: #2f68fd !important;
  stroke: #2f68fd !important;
  opacity: 1 !important;
}

/* 2. Quotations & PO (Green: #25b871) */
.icon-btn[data-fly="fly-quotation"]:hover,
.icon-btn[data-fly="fly-quotation"].active,
.icon-btn[data-fly="fly-quotation"].hover,
.exp-item.nav-quotation:hover,
.exp-item.nav-quotation.open,
.exp-item.nav-quotation.active {
  color: #25b871 !important;
  background: rgba(37, 184, 113, 0.08) !important;
}

.icon-btn[data-fly="fly-quotation"]:hover svg,
.icon-btn[data-fly="fly-quotation"].active svg,
.icon-btn[data-fly="fly-quotation"].hover svg,
.icon-btn[data-fly="fly-quotation"]:hover svg *,
.icon-btn[data-fly="fly-quotation"].active svg *,
.icon-btn[data-fly="fly-quotation"].hover svg *,
.exp-item.nav-quotation:hover>span,
.exp-item.nav-quotation.open>span,
.exp-item.nav-quotation.active>span,
.exp-item.nav-quotation:hover svg,
.exp-item.nav-quotation.open svg,
.exp-item.nav-quotation.active svg,
.exp-item.nav-quotation:hover svg *,
.exp-item.nav-quotation.open svg *,
.exp-item.nav-quotation.active svg *,
.exp-item.nav-quotation:hover .exp-chev,
.exp-item.nav-quotation.open .exp-chev,
.exp-item.nav-quotation.active .exp-chev {
  color: #25b871 !important;
  stroke: #25b871 !important;
  opacity: 1 !important;
}

.icon-btn[data-fly="fly-quotation"].active::before,
.exp-item.nav-quotation.active::before {
  background: #25b871 !important;
}

.exp-item.nav-quotation+.exp-sub-wrap,
#fly-quotation .fly-sub-wrap {
  background: rgba(37, 184, 113, 0.06);
}

.exp-item.nav-quotation+.exp-sub-wrap .exp-sub:hover,
.exp-item.nav-quotation+.exp-sub-wrap .exp-sub.active,
#fly-quotation .fly-sub:hover,
#fly-quotation .fly-sub.active {
  color: #25b871 !important;
  background: rgba(37, 184, 113, 0.12) !important;
}

.exp-item.nav-quotation+.exp-sub-wrap .exp-sub:hover svg,
.exp-item.nav-quotation+.exp-sub-wrap .exp-sub.active svg,
.exp-item.nav-quotation+.exp-sub-wrap .exp-sub:hover svg *,
.exp-item.nav-quotation+.exp-sub-wrap .exp-sub.active svg *,
#fly-quotation .fly-sub:hover svg,
#fly-quotation .fly-sub.active svg,
#fly-quotation .fly-sub:hover svg *,
#fly-quotation .fly-sub.active svg * {
  color: #25b871 !important;
  stroke: #25b871 !important;
  opacity: 1 !important;
}

/* 3. Products & Services (Blue: #2f68fd) */
.icon-btn[data-fly="fly-service"]:hover,
.icon-btn[data-fly="fly-service"].active,
.icon-btn[data-fly="fly-service"].hover,
.exp-item.nav-service:hover,
.exp-item.nav-service.open,
.exp-item.nav-service.active {
  color: #2f68fd !important;
  background: rgba(47, 104, 253, 0.08) !important;
}

.icon-btn[data-fly="fly-service"]:hover svg,
.icon-btn[data-fly="fly-service"].active svg,
.icon-btn[data-fly="fly-service"].hover svg,
.icon-btn[data-fly="fly-service"]:hover svg *,
.icon-btn[data-fly="fly-service"].active svg *,
.icon-btn[data-fly="fly-service"].hover svg *,
.exp-item.nav-service:hover>span,
.exp-item.nav-service.open>span,
.exp-item.nav-service.active>span,
.exp-item.nav-service:hover svg,
.exp-item.nav-service.open svg,
.exp-item.nav-service.active svg,
.exp-item.nav-service:hover svg *,
.exp-item.nav-service.open svg *,
.exp-item.nav-service.active svg *,
.exp-item.nav-service:hover .exp-chev,
.exp-item.nav-service.open .exp-chev,
.exp-item.nav-service.active .exp-chev {
  color: #2f68fd !important;
  stroke: #2f68fd !important;
  opacity: 1 !important;
}

.icon-btn[data-fly="fly-service"].active::before,
.exp-item.nav-service.active::before {
  background: #2f68fd !important;
}

.exp-item.nav-service+.exp-sub-wrap,
#fly-service .fly-sub-wrap {
  background: rgba(47, 104, 253, 0.06);
}

.exp-item.nav-service+.exp-sub-wrap .exp-sub:hover,
.exp-item.nav-service+.exp-sub-wrap .exp-sub.active,
#fly-service .fly-sub:hover,
#fly-service .fly-sub.active {
  color: #2f68fd !important;
  background: rgba(47, 104, 253, 0.12) !important;
}

.exp-item.nav-service+.exp-sub-wrap .exp-sub:hover svg,
.exp-item.nav-service+.exp-sub-wrap .exp-sub.active svg,
.exp-item.nav-service+.exp-sub-wrap .exp-sub:hover svg *,
.exp-item.nav-service+.exp-sub-wrap .exp-sub.active svg *,
#fly-service .fly-sub:hover svg,
#fly-service .fly-sub.active svg,
#fly-service .fly-sub:hover svg *,
#fly-service .fly-sub.active svg * {
  color: #2f68fd !important;
  stroke: #2f68fd !important;
  opacity: 1 !important;
}

/* 4. Companies (Purple: #7c5cfc) */
.icon-btn[data-fly="fly-companies"]:hover,
.icon-btn[data-fly="fly-companies"].active,
.icon-btn[data-fly="fly-companies"].hover,
.exp-item.nav-companies:hover,
.exp-item.nav-companies.open,
.exp-item.nav-companies.active {
  color: #7c5cfc !important;
  background: rgba(124, 92, 252, 0.08) !important;
}

.icon-btn[data-fly="fly-companies"]:hover svg,
.icon-btn[data-fly="fly-companies"].active svg,
.icon-btn[data-fly="fly-companies"].hover svg,
.icon-btn[data-fly="fly-companies"]:hover svg *,
.icon-btn[data-fly="fly-companies"].active svg *,
.icon-btn[data-fly="fly-companies"].hover svg *,
.exp-item.nav-companies:hover>span,
.exp-item.nav-companies.open>span,
.exp-item.nav-companies.active>span,
.exp-item.nav-companies:hover svg,
.exp-item.nav-companies.open svg,
.exp-item.nav-companies.active svg,
.exp-item.nav-companies:hover svg *,
.exp-item.nav-companies.open svg *,
.exp-item.nav-companies.active svg *,
.exp-item.nav-companies:hover .exp-chev,
.exp-item.nav-companies.open .exp-chev,
.exp-item.nav-companies.active .exp-chev {
  color: #7c5cfc !important;
  stroke: #7c5cfc !important;
  opacity: 1 !important;
}

.icon-btn[data-fly="fly-companies"].active::before,
.exp-item.nav-companies.active::before {
  background: #7c5cfc !important;
}

.exp-item.nav-companies+.exp-sub-wrap,
#fly-companies .fly-sub-wrap {
  background: rgba(124, 92, 252, 0.06);
}

.exp-item.nav-companies+.exp-sub-wrap .exp-sub:hover,
.exp-item.nav-companies+.exp-sub-wrap .exp-sub.active,
#fly-companies .fly-sub:hover,
#fly-companies .fly-sub.active {
  color: #7c5cfc !important;
  background: rgba(124, 92, 252, 0.12) !important;
}

.exp-item.nav-companies+.exp-sub-wrap .exp-sub:hover svg,
.exp-item.nav-companies+.exp-sub-wrap .exp-sub.active svg,
.exp-item.nav-companies+.exp-sub-wrap .exp-sub:hover svg *,
.exp-item.nav-companies+.exp-sub-wrap .exp-sub.active svg *,
#fly-companies .fly-sub:hover svg,
#fly-companies .fly-sub.active svg,
#fly-companies .fly-sub:hover svg *,
#fly-companies .fly-sub.active svg * {
  color: #7c5cfc !important;
  stroke: #7c5cfc !important;
  opacity: 1 !important;
}

/* 5. Proforma & Accounting / Finance (Teal: #00a8a8) */
.icon-btn[data-fly="fly-proforma"]:hover,
.icon-btn[data-fly="fly-proforma"].active,
.icon-btn[data-fly="fly-proforma"].hover,
.exp-item.nav-proforma:hover,
.exp-item.nav-proforma.open,
.exp-item.nav-proforma.active {
  color: #00a8a8 !important;
  background: rgba(0, 168, 168, 0.08) !important;
}

.icon-btn[data-fly="fly-proforma"]:hover svg,
.icon-btn[data-fly="fly-proforma"].active svg,
.icon-btn[data-fly="fly-proforma"].hover svg,
.icon-btn[data-fly="fly-proforma"]:hover svg *,
.icon-btn[data-fly="fly-proforma"].active svg *,
.icon-btn[data-fly="fly-proforma"].hover svg *,
.exp-item.nav-proforma:hover>span,
.exp-item.nav-proforma.open>span,
.exp-item.nav-proforma.active>span,
.exp-item.nav-proforma:hover svg,
.exp-item.nav-proforma.open svg,
.exp-item.nav-proforma.active svg,
.exp-item.nav-proforma:hover svg *,
.exp-item.nav-proforma.open svg *,
.exp-item.nav-proforma.active svg *,
.exp-item.nav-proforma:hover .exp-chev,
.exp-item.nav-proforma.open .exp-chev,
.exp-item.nav-proforma.active .exp-chev {
  color: #00a8a8 !important;
  stroke: #00a8a8 !important;
  opacity: 1 !important;
}

.icon-btn[data-fly="fly-proforma"].active::before,
.exp-item.nav-proforma.active::before {
  background: #00a8a8 !important;
}

.exp-item.nav-proforma+.exp-sub-wrap,
#fly-proforma .fly-sub-wrap {
  background: rgba(0, 168, 168, 0.06);
}

.exp-item.nav-proforma+.exp-sub-wrap .exp-sub:hover,
.exp-item.nav-proforma+.exp-sub-wrap .exp-sub.active,
#fly-proforma .fly-sub:hover,
#fly-proforma .fly-sub.active {
  color: #00a8a8 !important;
  background: rgba(0, 168, 168, 0.12) !important;
}

.exp-item.nav-proforma+.exp-sub-wrap .exp-sub:hover svg,
.exp-item.nav-proforma+.exp-sub-wrap .exp-sub.active svg,
.exp-item.nav-proforma+.exp-sub-wrap .exp-sub:hover svg *,
.exp-item.nav-proforma+.exp-sub-wrap .exp-sub.active svg *,
#fly-proforma .fly-sub:hover svg,
#fly-proforma .fly-sub.active svg,
#fly-proforma .fly-sub:hover svg *,
#fly-proforma .fly-sub.active svg * {
  color: #00a8a8 !important;
  stroke: #00a8a8 !important;
  opacity: 1 !important;
}

/* 6. User / Configuration (Orange: #ff8c38) */
.icon-btn[data-fly="fly-userconfig"]:hover,
.icon-btn[data-fly="fly-userconfig"].active,
.icon-btn[data-fly="fly-userconfig"].hover,
.exp-item.nav-userconfig:hover,
.exp-item.nav-userconfig.open,
.exp-item.nav-userconfig.active {
  color: #ff8c38 !important;
  background: rgba(255, 140, 56, 0.08) !important;
}

.icon-btn[data-fly="fly-userconfig"]:hover svg,
.icon-btn[data-fly="fly-userconfig"].active svg,
.icon-btn[data-fly="fly-userconfig"].hover svg,
.icon-btn[data-fly="fly-userconfig"]:hover svg *,
.icon-btn[data-fly="fly-userconfig"].active svg *,
.icon-btn[data-fly="fly-userconfig"].hover svg *,
.exp-item.nav-userconfig:hover>span,
.exp-item.nav-userconfig.open>span,
.exp-item.nav-userconfig.active>span,
.exp-item.nav-userconfig:hover svg,
.exp-item.nav-userconfig.open svg,
.exp-item.nav-userconfig.active svg,
.exp-item.nav-userconfig:hover svg *,
.exp-item.nav-userconfig.open svg *,
.exp-item.nav-userconfig.active svg *,
.exp-item.nav-userconfig:hover .exp-chev,
.exp-item.nav-userconfig.open .exp-chev,
.exp-item.nav-userconfig.active .exp-chev {
  color: #ff8c38 !important;
  stroke: #ff8c38 !important;
  opacity: 1 !important;
}

.icon-btn[data-fly="fly-userconfig"].active::before,
.exp-item.nav-userconfig.active::before {
  background: #ff8c38 !important;
}

.exp-item.nav-userconfig+.exp-sub-wrap,
#fly-userconfig .fly-sub-wrap {
  background: rgba(255, 140, 56, 0.06);
}

.exp-item.nav-userconfig+.exp-sub-wrap .exp-sub:hover,
.exp-item.nav-userconfig+.exp-sub-wrap .exp-sub.active,
#fly-userconfig .fly-sub:hover,
#fly-userconfig .fly-sub.active {
  color: #ff8c38 !important;
  background: rgba(255, 140, 56, 0.12) !important;
}

.exp-item.nav-userconfig+.exp-sub-wrap .exp-sub:hover svg,
.exp-item.nav-userconfig+.exp-sub-wrap .exp-sub.active svg,
.exp-item.nav-userconfig+.exp-sub-wrap .exp-sub:hover svg *,
.exp-item.nav-userconfig+.exp-sub-wrap .exp-sub.active svg *,
#fly-userconfig .fly-sub:hover svg,
#fly-userconfig .fly-sub.active svg,
#fly-userconfig .fly-sub:hover svg *,
#fly-userconfig .fly-sub.active svg * {
  color: #ff8c38 !important;
  stroke: #ff8c38 !important;
  opacity: 1 !important;
}

/* 7. All Master (Pink: #f36499) */
.icon-btn[data-fly="fly-allmaster"]:hover,
.icon-btn[data-fly="fly-allmaster"].active,
.icon-btn[data-fly="fly-allmaster"].hover,
.exp-item.nav-allmaster:hover,
.exp-item.nav-allmaster.open,
.exp-item.nav-allmaster.active {
  color: #f36499 !important;
  background: rgba(243, 100, 153, 0.08) !important;
}

.icon-btn[data-fly="fly-allmaster"]:hover svg,
.icon-btn[data-fly="fly-allmaster"].active svg,
.icon-btn[data-fly="fly-allmaster"].hover svg,
.icon-btn[data-fly="fly-allmaster"]:hover svg *,
.icon-btn[data-fly="fly-allmaster"].active svg *,
.icon-btn[data-fly="fly-allmaster"].hover svg *,
.exp-item.nav-allmaster:hover>span,
.exp-item.nav-allmaster.open>span,
.exp-item.nav-allmaster.active>span,
.exp-item.nav-allmaster:hover svg,
.exp-item.nav-allmaster.open svg,
.exp-item.nav-allmaster.active svg,
.exp-item.nav-allmaster:hover svg *,
.exp-item.nav-allmaster.open svg *,
.exp-item.nav-allmaster.active svg *,
.exp-item.nav-allmaster:hover .exp-chev,
.exp-item.nav-allmaster.open .exp-chev,
.exp-item.nav-allmaster.active .exp-chev {
  color: #f36499 !important;
  stroke: #f36499 !important;
  opacity: 1 !important;
}

.icon-btn[data-fly="fly-allmaster"].active::before,
.exp-item.nav-allmaster.active::before {
  background: #f36499 !important;
}

.exp-item.nav-allmaster+.exp-sub-wrap,
#fly-allmaster .fly-sub-wrap {
  background: rgba(243, 100, 153, 0.06);
}

.exp-item.nav-allmaster+.exp-sub-wrap .exp-sub:hover,
.exp-item.nav-allmaster+.exp-sub-wrap .exp-sub.active,
#fly-allmaster .fly-sub:hover,
#fly-allmaster .fly-sub.active {
  color: #f36499 !important;
  background: rgba(243, 100, 153, 0.12) !important;
}

.exp-item.nav-allmaster+.exp-sub-wrap .exp-sub:hover svg,
.exp-item.nav-allmaster+.exp-sub-wrap .exp-sub.active svg,
.exp-item.nav-allmaster+.exp-sub-wrap .exp-sub:hover svg *,
.exp-item.nav-allmaster+.exp-sub-wrap .exp-sub.active svg *,
#fly-allmaster .fly-sub:hover svg,
#fly-allmaster .fly-sub.active svg,
#fly-allmaster .fly-sub:hover svg *,
#fly-allmaster .fly-sub.active svg * {
  color: #f36499 !important;
  stroke: #f36499 !important;
  opacity: 1 !important;
}

/* 8. Integrations (Indigo: #6366f1) */
.icon-btn[data-fly="fly-integrations"]:hover,
.icon-btn[data-fly="fly-integrations"].active,
.icon-btn[data-fly="fly-integrations"].hover,
.exp-item.nav-integrations:hover,
.exp-item.nav-integrations.open,
.exp-item.nav-integrations.active {
  color: #6366f1 !important;
  background: rgba(99, 102, 241, 0.08) !important;
}

.icon-btn[data-fly="fly-integrations"]:hover svg,
.icon-btn[data-fly="fly-integrations"].active svg,
.icon-btn[data-fly="fly-integrations"].hover svg,
.icon-btn[data-fly="fly-integrations"]:hover svg *,
.icon-btn[data-fly="fly-integrations"].active svg *,
.icon-btn[data-fly="fly-integrations"].hover svg *,
.exp-item.nav-integrations:hover>span,
.exp-item.nav-integrations.open>span,
.exp-item.nav-integrations.active>span,
.exp-item.nav-integrations:hover svg,
.exp-item.nav-integrations.open svg,
.exp-item.nav-integrations.active svg,
.exp-item.nav-integrations:hover svg *,
.exp-item.nav-integrations.open svg *,
.exp-item.nav-integrations.active svg *,
.exp-item.nav-integrations:hover .exp-chev,
.exp-item.nav-integrations.open .exp-chev,
.exp-item.nav-integrations.active .exp-chev {
  color: #6366f1 !important;
  stroke: #6366f1 !important;
  opacity: 1 !important;
}

.icon-btn[data-fly="fly-integrations"].active::before,
.exp-item.nav-integrations.active::before {
  background: #6366f1 !important;
}

.exp-item.nav-integrations+.exp-sub-wrap,
#fly-integrations .fly-sub-wrap {
  background: rgba(99, 102, 241, 0.06);
}

.exp-item.nav-integrations+.exp-sub-wrap .exp-sub:hover,
.exp-item.nav-integrations+.exp-sub-wrap .exp-sub.active,
#fly-integrations .fly-sub:hover,
#fly-integrations .fly-sub.active {
  color: #6366f1 !important;
  background: rgba(99, 102, 241, 0.12) !important;
}

.exp-item.nav-integrations+.exp-sub-wrap .exp-sub:hover svg,
.exp-item.nav-integrations+.exp-sub-wrap .exp-sub.active svg,
.exp-item.nav-integrations+.exp-sub-wrap .exp-sub:hover svg *,
.exp-item.nav-integrations+.exp-sub-wrap .exp-sub.active svg *,
#fly-integrations .fly-sub:hover svg,
#fly-integrations .fly-sub.active svg,
#fly-integrations .fly-sub:hover svg *,
#fly-integrations .fly-sub.active svg * {
  color: #6366f1 !important;
  stroke: #6366f1 !important;
  opacity: 1 !important;
}
/* Multi-select chips: keep the inline search box and placeholder aligned with the chips. */
.customselect2 .select2-container {
  width: 100% !important;
}

.customselect2 .select2-container--default .select2-selection--multiple .select2-search--inline {
  display: flex;
  align-items: center;
  flex: 1 1 90px;
  width: auto !important;
  margin: 0;
  float: none;
}

.customselect2 .select2-container--default .select2-selection--multiple .select2-search--inline .select2-search__field {
  margin: 0 !important;
  flex: 1 1 90px;
  width: auto !important;
  max-width: 100%;
  height: 26px;
  min-width: 60px;
  padding: 0 4px !important;
  border-radius: 0 !important;
  font-size: 12.5px;
  line-height: 26px;
}

.customselect2 .select2-container--default .select2-selection--multiple .select2-selection__placeholder {
  margin: 0;
  color: #94a3b8;
  font-size: 12.5px;
  line-height: 26px;
}

/* select2 4.1 renders <ul.__rendered> (the tags) and <span.select2-search--inline> (the typing box)
   as siblings inside .select2-selection--multiple — make that container the wrapping row so the
   cursor stays right after the last tag instead of dropping to its own line. */
.customselect2 .select2-container--default .select2-selection--multiple {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.customselect2 .select2-container--default .select2-selection--multiple .select2-selection__rendered {
  display: contents;
}

/* Quick company popup: a single select with no matching/empty value must keep its full box height. */
#qc_company_section .select2-container--default .select2-selection--single {
  min-height: 42px;
}
