/* ==========================================================================
   Import Google Fonts
   ========================================================================== */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&family=Outfit:wght@400;600;800&family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&display=swap');


@import url('https://fonts.googleapis.com/css2?family=Geist+Mono:ital,wght@0,100..900;1,100..900&display=swap');

/* ==========================================================================
   Core Variable Definitions
   ========================================================================== */
:root {
  /* Dashboard Global Styles */
  --bg-color: #F5F6FA;
  --sidebar-bg: #FFFFFF;
  --border-color: #E8E9EF;
  --text-primary: #1C1D21;
  --text-secondary: #9097A6;
  --sidebar-width: 280px;
  --Customer-Portal-600: #9C27B0;
  /* Login Page Global Styles */
  --login-primary-orange: #f2851c;
  --login-primary-orange-hover: #d9710f;
  --bg-cream: #fffaf4;
  --bg-light-grey: #f8fafc;
  --text-dark: #1e293b;
  --text-muted: #64748b;
  --login-border-color: #e2e8f0;
  --input-radius: 12px;
  --Divider-Dark: linear-gradient(0deg, rgba(0, 0, 0, 0.18) 0%, rgba(0, 0, 0, 0.18) 100%),
    #FFF;
  /* Portal Dashboard Colors */
  --portal-primary-orange: #FF7B42;
  --orange-100: #FDE7D1;
}

/* ==========================================================================
   CSS Global Resets
   ========================================================================== */
*,
*::before,
*::after {
  box-sizing: border-box;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 600;
  color: var(--text-primary);
  margin: 0;
}

p {
  margin: 0;
}

/* ==========================================================================
   Body Styles (Scoped for Portal and Login)
   ========================================================================== */
body {
  font-family: 'Poppins', sans-serif;
  background-color: #fff;
  color: var(--text-primary);
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

/* Scoped Body Style for Login Screen */
body.login-page {
  font-family: 'Plus Jakarta Sans', 'Outfit', 'Inter', sans-serif;
  background-color: #f1f3f5;
  color: var(--text-dark);
  min-height: 100vh;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ==========================================================================
   Dashboard Sidebar Styling
   ========================================================================== */
.sidebar {
  width: var(--sidebar-width);
  height: 100vh;
  background-color: #EBD4EF;
  border-right: 1px solid var(--border-color);
  position: fixed;
  top: 0;
  left: 0;
  display: flex;
  flex-direction: column;
  z-index: 1000;
  transition: width 0.3s ease;
}

.sidebar-header {
  padding: 20px 20px 23px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
  border-bottom: 1px solid var(--border-color);
}

.welcome-text {
  color: #212121;
  font-size: 12px;
  font-family: Poppins;
  font-weight: 500;
  line-height: 20px;
  word-wrap: break-word;
}

.hamburger-btn {
  background: none;
  border: none;
  color: var(--text-secondary);
  font-size: 1.25rem;
  cursor: pointer;
  padding: 2px 4px;
  line-height: 1;
  display: flex;
  align-items: center;
}

.hamburger-btn:hover {
  color: var(--text-primary);
}

.sidebar-menu {
  /* padding-top: 20px; */
  margin-top: 2rem;
  padding: 0 15px;
  flex-grow: 1;
  overflow-y: auto;
}

.menu-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 20px;
  color: #212121;
  text-decoration: none;
  border-radius: 10px;
  margin-bottom: 8px;
  font-size: 0.95rem;
  font-weight: 500;
  transition: background 0.18s, color 0.18s;
}

.menu-item:hover {
  background-color: #fff;
  color: var(--Customer-Portal-600, #9C27B0)
}

.menu-item.active {
  background: var(--Light-Primary, #FFF);
  color: var(--Customer-Portal-600, #9C27B0)
}

.menu-item svg {
  flex-shrink: 0;
}

.menu-item svg * {
  transition: stroke 0.18s ease, fill 0.18s ease;
}

.menu-item:hover svg [stroke],
.menu-item.active svg [stroke],
.menu-item-dropdown:hover>.menu-item svg [stroke],
.menu-item-dropdown.open>.menu-item svg [stroke] {
  stroke: currentColor;
}

.menu-divider {
  height: 1px;
  background: var(--border-color);
  margin: 10px 4px;
}

/* ============================================================
   Sidebar Dropdown & Submenu Styling
   ============================================================ */
.chevron-icon {
  margin-left: auto;
  transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  flex-shrink: 0;
}

.menu-item-dropdown.open .chevron-icon {
  transform: rotate(180deg);
}

.submenu {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height 0.3s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.25s ease, margin 0.3s ease;
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin: 0;
  padding: 0;
}

.menu-item-dropdown.open .submenu {
  max-height: 500px;
  opacity: 1;
  margin-bottom: 8px;
  margin-top: -2px;
}

.submenu-item {
  display: block;
  padding: 10px 20px 10px 56px;
  /* Indent to align text with parent item text */
  color: #212121;
  text-decoration: none;
  font-family: Poppins;
  font-size: 14px;
  font-style: normal;
  font-weight: 500;
  border-radius: 10px;
  transition: background-color 0.18s, color 0.18s;
  margin-bottom: 2px;
}

.submenu-item:hover {
  background-color: #fff;
  color: var(--Customer-Portal-600, #9C27B0);
}

.submenu-item.active {
  border-radius: 10px;
  background: var(--Light-Primary, #FFF);
  color: var(--Customer-Portal-600, #9C27B0);
}

.menu-item-dropdown.open>.menu-item {
  color: var(--Customer-Portal-600, #9C27B0);
}

/* Collapsed Sidebar Hover Popover styling (Desktop Only) */
@media (min-width: 992px) {
  body.sidebar-collapsed .menu-item-dropdown {
    position: relative;
  }

  body.sidebar-collapsed .menu-item-dropdown .chevron-icon {
    display: none !important;
  }

  body.sidebar-collapsed .menu-item-dropdown .submenu {
    position: absolute;
    top: 0;
    left: 100%;
    margin-left: 12px;
    width: 200px;
    background-color: #FFFFFF;
    border: 1px solid var(--border-color);
    box-shadow: 0 10px 30px rgba(156, 39, 176, 0.08), 0 4px 12px rgba(0, 0, 0, 0.04);
    border-radius: 12px;
    padding: 8px;
    opacity: 0;
    pointer-events: none;
    transform: translateX(-10px);
    transition: opacity 0.2s cubic-bezier(0.4, 0, 0.2, 1), transform 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1050;
    display: flex;
    flex-direction: column;
    gap: 4px;
  }

  body.sidebar-collapsed .menu-item-dropdown:hover .submenu {
    opacity: 1;
    pointer-events: auto;
    transform: translateX(0);
  }

  body.sidebar-collapsed .submenu-item {
    padding: 10px 16px;
    font-size: 0.88rem;
    border-radius: 8px;
    color: var(--text-primary);
    background-color: transparent;
  }

  body.sidebar-collapsed .submenu-item:hover {
    background-color: var(--bg-color);
    color: var(--Customer-Portal-600, #9C27B0);
  }

  body.sidebar-collapsed .submenu-item.active {
    background-color: var(--bg-color);
    color: var(--Customer-Portal-600, #9C27B0);
    font-weight: 600;
  }

  body.sidebar-collapsed .menu-item-dropdown:hover>.menu-item {
    background-color: #fff;
    color: var(--Customer-Portal-600, #9C27B0);
  }
}

.sidebar-footer {
  padding: 14px 16px;
  border-top: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
}

.user-profile {
  display: flex;
  align-items: center;
  gap: 10px;
}

.avatar {
  width: 36px;
  height: 36px;
  background-color: var(--portal-primary-orange);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.75rem;
  flex-shrink: 0;
}

.user-info .name {
  color: var(--text-primary);
  font-family: Poppins;
  font-size: 14px;
  font-weight: 400;
  line-height: 20px;
  letter-spacing: 0.035px;
  line-height: 1.3;
}

.user-info .role {
  font-size: 0.7rem;
  color: var(--text-secondary);
  line-height: 1.3;
}

.logout-btn {
  color: var(--text-secondary);
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  transition: color 0.18s;
}

.logout-btn:hover {
  color: var(--text-primary);
}

/* ============================================================
   Main Layout Content Wrapper
   ============================================================ */
.main-content {
  margin-left: var(--sidebar-width);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  transition: margin-left 0.3s ease;
}

.top-header {
  height: 64px;
  padding: 0 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: var(--sidebar-bg);
  border-bottom: 1px solid var(--border-color);
  flex-shrink: 0;
  position: sticky;
  top: 0;
  z-index: 900;
}

.header-logo {
  display: flex;
  align-items: center;
  gap: 8px;
}

.company-logo {
  max-height: 50px;
  object-fit: contain;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.header-avtar {
  /* border-radius: 50%; */
  width: 50px !important;
  height: 50px !important;
  border-radius: 100px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  background: var(--Customer-Portal-600, #9C27B0);
  color: #fff;
  font-size: 20px;
  font-weight: 500;
}

.dashboard-content {
  padding: 24px 28px 80px;
  flex: 1;
}

/* ============================================================
   Sidebar Collapse States & Hover-to-Expand (Desktop Only)
   ============================================================ */
@media (min-width: 992px) {
  body.sidebar-collapsed {
    --sidebar-width: 90px;
  }

  body.sidebar-collapsed .welcome-text,
  body.sidebar-collapsed .menu-item span,
  body.sidebar-collapsed .user-info {
    display: none;
  }

  body.sidebar-collapsed .sidebar-header {
    justify-content: center;
    padding: 20px 0;
  }

  body.sidebar-collapsed #sidebarToggle img {
    transform: rotate(180deg);
  }

  body.sidebar-collapsed .sidebar-menu {
    padding: 20px 14px;
  }

  body.sidebar-collapsed .menu-item {
    justify-content: center;
    padding: 14px 0;
  }

  body.sidebar-collapsed .menu-item i {
    font-size: 1.25rem;
    margin: 0;
  }

  body.sidebar-collapsed .sidebar-footer {
    flex-direction: column-reverse;
    align-items: center;
    gap: 0;
    padding: 0;
  }

  body.sidebar-collapsed .logout-btn {
    margin: 0;
    width: 100%;
    padding: 20px 0;
    border-radius: 0;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: center;
    align-items: center;
  }

  body.sidebar-collapsed .user-profile {
    padding: 20px 0;
  }

  body.sidebar-collapsed:has(.sidebar:hover) {
    --sidebar-width: 280px;
  }

  body.sidebar-collapsed:has(.sidebar:hover) .sidebar {
    box-shadow: 8px 0 25px rgba(156, 39, 176, 0.15);
  }

  /* Show hidden elements when sidebar is hovered */
  body.sidebar-collapsed:has(.sidebar:hover) .welcome-text {
    display: inline !important;
    animation: fadeIn 0.2s ease forwards;
  }

  body.sidebar-collapsed:has(.sidebar:hover) .menu-item span {
    display: inline !important;
    animation: fadeIn 0.2s ease forwards;
  }

  body.sidebar-collapsed:has(.sidebar:hover) .user-info {
    display: block !important;
    animation: fadeIn 0.2s ease forwards;
  }

  body.sidebar-collapsed .sidebar-menu label {
    display: none !important;
  }

  body.sidebar-collapsed:has(.sidebar:hover) .sidebar-menu label {
    display: block !important;
    animation: fadeIn 0.2s ease forwards;
  }

  /* Reset layout structure on hover */
  body.sidebar-collapsed:has(.sidebar:hover) .sidebar-header {
    justify-content: space-between !important;
    padding: 20px 20px 23px !important;
  }

  body.sidebar-collapsed:has(.sidebar:hover) #sidebarToggle img {
    transform: rotate(0deg) !important;
  }

  body.sidebar-collapsed:has(.sidebar:hover) .sidebar-menu {
    padding: 0 15px !important;
  }

  body.sidebar-collapsed:has(.sidebar:hover) .menu-item {
    justify-content: flex-start !important;
    padding: 14px 20px !important;
  }

  body.sidebar-collapsed:has(.sidebar:hover) .sidebar-footer {
    flex-direction: row !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding: 14px 16px !important;
  }

  body.sidebar-collapsed:has(.sidebar:hover) .logout-btn {
    margin: 0 !important;
    width: auto !important;
    padding: 4px !important;
    border-radius: 0 !important;
    border-bottom: none !important;
  }

  body.sidebar-collapsed:has(.sidebar:hover) .user-profile {
    padding: 0 !important;
  }

  /* Submenu dropdown behavior on hover */
  body.sidebar-collapsed:has(.sidebar:hover) .menu-item-dropdown .chevron-icon {
    display: block !important;
  }

  body.sidebar-collapsed:has(.sidebar:hover) .menu-item-dropdown .submenu {
    position: static !important;
    width: auto !important;
    background-color: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
    opacity: 1 !important;
    pointer-events: auto !important;
    transform: none !important;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    margin: 0;
  }

  body.sidebar-collapsed:has(.sidebar:hover) .menu-item-dropdown.open .submenu {
    max-height: 500px;
    margin-bottom: 8px;
    margin-top: -2px;
  }

  /* Disable the hover popover when the sidebar is hovered */
  body.sidebar-collapsed:has(.sidebar:hover) .menu-item-dropdown:hover .submenu {
    transform: none !important;
  }

  /* Disable parent item highlighting white when hovering submenus in collapsed-hovered state */
  body.sidebar-collapsed:has(.sidebar:hover) .menu-item-dropdown:hover>.menu-item {
    background-color: transparent !important;
  }

  body.sidebar-collapsed:has(.sidebar:hover) .menu-item-dropdown:hover>.menu-item:hover {
    background-color: #fff !important;
  }
}

/* ============================================================
   Mobile Dashboard Responsiveness Override
   ============================================================ */
.mobile-menu-toggle {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  display: none;
}

.sidebar-backdrop {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 999;
  opacity: 0;
  transition: opacity 0.3s ease;
}

@media (max-width: 991.98px) {
  .mobile-menu-toggle.d-lg-none {
    display: block !important;
  }

  .sidebar-header {
    flex-direction: row-reverse;
    justify-content: flex-end;
    gap: 16px;
  }

  .sidebar-header .welcome-text {
    font-size: 16px;
    color: #212121;
  }

  .sidebar-header .hamburger-btn {
    display: block;
  }

  .sidebar {
    transform: translateX(-100%);
    transition: transform 0.3s ease-in-out;
  }

  body.sidebar-open .sidebar {
    transform: translateX(0);
  }

  body.sidebar-open .sidebar-backdrop {
    display: block;
    opacity: 1;
  }

  .main-content {
    margin-left: 0;
  }

  .top-header {
    padding: 0 16px;
  }

  .header-logo {
    gap: 4px;
  }

  .header-right {
    gap: 12px;
  }
}

/* ==========================================================================
   Login/Registration Page CSS Layout
   ========================================================================== */
.page-container {
  background-color: #ffffff;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.06);
  width: 100%;
  overflow: hidden;
  padding: 0;
  display: flex;
}

@media (max-width: 991.98px) {
  .page-container {
    padding: 30px 24px;
    border-radius: 20px;
    min-height: auto;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
  }
}

.form-section {
  display: flex;
  padding: 80px 40px 40px 80px;
  flex-direction: column;
  align-items: flex-start;
  gap: 40px;
  flex: 1 0 0;
  align-self: stretch;
  width: 100%;
  margin: 0 auto;
}

@media (max-width: 991.98px) {
  .form-section {
    padding: 20px 0;
    margin-bottom: 30px;
  }
}

.brand-logo-container {
  display: flex;
  align-items: center;
  gap: 20px;
}

.brand-logo-container img.mr-2 {
  margin-right: 15px;
}

.brand-title-wrap h1 {
  font-size: 28px;
  font-weight: 700;
  margin: 0;
  color: var(--text-dark);
}

.brand-title-wrap h1 span {
  color: var(--Customer-Portal-600, #9C27B0);
}

.brand-title-wrap p {
  font-size: 14px;
  color: var(--text-muted);
  margin: 0;
}

.form-label {
  color: rgba(0, 0, 0, 0.87);
  font-feature-settings: 'liga' off, 'clig' off;
  font-family: Poppins;
  font-size: 12px;
  font-weight: 400;
  line-height: 16px;
  letter-spacing: 0.4px;
}

.form-label span.required {
  color: rgba(0, 0, 0, 0.87);
}

.form-control-custom {
  background-color: var(--bg-light-grey);
  color: rgba(0, 0, 0, 0.87);
  padding: 14px 18px;
  border-radius: 10px;
  border: 1px solid #FFF;
  transition: all 0.3s ease;
  width: 100%;
  box-sizing: border-box;
  font-family: Poppins;
  font-size: 14px;
  font-weight: 400;
}

.form-control-custom:focus {
  outline: none;
  background-color: #ffffff;
  border-color: var(--login-primary-orange);
  box-shadow: 0 0 0 4px rgba(242, 133, 28, 0.12);
}

.form-control-custom::placeholder {
  color: rgba(0, 0, 0, 0.6);
  font-family: Poppins;
  font-size: 14px;
  font-weight: 400;
  line-height: 20px;
}

/* ============================================================
   Login Page Captcha Widget
   ============================================================ */
.captcha-container {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 15px;
}

.captcha-box {
  background: linear-gradient(135deg, #e2e8f0 0%, #cbd5e1 100%);
  border-radius: var(--input-radius);
  height: 52px;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: 700;
  letter-spacing: 6px;
  color: #334155;
  user-select: none;
  position: relative;
  overflow: hidden;
  font-style: italic;
  font-family: 'Courier New', Courier, monospace;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.05);
}

.captcha-refresh-btn {
  background-color: #ffffff;
  border: 1px solid var(--login-border-color);
  border-radius: var(--input-radius);
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  color: var(--text-muted);
}

.captcha-refresh-btn:hover {
  background-color: var(--bg-light-grey);
  border-color: #cbd5e1;
  color: var(--text-dark);
}

.captcha-refresh-btn svg {
  width: 22px;
  height: 22px;
  transition: transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.captcha-refresh-btn.rotating svg {
  transform: rotate(360deg);
}

/* ============================================================
   Login Primary Buttons & OTP Panel
   ============================================================ */
.btn-primary-custom {
  background: var(--Customer-Portal-600, #9C27B0);
  color: #ffffff;
  font-weight: 600;
  font-size: 16px;
  border: none;
  border-radius: 28px;
  padding: 14px 28px;
  width: 100%;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 12px rgba(242, 133, 28, 0.2);
}

.btn-primary-custom:hover {
  background-color: var(--login-primary-orange-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(242, 133, 28, 0.3);
}

.btn-primary-custom:active {
  transform: translateY(0);
}

.otp-panel {
  display: none;
}

.otp-panel.active {
  width: 100%;
  display: block;
  animation: fadeIn 0.4s ease forwards;
}

.form-inputs-wrap.hidden {
  display: none;
}

.back-link {
  color: var(--text-muted);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 24px;
  transition: color 0.2s ease;
  text-decoration: none;
}

.back-link:hover {
  color: var(--login-primary-orange);
}

.back-link svg {
  margin-right: 6px;
  width: 16px;
  height: 16px;
}

.otp-modal-card {
  background: transparent;
  padding: 0;
  border-radius: 0;
  box-shadow: none;
  width: 100%;
}

.otp-modal-title {
  font-family: Poppins, sans-serif;
  font-size: 20px;
  font-weight: 500;
  line-height: 28px;
  letter-spacing: 0.02px;
  text-align: center;
  margin-bottom: 8px;
}

.otp-email-highlight {
  color: #F2851C;
  font-family: Poppins, sans-serif;
  font-size: 16px;
  font-weight: 600;
  line-height: 24px;
}

.otp-digit-inputs {
  display: flex;
  gap: 12px;
  justify-content: space-between;
  margin: 24px 0;
}

.otp-digit-inputs input {
  width: 100%;
  max-width: 50px;
  height: 54px;
  text-align: center;
  font-size: 20px;
  font-weight: 700;
  border-radius: 12px;
  flex-shrink: 1;
  min-width: 0;
}

.otp-timer {
  margin-bottom: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.otp-timer-left {
  color: rgba(0, 0, 0, 0.87);
  font-family: Poppins, sans-serif;
  font-size: 12px;
  font-weight: 400;
  line-height: 16px;
  letter-spacing: 0.4px;
}

.otp-timer-left span {
  color: #3D82EA;
  font-weight: 400;
}

.otp-timer-right {
  color: rgba(0, 0, 0, 0.87);
  font-family: Poppins, sans-serif;
  font-size: 12px;
  font-weight: 400;
  line-height: 16px;
  letter-spacing: 0.4px;
}

.otp-timer-right a {
  color: #3D82EA;
  font-family: Poppins, sans-serif;
  font-size: 12px;
  font-weight: 400;
  line-height: 16px;
  letter-spacing: 0.25px;
  transition: opacity 0.2s ease;
}

.otp-timer-right a.disabled {
  pointer-events: none;
  opacity: 0.5;
}

.form-inputs-wrap {
  width: 100%;
}

/* ============================================================
   Login Mobile Overrides
   ============================================================ */
@media (max-width: 575.98px) {
  body.login-page {
    padding: 10px !important;
    background-color: #ffffff !important;
  }

  .page-container {
    padding: 20px 16px !important;
    border-radius: 16px !important;
    background-color: transparent !important;
    box-shadow: none !important;
  }

  .brand-logo-container {
    gap: 12px;
  }

  .brand-logo-container img {
    width: 60px !important;
    height: 60px !important;
  }

  .brand-title-wrap h1 {
    font-size: 22px;
  }

  .brand-title-wrap p {
    font-size: 13px;
  }

  .otp-panel.active {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1060;
    background: rgba(15, 23, 42, 0.4);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    display: flex !important;
    align-items: center;
    justify-content: center;
    padding: 20px;
    animation: fadeIn 0.3s ease forwards;
  }

  .otp-modal-card {
    background: #ffffff;
    border-radius: 20px;
    padding: 30px 24px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    width: 100%;
    max-width: 360px;
    margin: auto;
    animation: slideInModal 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  }

  .otp-digit-inputs {
    gap: 8px;
    justify-content: center;
    margin: 24px 0;
  }

  .otp-digit-inputs input {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    font-family: Poppins;
    font-size: 18px;
    font-weight: 500;
    text-align: center;
  }

  .otp-digit-inputs input:focus {
    border-color: #3D82EA;
    box-shadow: 0 0 0 3px rgba(61, 130, 234, 0.15);
    outline: none;
  }

  .otp-timer {
    margin-bottom: 0;
  }
}

/* ============================================================
   Keyframe Animations for Login Screen
   ============================================================ */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideInModal {
  from {
    transform: scale(0.95) translateY(10px);
    opacity: 0;
  }

  to {
    transform: scale(1) translateY(0);
    opacity: 1;
  }
}

.shake {
  animation: shake 0.5s ease-in-out;
}

@keyframes shake {

  0%,
  100% {
    transform: translateX(0);
  }

  20%,
  60% {
    transform: translateX(-6px);
  }

  40%,
  80% {
    transform: translateX(6px);
  }
}

/* ============================================================
   Premium Dark Right Side Design for Login Screen
   ============================================================ */
.page-container>.container-fluid {
  padding: 0 !important;
  width: 100%;
  margin: 0;
  min-height: 720px;
  height: 100%;
}

.right-panel-dark {
  background: linear-gradient(145deg, #530155 6.17%, #3E033B 50%, #4C246D 93.83%);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 60px 48px;
  align-self: stretch;
  z-index: 2;
}

.balance-left {
  color: var(--Customer-Portal-600, #9C27B0);
  text-align: right;

  /* Label */
  font-family: Poppins;
  font-size: 10px;
  font-style: normal;
  font-weight: 400;
  line-height: 14px;
  /* 140% */
  letter-spacing: 0.04px;
}

.constellation-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
  opacity: 0.85;
}

.right-panel-content {
  position: relative;
  z-index: 3;
  width: 100%;
  /* max-width: 560px; */
  display: flex;
  flex-direction: column;
  gap: 36px;
}

.infrastructure-title {
  color: #FFF;
  text-align: center;
  font-family: Poppins;
  font-size: 32px;
  font-style: normal;
  font-weight: 600;
  line-height: 40px;
}

.workforce-title {
  color: var(--Orange-600, #F68819);
  font-family: Poppins;
  font-size: 32px;
  font-style: normal;
  font-weight: 600;
  line-height: 40px;
}

.infrastructure-desc {
  color: rgba(255, 255, 255, 0.55);
  text-align: center;

  /* Caption */
  font-family: Poppins;
  font-size: 14px;
  font-style: normal;
  font-weight: 500;
  line-height: 20px;
  /* 142.857% */
  letter-spacing: 0.154px;
  /* max-width: 460px; */
  margin: 0 auto;
}

.cards-container {
  display: flex;
  gap: 20px;
  width: 100%;
}

.platform-card {
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-radius: 24px;
  border: 0.8px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.07);
  padding: 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 20px;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), border-color 0.3s ease, box-shadow 0.3s ease;


}

.platform-card:hover {
  transform: translateY(-5px);
  border-color: rgba(255, 255, 255, 0.16);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2);
  background: rgba(255, 255, 255, 0.04);
}

.platform-header {
  display: flex;
  align-items: center;
  gap: 16px;
}

.platform-icon-wrap {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform 0.3s ease;
}

.platform-card:hover .platform-icon-wrap {
  transform: scale(1.05);
}

.hrms-blue {
  border-radius: 11px;
  border: 0.8px solid var(--Blue-300, #64B5F6);
  background: rgba(96, 165, 250, 0.14);
}

.portal-purple {
  background: rgba(139, 92, 246, 0.12);
  border: 1px solid rgba(139, 92, 246, 0.3);
  color: #a78bfa;
}

.platform-title-group h3 {
  color: #FFF;
  font-family: Inter;
  font-size: 15px;
  font-style: normal;
  font-weight: 800;
  line-height: 15px;
  /* 100% */
  letter-spacing: -0.3px;
}

.platform-title-group p {
  color: rgba(255, 255, 255, 0.50);
  font-family: Inter;
  font-size: 10px;
  font-style: normal;
  font-weight: 400;
  line-height: 15px;
  margin-top: 4px;
}

.platform-features {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.platform-features li {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #cbd5e1;
  font-family: 'Poppins', sans-serif;
  font-size: 13px;
  font-weight: 400;
}

.feature-bullet {
  width: 26px;
  height: 26px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.blue-bullet {
  background: rgba(59, 130, 246, 0.08);
  border: 1px solid rgba(59, 130, 246, 0.2);
  color: #60a5fa;
}

.purple-bullet {
  background: rgba(139, 92, 246, 0.08);
  border: 1px solid rgba(139, 92, 246, 0.2);
  color: #c084fc;
}

.feature-bullet svg {
  width: 13px;
  height: 13px;
}

.platform-icon-wrap svg {
  width: 24px;
  height: 24px;
}

@media (max-width: 991.98px) {
  .right-panel-dark {
    padding: 48px 24px;
    border-radius: 0 0 20px 20px;
  }

  .right-panel-content {
    gap: 28px;
  }

  .infrastructure-title {
    font-size: 20px;
  }

  .workforce-title {
    font-size: 26px;
    margin-bottom: 12px;
  }

  .cards-container {
    flex-direction: column;
    gap: 16px;
  }

  .platform-card {
    padding: 20px;
  }
}

/* ============================================================
   Interactive Elements & Extras for Login Screen
   ============================================================ */
.forgot-password-link {
  color: var(--Customer-Portal-600, #9C27B0);
  font-family: 'Poppins', sans-serif;
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.2s ease;
}

.forgot-password-link:hover {
  color: var(--login-primary-orange-hover);
  text-decoration: underline;
}

.form-check-input-custom {
  appearance: none;
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  border: 1.5px solid var(--login-primary-orange);
  border-radius: 4px;
  outline: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  background-color: #ffffff;
  transition: background-color 0.2s, border-color 0.2s;
  vertical-align: middle;
}

.form-check-input-custom:checked {
  background-color: var(--login-primary-orange);
  border-color: var(--login-primary-orange);
}

.form-check-input-custom:checked::after {
  content: '';
  width: 5px;
  height: 9px;
  border: solid white;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
  position: absolute;
  top: 1px;
  left: 5px;
}

.form-check-label-custom {
  font-family: 'Poppins', sans-serif;
  font-size: 13px;
  color: var(--text-dark);
  cursor: pointer;
  user-select: none;
}

.terms-link {
  color: var(--login-primary-orange);
  text-decoration: underline;
  font-weight: 500;
}

.terms-link:hover {
  color: var(--login-primary-orange-hover);
}

/* ============================================================
   Terms & Conditions Modal Custom Styling
   ============================================================ */
.modal-backdrop-custom {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(15, 23, 42, 0.45);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 1500;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  padding: 20px;
}

.modal-backdrop-custom.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-card-custom {
  background: #ffffff;
  border-radius: 28px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
  width: 100%;
  max-width: 800px;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  padding: 40px;
  position: relative;
  transform: scale(0.95) translateY(10px);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.modal-backdrop-custom.active .modal-card-custom {
  transform: scale(1) translateY(0);
}

.modal-header-custom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}

.modal-header-custom h3 {
  font-family: 'Inter', sans-serif;
  font-size: 22px;
  font-weight: 700;
  color: #0f172a;
  margin: 0;
}

.modal-close-btn {
  background-color: #fff;
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s;
  color: #64748b;
  padding: 0;
}

.modal-close-btn:hover {
  background-color: #e2e8f0;
  color: #0f172a;
}

.modal-close-btn svg {
  width: 20px;
  height: 20px;
}

.modal-body-custom {
  overflow-y: auto;
  background-color: #f8fafc;
  padding: 24px;
  border: 1px solid #e2e8f0;
  flex: 1;
}

.modal-body-content {
  font-family: 'Poppins', sans-serif;
  font-size: 13px;
  line-height: 22px;
  color: #475569;
}

.modal-body-content p {
  margin-top: 0;
  margin-bottom: 16px;
}

.modal-body-content ol,
.modal-body-content ul {
  padding-left: 20px;
  margin-bottom: 16px;
}

.modal-body-content li {
  margin-bottom: 8px;
}

/* Custom Scrollbar for Modal Body */
.modal-body-custom::-webkit-scrollbar {
  width: 8px;
}

.modal-body-custom::-webkit-scrollbar-track {
  background: #f1f5f9;
  border-radius: 16px;
}

.modal-body-custom::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 16px;
}

.modal-body-custom::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

@media (max-width: 575.98px) {
  .modal-card-custom {
    padding: 24px 20px;
    border-radius: 20px;
    max-height: 90vh;
  }

  .modal-header-custom h3 {
    font-size: 18px;
  }

  .modal-body-custom {
    padding: 16px;
  }
}

/* ============================================================
   Pending Application Dashboard Styling
   ============================================================ */
.dashboard-title {
  font-family: 'Poppins', sans-serif;
  color: var(--Secondary-900, #212121);
  font-size: 16px;
  font-style: normal;
  font-weight: 500;
  line-height: 24px;
  letter-spacing: 0.024px;
  margin-bottom: 4px;
}

.dashboard-subtitle {
  font-family: 'Poppins', sans-serif;
  font-size: 14px;
  color: var(--Typography-Dark-Secondary, rgba(0, 0, 0, 0.60));
  margin: 0;
}

.filter-actions-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  border-radius: 20px;
  border: 0.8px solid #EDE0F5;
  background: #FFF;
  box-shadow: 0 2px 8px 0 rgba(156, 39, 176, 0.08), 0 1px 3px 0 rgba(0, 0, 0, 0.04);
  padding: 16px 24px;
}

.filters-left {
  display: flex;
  gap: 16px;
  flex-grow: 1;
  align-items: center;
}

.actions-right {
  display: flex;
  gap: 16px;
  align-items: center;

  justify-content: flex-end;
}

/* Custom Select Dropdowns */
.custom-select-wrapper {
  flex-grow: 1;
  position: relative;
  display: inline-block;
}

.custom-select {
  appearance: none;
  -webkit-appearance: none;
  background-color: #FFFFFF;
  /* border: 1px solid #9C27B0; */
  padding: 8px 36px 8px 16px;
  font-family: 'Poppins', sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: rgba(26, 5, 51, 0.50);
  cursor: pointer;
  min-width: 170px;
  width: 100%;
  outline: none;
  transition: all 0.2s ease;
  border-radius: 10px;
  border: 0.8px solid #EDE0F5;
}

.custom-select:focus {
  border-color: #9C27B0;
  box-shadow: 0 0 0 3px rgba(156, 39, 176, 0.15);
}

.custom-select-icon {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  color: #9C27B0;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Search Bar styling */
.search-wrapper {
  position: relative;
  display: inline-block;
  max-width: 320px;
  width: 100%;
  max-height: 33px;
}

.search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: center;

}

.search-input {

  padding: 10px 16px 10px 42px;
  font-family: 'Poppins', sans-serif;

  border-radius: 2px;
  border: 1px solid var(--Divider-Dark, #FFF);
  background: var(--Hover-Secondary-Dark, rgba(0, 0, 0, 0.04));
  font-size: 14px;
  color: #212121;
  outline: none;
  width: 100%;
  transition: all 0.2s ease;
}

.search-input::placeholder {
  color: rgba(0, 0, 0, 0.60);
}

.search-input:focus {
  background-color: #E2E1E7;
  box-shadow: 0 0 0 2px rgba(156, 39, 176, 0.1);
}

/* Action Buttons */
.btn-action {
  border: none;
  border-radius: 20px;
  font-size: 12px;
  font-style: normal;
  font-weight: 400;
  line-height: 16px;
  padding: 8px 24px;
  /* font-family: 'Poppins', sans-serif;
  font-size: 12px;
  font-style: normal;
  font-weight: 400;
  line-height: 16px; */
  /* 133.333% */
  /* letter-spacing: 0.25px; */
  font-weight: 500;
  color: #FFFFFF;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.btn-reject {
  background-color: #EF4444;
}

.btn-download {
  background-color: #D7A9DF;

}

.btn-reject:hover {
  background-color: #DC2626;
  box-shadow: 0 4px 12px rgba(239, 68, 68, 0.2);
}

.btn-approve {

  background: var(--Status-Active, #4CAF50);

  color: #ffffff;
}

.btn-approve:hover {
  background-color: #22C55E;
  color: #FFFFFF;
  box-shadow: 0 4px 12px rgba(34, 197, 94, 0.2);
}

/* Table Design */
.table-card {
  background: #FFFFFF;
  border: 1px solid #E8E9EF;
  border-radius: 8px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.01);
  overflow: hidden;
}

.table-responsive {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.dashboard-table {
  width: 100%;
  min-width: 1300px;
  border-collapse: collapse;
  text-align: left;
  font-size: 13.5px;
  color: #495057;
  font-family: 'Poppins', sans-serif;
}

.dashboard-table th {
  position: sticky;
  top: 0;
  z-index: 10;
  background-color: #F8F9FA;
  color: #212121;
  font-weight: 500;
  padding: 14px 16px;
  border-bottom: 1.5px solid #E8E9EF;
  font-size: 13px;
  vertical-align: middle;
}

.dashboard-table th.sortable {
  cursor: pointer;
  position: relative;
  padding-right: 24px;
}

.dashboard-table th.sortable::after {
  content: 'â†•';
  position: absolute;
  right: 8px;
  color: #9097A6;
  font-size: 11px;
  opacity: 0.5;
}

.dashboard-table th.sort-asc::after {
  content: 'â†‘';
  opacity: 1;
  color: #9C27B0;
}

.dashboard-table th.sort-desc::after {
  content: 'â†“';
  opacity: 1;
  color: #9C27B0;
}

.dashboard-table td {
  padding: 16px;
  border-bottom: 1px solid #F1F3F5;
  vertical-align: middle;
  color: var(--Typography-Dark-Secondary, rgba(0, 0, 0, 0.60));
  /* Caption */
}

.dashboard-table tbody tr {
  transition: background-color 0.15s ease;
}

.dashboard-table tbody tr:hover {
  background-color: #FAF8FC;
}

.col-checkbox {
  width: 44px;
  text-align: center;
}

.dashboard-table td input[type="checkbox"],
.dashboard-table th input[type="checkbox"] {
  cursor: pointer;
  width: 16px;
  height: 16px;
  border-radius: 4px;
  accent-color: #9C27B0;
  border: 1px solid #CED4DA;
}

.font-semibold {
  font-weight: 500;
}

.text-dark {
  color: #212121 !important;
}

/* Editable cells */
.amount-display-wrapper {
  display: flex;
  align-items: center;
  gap: 8px;
  justify-content: flex-start;
}

.edit-amount-btn {
  background: none;
  border: none;
  color: #9097A6;
  cursor: pointer;
  padding: 4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  transition: all 0.15s ease;
}

.edit-amount-btn:hover {
  color: #9C27B0;
  background-color: rgba(156, 39, 176, 0.08);
}

.edit-amount-input {
  width: 90px;
  padding: 4px 8px;
  border: 1px solid #9C27B0;
  border-radius: 4px;
  font-family: 'Poppins', sans-serif;
  font-size: 13.5px;
  font-weight: 500;
  outline: none;
  color: #212121;
}

/* Responsiveness adjustments */
@media (max-width: 991.98px) {
  .filter-actions-bar {
    padding: 16px;
  }

  .filters-left {
    width: 100%;
    flex-wrap: wrap;
  }

  .custom-select-wrapper {
    min-width: 120px;
    flex-grow: 1;
    width: 100%;
  }

  .custom-select {
    width: 100% !important;
    display: block !important;
  }

  .actions-right {
    width: 100%;
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  .search-wrapper {
    max-width: 100%;
    flex-grow: 1;
  }
}

@media (max-width: 575.98px) {

  .filters-left,
  .actions-right {
    flex-direction: column;
    align-items: stretch;
  }

  .btn-action {
    text-align: center;
    width: 100%;
  }
}

/* ============================================================
   Edit Amount Modal Styling
   ============================================================ */

.modal-amount-input:focus {
  border-bottom-color: #9C27B0 !important;
}

.btn-cancel:hover {
  background-color: rgba(0, 0, 0, 0.04) !important;
  border-color: #212121 !important;
}

.btn-save:hover {
  background-color: #404040 !important;
}

/* ============================================================
   Sticky Footer & Pagination Styling
   ============================================================ */
.footer-sticky {
  position: sticky;
  bottom: 0;
  margin-top: auto;
  background-color: #ffffff;
  border-top: 1px solid var(--border-color);
  padding: 12px 28px;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  z-index: 100;
  box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.03);
}

.pagination-container {
  display: flex;
  align-items: center;
  gap: 20px;
  font-family: 'Poppins', sans-serif;
  font-size: 13px;
  color: #212121;
}

.pagination-label {
  color: #707070;
  font-weight: 400;
}

.pagination-select-wrapper {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.pagination-select {
  appearance: none;
  -webkit-appearance: none;
  background-color: transparent;
  border: 1px solid #E8E9EF;
  border-radius: 6px;
  padding: 4px 28px 4px 10px;
  font-family: inherit;
  font-size: 13px;
  font-weight: 500;
  color: #212121;
  cursor: pointer;
  outline: none;
  transition: all 0.2s ease;
}

.pagination-select:hover,
.pagination-select:focus {
  border-color: #9C27B0;
  background-color: #FDF8FF;
}

.pagination-select-icon {
  position: absolute;
  right: 8px;
  pointer-events: none;
  color: #212121;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pagination-info {
  color: #212121;
  font-weight: 400;
}

.pagination-actions {
  display: flex;
  gap: 8px;
}

.pagination-btn {
  background: none;
  border: none;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #707070;
  cursor: pointer;
  border-radius: 6px;
  transition: all 0.2s ease;
}

.pagination-btn:hover {
  background-color: #F5F6FA;
  color: #9C27B0;
}

.pagination-btn:active {
  background-color: #EBD4EF;
}

.pagination-btn:disabled {
  color: #C0C0C0;
  cursor: not-allowed;
  background: none;
}

@media (max-width: 991.98px) {
  .footer-sticky {
    padding: 12px 16px;
  }
}

/* ============================================================
   Payment Page Custom Styling
   ============================================================ */
.payment-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  width: 100%;
  margin-bottom: 24px;
}

.payment-stat-card {
  border-radius: 14px;
  background: linear-gradient(135deg, #9C27B0 0%, #7B1FA2 100%);
  box-shadow: 0 3.301px 14.852px 0 rgba(156, 39, 176, 0.25);
  padding: 18px 16px;
  color: #FFFFFF;
  position: relative;
  overflow: hidden;
  display: flex;
  /* align-items: center; */
  gap: 16px;
  min-height: 110px;
}

.payment-stat-card::before,
.payment-stat-card::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
}

.payment-stat-card::before {
  width: 66.011px;
  height: 66.011px;
  right: -2.794px;
  top: -16px;
}

/* .payment-stat-card::after {
  width: 70px;
  height: 70px;
  top: 15px;
  right: -30px;
} */

.payment-stat-card .card-icon-container {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: #FFFFFF;
}

.payment-stat-card .card-icon-container svg {
  width: 20px;
  height: 20px;
}

.payment-stat-card .card-info {
  display: flex;
  flex-direction: column;
  z-index: 1;
}

.payment-stat-card .card-label {
  font-family: 'Poppins', sans-serif;
  color: rgba(255, 255, 255, 0.65);
  font-size: 9.489px;
  font-weight: 500;
  line-height: 14.234px;
  /* 150% */
  margin-bottom: 2px;
  letter-spacing: 0.2px;
}

.payment-stat-card .card-value {
  color: #FFF;
  font-family: Poppins;
  font-size: 18px;
  font-style: normal;
  font-weight: 800;
  line-height: 18.153px;
  /* 100% */
  letter-spacing: -0.454px;
  margin-bottom: 2px;
  line-height: 30px;
}

.payment-stat-card .card-footer-text {

  color: rgba(255, 255, 255, 0.50);
  font-family: Poppins;
  font-size: 9px;
  font-style: normal;
  font-weight: 400;
  line-height: 12.996px;
  /* 150% */
}

.payment-tabs-container {
  width: 100%;
  border-radius: 20px;
  border: 0.8px solid #EDE0F5;
  background: #FFF;
  box-shadow: 0 2px 8px 0 rgba(156, 39, 176, 0.08), 0 1px 3px 0 rgba(0, 0, 0, 0.04);
  padding: 10px 12px;
  overflow-x: auto;
  white-space: nowrap;
}

.payment-tabs {
  display: flex;
  gap: 8px;
  align-items: center;
}

.payment-tab-btn {
  background: transparent;
  border: 0.8px solid #EDE0F5;
  border-radius: 999px;
  padding: 10px 20px;
  font-family: 'Poppins', sans-serif;
  font-size: 13.5px;
  font-weight: 600;
  color: #6B7280;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}

.payment-tab-btn:hover {
  color: #9C27B0;
  background-color: rgba(156, 39, 176, 0.04);
}

.payment-tab-btn.active {
  background: linear-gradient(135deg, #9C27B0 0%, #7B1FA2 100%);
  box-shadow: 0 4px 16px 0 rgba(156, 39, 176, 0.35);
  color: #FFFFFF !important;

}

.payment-tab-btn svg {
  stroke-width: 2.2;
}

.payment-form-card {
  background: #FFFFFF;
  border: 0.8px solid #EDE0F5;
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 2px 8px rgba(156, 39, 176, 0.04);
  height: 100%;
}

.payment-form-title {
  font-family: 'Poppins', sans-serif;
  font-size: 17px;
  font-weight: 600;
  color: #212121;
  margin-bottom: 4px;
}

.payment-form-subtitle {
  font-family: 'Poppins', sans-serif;
  font-size: 12.5px;
  color: rgba(26, 5, 51, 0.4);
  margin-bottom: 24px;
}

.payment-form-group {
  margin-bottom: 18px;
}

.payment-form-group label {
  font-family: 'Poppins', sans-serif;
  font-size: 12px;
  font-weight: 600;
  color: #212121;
  margin-bottom: 8px;
  display: block;
}

.payment-input {
  width: 100%;
  background: #FFFFFF;
  border: 0.8px solid #EDE0F5;
  border-radius: 10px;
  padding: 10px 16px;
  font-family: 'Poppins', sans-serif;
  font-size: 14px;
  color: rgba(26, 5, 51, 0.50);
  outline: none;
  font-weight: 500;
  transition: all 0.2s ease;
  box-sizing: border-box;
}

.payment-input::placeholder {
  color: rgba(26, 5, 51, 0.3);
}

.payment-input:focus {
  border-color: #9C27B0;
  box-shadow: 0 0 0 3px rgba(156, 39, 176, 0.1);
}

.payment-select-wrapper {
  position: relative;
  width: 100%;
}

.payment-select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 40px !important;
  cursor: pointer;
}

.payment-select-icon {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  color: #9C27B0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.payment-verify-btn {
  border-radius: 10px;
  border: 0.8px solid #EDE0F5;
  background: #F3E5F5;
  color: #9C27B0;
  text-align: center;
  font-family: Poppins;
  font-size: 12.5px;
  font-style: normal;
  font-weight: 600;
  padding: 5px 16px;
  line-height: 18.75px;
  /* 150% */
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.payment-verify-btn:hover {
  background: #E1BEE7;
}

.amount-input-wrapper {
  position: relative;
  width: 100%;
}

.amount-currency-symbol {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: #9C27B0;
  font-family: Poppins;
  font-size: 16px;
  font-style: normal;
  font-weight: 700;
  line-height: 24px;
}

.amount-input-wrapper .payment-input {
  padding-left: 32px !important;
  font-weight: 500;
}

/* Salary Sheet Upload Box */
.salary-upload-box {
  background: #FAF6FB;
  border: 1.5px dashed #D7A9DF;
  border-radius: 16px;
  padding: 24px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.salary-upload-box .upload-icon-container {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: #F3E5F5;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #9C27B0;
  flex-shrink: 0;
}

.salary-upload-box .upload-icon-container svg {
  width: 20px;
  height: 20px;
}

.salary-upload-box .upload-text-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
  min-width: 200px;
}

.salary-upload-box .upload-box-title {
  font-family: 'Poppins', sans-serif;
  font-size: 16px;
  font-weight: 700;
  color: #1A0533;
  margin: 0;
}

.salary-upload-box .upload-box-subtitle {
  font-family: 'Poppins', sans-serif;
  font-size: 13px;
  color: rgba(26, 5, 51, 0.4);
  margin: 0;
}

.salary-upload-box .upload-actions {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}

.btn-action-purple {
  background: linear-gradient(135deg, #9C27B0 0%, #7B1FA2 100%);
  color: #FFFFFF;
  border: none;
  border-radius: 10px;
  padding: 10px 24px;
  font-family: 'Poppins', sans-serif;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(156, 39, 176, 0.2);
  transition: all 0.2s ease;
}

.btn-action-purple:hover {
  box-shadow: 0 6px 16px rgba(156, 39, 176, 0.3);
  transform: translateY(-1px);
}

.btn-action-outline {
  background: #FFFFFF;
  color: #9C27B0;
  border: 1.5px solid #9C27B0;
  border-radius: 10px;
  padding: 8.5px 24px;
  font-family: 'Poppins', sans-serif;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
}

.btn-action-outline:hover {
  background: rgba(156, 39, 176, 0.04);
  transform: translateY(-1px);
}

/* Status Badges */
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 20px;
  font-family: 'Poppins', sans-serif;
  font-size: 12px;
  font-weight: 600;
}

.status-badge::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  display: inline-block;
}

.status-badge.completed {
  background-color: #E8F5E9;
  color: #2E7D32;
}

.status-badge.completed::before {
  background-color: #2E7D32;
}

.status-badge.uploaded {
  background-color: #FFF3E0;
  color: #EF6C00;
}

.status-badge.uploaded::before {
  background-color: #EF6C00;
}

/* Small Download Buttons in Table */
.btn-table-download {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background-color: #F3E5F5;
  color: #9C27B0;
  padding: 5px 12px;
  border-radius: 8px;
  font-family: 'Poppins', sans-serif;
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
  border: 0.8px solid #EDE0F5;
}

.btn-table-download:hover {
  background-color: #E1BEE7;
  color: #7B1FA2;
  text-decoration: none;
}

/* Pay Now Button in Quick Pay Table */
.btn-pay-now {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: #F3E5F5;
  color: #9C27B0;
  padding: 6px 16px;
  border-radius: 10px;
  font-family: 'Poppins', sans-serif;
  font-size: 12.5px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
  border: 0.8px solid #EDE0F5;
  cursor: pointer;
  white-space: nowrap;
}

.btn-pay-now:hover {
  background-color: #E1BEE7;
  color: #7B1FA2;
  text-decoration: none;
}

/* ==========================================================================
   Advance Loan Styles
   ========================================================================== */
.loan-eligibility-banner {
  background: linear-gradient(135deg, #9C27B0 0%, #4A148C 100%);
  border-radius: 20px;
  padding: 32px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
  color: #ffffff;
  margin-bottom: 32px;
  box-shadow: 0 4px 20px rgba(156, 39, 176, 0.15);
}

.loan-eligibility-banner::before {
  content: '';
  position: absolute;
  top: -50px;
  right: 15%;
  width: 260px;
  height: 260px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0) 70%);
  border-radius: 50%;
  pointer-events: none;
}

.loan-eligibility-banner::after {
  content: '';
  position: absolute;
  bottom: -80px;
  left: 35%;
  width: 200px;
  height: 200px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 50%;
  pointer-events: none;
}

.banner-text {
  position: relative;
  z-index: 2;
}

.banner-label {
  font-family: 'Poppins', sans-serif;
  font-size: 13.5px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: 8px;
  display: block;
}

.banner-value {
  font-family: 'Poppins', sans-serif;
  font-size: 38px;
  font-weight: 700;
  color: #FFFFFF;
  margin: 0;
  letter-spacing: 0.5px;
  line-height: 1.2;
}

.banner-icon-wrapper {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  position: relative;
  z-index: 2;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.btn-loan-submit {
  background: linear-gradient(135deg, #9C27B0 0%, #7B1FA2 100%);
  color: #FFFFFF;
  border: none;
  border-radius: 100px;
  padding: 12px 36px;
  font-family: 'Poppins', sans-serif;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 6px 18px rgba(156, 39, 176, 0.3);
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  outline: none;
}

.btn-loan-submit:hover {
  box-shadow: 0 8px 24px rgba(156, 39, 176, 0.45);
  transform: translateY(-1px);
}

.btn-loan-submit:active {
  transform: translateY(1px);
  box-shadow: 0 4px 12px rgba(156, 39, 176, 0.2);
}

/* ==========================================================================
   Advance Salary File Details Styles
   ========================================================================== */
.btn-back-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #FFFFFF;
  border: 1px solid #EDE0F5;
  border-radius: 100px;
  padding: 6px 20px;
  color: #212121;
  font-family: 'Poppins', sans-serif;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
  box-shadow: 0 2px 6px rgba(156, 39, 176, 0.04);
}

.btn-back-pill:hover {
  background: #FDFBFF;
  border-color: #9C27B0;
  color: #9C27B0;
  text-decoration: none;
}

.table-summary-row td {
  font-family: 'Poppins', sans-serif;
  font-size: 13px;
  font-weight: 500;
  color: rgba(26, 5, 51, 0.50);
  border-bottom: none !important;
  padding: 10px 16px !important;
  background: #FFFFFF;
}

.table-summary-row-total td {
  font-family: 'Poppins', sans-serif;
  font-size: 15px;
  font-weight: 700;
  color: #1A0533;
  border-top: 1.2px solid #EDE0F5 !important;
  border-bottom: none !important;
  padding: 16px !important;
  background: #FFFFFF;
}

/* ==========================================================================
   Quick Pay Modal Styles
   ========================================================================== */
.modal-card-quickpay {
  max-width: 824px !important;


  border-radius: 20px;
  border: 0.8px solid #EDE0F5;
  background: #FFF;
  box-shadow: 0 2px 8px 0 rgba(156, 39, 176, 0.08), 0 1px 3px 0 rgba(0, 0, 0, 0.04);
  padding: 20px !important;
}

.quickpay-form-container {
  border: 1.2px solid #EDE0F5;
  border-radius: 24px;
  padding: 20px;
  background-color: #FFF;

}

.quickpay-field-label {
  color: #1A0533;
  font-family: Poppins;
  font-size: 12.5px;
  font-style: normal;
  font-weight: 600;

  font-weight: 700;
  margin-bottom: 12px;
}

.quickpay-input {
  padding: 12px 20px;
  width: 100%;
  height: 48px;
  border: 1.2px solid #EDE0F5;
  border-radius: 14px;
  font-family: 'Poppins', sans-serif;
  font-size: 15px;
  font-weight: 500;
  color: #212121;
  outline: none;
  transition: all 0.2s ease;
  box-sizing: border-box;
}

.quickpay-input:focus {
  border-color: #9C27B0;
  box-shadow: 0 0 0 3px rgba(156, 39, 176, 0.15);
}

.quickpay-select-wrapper {
  position: relative;
  width: 100%;
}

.quickpay-select {
  width: 100%;
  height: 48px;
  border: 1.2px solid #EDE0F5;
  border-radius: 14px;
  padding: 12px 45px 12px 20px;
  font-family: 'Poppins', sans-serif;
  font-size: 15px;
  font-weight: 500;
  color: rgba(33, 33, 33, 0.6);
  outline: none;
  appearance: none;
  -webkit-appearance: none;
  background: #FFF;
  cursor: pointer;
  transition: all 0.2s ease;
  box-sizing: border-box;
}

.quickpay-select:focus {
  border-color: #9C27B0;
  box-shadow: 0 0 0 3px rgba(156, 39, 176, 0.15);
}

.quickpay-select-icon {
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  color: #9C27B0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn-cancel-quickpay {
  background: transparent;
  border-radius: 30px;
  border: 1px solid #9C27B0;
  padding: 10px 36px;
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  color: var(--Typography-Dark-Primary, rgba(0, 0, 0, 0.87));
  font-feature-settings: 'liga' off, 'clig' off;
  /* Button */
  font-family: Poppins;
  font-size: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
  display: inline-block;
}

.btn-cancel-quickpay:hover {
  background-color: rgba(156, 39, 176, 0.05);
  color: #9C27B0;
}

.btn-submit-quickpay {
  background-color: #9C27B0;
  border: none;
  border-radius: 100px;
  padding: 10px 36px;
  font-family: 'Poppins', sans-serif;

  color: var(--Typography-Light-Primary, #FFF);
  font-feature-settings: 'liga' off, 'clig' off;
  /* Button */

  font-size: 12px;
  font-style: normal;
  font-weight: 400;
  line-height: 16px;

  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 4px 12px rgba(156, 39, 176, 0.2);
  text-decoration: none;
  display: inline-block;
}

.btn-add-payee {
  border-radius: 16px;
  background: linear-gradient(135deg, #9C27B0 0%, #7B1FA2 100%);
  box-shadow: 0 5px 20px 0 rgba(156, 39, 176, 0.40);
  padding: 15px 20px;
  color: #FFF;
  text-align: center;
  font-family: Poppins;
  font-size: 12px !important;
  font-style: normal;
  font-weight: 700;
  line-height: 22.5px;
  letter-spacing: 0.15px;
  font-family: Poppins;

}

.btn-submit-quickpay:hover {
  background-color: #8E24AA;
  box-shadow: 0 6px 16px rgba(156, 39, 176, 0.3);
  transform: translateY(-1px);
  color: #FFFFFF;
}

.btn-submit-quickpay:active {
  transform: translateY(1px);
}

.btn-submit {
  background-color: #9C27B0;
  border: none;
  border-radius: 6px;
  padding: 10px 24px;
  font-family: 'Plus Jakarta Sans', Poppins, sans-serif;
  color: #FFFFFF;
  font-size: 13px;
  font-weight: 500;
  line-height: 16px;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 4px 12px rgba(156, 39, 176, 0.2);
  text-decoration: none;
  display: inline-block;
}

.btn-submit:hover {
  background-color: #8E24AA;
  box-shadow: 0 6px 16px rgba(156, 39, 176, 0.3);
  transform: translateY(-1px);
  color: #FFFFFF;
}

.btn-submit:active {
  transform: translateY(1px);
}

/* ==========================================================================
   Transfer Method Modal Styles
   ========================================================================== */
.transfer-method-card {
  border: 1.2px solid #EDE0F5 !important;
  background: #FFF !important;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.transfer-method-card:hover {
  transform: translateY(-2px);
  border-color: #9C27B0 !important;
  box-shadow: 0 8px 20px rgba(156, 39, 176, 0.06);
}

.transfer-method-card.active {
  border-color: #9C27B0 !important;
  background-color: #FAF2FD !important;
  box-shadow: 0 8px 20px rgba(156, 39, 176, 0.1) !important;
}

.transfer-icon-wrap {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.25s ease;
}

.transfer-icon-wrap.unselected {
  background: #FDF4FF !important;
  color: #9C27B0 !important;
}

.transfer-icon-wrap.selected {
  background: #9C27B0 !important;
  color: #FFF !important;
}

/* ==========================================================================
   Verify OTP Modal Styles
   ========================================================================== */
.otp-digit-input {
  width: 40px !important;
  height: 40px !important;
  border: 1.2px solid #EDE0F5 !important;
  border-radius: 12px !important;
  text-align: center !important;
  font-family: 'Poppins', sans-serif !important;
  font-size: 20px !important;
  font-weight: 600 !important;
  color: #1A0533 !important;
  outline: none !important;
  transition: all 0.2s ease !important;
}

.otp-digit-input:focus {
  border-color: #9C27B0 !important;
  box-shadow: 0 0 0 3px rgba(156, 39, 176, 0.15) !important;
}

/* ==========================================================================
   Clean Layout Classes for Payment Page Modals
   ========================================================================== */
.transfer-modal-card {
  max-width: 824px !important;
  border-radius: 24px !important;
  padding: 20px !important;
  border: 0.8px solid #EDE0F5 !important;
  background: #FFF !important;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12) !important;
}

.transfer-modal-title {
  font-family: 'Poppins', sans-serif !important;
  font-size: 18px !important;
  font-weight: 700 !important;
  color: #1A0533 !important;
  margin: 0 !important;
}

.transfer-modal-subtitle {
  font-family: 'Poppins', sans-serif !important;
  font-size: 13px !important;
  color: rgba(0, 0, 0, 0.4) !important;
  margin: 4px 0 0 0 !important;
}

.transfer-method-card {
  border: 1.2px solid #EDE0F5 !important;
  background: #FFF !important;
  border-radius: 16px !important;
  padding: 24px !important;
  cursor: pointer !important;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
  display: flex !important;
  align-items: center !important;
  gap: 16px !important;
  position: relative !important;
  box-shadow: none !important;
}

.transfer-method-card:hover {
  transform: translateY(-2px) !important;
  border-color: #9C27B0 !important;
  box-shadow: 0 8px 20px rgba(156, 39, 176, 0.06) !important;
}

.transfer-method-card.active {
  border-color: #9C27B0 !important;
  background-color: #FAF2FD !important;
  box-shadow: 0 8px 20px rgba(156, 39, 176, 0.1) !important;
}

.transfer-method-name {
  font-family: 'Poppins', sans-serif !important;
  font-size: 15px !important;
  font-weight: 700 !important;
  color: #1A0533 !important;
  margin: 0 !important;
  display: flex !important;
  align-items: center !important;
  gap: 6px !important;
}

.transfer-method-desc {
  font-family: 'Poppins', sans-serif !important;
  font-size: 11px !important;
  color: rgba(0, 0, 0, 0.4) !important;
  margin: 4px 0 0 0 !important;
  transition: color 0.25s ease !important;
}

.transfer-method-card.active .transfer-method-desc {
  color: rgba(156, 39, 176, 0.6) !important;
}

/* Children states based on active parent card */
.transfer-method-card .transfer-icon-wrap {
  background: #FDF4FF !important;
  color: #9C27B0 !important;
}

.transfer-method-card.active .transfer-icon-wrap {
  background: #9C27B0 !important;
  color: #FFF !important;
}

.transfer-method-card .checkmark-badge {
  display: none !important;
}

.transfer-method-card.active .checkmark-badge {
  display: flex !important;
}

.btn-confirm-payment {
  display: flex !important;
  width: 100% !important;
  max-width: 450px !important;
  padding: 14px !important;
  justify-content: center !important;
  align-items: center !important;
  gap: 8px !important;
  font-family: 'Poppins', sans-serif !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  border-radius: 100px !important;
  border: none !important;
  cursor: pointer !important;
  transition: all 0.2s ease !important;
}

.modal-card-custom.otp-modal-card {
  max-width: 620px;
  width: 100%;
  border-radius: 28px;
  padding: 20px;
  background: #FFF;
  border: 0.8px solid #EDE0F5;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
  position: relative;
}

.modal-card-custom.otp-modal-card .otp-modal-title {
  font-family: 'Poppins', sans-serif;
  font-size: 15.197px;
  font-style: normal;
  font-weight: 500;
  color: #1A0533;
  margin: 0 0 12px 0;
}

.otp-modal-subtitle {
  font-family: 'Poppins', sans-serif !important;
  font-size: 14px !important;
  color: rgba(0, 0, 0, 0.6) !important;
  margin: 0 !important;
  line-height: 1.5 !important;
}

.otp-modal-highlight {
  color: #9C27B0 !important;
  font-weight: 600 !important;
}

.otp-resend-container {
  font-family: 'Poppins', sans-serif !important;
  font-size: 13px !important;
  color: rgba(0, 0, 0, 0.6) !important;
  padding: 0 10px !important;
}

/* ==========================================================================
   Payee Page Custom Styles
   ========================================================================== */
.btn-payee-edit {
  display: flex !important;
  align-items: center !important;
  gap: 6px !important;
  padding: 8px 10px !important;
  border: 1px solid #60A5FA !important;
  border-radius: 10px;
  background: var(--Blue-100, #BBDEFB);
  color: var(--Blue-600, #1E88E5);
  font-feature-settings: 'liga' off, 'clig' off;

  /* Button */
  font-family: Poppins;
  font-size: 12px;
  font-style: normal;
  font-weight: 400;
  line-height: 16px;
  /* 133.333% */
  letter-spacing: 0.25px;
  transition: all 0.2s ease !important;
  text-decoration: none !important;
}

.btn-payee-edit:hover {
  background-color: #DBEAFE !important;
  border-color: #3B82F6 !important;
  color: #1E40AF !important;
}

.btn-payee-delete {
  display: flex !important;
  align-items: center !important;
  gap: 6px !important;
  padding: 8px 10px !important;
  border: 1px solid #FCA5A5 !important;
  border-radius: 8px !important;
  background-color: #FEF2F2 !important;
  font-family: 'Poppins', sans-serif !important;
  cursor: pointer !important;
  transition: all 0.2s ease !important;
  text-decoration: none !important;


  color: #EC2020;
  font-feature-settings: 'liga' off, 'clig' off;

  font-size: 12px;
  font-style: normal;
  font-weight: 400;
  line-height: 16px;
  letter-spacing: 0.25px;
}

.btn-payee-delete:hover {
  background-color: #FEE2E2 !important;
  border-color: #EC2020 !important;
  color: #EC2020 !important;
}

/* ==========================================================================
   Toast Notifications & Modal Form Custom Styles
   ========================================================================== */
.toast-container {
  position: fixed !important;
  top: 24px !important;
  right: 24px !important;
  z-index: 9999 !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 12px !important;
  pointer-events: none !important;
}

.custom-toast {
  pointer-events: auto !important;
  min-width: 320px !important;
  background: #FFFFFF !important;
  border-radius: 16px !important;
  border: 1px solid #EDE0F5 !important;
  box-shadow: 0 10px 25px -5px rgba(156, 39, 176, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.05) !important;
  padding: 16px 20px !important;
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  transform: translateX(120%) !important;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.3s ease !important;
  opacity: 0 !important;
}

.custom-toast.show {
  transform: translateX(0) !important;
  opacity: 1 !important;
}

.toast-icon {
  width: 28px !important;
  height: 28px !important;
  border-radius: 50% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex-shrink: 0 !important;
}

.toast-icon.success {
  background-color: #ECFDF5 !important;
  color: #059669 !important;
}

.toast-icon.danger {
  background-color: #FEF2F2 !important;
  color: #DC2626 !important;
}

.toast-content {
  flex-grow: 1 !important;
}

.toast-title {
  font-family: 'Poppins', sans-serif !important;
  font-size: 13.5px !important;
  font-weight: 700 !important;
  color: #1A0533 !important;
  margin: 0 0 2px 0 !important;
}

.toast-message {
  font-family: 'Poppins', sans-serif !important;
  font-size: 11.5px !important;
  color: rgba(0, 0, 0, 0.6) !important;
  margin: 0 !important;
}

/* ============================================================
   Add Payee Modal Specific Styling
   ============================================================ */
.payee-modal-card {
  max-width: 760px;
  padding: 20px !important;
  border-radius: 24px !important;
}

.payee-modal-title {

  color: #1A0533;
  font-family: Poppins !important;
  font-size: 14px !important;
  font-style: normal;
  font-weight: 700;
  line-height: 21px;
  margin: 0;
}

.payee-modal-close-btn {
  background: none;
  border: none;
  cursor: pointer;
  color: #9097A6;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s ease;
}

.payee-modal-close-btn:hover {
  color: #1C1D21;
}

.payee-form-container {
  border: 1px solid #EDE0F5;
  background-color: #FFFFFF;
  border-radius: 20px;
  padding: 20px;
  margin-top: 10px;
  margin-bottom: 24px;
  box-shadow: 0 4px 20px rgba(156, 39, 176, 0.02);
}

.payee-form-row {
  display: flex;
  gap: 20px;
}

.payee-form-row .payment-form-group {
  flex: 1;
}

.payee-modal-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 16px;
}

.payee-checkbox-wrapper {
  display: flex;
  align-items: center;
  gap: 8px;
}

.payee-checkbox-wrapper input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: #1E88E5;
  cursor: pointer;
}

.payee-checkbox-wrapper label {
  font-family: 'Poppins', sans-serif;
  font-size: 13px;
  color: #707070;
  cursor: pointer;
  user-select: none;
}

.btn-modal-cancel {
  border: 1.5px solid #9C27B0 !important;
  background-color: transparent !important;
  color: #1A0533 !important;
  font-family: 'Poppins', sans-serif !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  padding: 10px 28px !important;
  border-radius: 100px !important;
  cursor: pointer !important;
  transition: all 0.2s ease !important;
  box-shadow: none !important;
}

.btn-modal-cancel:hover {
  background-color: #FDF4FF !important;
  border-color: #7B1FA2 !important;
}

.btn-modal-save {
  border: none !important;
  background: #9C27B0 !important;
  color: #FFFFFF !important;
  font-family: 'Poppins', sans-serif !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  padding: 10px 28px !important;
  border-radius: 100px !important;
  cursor: pointer !important;
  box-shadow: 0 4px 12px rgba(156, 39, 176, 0.2) !important;
  transition: all 0.2s ease !important;
}

.btn-modal-save:hover {
  background: #8E24AA !important;
  box-shadow: 0 6px 16px rgba(156, 39, 176, 0.3) !important;
}

/* ============================================================
   Statement & Customer Portal UI Utilities
   ============================================================ */
.card-header-title {
  font-family: 'Poppins', sans-serif;
  font-size: 15px;
  font-weight: 700;
  color: #1A0533;
  margin: 0;
}

.input-with-icon-left {
  padding-left: 44px !important;
}

.input-icon-left {
  color: #9C27B0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

/* ============================================================
   Wallet Page Custom Styles
   ============================================================ */

/* Header Toggle Switch & Notification Bell Custom Styling */
.toggle-switch {
  position: relative;
  width: 56px;
  height: 26px;
  background-color: #E0F2FE;
  border: 1px solid #BAE6FD;
  border-radius: 13px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 6px;
  box-sizing: border-box;
  transition: all 0.25s ease;
}

.toggle-switch .toggle-label {
  font-size: 10px;
  font-weight: 700;
  color: #0369A1;
  user-select: none;
  margin-left: 2px;
  transition: all 0.25s ease;
}

.toggle-switch .toggle-knob {
  width: 16px;
  height: 16px;
  background-color: #0F172A;
  border-radius: 50%;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  position: absolute;
  right: 4px;
}

.toggle-switch.off {
  background-color: #F1F5F9;
  border-color: #E2E8F0;
}

.toggle-switch.off .toggle-label {
  color: #64748B;
  margin-left: 20px;
  /* shift text to the right */
}

.toggle-switch.off .toggle-knob {
  background-color: #64748B;
  right: calc(100% - 20px);
  /* slide knob to the left */
}

.notification-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background-color 0.2s;
  color: #212121;
}

.notification-btn:hover {
  background-color: rgba(0, 0, 0, 0.04);
}

.notification-btn svg {
  stroke: currentColor;
}

.notif-dot {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 6px;
  height: 6px;
  background-color: #EF4444;
  border-radius: 50%;
}

/* Premium Wallet Banner Card */
.wallet-card-new {
  border-radius: 20px;
  background: linear-gradient(170deg, #4A148C 6.17%, #6A1B9A 41.23%, #9C27B0 93.83%);
  box-shadow: 0 12px 48px 0 rgba(74, 20, 140, 0.35);
  color: #FFFFFF;
  padding: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px;
  /* border: 1px solid rgba(255, 255, 255, 0.08); */
  font-family: 'Poppins', sans-serif;
  position: relative;
  overflow: hidden;
}

/* Subtle background glow effect for premium feel */
/* .wallet-card-new::after {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0) 70%);
  pointer-events: none;
} */

.wallet-card-left {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.wallet-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.wallet-icon-wrapper {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #FFFFFF;
}

.wallet-brand-name {
  color: rgba(255, 255, 255, 0.60);
  font-family: Poppins;
  font-size: 11px;
  font-style: normal;
  font-weight: 500;
  line-height: 16.5px;
  /* 150% */
  letter-spacing: 0.2px;
}

.balance-container {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.balance-label {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.7);
  font-weight: 400;
}

.balance-value-wrapper {
  display: flex;
  align-items: center;
  gap: 12px;
}

.balance-symbol {
  font-size: 28px;
  font-weight: 600;
  line-height: 1;
}

.balance-dots {
  font-size: 24px;
  letter-spacing: 2px;
  line-height: 1;
  display: inline-block;
  vertical-align: middle;
  color: rgba(255, 255, 255, 0.9);
  user-select: none;
}

.balance-value {
  font-size: 28px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.5px;
}

.btn-toggle-balance {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  width: 36px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #FFFFFF;
  cursor: pointer;
  transition: all 0.2s ease;
  padding: 0;
}

.btn-toggle-balance:hover {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.3);
}

.wallet-card-right {
  display: flex;
  align-items: center;
  gap: 32px;
  flex-wrap: wrap;
}

.wallet-info-col {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.wallet-info-col .info-label {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.50);
  font-family: Poppins;
  font-style: normal;
  line-height: 15.75px;
  font-weight: 400;
}

.wallet-info-col .info-value {
  font-size: 15px;
  font-weight: 600;
  color: #FFFFFF;
}

.wallet-info-col .info-value-wrapper {
  display: flex;
  align-items: center;
  gap: 8px;
}

.wallet-info-col .info-value-wrapper .info-value {
  font-size: 15px;
  font-weight: 600;
  color: #FFFFFF;
}

.btn-copy-info {
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.7);
  cursor: pointer;
  padding: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s, transform 0.1s;
}

.btn-copy-info:hover {
  color: #FFFFFF;
  transform: scale(1.1);
}

.wallet-info-divider {
  width: 1px;
  height: 40px;
  background-color: rgba(255, 255, 255, 0.15);
}

@media (max-width: 768px) {
  .wallet-card-new {
    padding: 20px 24px;
    flex-direction: column;
    align-items: flex-start;
  }

  .wallet-card-right {
    width: 100%;
    justify-content: space-between;
    gap: 16px;
  }

  .wallet-info-divider {
    display: none;
  }

  .wallet-info-col {
    min-width: 45%;
  }
}

/* Horizontal Sub-navigation Tabs Container */
.wallet-tabs-container {
  border-radius: 20px;
  border: 0.8px solid #EDE0F5;
  background: #FFF;
  box-shadow: 0 2px 8px 0 rgba(156, 39, 176, 0.08), 0 1px 3px 0 rgba(0, 0, 0, 0.04);
  padding: 12px 16px;
  display: flex;
  gap: 12px;
  align-items: center;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.wallet-tabs-container::-webkit-scrollbar {
  display: none;
}

.wallet-tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 20px;
  border-radius: 20px;
  font-family: 'Poppins', sans-serif;
  font-size: 13px;
  font-weight: 500;
  color: #707070;
  background-color: transparent;
  border: 1px solid #E8E9EF;
  text-decoration: none;
  white-space: nowrap;
  transition: all 0.22s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
}

.wallet-tab svg {
  stroke: currentColor;
  flex-shrink: 0;
  transition: stroke 0.22s ease;
}

.wallet-tab:hover {
  color: var(--Customer-Portal-600, #9C27B0);
  border-color: var(--Customer-Portal-600, #9C27B0);
  background-color: rgba(156, 39, 176, 0.02);
  transform: translateY(-1px);
}

.wallet-tab.active {
  color: #FFFFFF;
  background-color: var(--Customer-Portal-600, #9C27B0);
  border-color: var(--Customer-Portal-600, #9C27B0);
  box-shadow: 0 4px 12px rgba(156, 39, 176, 0.2);
}

.wallet-tab.active:hover {
  color: #FFFFFF;
  background-color: var(--Customer-Portal-600, #9C27B0);
  border-color: var(--Customer-Portal-600, #9C27B0);
  transform: none;
}

/* Light Purple Repay Action Button inside Table */
.btn-repay {
  font-family: 'Poppins', sans-serif;
  font-size: 12px;
  font-weight: 600;
  color: var(--Customer-Portal-600, #9C27B0);
  background-color: #F3E5F5;
  border: none;
  border-radius: 20px;
  padding: 6px 20px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-repay:hover {
  background-color: #E1BEE7;
  transform: scale(1.03);
}

.btn-repay:active {
  transform: scale(0.97);
}

.font-geist {
  font-family: "Geist Mono";
}

/* ==========================================================================
   Dashboard Page Specific Styles
   ========================================================================== */

/* Welcome Banner */
.welcome-banner {
  border-radius: 5px;
  background: rgba(243, 229, 245, 0.40);
  padding: 15px 20px;
  margin-bottom: 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(156, 39, 176, 0.03);
}

.welcome-title {
  color: var(--Secondary-900, #212121);
  font-feature-settings: 'liga' off, 'clig' off;

  /* Headline 6 */
  font-family: Poppins;
  font-size: 20px;
  font-style: normal;
  font-weight: 500;
  line-height: 24px;
  /* 120% */
  letter-spacing: 0.15px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.welcome-title .sparkle {
  display: inline-block;
  animation: sparkle-float 2.5s ease-in-out infinite;
}

@keyframes sparkle-float {

  0%,
  100% {
    transform: translateY(0) scale(1);
  }

  50% {
    transform: translateY(-4px) scale(1.15);
  }
}

.welcome-subtitle {
  color: var(--Typography-Dark-Secondary, rgba(0, 0, 0, 0.60));
  font-family: Poppins;
  font-size: 12px;
  font-style: normal;
  font-weight: 400;
  line-height: 16px;
  /* 133.333% */
  letter-spacing: 0.132px;
  max-width: 600px;
  line-height: 1.5;
}

.banner-badges {
  margin-top: 2rem;
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.banner-badge {
  border-radius: 10px;
  border: 0.8px solid var(--Customer-Portal-500, #B052C0);
  background: var(--Customer-Portal-50, #F5E9F7);
  padding: 8px 18px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 4px 12px rgba(156, 39, 176, 0.04);
  transition: all 0.25s ease;
  text-decoration: none;
}

.banner-badge:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(156, 39, 176, 0.08);
  border-color: var(--Customer-Portal-600);
}

.badge-label {
  font-family: 'Poppins', sans-serif;
  color: var(--Dark-Primary, #212121);
  font-family: Inter;
  font-size: 10px;
  font-style: normal;
  font-weight: 400;
  line-height: 15px;
  /* 150% */
}

.badge-value {


  /* Caption */
  font-family: Poppins;
  font-size: 14px;
  font-style: normal;
  font-weight: 500;
  line-height: 20px;
  /* 142.857% */
  letter-spacing: 0.154px;
}

.badge-value.text-orange {
  color: var(--Orange-600, #F68819);
}

.badge-value.text-green {
  color: var(--Status-Active, #4CAF50);


}

/* .banner-img {
  flex-shrink: 0;
  max-width: 280px;
  margin-right: 20px;
  position: relative;
  z-index: 1;
} */
/* 
.banner-img img {
  width: 100%;
  position: relative;
  z-index: 2;

} */

@media (max-width: 991.98px) {
  .welcome-banner {
    padding: 24px;
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
  }

  .banner-img {
    align-self: center;
    max-width: 220px;
    margin-right: 0;
  }
}

/* Dashboard Cards Grid */
.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

@media (max-width: 1199.98px) {
  .dashboard-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 767.98px) {
  .dashboard-grid {
    grid-template-columns: 1fr;
  }
}

.db-card {
  background: #FFFFFF;
  border-radius: 20px;
  border: 1px solid #E8E9EF;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.02);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.db-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.06);
}

/* Accent Borders */
.db-card.card-blue {
  border-top: 4px solid #3574EF;
  box-shadow: 0 2px 8px 0 rgba(124, 58, 237, 0.06), 0 1px 3px 0 rgba(0, 0, 0, 0.04);
}

.db-card.card-orange {
  border-top: 4px solid #FF6B00;
}

.db-card.card-teal {
  border-top: 4px solid #009688;
}

.db-card.card-gold {
  border-top: 4px solid #FF8F00;
}

.db-card.card-purple {
  border-top: 4px solid #8E24AA;
}

.db-card.card-green {
  border-top: 4px solid #2E7D32;
}

/* Card Header styles */
.card-header-custom {
  display: flex;
  justify-content: space-between;
  align-items: center;

  border-bottom: 1px solid #EDE9FE;
  padding-bottom: 14px;
}

.header-icon-title {
  display: flex;
  align-items: center;
  gap: 12px;
}

.card-icon-wrapper {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.bg-blue-light {
  background-color: #EBF3FE;
}

.bg-orange-light {
  background-color: #FFF3E0;
}

.bg-teal-light {
  background-color: #E0F2F1;
}

.bg-gold-light {
  background-color: #FFF8E1;
}

.bg-purple-light {
  background-color: #F3E5F5;
}

.bg-green-light {
  background-color: #E8F5E9;
}

.card-title-text {
  color: #1A0D3D;
  /* Caption */
  font-family: Poppins;
  font-size: 14px;
  font-style: normal;
  font-weight: 500;
  line-height: 20px;
  /* 142.857% */
  letter-spacing: 0.154px;
}

/* Badges inside cards */
.status-badge {
  padding: 3px 9px;
  border-radius: 999px;
  /* Label */
  font-family: Poppins;
  font-size: 10px;
  font-style: normal;
  font-weight: 400;
  line-height: 14px;
  letter-spacing: 0.04px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.badge-active-loan {
  background: #FFF7ED;
  color: #EA580C;
}

.dot-orange {
  width: 6px;
  height: 6px;
  background-color: #FF6B00;
  border-radius: 50%;
  display: inline-block;
}

/* Card Body styles */
.card-body-custom {
  display: flex;
  flex-direction: column;
  gap: 16px;
  flex-grow: 1;
}

/* Bank Account Container (Blue Card) */
.bank-details-container {
  padding: 5px 10px;
  border-radius: 12px;
  border: 0.8px solid #DBEAFE;
  background: #EFF6FF;
}

.bank-name {
  color: var(--Dark-Primary, #212121);

  /* Label */
  font-family: Poppins;
  font-size: 10px;
  font-style: normal;
  font-weight: 400;
  line-height: 14px;
  /* 140% */
  letter-spacing: 0.04px;
  margin-bottom: 8px;
}

.acc-num-label {
  color: var(--Blue-600, #1E88E5);

  /* Label */
  font-family: Poppins;
  font-size: 10px;
  font-style: normal;
  font-weight: 400;
  line-height: 14px;
  /* 140% */
  letter-spacing: 0.04px;
  margin-bottom: 2px;
}

.acc-num-value {
  color: #1A0D3D;

  /* Caption */
  font-family: Poppins;
  font-size: 14px;
  font-style: normal;
  font-weight: 500;
  line-height: 20px;
  /* 142.857% */
  letter-spacing: 0.154px;

}

/* Key-Value Details Rows */
.details-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.details-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: 'Poppins', sans-serif;
}

.row-label {
  color: var(--Dark-Secondary, #666);
  font-family: Poppins;
  font-size: 12px;
  font-style: normal;
  font-weight: 400;
  line-height: 20px;
  /* 166.667% */
  letter-spacing: 0.132px;
}

.row-value {
  color: var(--Dark-Primary, #212121);
  text-align: right;
  font-family: Poppins;
  font-size: 12px;
  font-style: normal;
  font-weight: 500;
  line-height: 20px;
  /* 166.667% */
  letter-spacing: 0.132px;
}

/* Purple Available Balance Box */
.balance-container {

  border-radius: 12px;
  padding: 5px 10px;

  margin-top: 4px;
}

.balance-label {
  color: rgba(255, 255, 255, 0.55);
  font-family: Poppins;
  font-size: 12px;
  font-style: normal;
  font-weight: 400;
  line-height: 18px;
  /* 150% */
  margin-bottom: 2px;
}

.balance-dots {
  font-size: 18px;
  font-weight: 700;
  color: #ffffff;
  line-height: 1;
}

.btn-view-balance {
  background-color: #9C27B0;
  border: none;
  border-radius: 20px;
  color: var(--Typography-Light-Primary, #FFF);
  font-family: Poppins;
  font-size: 10px;
  font-style: normal;
  font-weight: 400;
  line-height: 14px;
  /* 140% */
  letter-spacing: 0.04px;
  padding: 6px 14px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-view-balance:hover {
  background-color: #7B1FA2;
  transform: scale(1.05);
}

.btn-view-balance:active {
  transform: scale(0.95);
}

/* 2x2 limits grid inside card */
.limits-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.limit-box {

  border-radius: 11px;
  border: 0.8px solid #FFCE9D;
  background: #FFF6ED;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  transition: all 0.2s ease;
}

.limit-box:hover {
  transform: translateY(-2px);
}

.limit-box.box-teal-bg {
  border: 0.8px solid #EBFDFF;
  background: #EBFDFF;
}

.limit-label {
  color: var(--Dark-Secondary, #666);
  font-family: Poppins;
  font-size: 10px;
  font-style: normal;
  font-weight: 500;
  line-height: 14.25px;
  /* 142.5% */
  letter-spacing: 0.38px;
  text-transform: uppercase;
}

.limit-value {
  /* Caption */
  font-family: Poppins;
  font-size: 14px;
  font-style: normal;
  font-weight: 500;
  line-height: 20px;
  /* 142.857% */
  letter-spacing: 0.154px;
}

.text-blue-value {
  color: #1E88E5 !important;
}

.text-orange-value {
  color: var(--Orange-600, #F68819);
}

.text-green-value {
  color: #06D88B;
}

.text-purple-value {
  color: #7C3AED !important;
}

/* Utilisation Section with Progress bar */
.utilisation-section {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 4px;
}

.utilisation-text {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: 'Poppins', sans-serif;
  font-size: 12px;
}

.utilisation-label {
  color: #8E95A5;
}

.utilisation-value {
  font-weight: 700;
  color: #EA580C
}

.utilisation-progress {
  height: 8px;
  background-color: #F5F6FA;
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid #ECEFF1;
}

.progress-bar-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #EA580C 0%, #FB923C 100%);
}

/* Saving Hero Container */
.saving-hero-container {
  border-radius: 14px;
  border: 0.8px solid var(--Orange-50, #FEF3E8);
  background: var(--Orange-50, #FEF3E8);
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 16px;
}

.saving-huge-num {
  color: var(--Orange-600, #F68819);
  font-family: Poppins;
  font-size: 52px;
  font-style: normal;
  font-weight: 800;
  line-height: 52px;
  /* 100% */
  letter-spacing: -2.08px;
  color: #FF8F00;
  line-height: 1;
}

.saving-num-label {
  font-family: 'Poppins', sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: #FF8F00;
  line-height: 1.4;
}

/* Purple & Green Statistics Containers */
.stats-purple-container,
.stats-green-container {
  border-radius: 14px;
  padding: 16px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.stats-purple-container {
  border: 0.8px solid #DDD6FE;
  background: linear-gradient(135deg, #F5F0FF 0%, #EDE9FE 100%);
}

.stats-green-container {

  border: 0.8px solid rgba(22, 163, 74, 0.14);
  background: linear-gradient(135deg, #DCFCE7 0%, #BBF7D0 100%);
}

.stats-purple-left,
.stats-green-left {
  display: flex;
  flex-direction: column;
}

.stats-huge-num {
  font-family: 'Poppins', sans-serif;
  font-size: 44px;
  font-weight: 800;
  line-height: 1;
  margin-bottom: 4px;
}

.stats-huge-num.text-purple-dark {
  color: #8E24AA;
}

.stats-huge-num.text-green-dark {
  color: #2E7D32;
}

.stats-num-sub {
  font-family: 'Poppins', sans-serif;
  font-size: 10px;
  font-weight: 600;
}

.stats-num-sub.text-purple-dark {
  color: #8E24AA;
}

.stats-num-sub.text-green-dark {
  color: #2E7D32;
}

.stats-purple-right,
.stats-green-right {
  display: flex;
  flex-direction: column;
  text-align: right;
}

.stats-right-label {
  font-family: 'Poppins', sans-serif;
  font-size: 11px;
  color: #8E95A5;
  margin-bottom: 4px;
}

.stats-right-val {
  font-family: 'Poppins', sans-serif;
  font-size: 24px;
  font-weight: 700;
  color: #1C1D21;
}

/* General Status Banner Inside Cards */
.status-banner {
  border-radius: 12px;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.status-banner.banner-green {
  background-color: #E8F5E9;
  border: 1px solid #C8E6C9;
  justify-content: space-between;
}

.status-banner.banner-green-light {
  border: 0.8px solid rgba(22, 163, 74, 0.13);
  background: #DCFCE7;
}

.status-banner.banner-yellow {
  background-color: #FFFDE7;
  border: 1px solid #FFF59D;
}

.status-icon {
  flex-shrink: 0;
}

.banner-left {
  display: flex;
  align-items: center;
  gap: 8px;
}

.banner-status-text {
  font-family: 'Poppins', sans-serif;
  font-size: 12px;
  font-weight: 600;
}

.text-green-dark {
  color: #2E7D32;
}

.text-yellow-dark {
  color: #92400E;
}

.green-dot {
  width: 8px;
  height: 8px;
  background-color: #4CAF50;
  border-radius: 50%;
  display: inline-block;
  animation: pulse-green 2s infinite;
}

@keyframes pulse-green {
  0% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(76, 175, 80, 0.7);
  }

  70% {
    transform: scale(1);
    box-shadow: 0 0 0 6px rgba(76, 175, 80, 0);
  }

  100% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(76, 175, 80, 0);
  }
}

/* Card Footer styles */
.card-footer-custom {
  display: flex;
  gap: 12px;
  border-top: 0.8px solid #EDE9FE;
  padding-top: 16px;
  margin-top: auto;
}

/* Buttons in Footer */
.btn-outline-blue {
  border-radius: 30px;
  border: 1px solid var(--App-CRM-500, #39F);
  color: #212121;
  background: transparent;



  border-radius: 24px;
  padding: 10px 16px;

  color: var(--Typography-Dark-Primary, rgba(0, 0, 0, 0.87));
  font-feature-settings: 'liga' off, 'clig' off;

  /* Button */
  font-family: Poppins;
  font-size: 12px;
  font-style: normal;
  font-weight: 400;
  line-height: 16px;
  /* 133.333% */
  letter-spacing: 0.25px;


  text-decoration: none;
  flex: 1;
  text-align: center;
  transition: all 0.25s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-outline-blue:hover {
  background-color: #EBF3FE;
  transform: translateY(-1px);
  color: #3A86F0;
}

.btn-filled-blue {
  background-color: #3A86F0;
  border: none;
  border-radius: 24px;

  color: var(--Typography-Light-Primary, #FFF);
  font-feature-settings: 'liga' off, 'clig' off;

  /* Button */
  font-family: Poppins;
  font-size: 12px;
  font-style: normal;
  font-weight: 400;
  line-height: 16px;
  /* 133.333% */
  letter-spacing: 0.25px;
  padding: 10px 16px;
  text-decoration: none;
  flex: 1;
  text-align: center;
  transition: all 0.25s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(58, 134, 240, 0.2);
}

.btn-filled-blue:hover {
  background-color: #2A72DB;
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(58, 134, 240, 0.3);
  color: #FFFFFF;
}

/* Orange Button */
.btn-filled-orange {
  border-radius: 30px;
  background: var(--App-LMS-700, #F57C00);
  color: #FFFFFF;
  border: none;
  padding: 12px 20px;

  color: var(--Typography-Light-Primary, #FFF);
  font-feature-settings: 'liga' off, 'clig' off;

  /* Button */
  font-family: Poppins;
  font-size: 12px;
  font-style: normal;
  font-weight: 400;
  line-height: 16px;
  letter-spacing: 0.25px;
  text-decoration: none;
  transition: all 0.25s ease;
  box-shadow: 0 4px 12px rgba(255, 107, 0, 0.2);
}

.btn-filled-orange:hover {
  background-color: #E05E00;
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(255, 107, 0, 0.3);
  color: #FFFFFF;
}

/* Teal Button */
.btn-filled-teal {
  border-radius: 30px;
  background: var(--App-Support-700, #0097A7);
  border: none;
  color: var(--Typography-Light-Primary, #FFF);
  font-feature-settings: 'liga' off, 'clig' off;
  font-family: Poppins;
  font-size: 12px;
  font-style: normal;
  font-weight: 400;
  line-height: 16px;
  letter-spacing: 0.25px;
  padding: 12px 20px;
  text-decoration: none;
  transition: all 0.25s ease;
  box-shadow: 0 4px 12px rgba(0, 150, 136, 0.2);
}

.btn-filled-teal:hover {
  background-color: #00796B;
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(0, 150, 136, 0.3);
  color: #FFFFFF;
}

/* Gold Button */
.btn-filled-gold {
  border-radius: 30px;
  background: var(--Orange-600, #F68819);
  color: #FFFFFF;
  border: none;
  font-family: 'Poppins', sans-serif;

  color: var(--Typography-Light-Primary, #FFF);
  font-feature-settings: 'liga' off, 'clig' off;

  /* Button */
  font-size: 12px;
  font-style: normal;
  font-weight: 400;
  line-height: 16px;
  /* 133.333% */
  letter-spacing: 0.25px;
  padding: 12px 20px;
  text-decoration: none;
  transition: all 0.25s ease;
  box-shadow: 0 4px 12px rgba(255, 143, 0, 0.2);
}

.btn-filled-gold:hover {
  background-color: #E68000;
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(255, 143, 0, 0.3);
  color: #FFFFFF;
}

/* Purple Button */
.btn-filled-purple {

  border-radius: 30px;
  background: #7C3AED;
  color: #FFFFFF;
  border: none;


  color: var(--Typography-Light-Primary, #FFF);
  font-feature-settings: 'liga' off, 'clig' off;

  /* Button */
  font-family: Poppins;
  font-size: 12px;
  font-style: normal;
  font-weight: 400;
  line-height: 16px;
  /* 133.333% */
  letter-spacing: 0.25px;
  padding: 12px 20px;
  text-decoration: none;
  transition: all 0.25s ease;
  box-shadow: 0 4px 12px rgba(142, 36, 170, 0.2);
}

.btn-filled-purple:hover {
  background-color: #7B1FA2;
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(142, 36, 170, 0.3);
  color: #FFFFFF;
}

/* Green Button */
.btn-filled-green {
  background-color: #2E7D32;
  border-radius: 30px;
  background: #16A34A;
  border: none;
  color: var(--Typography-Light-Primary, #FFF);
  font-feature-settings: 'liga' off, 'clig' off;

  /* Button */
  font-family: Poppins;
  font-size: 12px;
  font-style: normal;
  font-weight: 400;
  line-height: 16px;
  /* 133.333% */
  letter-spacing: 0.25px;
  padding: 12px 20px;
  text-decoration: none;
  transition: all 0.25s ease;
  box-shadow: 0 4px 12px rgba(46, 125, 50, 0.2);
}

.btn-filled-green:hover {
  background-color: #1B5E20;
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(46, 125, 50, 0.3);
  color: #FFFFFF;
}

.dashboard-sideimg {
  position: absolute;
  right: 0;
  min-width: 700px;
  z-index: 0;
}

/* ============================================================
   Upload Invoice Form and File Dropzone Styles
   ============================================================ */
.invoice-upload-zone {
  border: 1.5px dashed #EDE0F5;
  background: rgba(156, 39, 176, 0.01);
  border-radius: 12px;
  padding: 20px 24px;
  text-align: left;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 16px;
  position: relative;
  overflow: hidden;
}

.invoice-upload-zone:hover {
  border-color: #9C27B0;
  background: rgba(156, 39, 176, 0.03);
}

.invoice-upload-zone.dragover {
  border-color: #7B1FA2;
  background: rgba(156, 39, 176, 0.06);
  box-shadow: 0 0 0 4px rgba(156, 39, 176, 0.05);
}

.invoice-upload-zone.file-selected {
  border: 1.5px solid #C8E6C9;
  background: rgba(76, 175, 80, 0.02);
}

.invoice-upload-zone.file-selected:hover {
  border-color: #4CAF50;
  background: rgba(76, 175, 80, 0.04);
}

.upload-zone-content {
  display: flex;
  align-items: center;
  gap: 16px;
  width: 100%;
}

.upload-icon-wrapper {
  width: 44px;
  height: 44px;
  background: #F3E5F5;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.2s ease;
}

.invoice-upload-zone:hover .upload-icon-wrapper {
  background: #E1BEE7;
}

.upload-zone-text {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.upload-title {
  font-family: 'Poppins', sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: #212121;
}

.upload-subtitle {
  font-family: 'Poppins', sans-serif;
  font-size: 11.5px;
  color: rgba(26, 5, 51, 0.45);
}

.btn-remove-file {
  background: none;
  border: none;
  color: #D32F2F;
  cursor: pointer;
  padding: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  transition: all 0.2s ease;
  z-index: 2;
}

.btn-remove-file:hover {
  background: rgba(211, 47, 47, 0.08);
  color: #C62828;
}

/* ============================================================
   Large Modal & Inner Cards
   ============================================================ */
.modal-card-large {
  max-width: 1020px !important;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
}

.modal-card-large form {
  overflow-y: auto;
  padding-right: 4px;
}

.modal-inner-card {
  background: #FFFFFF;
  border: 1px solid #EDE0F5;
  border-radius: 12px;
  padding: 20px;
  height: 100%;
}

.modal-inner-card-title {
  font-family: 'Poppins', sans-serif;
  font-size: 14.5px;
  font-weight: 700;
  color: #1A0533;
  margin-bottom: 16px;
}

/* ============================================================
   Investment Card Styles
   ============================================================ */
.investment-card {
  transition: all 0.25s ease-in-out !important;
}

.investment-card:hover {
  border-color: #9C27B0 !important;
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(156, 39, 176, 0.08) !important;
}

.investment-card:hover .investment-arrow-btn {
  background: linear-gradient(135deg, #9C27B0 0%, #7B1FA2 100%) !important;
  box-shadow: 0 4px 12px rgba(156, 39, 176, 0.3) !important;
}

/* ============================================================
   Profile Dropdown Styles
   ============================================================ */
.profile-dropdown-custom a {
  transition: all 0.2s ease-in-out;
}

.profile-dropdown-custom a:hover {
  border-color: #9C27B0 !important;
  color: #9C27B0 !important;
  background: rgba(156, 39, 176, 0.02) !important;
  transform: translateY(-1px);
}

/* ============================================================
   Setup Rules Page Specific Styles
   ============================================================ */

/* Page Header Custom Subtitle */
.setup-rules-subtitle {
  color: #9C27B0;

  font-family: 'Poppins', sans-serif;

  /* Button */
  font-size: 12px;
  font-style: normal;
  font-weight: 400;
  line-height: 16px;
  /* 133.333% */
  letter-spacing: 0.25px;
  margin-bottom: 24px;
  cursor: pointer;
  display: inline-block;
  transition: opacity 0.2s ease;
}

.setup-rules-subtitle:hover {
  opacity: 0.8;
  text-decoration: underline;
}

/* Horizontal Scrollable Tabs Container */
.tabs-outer-container {
  border-radius: 20px;
  border: 0.8px solid #EDE0F5;
  background: #FFF;
  box-shadow: 0 2px 8px 0 rgba(156, 39, 176, 0.08), 0 1px 3px 0 rgba(0, 0, 0, 0.04);
  padding: 10px 12px;
  /* margin-bottom: 40px; */

}

.scrollable-tabs {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  white-space: nowrap;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  /* Firefox */
  -ms-overflow-style: none;
  /* IE and Edge */
  padding: 2px 0;
}

.scrollable-tabs::-webkit-scrollbar {
  display: none;
  /* Chrome, Safari, Opera */
}

/* Tab Pills */
.tab-pill {
  display: inline-block;
  padding: 10px 20px;
  font-family: 'Poppins', sans-serif;
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  border-radius: 30px;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.tab-pill.active {
  border: 0.8px solid rgba(0, 0, 0, 0.00);
  background: linear-gradient(135deg, #9C27B0 0%, #7B1FA2 100%);
  box-shadow: 0 4px 16px 0 rgba(156, 39, 176, 0.35);
  color: #FFFFFF;
  font-weight: 600;
}

.tab-pill:not(.active) {
  background: transparent;
  color: #5F6368;
  border: 1px solid #E0E0E0;
}

.tab-pill:not(.active):hover {
  background: #F5F0FA;
  border-color: #9C27B0;
  color: #9C27B0;
}

/* Empty State / Centered Content Card */
.empty-state-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  text-align: center;
  max-width: 500px;
  margin: 40px auto 0;
}

.empty-state-img {
  width: 140px;
  height: 140px;
  object-fit: cover;
  margin-bottom: 24px;
  border-radius: 24px;
  box-shadow: 0 8px 24px rgba(242, 133, 28, 0.15);
}

.empty-state-title {
  color: var(--Secondary-900, #212121);
  text-align: center;

  /* Subtitle 1 */
  font-family: Poppins;
  font-size: 16px;
  font-style: normal;
  font-weight: 500;
  line-height: 24px;
  /* 150% */
  letter-spacing: 0.024px;
  margin-bottom: 6px;
}

.empty-state-subtitle {

  color: var(--Dark-Secondary, #666);
  font-feature-settings: 'liga' off, 'clig' off;

  /* Button */
  font-family: Poppins;
  font-size: 12px;
  font-style: normal;
  font-weight: 400;
  line-height: 16px;
  /* 133.333% */
  letter-spacing: 0.25px;
  margin-bottom: 24px;
}

/* Custom Action Button (Add Department) */
.btn-add-department {
  border-radius: 16px;
  background: linear-gradient(135deg, #9C27B0 0%, #7B1FA2 100%);
  box-shadow: 0 5px 20px 0 rgba(156, 39, 176, 0.40);
  color: #FFFFFF;
  border: none;
  padding: 10px 20px;
  font-family: 'Poppins', sans-serif;
  font-size: 12px;
  font-style: normal;
  font-weight: 700;
  line-height: 22.5px;
  /* 187.5% */
  letter-spacing: 0.15px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none;
  cursor: pointer;
}

.btn-add-department:hover {
  background: #7B1FA2;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(156, 39, 176, 0.4);
  color: #FFFFFF;
}

.btn-add-department:active {
  transform: translateY(0);
}

/* Sidebar Active Submenu Pill Customization (Scoped to Setup Rules Page) */
body.hrms-setup-rules-page .sidebar-menu .submenu-item {
  border-radius: 30px !important;
  margin-left: 15px;
  margin-right: 15px;
  padding-left: 40px;
}

/* ============================================================
   Department, Designation and Category Modal Styles
   ============================================================ */
.dept-modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(15, 23, 42, 0.45);
  z-index: 1200;
  display: none;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(4px);
}

.dept-modal-card {
  background: #FFFFFF;
  width: 90%;
  max-width: 850px;
  border-radius: 24px;
  padding: 32px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  max-height: 90vh;
  overflow-y: auto;
  border: 1px solid #EDE0F5;
  font-family: 'Poppins', sans-serif;
}

.dept-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}

.dept-modal-title {
  color: #1A0533;
  font-family: Poppins;
  font-size: 14px;
  font-style: normal;
  font-weight: 700;
  line-height: 21px;
  /* 150% */
  margin: 0;
}

.designation-list-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 24px 0 16px;
  font-size: 13px;
  font-weight: 600;
  color: #1A0533;
}

.designation-card {
  background: #F9F8FC;
  border: 1px solid #EDE0F5;
  border-radius: 16px;
  padding: 20px;
  margin-bottom: 16px;
  position: relative;
  transition: all 0.2s ease;
}

.designation-row {
  display: flex;
  gap: 16px;
  align-items: center;
}

.designation-input-wrapper {
  flex: 1;
}

.designation-actions {
  display: flex;
  gap: 16px;
  align-items: center;
}

.action-btn {
  background: none;
  border: none;
  font-size: 12px;
  font-weight: 400;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 4px 8px;
  border-radius: 6px;
  transition: all 0.2s ease;
}

.action-delete {
  color: #F44336;
}

.action-delete:hover {
  background: rgba(255, 82, 82, 0.05);
}

.action-add-category {
  color: #F68819;
}

.action-add-category:hover {
  background: rgba(156, 39, 176, 0.05);
}

.action-toggle-chevron {
  color: #1A0533;
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
}

.category-badge {
  display: inline-flex;
  align-items: center;
  background: #E8F5E9;
  color: #2E7D32;
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 600;
  margin-top: 12px;
  cursor: pointer;
  border: none;
}

.categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
  margin-top: 20px;
  border-top: 1px dashed #EDE0F5;
  padding-top: 20px;
}

.category-item {
  background: #FFFFFF;
  border: 1px solid #EDE0F5;
  border-radius: 12px;
  padding: 16px;
  box-shadow: 0 2px 6px rgba(156, 39, 176, 0.02);
}

.category-item-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.category-label {
  font-size: 11px;
  font-weight: 500;
  color: #666;
}

/* ============================================================
   Setup List and Row Cards Styling
   ============================================================ */
.setup-list-container {
  margin-top: 24px;
}

.setup-row-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border: 1px solid #EDE0F5;
  border-radius: 12px;
  padding: 16px 24px;
  margin-bottom: 16px;
  background: #FFFFFF;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 2px 6px rgba(156, 39, 176, 0.02);
}

.setup-row-card:hover {
  border-color: #9C27B0;
  box-shadow: 0 6px 16px rgba(156, 39, 176, 0.08);
  transform: translateY(-1px);
}

.setup-card-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.setup-number-badge {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #F3E5F5;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 600;
  color: #9C27B0;
}

.setup-dept-name {
  font-family: 'Poppins', sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: #212121;
  min-width: 120px;
}

.setup-badge-designation {
  background: #E3F2FD;
  color: #1E88E5;
  padding: 4px 16px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 400;
  font-family: 'Poppins', sans-serif;
}

.setup-badge-category {
  background: #FFF3E0;
  color: #FB8C00;
  padding: 4px 16px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 400;
  font-family: 'Poppins', sans-serif;
}

.setup-card-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.setup-action-icon-btn {
  background: none;
  border: none;
  color: #9097A6;
  cursor: pointer;
  padding: 6px;
  display: flex;
  align-items: center;
  transition: color 0.2s ease;
}

.setup-action-icon-btn:hover {
  color: #212121;
}

.setup-action-icon-btn.delete-btn:hover {
  color: #F44336;
}

.setup-btn-view {
  border: 1.5px solid #9C27B0;
  color: #9C27B0;
  background: transparent;
  border-radius: 20px;
  padding: 6px 20px;
  font-size: 12px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  font-family: 'Poppins', sans-serif;
}

.setup-btn-view:hover {
  background: #9C27B0;
  color: #FFFFFF;
  box-shadow: 0 4px 12px rgba(156, 39, 176, 0.25);
}

/* ============================================================
   Custom Table Styling (e.g., Fixed Salary Formula page)
   ============================================================ */
.custom-table-wrapper {
  background: #FFFFFF;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid #E8E9EF;
}

.custom-rules-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 0 !important;
}

.custom-rules-table th {
  background-color: #F1F3F5;
  color: #212121;
  font-size: 13px;
  font-weight: 500;
  padding: 14px 20px;
  border: none;
  font-family: 'Poppins', sans-serif;
}

.custom-rules-table td {
  padding: 16px 20px;
  font-size: 13px;
  color: #666;
  border-bottom: 1px solid #E8E9EF;
  border-top: none;
  vertical-align: middle;
  font-family: 'Poppins', sans-serif;
}

.custom-rules-table tr:last-child td {
  border-bottom: none;
}

.table-action-pill {
  background: #F3E5F5;
  color: #9C27B0;
  padding: 4px 16px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 600;
  text-decoration: none;
  display: inline-block;
  transition: all 0.2s ease;
}

.table-action-pill:hover {
  background: #9C27B0;
  color: #FFFFFF;
}

/* ============================================================
   Custom Toggle Switch (Add Formula Modal)
   ============================================================ */
.switch-custom {
  position: relative;
  display: inline-block;
  width: 36px;
  height: 20px;
  margin: 0;
}

.switch-custom input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider-custom {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #E0E0E0;
  transition: .3s;
  border-radius: 20px;
}

.slider-custom:before {
  position: absolute;
  content: "";
  height: 14px;
  width: 14px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: .3s;
  border-radius: 50%;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.switch-custom input:checked+.slider-custom {
  background-color: #9C27B0;
}

.switch-custom input:checked+.slider-custom:before {
  transform: translateX(16px);
}

/* ============================================================
   Salary Setup Page (Sub-tabs and Two-Column Layout)
   ============================================================ */
.sub-tabs-row {
  display: flex;
  gap: 24px;
  border-bottom: 1px solid #EDE0F5;
  padding-bottom: 0;
  margin-bottom: 24px;
}

.sub-tab-link {
  font-family: 'Poppins', sans-serif;
  font-size: 13px;
  font-weight: 500;
  color: #9097A6;
  text-decoration: none;
  padding-bottom: 12px;
  position: relative;
  transition: color 0.2s ease;
}

.sub-tab-link:hover {
  color: #212121;
}

.sub-tab-link.active {
  color: #212121;
  font-weight: 600;
}

.sub-tab-link.active::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  height: 3px;
  background-color: var(--Typography-Dark-Primary, rgba(0, 0, 0, 0.87));

  border-radius: 2px 2px 0 0;
}

.formula-sidebar-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s ease;
  margin-bottom: 8px;
  font-family: 'Poppins', sans-serif;
  font-size: 13px;
  color: #666;
  border: 1px solid transparent;
}

.formula-sidebar-item:hover {
  background: #F9F8FC;
}

.formula-sidebar-item.active {
  background: #F3E5F5;
  border-color: #9C27B0;
  color: #9C27B0;
  font-weight: 600;
}

.formula-sidebar-badge {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 1px solid #9C27B0;
  color: #9C27B0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 600;
}

.badge-dot-blue {
  background: #E3F2FD;
  color: #1E88E5;
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: 'Poppins', sans-serif;
}

.badge-dot-blue::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: #1E88E5;
  display: inline-block;
}

.badge-dot-green {
  background: #E8F5E9;
  color: #2E7D32;
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: 'Poppins', sans-serif;
}

.badge-dot-green::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: #2E7D32;
  display: inline-block;
}

.btn-salary-outline {
  border: 1.5px solid #9C27B0;
  color: #9C27B0;
  background: transparent;
  border-radius: 20px;
  padding: 8px 24px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: 'Poppins', sans-serif;
}

.btn-salary-outline:hover {
  background: #F3E5F5;
}

.btn-salary-filled {
  background: #9C27B0;
  color: #FFFFFF;
  border: none;
  border-radius: 20px;
  padding: 8px 24px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: 'Poppins', sans-serif;
  box-shadow: 0 4px 12px rgba(156, 39, 176, 0.15);
}

.btn-salary-filled:hover {
  background: #7B1FA2;
  box-shadow: 0 6px 16px rgba(156, 39, 176, 0.25);
}

.table-action-pill-salary {
  background: #F3E5F5;
  color: #9C27B0;
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
  text-decoration: none;
  display: inline-block;
  transition: all 0.2s ease;
  font-family: 'Poppins', sans-serif;
}

.table-action-pill-salary:hover {
  background: #9C27B0;
  color: #FFFFFF;
}

/* ============================================================
   Set Structure Modal Card and Grid Layouts
   ============================================================ */
.structure-card {
  border: 1px solid #EDE0F5;
  border-radius: 12px;
  padding: 20px;
  background: #F9F8FC;
  margin-bottom: 20px;
}

.structure-card-title {
  font-family: 'Poppins', sans-serif;
  font-size: 11px;
  font-weight: 600;
  color: #1A0533;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 16px;
}

.basic-details-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 16px 20px;
  background: #FFF;
  border-radius: 12px;
  padding: 20px;
  border: 1.5px solid #EDE0F5;
}

.monthly-details-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 16px 20px;
  background: #FFF;
  border-radius: 12px;
  padding: 20px;
  border: 1.5px solid #EDE0F5;
}

/* Company Switcher Styling */
.banner-company {
  position: relative;
  width: 100%;
  max-width: 350px;
}

.company-select-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 12px 16px;
  border: 1px solid #E0E0E8;
  border-radius: 8px;
  background: #FFFFFF;
  color: #9B9BA5;
  font-family: 'Plus Jakarta Sans', Poppins, sans-serif;
  font-size: 14px;
  font-weight: 400;
  cursor: pointer;
  transition: all 0.2s ease;
  width: 100%;
  box-sizing: border-box;
}

.company-select-trigger:hover {
  border-color: #D0D0D8;
  background: #FAFAF8;
}

.company-select-trigger:focus {
  outline: none;
  border-color: #9C27B0;
}

.company-select-value {
  flex: 1;
  text-align: left;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.company-select-chevron {
  flex-shrink: 0;
  transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  color: #9B9BA5;
  width: 16px;
  height: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.company-select-trigger[aria-expanded="true"] .company-select-chevron {
  transform: rotate(180deg);
}

.company-select-menu {
  position: fixed;
  top: auto;
  left: auto;
  right: auto;
  list-style: none;
  padding: 12px 0;
  border: 1px solid #E0E0E8;
  border-radius: 8px;
  background: #FFFFFF;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
  display: none;
  z-index: 99999;
  min-width: 280px;
  max-height: 400px;
  overflow-y: auto;
}

.company-select-menu li {
  padding: 14px 16px;
  color: #424252;
  font-family: 'Plus Jakarta Sans', Poppins, sans-serif;
  font-size: 14px;
  font-weight: 400;
  cursor: pointer;
  transition: all 0.15s ease;
  border-bottom: 1px solid #F0F0F5;
  min-height: 44px;
  display: flex;
  align-items: center;
  white-space: nowrap;
}

.company-select-menu li:last-child {
  border-bottom: none;
}

.company-select-menu li:hover {
  background: #F5F5F8;
  color: #1A0533;
}

.company-select-menu li.selected {
  color: #9C27B0;
  font-weight: 600;
  background: #FBF0FD;
}

.company-select-menu li.selected::before {
  content: "";
  margin-right: 0;
}


.otp-digit-inputs {
  gap: 8px;                    /* ✅ Changed from 12px */
  justify-content: center;
  margin: 24px 0;
}

.otp-digit-inputs input {
  width: 50px;                 /* ✅ Changed from 44px */
  height: 50px;                /* ✅ Changed from 44px */
  border-radius: 12px;
  border: 2px solid #EDE0F5;   /* ✅ Changed from 1px */
  font-family: Poppins;
  font-size: 20px;             /* ✅ Changed from 18px */
  font-weight: 700;
  text-align: center;
  transition: all 0.3s ease;
}

.otp-digit-inputs input:focus {
  border-color: #9C27B0;
  box-shadow: 0 0 0 3px rgba(156, 39, 176, 0.15);
  outline: none;
}
.otp-digit-inputs {
  display: flex;
  gap: 8px;                    /* ✅ Changed from 18px/12px */
  justify-content: center;     /* ✅ Changed from space-between */
  margin: 24px 0;
}

.otp-digit-inputs input {
  width: 60px;                 /* ✅ Changed from 50px */
  height: 60px;                /* ✅ Changed from 54px */
  text-align: center;
  font-size: 24px;             /* ✅ Changed from 20px */
  font-weight: 700;
  border-radius: 12px;
  flex-shrink: 0;
  min-width: 0;
  border: 2px solid #EDE0F5;   /* ✅ NEW - Added border */
  transition: all 0.3s ease;   /* ✅ NEW - Added transition */
}

.otp-digit-inputs input:focus {
  border-color: #9C27B0;       /* ✅ NEW - Purple focus */
  box-shadow: 0 0 0 3px rgba(156, 39, 176, 0.15);
  outline: none;
}


/* ==========================================================================
   USER MANAGEMENT (UM-1)
   All User Listing · All Approver Listing · Approver Matrix
   Figma: ERP-Design › node 1602-91134

   SCOPING — read this before editing.
   Every rule in this section is prefixed with [class*="s-um1-"], which matches
   the body class each UM-1 page carries:

       body.s-um1-users        UM-1/All-user-listing.html
       body.s-um1-approvers    UM-1/All-approver-listing.html
       body.s-um1-approver     UM-1/Approver-matrix.html

   The prefix is not decoration. This section restyles bare `table`, `thead th`
   and `tbody td`, and it redefines .avatar, .header-right and .table-card,
   all three of which are already defined earlier in this file with different
   values. Without the scope those would leak onto every other page using this
   stylesheet. Keep the prefix on anything you add here.

   No JavaScript. Interactions are CSS-driven:
     · modals       → :target  (open via #add-user / #edit-roles, close via #)
     · profile pop  → :target  (open via #profile, close via the scrim behind)
     · status pill  → a pair of hidden radios per row
     · status menu  → opens on hover / focus-within of the status cell
     · role ticks   → native checkboxes
   ========================================================================== */

/* local palette — declared on the scope rather than :root so it cannot leak */
[class*="s-um1-"]{
  --purple:        #9C27B0;
  --purple-dark:   #8A1F9C;
  --purple-tint:   #F3E3FA;
  --purple-faint:  #FBF4FD;
  --purple-soft:   #D9A4E2;   /* disabled solid button */
  --magenta:       #C41FC4;   /* modal section headings, Choose File */
  --magenta-tint:  #F7DEF9;
  --ink:           #1A0533;
  --muted:         #6B6B77;
  --placeholder:   #9A94A5;
  --line:          #E9E4EF;
  --table-head:    #F4F4F6;
  --table-head-hv: #E7E7EC;   /* column head on hover */
  --field-border:  #E6E0EC;
  --green:         #12A150;
  --green-tint:    #E9F9EF;
  --red:           #E5484D;
  --red-tint:      #FDEBEB;
  --blue:          #2F6FED;

  --header-h: 68px;
}

body[class*="s-um1-"]{
  margin:0;
  font-family:'Poppins',system-ui,-apple-system,'Segoe UI',sans-serif;
  color:var(--ink);
  background:#fff;
  -webkit-font-smoothing:antialiased;
  min-height:100vh;
  overflow-x:visible;          /* undo the global body{overflow-x:hidden} */
}
/* the global h1–h6 reset above forces color:var(--text-primary); these screens
   run on --ink, so headings have to take it back */
[class*="s-um1-"] h1,[class*="s-um1-"] h2,
[class*="s-um1-"] h3,[class*="s-um1-"] h4,
[class*="s-um1-"] h5,[class*="s-um1-"] h6{color:var(--ink)}
[class*="s-um1-"] button{font-family:inherit}
[class*="s-um1-"] a{text-decoration:none;color:inherit}

/* ----------------------------------------------------------------- header */
[class*="s-um1-"] .header{
  height:var(--header-h);flex:0 0 var(--header-h);
  display:flex;align-items:center;gap:20px;
  padding:0 28px;
  border-bottom:1px solid var(--line);
  background:#fff;
}
[class*="s-um1-"] .logo{height:38px;width:38px;flex:0 0 auto}
[class*="s-um1-"] .header-right{margin-left:auto;display:flex;align-items:center;gap:18px}

[class*="s-um1-"] .icon-btn{
  display:inline-grid;place-items:center;
  background:none;border:0;padding:4px;cursor:pointer;
  color:var(--ink);line-height:0;border-radius:8px;
}
[class*="s-um1-"] .icon-btn:hover{background:rgba(156,39,176,.10)}

[class*="s-um1-"] .toggle-on{
  display:inline-flex;align-items:center;gap:6px;
  border:1px solid #3399FF;border-radius:999px;
  padding:3px 5px 3px 10px;
  font-size:11px;font-weight:600;color:var(--muted);
  background:#fff;cursor:pointer;
}
[class*="s-um1-"] .toggle-on .knob{
  width:16px;height:16px;border-radius:50%;
  background:linear-gradient(135deg,#111 50%,#fff 50%);
  border:1px solid #111;
}
[class*="s-um1-"] .avatar{
  width:34px;height:34px;border-radius:50%;
  background:var(--purple);color:#fff;
  display:grid;place-items:center;
  justify-content:normal;      /* the .avatar rule above sets center, which on a
                                  grid shrinks the track off the 34px circle */
  font-size:12px;font-weight:600;letter-spacing:.02em;
}

/* --------------------------------------------------------- profile popup */
/* opened by the AK avatar (#profile), closed by the scrim behind it */
[class*="s-um1-"] .profile-pop{
  display:none;
  /* fixed, not absolute: :target would otherwise scroll the popup to the top
     of the viewport and push the header off screen when it opens */
  position:fixed;top:75px;right:22px;z-index:70;
  width:284px;
  background:#fff;border:1px solid var(--line);border-radius:10px;
  box-shadow:0 14px 44px rgba(26,5,51,.16);
  padding:26px 24px 22px;
  text-align:center;
}
[class*="s-um1-"] .profile-pop:target{display:block}
[class*="s-um1-"] .pop-scrim{display:none;position:fixed;inset:0;z-index:65;cursor:default}
[class*="s-um1-"] .profile-pop:target ~ .pop-scrim{display:block}

[class*="s-um1-"] .profile-avatar{
  width:62px;height:62px;border-radius:50%;margin:0 auto;
  background:var(--purple);color:#fff;
  display:grid;place-items:center;
  font-size:22px;font-weight:600;letter-spacing:.02em;
}
[class*="s-um1-"] .profile-name{margin:14px 0 0;font-size:16px;font-weight:600;color:var(--ink)}
[class*="s-um1-"] .profile-role{margin:5px 0 0;font-size:13px;color:#3E93E8}
[class*="s-um1-"] .profile-mail{margin:2px 0 0;font-size:13px;color:var(--muted)}
[class*="s-um1-"] .btn-view-profile{
  display:inline-block;margin-top:14px;
  background:var(--purple);color:#fff;
  border-radius:999px;padding:8px 24px;
  font-size:14px;font-weight:500;
}
[class*="s-um1-"] .btn-view-profile:hover{background:var(--purple-dark)}
[class*="s-um1-"] .profile-menu{
  margin-top:20px;
  border:1px solid var(--line);border-radius:12px;
  padding:14px;
  display:flex;flex-direction:column;gap:11px;
}
[class*="s-um1-"] .profile-menu a{
  display:block;text-align:left;
  border:1px solid var(--line);border-radius:8px;
  padding:12px 16px;
  font-size:14px;color:var(--muted);
}
[class*="s-um1-"] .profile-menu a:hover{background:var(--purple-faint);border-color:var(--purple)}

/* ------------------------------------------------------------ page header */
[class*="s-um1-"] .page{padding:22px 28px 32px}
[class*="s-um1-"] .page-head{
  display:flex;align-items:center;gap:16px;flex-wrap:wrap;
  margin-bottom:22px;
}
[class*="s-um1-"] .btn-back{
  display:inline-flex;align-items:center;gap:8px;
  background:#fff;border:1px solid var(--line);border-radius:999px;
  padding:9px 20px;
  font-size:14px;font-weight:500;color:var(--ink);cursor:pointer;
}
[class*="s-um1-"] .btn-back:hover{background:var(--purple-faint);border-color:var(--purple)}
[class*="s-um1-"] .page-title{margin:0;font-size:20px;font-weight:600;letter-spacing:-.01em}
[class*="s-um1-"] .page-count{font-size:14px;color:var(--placeholder)}
[class*="s-um1-"] .page-head .spacer{flex:1}

[class*="s-um1-"] .search{position:relative;width:min(340px,100%)}
[class*="s-um1-"] .search svg{
  position:absolute;left:14px;top:50%;transform:translateY(-50%);
  color:var(--placeholder);
}
[class*="s-um1-"] .search input{
  width:100%;height:42px;
  border:1px solid var(--field-border);border-radius:10px;
  padding:0 14px 0 42px;
  font-family:inherit;font-size:14px;color:var(--ink);
  outline:none;
}
[class*="s-um1-"] .search input::placeholder{color:var(--placeholder)}
[class*="s-um1-"] .search input:focus{border-color:var(--purple)}

[class*="s-um1-"] .btn-primary{
  display:inline-flex;align-items:center;gap:10px;
  background:var(--purple);color:#fff;
  border:0;border-radius:999px;
  padding:12px 26px;
  font-size:14px;font-weight:600;cursor:pointer;
  box-shadow:0 8px 20px rgba(156,39,176,.32);
  white-space:nowrap;
}
[class*="s-um1-"] .btn-primary:hover{background:var(--purple-dark)}

/* ------------------------------------------------------------------ table */
[class*="s-um1-"] .table-card{
  background:#fff;
  border:1px solid var(--line);border-radius:14px;
  box-shadow:0 2px 12px rgba(26,5,51,.05);
  padding:0 14px 22px;
  /* must be the shorthand: the .table-card rule above sets overflow:hidden, and
     overflow-x alone would leave overflow-y hidden and clip the status menu */
  overflow:auto;
}
/* seven equal columns, as in the design — table-layout:fixed stops the
   browser sizing them by content and bunching NAME/PAN/AADHAR together */
[class*="s-um1-"] table{width:100%;border-collapse:collapse;min-width:1040px;table-layout:fixed}
[class*="s-um1-"] thead th{
  position:relative;
  width:14.2857%;                       /* 100 / 7 */
  background:var(--table-head);
  text-align:left;
  font-size:12px;font-weight:500;letter-spacing:.06em;
  color:var(--ink);
  padding:15px 40px 15px 18px;          /* right room reserved for the arrow */
  white-space:nowrap;
  cursor:pointer;user-select:none;      /* sortable — no I-beam or text drag */
}

/* hover a column head: the cell darkens and a sort arrow fades in on its
   right, as in the prototype */
[class*="s-um1-"] thead th:hover{background:var(--table-head-hv)}
[class*="s-um1-"] thead th::after{
  content:'';
  position:absolute;right:18px;top:50%;margin-top:-8px;
  width:16px;height:16px;
  opacity:0;transition:opacity .12s ease;
  background:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%231A0533' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'><path d='M12 4v16'/><polyline points='6 14 12 20 18 14'/></svg>") no-repeat center;
}
[class*="s-um1-"] thead th:hover::after{opacity:1}
[class*="s-um1-"] thead th:first-child{border-radius:8px 0 0 8px}
[class*="s-um1-"] thead th:last-child{border-radius:0 8px 8px 0}
[class*="s-um1-"] tbody td{
  padding:16px 18px;
  font-size:14px;color:var(--muted);
  border-bottom:1px solid #EFEFF2;
  vertical-align:middle;
}
[class*="s-um1-"] tbody tr:last-child td{border-bottom:0}
/* rows have no hover state — the design keeps them white. Only the column
   heads and the individual controls in a row respond to the cursor. */

/* row action chip — e.g. Delete in the approver listing */
[class*="s-um1-"] .pill{
  border:0;border-radius:8px;
  background:var(--purple-tint);color:var(--purple);
  padding:8px 20px;
  font-family:inherit;font-size:13px;font-weight:600;
  cursor:pointer;
}
[class*="s-um1-"] .pill:hover{background:#E9C7EF}

/* ------------------------------------------------- status pill + dropdown */
[class*="s-um1-"] .td-status{white-space:nowrap}
[class*="s-um1-"] .status-wrap{display:flex;align-items:center;gap:14px;position:relative}

/* the two radios that decide which pill shows — hidden but still checkable */
[class*="s-um1-"] .st-radio{
  position:absolute;width:0;height:0;
  opacity:0;pointer-events:none;margin:0;
}

[class*="s-um1-"] .pill-status{
  display:none;align-items:center;gap:6px;
  border-radius:999px;padding:5px 12px;
  font-size:13px;font-weight:600;
}
[class*="s-um1-"] .pill-status::before{content:'';width:5px;height:5px;border-radius:50%;background:currentColor}
[class*="s-um1-"] .pill-active  {background:var(--green-tint);color:var(--green)}
[class*="s-um1-"] .pill-inactive{background:var(--red-tint);  color:var(--red)}

[class*="s-um1-"] .st-a:checked ~ .pill-active  {display:inline-flex}
[class*="s-um1-"] .st-i:checked ~ .pill-inactive{display:inline-flex}

[class*="s-um1-"] .status-toggle{
  display:inline-grid;place-items:center;
  padding:2px;border-radius:6px;
  border:0;background:none;
  color:var(--ink);line-height:0;cursor:pointer;
  transition:transform .15s ease;
}
[class*="s-um1-"] .status-wrap:hover .status-toggle,
[class*="s-um1-"] .status-toggle:focus{background:rgba(156,39,176,.10);transform:rotate(180deg)}

[class*="s-um1-"] .status-menu{
  display:none;position:absolute;top:calc(100% + 10px);left:0;z-index:20;
  min-width:190px;
  background:#fff;border:1px solid var(--line);border-radius:6px;
  box-shadow:0 10px 28px rgba(26,5,51,.16);
  padding:6px 0;
}
/* keyboard: focus the chevron to open. Picking an option moves focus to the
   radio, which drops :focus off the chevron and closes the menu again. */
[class*="s-um1-"] .status-wrap:hover .status-menu,
[class*="s-um1-"] .status-toggle:focus ~ .status-menu{display:block}

[class*="s-um1-"] .status-menu label{
  display:block;padding:10px 16px;
  font-size:14px;color:var(--ink);cursor:pointer;
}
[class*="s-um1-"] .status-menu label:hover{background:var(--purple-faint)}

/* ------------------------------------------------------------- roles cell */
/* the edit pencil sits inside the ROLES column, right-aligned — it is not a
   column of its own, so the seven heads stay evenly spaced */
[class*="s-um1-"] .td-roles{vertical-align:top}
[class*="s-um1-"] .roles-cell{
  display:flex;align-items:flex-start;justify-content:space-between;gap:12px;
}
[class*="s-um1-"] .roles-text{
  flex:1;min-width:0;
  font-size:11px;letter-spacing:.03em;line-height:1.5;
  color:var(--muted);
}

/* ------------------------------------------------------------- pagination */
[class*="s-um1-"] .pagination{
  display:flex;align-items:center;justify-content:flex-end;gap:18px;
  margin-top:22px;
  font-size:13px;color:var(--muted);
}
[class*="s-um1-"] .page-size{
  height:32px;
  border:1px solid var(--field-border);border-radius:8px;
  background:#fff;color:var(--ink);
  font-family:inherit;font-size:13px;
  padding:0 30px 0 12px;
  appearance:none;-webkit-appearance:none;cursor:pointer;
  background-image:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%239A94A5' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'/></svg>");
  background-repeat:no-repeat;background-position:right 10px center;
}
[class*="s-um1-"] .pager{display:flex;gap:6px}
[class*="s-um1-"] .pager a,.pager span{
  width:30px;height:30px;
  background:#fff;border:1px solid var(--field-border);border-radius:8px;
  display:grid;place-items:center;color:var(--ink);
}
[class*="s-um1-"] .pager a:hover{background:var(--purple-faint);border-color:var(--purple)}
[class*="s-um1-"] .pager span{opacity:.35}

/* ------------------------------------------------------------------ modal */
[class*="s-um1-"] .overlay{
  position:fixed;inset:0;z-index:60;
  display:none;align-items:center;justify-content:center;
  background:rgba(26,5,51,.38);
  padding:24px;
  overflow-y:auto;overscroll-behavior:contain;
}
[class*="s-um1-"] .overlay:target{display:flex}

/* full-bleed link sitting behind the dialog — click the dim area to close */
[class*="s-um1-"] .overlay-close{position:absolute;inset:0;cursor:default}

[class*="s-um1-"] .modal{
  position:relative;z-index:1;
  width:100%;background:#fff;border-radius:16px;
  box-shadow:0 24px 64px rgba(26,5,51,.20);
  display:flex;flex-direction:column;
  max-height:calc(100vh - 48px);
}
[class*="s-um1-"] .modal-lg{max-width:720px}
[class*="s-um1-"] .modal-md{max-width:733px}
[class*="s-um1-"] .modal-sm{max-width:420px}

[class*="s-um1-"] .modal-head{
  display:flex;align-items:center;justify-content:space-between;gap:16px;
  padding:22px 24px 0;
}
[class*="s-um1-"] .modal-title{margin:0;font-size:17px;font-weight:600}

[class*="s-um1-"] .modal-body{
  padding:18px 24px 4px;
  overflow-y:auto;overscroll-behavior:contain;
  display:flex;flex-direction:column;gap:18px;
}

[class*="s-um1-"] .modal-card{
  border:1px solid var(--line);border-radius:12px;
  padding:20px;
}
[class*="s-um1-"] .card-title{
  margin:0 0 18px;
  font-size:14px;font-weight:600;color:var(--magenta);
}
[class*="s-um1-"] .card-title .hint{color:var(--ink);font-weight:600}

[class*="s-um1-"] .grid-2{display:grid;grid-template-columns:1fr 1fr;gap:18px 24px}

/* direct child only — the Choose File chip is also a <label>, nested deeper */
[class*="s-um1-"] .field > label{
  display:block;margin-bottom:8px;
  font-size:13px;font-weight:600;color:var(--ink);
}
[class*="s-um1-"] .field input[type=text],
[class*="s-um1-"] .field select{
  width:100%;height:44px;
  border:1px solid var(--field-border);border-radius:8px;
  background:#fff;color:var(--ink);
  font-family:inherit;font-size:14px;
  padding:0 16px;outline:none;
}
[class*="s-um1-"] .field input::placeholder{color:var(--placeholder)}
[class*="s-um1-"] .field input:focus,.field select:focus{border-color:var(--purple)}
[class*="s-um1-"] .field select{
  color:var(--placeholder);
  padding-right:40px;
  appearance:none;-webkit-appearance:none;cursor:pointer;
  background-image:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%239A94A5' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'/></svg>");
  background-repeat:no-repeat;background-position:right 16px center;
}
[class*="s-um1-"] .field select:valid{color:var(--ink)}   /* ink once a branch is picked */

/* ---------------------------------------------------------- file upload */
/* the name box and the Choose File chip are two separate rounded controls
   with a gap between them — not one fused input group */
[class*="s-um1-"] .file-row{display:flex;align-items:stretch;gap:10px}
[class*="s-um1-"] .file-name{
  flex:1;min-width:0;height:44px;
  display:flex;align-items:center;
  border:1px solid var(--field-border);
  border-radius:8px;
  padding:0 16px;
  font-size:14px;color:var(--placeholder);
  overflow:hidden;white-space:nowrap;text-overflow:ellipsis;
}
[class*="s-um1-"] .btn-file{
  flex:0 0 108px;
  display:inline-flex;align-items:center;justify-content:center;
  background:var(--magenta-tint);color:var(--magenta);
  border:0;border-radius:8px;
  font-size:14px;font-weight:500;cursor:pointer;white-space:nowrap;
}
[class*="s-um1-"] .btn-file:hover{background:#F0CDF3}
[class*="s-um1-"] .btn-file input{display:none}

/* ------------------------------------------------------- role checkboxes */
[class*="s-um1-"] .role-list{display:flex;flex-direction:column;gap:18px}
[class*="s-um1-"] .role-row{display:flex;align-items:center;gap:16px;cursor:pointer}
[class*="s-um1-"] .role-row input{
  appearance:none;-webkit-appearance:none;
  width:18px;height:18px;flex:0 0 auto;margin:0;
  border:1.5px solid #BFBFCB;border-radius:3px;
  background:#fff;cursor:pointer;
}
[class*="s-um1-"] .role-row input:checked{
  background:var(--blue);border-color:var(--blue);
  background-image:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'><polyline points='20 6 9 17 4 12'/></svg>");
  background-repeat:no-repeat;background-position:center;
}
[class*="s-um1-"] .role-row span{font-size:14px;color:var(--ink)}

/* ------------------------------------------------- access blocks (Add User) */
[class*="s-um1-"] .access-group{display:flex;flex-direction:column;gap:26px}
[class*="s-um1-"] .access-title{
  margin:0 0 16px;
  font-size:14px;font-weight:600;color:var(--ink);
}
[class*="s-um1-"] .access-options{display:grid;grid-template-columns:repeat(3,1fr);gap:16px}

/* ------------------------------------------------------------ modal foot */
[class*="s-um1-"] .modal-foot{
  display:flex;justify-content:flex-end;align-items:center;gap:14px;
  padding:18px 24px 22px;
}
[class*="s-um1-"] .btn-ghost{
  background:#fff;color:var(--ink);
  border:1px solid var(--purple);border-radius:999px;
  padding:10px 30px;font-size:14px;font-weight:500;cursor:pointer;
}
[class*="s-um1-"] .btn-ghost:hover{background:var(--purple-faint)}
[class*="s-um1-"] .btn-solid{
  background:var(--purple);color:#fff;border:0;border-radius:999px;
  padding:11px 36px;font-size:14px;font-weight:500;cursor:pointer;
}
[class*="s-um1-"] .btn-solid:hover{background:var(--purple-dark)}
/* disabled — e.g. Save stays off until the required fields are filled.
   works on <button disabled> and on <a class="is-disabled"> alike */
[class*="s-um1-"] .btn-solid.is-disabled,.btn-solid:disabled{
  background:var(--purple-soft);border-color:var(--purple-soft);
  color:#fff;cursor:not-allowed;pointer-events:none;
}

/* ------------------------------------------------------------ responsive */
@media (max-width:860px){
  [class*="s-um1-"] .page{padding:18px 16px 28px}
  [class*="s-um1-"] .header{padding:0 16px}
  [class*="s-um1-"] .page-head .spacer{display:none}
  [class*="s-um1-"] .search{width:100%;order:5}
  [class*="s-um1-"] .grid-2{grid-template-columns:1fr}
}
