@import url('https://cdn.jsdelivr.net/npm/bootstrap-icons@1.11.3/font/bootstrap-icons.min.css');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Arial, sans-serif;
  }
  
  body {
    min-height: 100vh;
    overflow-x: hidden;
  }
  
  /* Main Layout Container */
  .auth-layout {
    display: flex;
    min-height: 100vh;
  }
  
  /* --- LEFT SIDE --- */
  .auth-left {
    position: relative;
    width: 60%;
    background-image: url("./Images/Signup.jpg");
    background-size: cover;
    background-position: center;
    color: white;
  }
  
  /* Darkens the background image for text readability */
  .overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
  }
  
  .left-content {
    position: relative;
    height: 100%;
    padding: 60px;
    z-index: 2;
    
    /* Flexbox to move text to bottom */
    display: flex;
    flex-direction: column;
    justify-content: space-between; 
  }
  
  /* Logo Styling */
  .logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: bold;
    font-size: 20px;
  }
  
  .logo img {
    height: 32px;
  }
  
  /* Bottom Text Styling */
  .left-content h1 {
    font-size: clamp(35px, 4vw, 50px); 
    line-height: 1.1;
    max-width: 800px;
    margin-bottom: 20px;
    font-weight: 700;
    letter-spacing: -1px;
  }
  
  .left-content p {
    font-size: 15px;
    max-width: 550px;
    line-height: 1.6;
    font-weight: 100; 
    opacity: 0.85;
    margin-bottom: 0;
  }
  
  /* --- RIGHT SIDE --- */
  .auth-right {
    width: 40%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fcfcfc;
    border-radius: 16px;
    overflow: hidden;
  }
  
  .auth-card {
    width: 100%;
    max-width: 400px;
    background: transparent;
    padding: 0;
    border-radius: 0;
    box-shadow: none;
  }
  
  .auth-card h2 {
    margin-bottom: 8px;
    font-size: 28px;
  }
  
  .subtitle {
    color: #666;
    margin-bottom: 30px;
    font-size: 15px;
  }
  
  /* Form Elements */
  .auth-card label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 400;
    color: #333;
  }
  
  .auth-card input {
    width: 100%;
    padding: 14px;
    margin-bottom: 20px;
    border-radius: 8px;
    border: 1px solid #ddd;
    background: white;
    outline: none;
  }

  .form-row {
    display: flex;
    gap: 16px;
    margin-bottom: 0;
  }

  .form-row .form-field {
    flex: 1;
    min-width: 0;
  }

  .form-row .form-field label {
    margin-bottom: 8px;
  }

  .form-row .form-field input {
    margin-bottom: 20px;
  }
  
  /* Password Input Wrapper */
  .password-wrapper {
    position: relative;
    margin-bottom: 20px;
  }
  
  .password-wrapper input {
    width: 100%;
    padding-right: 45px;
    margin-bottom: 0;
  }
  
  .password-toggle {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: #666;
    display: flex;
    align-items: center;
    justify-content: center;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
  }
  
  .password-toggle:hover {
    color: #000;
  }
  
  .password-toggle:active {
    opacity: 0.7;
  }
  
  .password-toggle svg {
    display: block;
    pointer-events: none;
  }
  
  /* Form Options */
  .form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    margin-top: -10px;
  }

  .remember-me {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #666;
    cursor: pointer;
    margin-bottom: 0;
  }

  .remember-me input[type="checkbox"] {
    width: 16px;
    height: 16px;
    cursor: pointer;
    margin: 0;
    accent-color: #000;
  }

  .remember-me span {
    user-select: none;
  }

  .checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 14px;
    color: #666;
    cursor: pointer;
    margin-top: 4px;
  }

  .checkbox-label input[type="checkbox"] {
    width: 16px;
    height: 16px;
    min-width: 16px;
    cursor: pointer;
    margin: 2px 0 0;
    accent-color: #000;
  }

  .checkbox-label span {
    user-select: none;
  }

  .checkbox-label a {
    color: #000;
    font-weight: 600;
    text-decoration: none;
  }

  .checkbox-label a:hover {
    text-decoration: underline;
  }

  .forgot-password {
    color: #666;
    font-size: 14px;
    text-decoration: none;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    display: inline-block;
    padding: 2px 4px;
  }

  .forgot-password:hover {
    text-decoration: underline;
  }
  
  .forgot-password:active {
    opacity: 0.7;
  }

  /* Login Button */
  .login-btn {
    width: 100%;
    padding: 16px;
    border: none;
    border-radius: 50px;
    background: #000;
    color: #fff;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    margin-top: 10px;
    transition: opacity 0.2s, transform 0.1s;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
  }
  
  .login-btn:hover {
    opacity: 0.85;
  }
  
  .login-btn:active {
    opacity: 0.7;
    transform: scale(0.98);
  }

  /* Divider */
  .divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 25px 0;
    color: #666;
    font-size: 14px;
  }

  .divider::before,
  .divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid #ddd;
  }

  .divider span {
    padding: 0 15px;
  }

  /* Microsoft Button */
  .microsoft-btn {
    width: 100%;
    padding: 16px;
    border: 1px solid #ddd;
    border-radius: 50px;
    background: white;
    color: #000;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: border-color 0.2s, background-color 0.2s;
    -webkit-tap-highlight-color: transparent;
    text-decoration: none;
    box-sizing: border-box;
    touch-action: manipulation;
  }

  .microsoft-btn:hover {
    border-color: #bbb;
    background-color: #f9f9f9;
  }

  .microsoft-btn:active {
    background-color: #f0f0f0;
    transform: scale(0.98);
  }

  .microsoft-btn svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
  }
  
  .switch {
    text-align: center;
    margin-top: 25px;
    font-size: 14px;
    color: #666;
  }
  
  .switch a {
    color: #000;
    font-weight: bold;
    text-decoration: none;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    display: inline-block;
    padding: 2px 4px;
  }
  
  .switch a:hover {
    text-decoration: underline;
  }
  
  .switch a:active {
    opacity: 0.7;
  }

  .switch--disabled {
    color: #9ca3af;
  }

/* ===========================
   DASHBOARD LAYOUT
   =========================== */

.dashboard-body {
  background: #f5f7fb;
  color: #111827;
}

.dashboard-layout {
  min-height: 100vh;
}

/* Sidebar */
.sidebar {
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  width: 260px;
  overflow-y: auto;
  background: #ffffff;
  border-right: 1px solid #e5e7eb;
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.sidebar-header {
  display: flex;
  align-items: center;
  gap: 12px;
}

.sidebar-logo-circle {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
}

.sidebar-logo-circle img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.sidebar-brand-name {
  font-weight: 600;
  font-size: 16px;
}

.sidebar-brand-tagline {
  font-size: 12px;
  color: #6b7280;
}

.sidebar-balance-card {
  background: #f9fafb;
  border-radius: 16px;
  padding: 14px 16px;
  border: 1px solid #e5e7eb;
}

.sidebar-balance-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #9ca3af;
  margin-bottom: 4px;
}

.sidebar-balance-amount {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 2px;
}

.sidebar-balance-change {
  font-size: 12px;
  color: #10b981;
}

.sidebar-balance-indicator {
  width: 16px;
  height: 16px;
  border-radius: 999px;
  border: 2px solid #10b981;
  margin-top: 8px;
}

.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 8px;
}

.sidebar-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 14px;
  color: #4b5563;
  text-decoration: none;
  cursor: pointer;
}

.sidebar-link:hover {
  background: #fef2f2;
  color: #111827;
}

.sidebar-link.active {
  background: linear-gradient(135deg, #fef2f2, #fee2e2);
  color: #dc2626;
  font-weight: 500;
}

.sidebar-icon {
  width: 20px;
  text-align: center;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.sidebar-icon .bi { font-size: 1.1em; }

/* Sidebar "My Claims" expandable nav section */
.sidebar-dropdown {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.sidebar-dropdown-trigger {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 14px;
  color: #4b5563;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  font-family: inherit;
}

.sidebar-dropdown-trigger:hover {
  background: #fef2f2;
  color: #111827;
}

.sidebar-dropdown.active .sidebar-dropdown-trigger {
  background: linear-gradient(135deg, #fef2f2, #fee2e2);
  color: #dc2626;
  font-weight: 500;
}

.sidebar-dropdown.active .sidebar-dropdown-trigger:hover {
  background: linear-gradient(135deg, #fee2e2, #fecaca);
  color: #b91c1c;
}

.sidebar-dropdown-trigger .sidebar-dropdown-chevron {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  font-size: 0;
  line-height: 0;
  color: #4b5563;
  transition: transform 0.2s ease;
  flex-shrink: 0;
}

/* CSS dropdown arrow (visible in all fonts) */
.sidebar-dropdown-trigger .sidebar-dropdown-chevron::after {
  content: '';
  display: block;
  width: 0;
  height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 6px solid currentColor;
  margin-top: 2px;
}

.sidebar-dropdown-trigger:hover .sidebar-dropdown-chevron {
  color: #111827;
}

.sidebar-dropdown.open .sidebar-dropdown-chevron {
  transform: rotate(180deg);
}

.sidebar-dropdown-menu {
  display: none;
  flex-direction: column;
  gap: 4px;
  padding-left: 0;
  list-style: none;
}

.sidebar-dropdown.open .sidebar-dropdown-menu {
  display: flex;
}

.sidebar-dropdown.open .sidebar-dropdown-menu[hidden] {
  display: none;
}

.sidebar-dropdown-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px 10px 42px;
  border-radius: 10px;
  font-size: 14px;
  color: #4b5563;
  text-decoration: none;
}

.sidebar-dropdown-item:hover {
  color: #111827;
}

.sidebar-dropdown-item--approved:hover {
  background: #f0fdf4;
  color: #166534;
}

.sidebar-dropdown-item--pending:hover {
  background: #fffbeb;
  color: #b45309;
}

.sidebar-dropdown-item--rejected:hover {
  background: #fef2f2;
  color: #dc2626;
}

.sidebar-dropdown-item--voided:hover {
  background: #f3f4f6;
  color: #6b7280;
}

/* Active/current page state for dropdown items (Reports & My Claims) */
.sidebar-dropdown-item--approved.active {
  background: #f0fdf4;
  color: #166534;
  font-weight: 500;
}

.sidebar-dropdown-item--approved.active:hover {
  background: #dcfce7;
  color: #15803d;
}

.sidebar-dropdown-item--pending.active {
  background: #fffbeb;
  color: #b45309;
  font-weight: 500;
}

.sidebar-dropdown-item--pending.active:hover {
  background: #fef3c7;
  color: #92400e;
}

.sidebar-dropdown-item--rejected.active {
  background: #fef2f2;
  color: #dc2626;
  font-weight: 500;
}

.sidebar-dropdown-item--rejected.active:hover {
  background: #fee2e2;
  color: #b91c1c;
}

.sidebar-dropdown-item--voided.active {
  background: #f3f4f6;
  color: #4b5563;
  font-weight: 500;
}

.sidebar-dropdown-item--voided.active:hover {
  background: #e5e7eb;
  color: #374151;
}

.sidebar-user {
  margin-top: auto;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  background: #f9fafb;
}

.sidebar-user-avatar {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  background: #111827;
  color: #fff;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
}

.sidebar-user-name {
  font-size: 14px;
  font-weight: 500;
}

.sidebar-user-status {
  font-size: 12px;
  color: #6b7280;
}

.sidebar-sync-link {
  font-size: 11px;
  color: #2563eb;
  text-decoration: none;
}

.sidebar-sync-link:hover {
  text-decoration: underline;
}

/* Main area */
.dashboard-main {
  margin-left: 260px;
  padding: 20px 28px 32px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.topbar-title-group h1 {
  font-size: 24px;
  margin-bottom: 4px;
}

.topbar-subtitle {
  font-size: 14px;
  color: #6b7280;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* View mode toggle: My Dashboard | Line Manager (Worknest-style) */
.view-mode-toggle {
  display: inline-flex;
  align-items: center;
  background: #f3f4f6;
  border-radius: 999px;
  padding: 3px;
  gap: 0;
}

.view-mode-option {
  padding: 6px 14px;
  font-size: 13px;
  font-weight: 500;
  color: #6b7280;
  text-decoration: none;
  border-radius: 999px;
  transition: color 0.15s ease, background 0.15s ease;
}

.view-mode-option:hover {
  color: #374151;
}

.view-mode-option--active {
  background: #fff;
  color: #111827;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.view-mode-option--active:hover {
  color: #111827;
}

.topbar-search input {
  width: 220px;
  padding: 9px 12px;
  border-radius: 999px;
  border: 1px solid #e5e7eb;
  font-size: 14px;
}

.topbar-icon-btn {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  border: 1px solid #e5e7eb;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

/* Notifications bell dropdown and circle indicator */
.notifications-trigger-wrap {
  position: relative;
  display: inline-flex;
}

.notifications-badge {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #10b981;
  border: 2px solid #fff;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.notifications-badge--visible {
  opacity: 1;
}

.notifications-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  min-width: 320px;
  max-width: 400px;
  max-height: 400px;
  background: #ffffff;
  border-radius: 16px;
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.04),
    0 2px 6px rgba(0, 0, 0, 0.04),
    0 12px 24px rgba(0, 0, 0, 0.08),
    0 24px 48px rgba(0, 0, 0, 0.06);
  border: none;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px) scale(0.96);
  transform-origin: top right;
  transition: opacity 0.2s ease, visibility 0.2s ease, transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
  overflow: hidden;
}

.notifications-dropdown--open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

.notifications-dropdown-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 20px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: #0f172a;
  background: linear-gradient(180deg, #fafafa 0%, #fff 100%);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.notifications-dropdown-header-actions {
  flex-shrink: 0;
}

.notifications-dropdown-clear-all {
  font-size: 12px;
  font-weight: 500;
  color: #64748b;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 6px;
  transition: color 0.15s, background 0.15s;
}

.notifications-dropdown-clear-all:hover {
  color: #0f172a;
  background: #f1f5f9;
}

.notifications-dropdown-list {
  overflow-y: auto;
  max-height: 320px;
  padding: 8px 0;
  scrollbar-width: thin;
  scrollbar-color: rgba(0, 0, 0, 0.2) transparent;
}

.notifications-dropdown-list::-webkit-scrollbar {
  width: 6px;
}

.notifications-dropdown-list::-webkit-scrollbar-track {
  background: transparent;
}

.notifications-dropdown-list::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.18);
  border-radius: 3px;
}

.notifications-dropdown-list::-webkit-scrollbar-thumb:hover {
  background: rgba(0, 0, 0, 0.28);
}

.notifications-dropdown-empty {
  padding: 32px 24px;
  font-size: 14px;
  color: #64748b;
  text-align: center;
  line-height: 1.5;
}

.notifications-dropdown-item-wrap {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 0 8px 2px;
  border-radius: 12px;
  position: relative;
  transition: background 0.2s ease;
}

.notifications-dropdown-item-wrap:hover {
  background: #f1f5f9;
}

.notifications-dropdown-item-wrap:hover .notifications-dropdown-item-close {
  opacity: 1;
}

.notifications-dropdown-item {
  flex: 1;
  min-width: 0;
  display: block;
  padding: 14px 20px 14px 20px;
  border-radius: 12px;
  text-decoration: none;
  color: inherit;
  transition: background 0.2s ease, transform 0.15s ease;
}

.notifications-dropdown-item-wrap .notifications-dropdown-item {
  margin: 0;
}

.notifications-dropdown-item-close {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  margin: 10px 8px 0 0;
  padding: 0;
  border: none;
  border-radius: 6px;
  background: transparent;
  color: #64748b;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  opacity: 0.7;
  transition: opacity 0.15s, color 0.15s, background 0.15s;
}

.notifications-dropdown-item-close:hover {
  color: #0f172a;
  background: rgba(0, 0, 0, 0.06);
  opacity: 1;
}

.notifications-dropdown-item:hover {
  background: #f1f5f9;
}

.notifications-dropdown-item:active {
  transform: scale(0.99);
}

.notifications-dropdown-item-claim {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: #0f172a;
  margin-bottom: 4px;
  letter-spacing: -0.01em;
}

.notifications-dropdown-item-status {
  display: block;
  font-size: 13px;
  color: #64748b;
  font-weight: 500;
}

.topbar-primary-btn {
  padding: 9px 18px;
  border-radius: 999px;
  border: none;
  background: linear-gradient(135deg, #dc2626, #b91c1c);
  color: #fff;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
}

a.topbar-primary-btn:hover {
  text-decoration: none;
}

.breadcrumb {
  font-size: 13px;
  color: #9ca3af;
  display: flex;
  align-items: center;
  gap: 6px;
}

.breadcrumb a {
  color: #4b5563;
  text-decoration: none;
}

.breadcrumb a:hover {
  color: #dc2626;
  text-decoration: underline;
}

/* Hero support card */
.support-hero {
  background: #111827;
  border-radius: 24px;
  padding: 26px 26px 26px 30px;
  color: #f9fafb;
}

.support-hero-content h2 {
  font-size: 28px;
  margin: 10px 0 6px;
}

.support-hero-content p {
  font-size: 14px;
  color: #e5e7eb;
  max-width: 480px;
}

.support-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(16, 185, 129, 0.1);
  color: #6ee7b7;
  font-size: 12px;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #22c55e;
}

.support-hero-actions {
  width: fit-content;
  max-width: 100%;
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.support-search-wrapper {
  width: 100%;
}

.support-search-wrapper input {
  width: 100%;
  padding: 12px 16px;
  border-radius: 999px;
  border: none;
  outline: none;
  font-size: 14px;
  box-sizing: border-box;
}

.support-pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pill {
  padding: 6px 14px;
  border-radius: 999px;
  border: none;
  font-size: 13px;
  cursor: pointer;
  pointer-events: auto;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.pill-primary {
  background: #dc2626;
  color: #fff;
}

.pill-primary:hover {
  background: #b91c1c;
  color: #fff;
}

.pill-outline {
  background: rgba(255, 255, 255, 0.06);
  color: #e5e7eb;
}

.pill-outline:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #f9fafb;
}

/* Stats cards */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

/* Reports/Dashboard page: 3 cards in one row, stretch to fill width (does not affect personal dashboard) */
.stats-grid--three-cols {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

@media (max-width: 900px) {
  .stats-grid--three-cols {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 600px) {
  .stats-grid--three-cols {
    grid-template-columns: 1fr;
  }
}

.stat-card {
  background: #ffffff;
  border-radius: 18px;
  padding: 16px 18px;
  border: 1px solid #edf0f7;
}

.stat-card-link {
  display: block;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.stat-card-link:hover {
  border-color: #f97316;
  box-shadow: 0 2px 8px rgba(249, 115, 22, 0.12);
}

.stat-icon {
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  margin-bottom: 10px;
}

.stat-icon-purple { background: #fef2f2; color: #dc2626; }
.stat-icon-green { background: #ecfdf3; color: #16a34a; }
.stat-icon-orange { background: #fff7ed; color: #f97316; }
.stat-icon-blue { background: #eff6ff; color: #2563eb; }

.stat-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 4px;
}

.stat-label {
  font-size: 13px;
  color: #6b7280;
}

.stat-badge {
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 500;
}

.stat-badge-blue { background: #eff6ff; color: #2563eb; }
.stat-badge-green { background: #ecfdf3; color: #16a34a; }
.stat-badge-gray { background: #f3f4f6; color: #4b5563; }
.stat-badge-orange { background: #fff7ed; color: #ea580c; }

.claim-tag {
  display: inline-block;
  margin-top: 4px;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 500;
  white-space: nowrap;
}
.claim-tag--finance { background: #fff7ed; color: #ea580c; }
.claim-tag--manager { background: #fef2f2; color: #dc2626; }

.stat-value {
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 2px;
}

.stat-subtext {
  font-size: 12px;
  color: #9ca3af;
}

/* Tabs */
.support-tabs {
  margin-top: 8px;
  display: flex;
  gap: 10px;
  background: #ffffff;
  border-radius: 14px;
  padding: 6px;
  border: 1px solid #e5e7eb;
}

.support-tab {
  flex: 0 0 auto;
  padding: 8px 18px;
  border-radius: 999px;
  border: none;
  background: transparent;
  font-size: 13px;
  cursor: pointer;
  color: #6b7280;
  pointer-events: auto;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.support-tab:hover {
  color: #111827;
  background: #f3f4f6;
}

.support-tab.active {
  background: #dc2626;
  color: #fff;
}

.support-tab.active:hover {
  background: #b91c1c;
  color: #fff;
}

/* FAQ & Quick links */
.dashboard-columns {
  display: grid;
  grid-template-columns: 2.2fr 1.1fr;
  gap: 18px;
  margin-top: 6px;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.section-header h3 {
  font-size: 16px;
}

.faq-column,
.quick-links-column {
  background: #ffffff;
  border-radius: 18px;
  padding: 18px 18px 20px;
  border: 1px solid #edf0f7;
}

.faq-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip {
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid #e5e7eb;
  font-size: 12px;
  background: #ffffff;
  cursor: pointer;
}

.chip-active {
  background: #dc2626;
  border-color: #dc2626;
  color: #ffffff;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 8px;
}

.faq-item {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 10px 10px;
  border-radius: 12px;
  border: 1px solid #edf0f7;
}

.faq-icon {
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: #fef2f2;
  display: flex;
  align-items: center;
  justify-content: center;
}

.faq-content h4 {
  font-size: 14px;
  margin-bottom: 2px;
}

.faq-content p {
  font-size: 12px;
  color: #6b7280;
}

.faq-toggle {
  border: none;
  background: transparent;
  font-size: 18px;
  cursor: pointer;
  color: #9ca3af;
}

.quick-links-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.quick-link-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 10px;
  border-radius: 12px;
  border: 1px solid #edf0f7;
  text-decoration: none;
  color: inherit;
}

.quick-link-icon {
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
}

.quick-link-icon-purple { background: #fef2f2; color: #dc2626; }
.quick-link-icon-orange { background: #fff7ed; color: #f97316; }
.quick-link-icon-blue { background: #eff6ff; color: #2563eb; }

.quick-link-text h4 {
  font-size: 14px;
  margin-bottom: 2px;
}

.quick-link-text p {
  font-size: 12px;
  color: #6b7280;
}

/* New Claim Modal */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: stretch;
  justify-content: flex-end;
  pointer-events: none;
  visibility: hidden;
  transition: visibility 0.3s;
}

.modal-overlay.modal-open {
  pointer-events: auto;
  visibility: visible;
}

.modal-overlay.modal-open .modal-backdrop {
  opacity: 1;
}

.modal-overlay.modal-open .modal-box {
  transform: translateX(0);
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  opacity: 0;
  transition: opacity 0.3s ease-out;
}

.modal-box {
  position: relative;
  width: 30%;
  min-width: 320px;
  max-width: 480px;
  height: 100%;
  overflow-y: auto;
  background: #fff;
  border-radius: 0;
  box-shadow: -4px 0 24px rgba(0, 0, 0, 0.15);
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.3s ease-out;
}

.modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 24px 24px 16px;
  border-bottom: 1px solid #e5e7eb;
}

.modal-title {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 4px;
}

.modal-subtitle {
  font-size: 14px;
  color: #6b7280;
}

.modal-close {
  width: 32px;
  height: 32px;
  border: none;
  background: transparent;
  font-size: 24px;
  line-height: 1;
  color: #6b7280;
  cursor: pointer;
  border-radius: 8px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-close:hover {
  background: #f3f4f6;
  color: #111827;
}

.modal-body {
  padding: 20px 24px;
  flex: 1;
  overflow-y: auto;
}

.modal-field {
  margin-bottom: 20px;
}

.modal-field label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  color: #374151;
  margin-bottom: 8px;
}

.modal-field input[type="number"] {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  font-size: 16px;
  box-sizing: border-box;
}

.modal-quick-select {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.modal-quick-btn {
  padding: 10px 14px;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  background: #fff;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  color: #374151;
}

.modal-quick-btn:hover {
  border-color: #dc2626;
  color: #dc2626;
}

.modal-quick-btn.active {
  background: #dc2626;
  border-color: #dc2626;
  color: #fff;
}

.modal-options {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.modal-options-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.modal-option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  background: #fff;
  cursor: pointer;
  text-align: left;
  transition: border-color 0.2s, background 0.2s;
}

.modal-options-grid .modal-option {
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
}

.modal-option:hover {
  border-color: #d1d5db;
  background: #f9fafb;
}

.modal-option.active {
  border-color: #dc2626;
  background: #fef2f2;
}

.modal-option-icon {
  font-size: 20px;
  width: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  flex-shrink: 0;
}

.modal-option-label {
  font-weight: 500;
  font-size: 13px;
  color: #111827;
  line-height: 1.3;
}

.modal-option-detail {
  font-size: 12px;
  color: #6b7280;
  margin-left: auto;
}

/* Claim details (type-specific fields) */
.modal-details-section {
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 14px 16px;
  background: #f9fafb;
}

.modal-details-hint {
  font-size: 13px;
  color: #6b7280;
  margin: 0 0 12px 0;
}

.modal-details-hint.hidden {
  display: none;
}

.modal-details-group {
  display: none;
}

.modal-details-group.visible {
  display: block;
}

.modal-detail-field {
  margin-bottom: 14px;
}

.modal-detail-field:last-child {
  margin-bottom: 0;
}

.modal-detail-field label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: #374151;
  margin-bottom: 6px;
}

.modal-detail-field input {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  font-size: 14px;
  box-sizing: border-box;
}

.modal-detail-field input:focus {
  outline: none;
  border-color: #dc2626;
}

.modal-select {
  width: 100%;
  padding: 10px 36px 10px 12px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  font-size: 14px;
  color: #111827;
  background-color: #fff;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12' fill='none'%3E%3Cpath d='M2.5 4.5L6 8L9.5 4.5' stroke='%236b7280' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  box-sizing: border-box;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.modal-select:hover {
  border-color: #d1d5db;
}

.modal-select:focus {
  outline: none;
  border-color: #dc2626;
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.12);
}

.modal-detail-field input[readonly].claim-cost-calculated {
  background: #f3f4f6;
  color: #374151;
  cursor: default;
}

.modal-detail-date-range {
  display: flex;
  align-items: center;
  gap: 10px;
}

.modal-detail-date-range input[type="date"] {
  flex: 1;
  min-width: 0;
}

.modal-detail-date-range .date-range-sep {
  font-size: 13px;
  color: #6b7280;
  flex-shrink: 0;
}

.modal-field-hint {
  font-size: 12px;
  color: #6b7280;
  margin: 0 0 8px 0;
}

.modal-field input[type="file"] {
  width: 100%;
  padding: 10px 12px;
  border: 1px dashed #d1d5db;
  border-radius: 8px;
  font-size: 14px;
  background: #f9fafb;
  cursor: pointer;
}

.receipts-list {
  margin-top: 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.receipt-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  background: #f3f4f6;
  border-radius: 8px;
  font-size: 13px;
}

.receipt-name {
  color: #374151;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 70%;
}

.receipt-remove {
  padding: 4px 10px;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  background: #fff;
  font-size: 12px;
  cursor: pointer;
  color: #dc2626;
}

.receipt-remove:hover {
  background: #fef2f2;
}

.modal-detail-note {
  display: block;
  font-size: 12px;
  color: #6b7280;
  margin-top: 4px;
}

.modal-details {
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 14px 16px;
  background: #f9fafb;
}

.modal-detail-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 14px;
  padding: 6px 0;
}

.modal-detail-row:not(:last-child) {
  border-bottom: 1px solid #e5e7eb;
}

.modal-detail-row span:last-child {
  font-weight: 600;
  color: #111827;
}

.modal-footer {
  flex-direction: column;
  align-items: stretch;
  gap: 12px;
  padding: 16px 24px 24px;
  border-top: 1px solid #e5e7eb;
}
.modal-footer-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  flex-wrap: wrap;
}
.modal-cart-bar {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 10px;
  padding-top: 12px;
  border-top: 1px solid #eee;
}
.modal-cart-bar .modal-cart-summary {
  font-size: 14px;
  color: #555;
  margin-right: 0;
  margin-bottom: 0;
}
.modal-cart-bar-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: nowrap;
}
.modal-cart-bar-actions .modal-btn-sm {
  flex-shrink: 0;
}
.modal-cart-summary {
  font-size: 14px;
  color: #555;
  margin-right: auto;
}
.modal-btn-outline {
  padding: 10px 20px;
  border: 1px solid #0f172a;
  border-radius: 10px;
  background: #fff;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  color: #0f172a;
}
.modal-btn-outline:hover { background: #f1f5f9; }
.modal-btn-sm { padding: 8px 14px; font-size: 13px; }

.modal-btn-secondary {
  padding: 10px 20px;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  background: #fff;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  color: #374151;
}

.modal-btn-secondary:hover {
  background: #f9fafb;
}

.modal-btn-primary {
  padding: 10px 20px;
  border: none;
  border-radius: 10px;
  background: #dc2626;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  color: #fff;
}

.modal-btn-primary:hover {
  background: #b91c1c;
}

/* Responsive Design */

/* Dashboard responsive */
@media (max-width: 1024px) {
  .sidebar {
    position: static;
    width: auto;
    height: auto;
    overflow: visible;
    border-right: none;
    border-bottom: 1px solid #e5e7eb;
  }

  .dashboard-main {
    margin-left: 0;
  }

  .dashboard-layout {
    display: block;
  }
}

/* Tablet and below */
@media (max-width: 1024px) {
  .auth-layout {
    flex-direction: column;
  }

  .auth-left {
    width: 100%;
    min-height: 40vh;
  }

  .auth-right {
    width: 100%;
    border-radius: 0;
    padding: 30px 20px;
    min-height: auto;
  }

  .left-content {
    padding: 40px 30px;
  }

  .left-content h1 {
    font-size: clamp(28px, 5vw, 40px);
  }
}

/* Mobile devices */
@media (max-width: 768px) {
  body {
    overflow-y: auto;
    overflow-x: hidden;
  }

  .auth-layout {
    min-height: 100vh;
  }

  .auth-left {
    min-height: 30vh;
    width: 100%;
  }

  .left-content {
    padding: 25px 20px;
    justify-content: flex-start;
    gap: 20px;
  }

  .left-content h1 {
    font-size: clamp(24px, 6vw, 32px);
    margin-bottom: 12px;
    line-height: 1.2;
  }

  .left-content p {
    font-size: 14px;
    line-height: 1.5;
  }

  .logo {
    margin-bottom: 10px;
  }

  .auth-right {
    width: 100%;
    padding: 25px 20px;
    align-items: flex-start;
    padding-top: 30px;
  }

  .auth-card {
    max-width: 100%;
    width: 100%;
    padding: 0;
  }

  .auth-card h2 {
    font-size: 24px;
    margin-bottom: 6px;
  }

  .subtitle {
    font-size: 14px;
    margin-bottom: 25px;
    line-height: 1.4;
  }

  .auth-card label {
    font-size: 14px;
    margin-bottom: 6px;
  }

  .auth-card input {
    padding: 14px;
    font-size: 16px; /* Prevents zoom on iOS */
    margin-bottom: 18px;
  }

  .password-wrapper {
    margin-bottom: 18px;
  }

  .password-toggle {
    right: 12px;
    padding: 8px; /* Larger touch target */
    min-width: 44px;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .form-options {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    margin-top: -5px;
    flex-wrap: wrap;
    gap: 10px;
  }

  .remember-me {
    font-size: 14px;
  }

  .remember-me input[type="checkbox"] {
    width: 18px;
    height: 18px;
    min-width: 18px;
  }

  .forgot-password {
    font-size: 14px;
    padding: 5px;
    min-height: 44px;
    display: flex;
    align-items: center;
  }

  .login-btn,
  .microsoft-btn {
    padding: 16px;
    font-size: 16px;
    min-height: 50px;
    width: 100%;
  }

  .divider {
    margin: 25px 0;
    font-size: 13px;
  }

  .divider span {
    padding: 0 12px;
  }

  .microsoft-btn svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
  }

  .switch {
    font-size: 14px;
    margin-top: 25px;
    line-height: 1.5;
  }

  .switch a {
    padding: 2px 4px;
    display: inline-block;
    min-height: 44px;
    line-height: 40px;
  }
}

/* Small mobile devices */
@media (max-width: 480px) {
  .auth-left {
    min-height: 25vh;
  }

  .left-content {
    padding: 20px 15px;
  }

  .left-content h1 {
    font-size: 22px;
    margin-bottom: 10px;
  }

  .left-content p {
    font-size: 13px;
  }

  .logo {
    font-size: 16px;
    margin-bottom: 15px;
  }

  .logo img {
    height: 26px;
  }

  .auth-right {
    padding: 20px 15px;
  }

  .auth-card h2 {
    font-size: 22px;
  }

  .subtitle {
    font-size: 13px;
    margin-bottom: 20px;
  }

  .auth-card label {
    font-size: 13px;
  }

  .auth-card input {
    padding: 13px;
    font-size: 16px;
    margin-bottom: 16px;
  }

  .form-row {
    flex-direction: column;
    gap: 0;
  }

  .form-row .form-field input {
    margin-bottom: 16px;
  }

  .password-wrapper {
    margin-bottom: 16px;
  }

  .form-options {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 20px;
  }

  .forgot-password {
    align-self: flex-start;
    font-size: 13px;
  }

  .remember-me {
    font-size: 13px;
  }

  .login-btn,
  .microsoft-btn {
    padding: 15px;
    font-size: 15px;
    min-height: 48px;
  }

  .divider {
    margin: 20px 0;
    font-size: 12px;
  }

  .divider span {
    padding: 0 10px;
  }

  .switch {
    font-size: 13px;
    margin-top: 20px;
  }
}

/* Extra small devices */
@media (max-width: 360px) {
  .left-content {
    padding: 15px 12px;
  }

  .left-content h1 {
    font-size: 20px;
  }

  .left-content p {
    font-size: 12px;
  }

  .auth-right {
    padding: 15px 12px;
  }

  .auth-card h2 {
    font-size: 20px;
  }

  .auth-card input {
    padding: 12px;
  }

  .login-btn,
  .microsoft-btn {
    padding: 14px;
    font-size: 14px;
  }
}

/* Large screens */
@media (min-width: 1920px) {
  .left-content {
    padding: 100px; /* More white space on huge screens */
  }
}

/* ========== User Guide page: Related Articles + Floating actions ========== */
.guide-content {
  padding-top: 8px;
}

.related-articles-title {
  font-size: 22px;
  font-weight: 700;
  color: #111827;
  margin: 0 0 20px;
}

.articles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.article-card {
  background: #fff;
  border-radius: 18px;
  overflow: hidden;
  transition: transform 0.3s ease;
  padding: 16px 16px 0;
}

.article-card-link {
  display: block;
  text-decoration: none;
  color: inherit;
}

.article-card:hover {
  transform: translateY(-6px) scale(1.02);
}

.article-card-image {
  width: 100%;
  height: 180px;
  border-radius: 12px;
  margin-bottom: 0;
  overflow: hidden;
}

.article-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.article-card-body {
  padding: 20px 0 24px;
}

.article-card-meta-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}

.article-card-category {
  font-size: 15px;
  font-weight: 500;
  color: #2E3A59;
}

.article-card-category--pill {
  background: #dcfce7;
  color: #166534;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
}

.article-card-date {
  font-size: 14px;
  color: #7A879E;
  flex-shrink: 0;
}

.article-card-title {
  font-size: 20px;
  font-weight: 700;
  color: #1A202C;
  margin: 0 0 12px;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.article-card-desc {
  font-size: 14px;
  font-weight: 400;
  color: #4b5563;
  line-height: 1.55;
  margin: 0 0 24px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.article-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

.article-card-author {
  display: flex;
  align-items: center;
  gap: 10px;
}

.article-card-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #e5e7eb;
  color: #374151;
  font-size: 12px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.article-card-author-name {
  font-size: 16px;
  font-weight: 500;
  color: #333333;
}

.article-card-stats {
  font-size: 14px;
  color: #7A879E;
}

/* ========== Guide article page (read layout like reference) ========== */
/* Full-width white reading area (spans entire main content width to the right edge) */
.guide-article-page {
  width: calc(100% + 56px);
  margin-left: -28px;
  margin-right: -28px;
  padding: 24px 28px 48px;
  background: #fff;
  box-sizing: border-box;
}

.guide-article-wrap {
  max-width: 720px;
  margin: 0 auto;
  padding: 0;
  background: transparent;
}

.guide-article-hero {
  position: relative;
  width: 100%;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 24px;
}

.guide-article-hero img {
  width: 100%;
  height: auto;
  display: block;
  vertical-align: top;
}

.guide-article-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  color: #1f2937;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.guide-article-title {
  font-size: 32px;
  font-weight: 700;
  color: #1f2937;
  line-height: 1.25;
  margin: 0 0 12px;
}

.guide-article-date {
  font-size: 15px;
  color: #6b7280;
  margin: 0 0 28px;
}

.guide-article-body {
  font-size: 17px;
  line-height: 1.7;
  color: #374151;
}

.guide-article-body p {
  margin: 0 0 1.2em;
}

.guide-article-body a {
  color: #2563eb;
  text-decoration: underline;
}

.guide-article-body a:hover {
  color: #1d4ed8;
}

.guide-article-section {
  margin: 40px 0 0;
}

.guide-article-section-title {
  font-size: 28px;
  font-weight: 700;
  color: #111827;
  margin: 0 0 24px;
  line-height: 1.3;
}

.guide-article-feature {
  margin: 0 0 28px;
}

.guide-article-feature:last-child {
  margin-bottom: 0;
}

.guide-article-feature-title {
  font-size: 20px;
  font-weight: 700;
  color: #1f2937;
  margin: 0 0 8px;
  line-height: 1.35;
}

.guide-article-feature-desc {
  font-size: 17px;
  line-height: 1.65;
  color: #374151;
  margin: 0;
}

.guide-article-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 15px;
  color: #4b5563;
  text-decoration: none;
  margin-bottom: 20px;
}

.guide-article-back:hover {
  color: #111827;
}

/* ========== Success toast (slides in from right, then out) ========== */
.claimly-toast-container {
  position: fixed;
  top: 24px;
  right: 24px;
  z-index: 10000;
  pointer-events: none;
}

.claimly-toast {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  min-width: 280px;
  max-width: 360px;
  padding: 16px 18px;
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.12), 0 4px 12px rgba(0, 0, 0, 0.08);
  border-left: 4px solid #10b981;
  transform: translateX(120%);
  opacity: 0;
  transition: transform 0.35s ease, opacity 0.3s ease;
  pointer-events: auto;
}

.claimly-toast--visible {
  transform: translateX(0);
  opacity: 1;
}

.claimly-toast--hiding {
  transform: translateX(120%);
  opacity: 0;
}

.claimly-toast__icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: #10b981;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  line-height: 1;
}

.claimly-toast__content {
  flex: 1;
  min-width: 0;
}

.claimly-toast__title {
  font-size: 15px;
  font-weight: 600;
  color: #111827;
  margin: 0 0 4px;
}

.claimly-toast__subtitle {
  font-size: 13px;
  color: #6b7280;
  margin: 0;
  line-height: 1.4;
}

/* ========== Pending Claims page ========== */
.pending-claims-section {
  padding-top: 12px;
}

.settings-section-title {
  font-size: 18px;
  font-weight: 600;
  color: #111827;
  margin: 0 0 8px;
}

.pending-claims-intro {
  font-size: 14px;
  color: #6b7280;
  margin: 0 0 20px;
}

/* Reports filter bar (between cards and displays) */
.reports-filter-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 12px;
  margin-bottom: 12px;
  padding: 8px 0;
}

.reports-filter-time {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.reports-filter-pill {
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  color: #374151;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.reports-filter-pill:hover {
  background: #f9fafb;
  border-color: #d1d5db;
}

.reports-filter-pill--active {
  background: #b91c1c;
  color: #ffffff;
  border-color: #b91c1c;
}

.reports-filter-pill--active:hover {
  background: #991b1b;
  border-color: #991b1b;
  color: #ffffff;
}

.reports-filter-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.reports-filter-compare {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.reports-filter-compare-icon {
  font-size: 16px;
  line-height: 1;
  opacity: 0.85;
}

.reports-intro {
  font-size: 14px;
  color: #6b7280;
  margin: 0 0 20px;
}

.report-rejection-reason {
  max-width: 280px;
  word-wrap: break-word;
  font-size: 13px;
  color: #4b5563;
}

/* Top Spending Categories (Reports) */
.spending-categories-card {
  padding: 24px;
  background: #ffffff;
  border-radius: 20px;
  border: 1px solid #edf0f7;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  position: relative;
}


.spending-categories-title {
  font-size: 18px;
  font-weight: 700;
  color: #111827;
  margin: 0 0 20px;
}

.spending-categories-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.spending-categories-empty,
.spending-categories-loading {
  font-size: 14px;
  color: #6b7280;
  padding: 16px 0;
}

.spending-categories-loading {
  display: none;
}

.spending-cat-row {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.spending-cat-main {
  display: flex;
  align-items: center;
  gap: 14px;
}

.spending-cat-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}

.spending-cat-icon--yellow { background: #fef9c3; color: #854d0e; }
.spending-cat-icon--blue { background: #dbeafe; color: #1d4ed8; }
.spending-cat-icon--pink { background: #fce7f3; color: #be185d; }
.spending-cat-icon--green { background: #dcfce7; color: #166534; }
.spending-cat-icon--purple { background: #f3e8ff; color: #6b21a8; }
.spending-cat-icon--amber { background: #fffbeb; color: #b45309; }
.spending-cat-icon--teal { background: #ccfbf1; color: #0f766e; }
.spending-cat-icon--rose { background: #ffe4e6; color: #be123c; }
.spending-cat-icon .bi { font-size: 1.1rem; }

.spending-cat-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.spending-cat-name {
  font-size: 14px;
  font-weight: 600;
  color: #111827;
}

.spending-cat-meta {
  font-size: 12px;
  color: #6b7280;
}

.spending-cat-amounts {
  text-align: right;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.spending-cat-total {
  font-size: 14px;
  font-weight: 600;
  color: #111827;
}

.spending-cat-pct {
  font-size: 12px;
  color: #6b7280;
}

.spending-cat-bar-wrap {
  height: 6px;
  background: #f3f4f6;
  border-radius: 999px;
  overflow: hidden;
  margin-left: 54px;
}

.spending-cat-bar {
  height: 100%;
  background: linear-gradient(90deg, #dc2626 0%, #ef4444 50%, #f87171 100%);
  border-radius: 999px;
  transition: width 0.3s ease;
}

/* Reports two-column layout */
.reports-two-col {
  display: grid;
  grid-template-columns: 1.4fr 0.6fr;
  gap: 24px;
  margin-top: 16px;
  align-items: stretch;
  min-height: 380px;
}

@media (max-width: 900px) {
  .reports-two-col {
    grid-template-columns: 1fr;
  }
}

/* Equal-height cards: same height, spending list scrolls on hover/wheel */
.spending-categories-card,
.financial-health-card {
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.spending-categories-card .spending-categories-list-wrap {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.spending-categories-card .spending-categories-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* Expense Overview card (black) */
.financial-health-card {
  padding: 24px;
  background: #111827;
  border-radius: 20px;
  border: 1px solid #1f2937;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.financial-health-title {
  font-size: 18px;
  font-weight: 700;
  color: #f9fafb;
  margin: 0 0 24px;
}

.financial-health-donut-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 28px;
}

.financial-health-donut {
  --approved-pct: 0;
  --rejected-pct: 0;
  --pending-pct: 0;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: conic-gradient(
    #22c55e 0deg,
    #22c55e calc(var(--approved-pct) * 3.6deg),
    #dc2626 calc(var(--approved-pct) * 3.6deg),
    #dc2626 calc((var(--approved-pct) + var(--rejected-pct)) * 3.6deg),
    #f59e0b calc((var(--approved-pct) + var(--rejected-pct)) * 3.6deg),
    #f59e0b 360deg
  );
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.financial-health-donut::before {
  content: '';
  position: absolute;
  inset: 16px;
  border-radius: 50%;
  background: #ffffff;
}

.financial-health-donut-center {
  position: relative;
  z-index: 1;
  font-size: 32px;
  font-weight: 700;
  color: #111827;
}

.financial-health-bars {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.financial-health-bar-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.financial-health-bar-label {
  font-size: 13px;
  font-weight: 500;
  color: #ffffff;
}

.financial-health-bar-value {
  font-size: 13px;
  font-weight: 600;
  color: #f9fafb;
}

.financial-health-bar-track {
  height: 8px;
  background: #374151;
  border-radius: 999px;
  overflow: hidden;
}

.financial-health-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #b91c1c 0%, #dc2626 50%, #ef4444 100%);
  border-radius: 999px;
  transition: width 0.4s ease;
}

.pending-claims-filters {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 16px;
  margin-bottom: 20px;
}

.pending-claims-filter-label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 12px;
  font-weight: 500;
  color: #64748b;
}

.pending-claims-filter-label span {
  letter-spacing: 0.02em;
}

.pending-claims-filter-select,
.pending-claims-filter-input {
  padding: 8px 12px;
  font-size: 14px;
  color: #0f172a;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  min-width: 160px;
}

.pending-claims-search-label .pending-claims-filter-input {
  min-width: 220px;
}

.pending-claims-filter-select:focus,
.pending-claims-filter-input:focus {
  outline: none;
  border-color: #6366f1;
  box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.2);
}

.pending-claims-clear-filters {
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 500;
  color: #64748b;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.pending-claims-clear-filters:hover {
  background: #e2e8f0;
  color: #0f172a;
}

.pending-claims-table-wrapper {
  background: #fff;
  border-radius: 12px;
  overflow-x: auto;
  overflow-y: visible;
  -webkit-overflow-scrolling: touch;
  margin-bottom: 24px;
  border: 1px solid rgba(0, 0, 0, 0.06);
}

.pending-claims-table-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 20px;
  background: #f8fafc;
  border-top: 1px solid #e2e8f0;
  font-size: 13px;
  color: #64748b;
}

.pending-claims-footer-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.pending-claims-range {
  margin-right: 4px;
}

.pending-claims-page-btn {
  padding: 6px 12px;
  font-size: 13px;
  font-weight: 500;
  color: #475569;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.pending-claims-page-btn:hover:not(:disabled) {
  background: #f1f5f9;
  border-color: #cbd5e1;
}

.pending-claims-page-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.pending-claims-footer-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.pending-claims-per-page-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
  color: #64748b;
}

.pending-claims-per-page-select {
  padding: 6px 10px;
  font-size: 13px;
  color: #0f172a;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  min-width: 64px;
}

.pending-claims-per-page-select:focus {
  outline: none;
  border-color: #6366f1;
}

.pending-claims-total {
  font-size: 13px;
  color: #64748b;
}

.pending-claims-total strong {
  color: #0f172a;
}

.pending-claims-table {
  width: 100%;
  min-width: 640px;
  border-collapse: collapse;
  font-size: 14px;
}

.pending-claims-table thead {
  background: #f8fafc;
}

.pending-claims-table th {
  text-align: left;
  padding: 14px 20px;
  font-weight: 600;
  color: #64748b;
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-bottom: 1px solid #e2e8f0;
}

.pending-claims-table td {
  padding: 18px 20px;
  color: #0f172a;
  border-bottom: 1px solid #f1f5f9;
  transition: background 0.2s ease, box-shadow 0.2s ease;
}

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

.pending-claims-table tbody tr {
  background: #fff;
}

.pending-claims-table tbody tr:hover {
  background: #f8fafc;
}

.pending-claims-table tbody tr:hover td {
  box-shadow: inset 0 0 0 1px rgba(99, 102, 241, 0.08);
}

.pending-claims-table tfoot {
  border-top: 2px solid #e2e8f0;
}

.pending-claims-table tfoot td {
  padding: 0.75rem 1rem;
  font-weight: 600;
  background: #f8fafc;
  color: #0f172a;
}

.pending-claim-amount {
  font-weight: 600;
  color: #0f172a;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
}

.pending-claim-receipts {
  white-space: nowrap;
}

.col-submitted,
.col-rejected-at {
  min-width: 160px;
  white-space: nowrap;
}

.col-submitted-by {
  white-space: nowrap;
}

.col-merchant {
  max-width: 140px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.col-expense-type {
  max-width: 100px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.col-receipts {
  max-width: 100px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pending-claim-receipt-link {
  color: #6366f1;
  text-decoration: none;
  font-size: 13px;
}

.pending-claim-receipt-link:hover {
  text-decoration: underline;
}

.pending-claim-status {
  font-size: 11px;
  font-weight: 300;
  padding: 6px 14px;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  display: inline-block;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.06);
}

.pending-claim-status--pending {
  background: linear-gradient(180deg, #fef9c3 0%, #fde68a 100%);
  color: #92400e;
}

.pending-claim-status--approved {
  background: linear-gradient(180deg, #dcfce7 0%, #bbf7d0 100%);
  color: #166534;
}

.pending-claim-status--pending-auth {
  background: linear-gradient(180deg, #fef9c3 0%, #fde68a 100%);
  color: #92400e;
}

.pending-claim-status--rejected {
  background: linear-gradient(180deg, #fee2e2 0%, #fecaca 100%);
  color: #991b1b;
}

.pending-claim-status--voided {
  background: linear-gradient(180deg, #e5e7eb 0%, #d1d5db 100%);
  color: #4b5563;
}
.col-expand { width: 36px; text-align: center; vertical-align: middle; }
.pending-claim-expand-placeholder { display: inline-block; width: 20px; }
.pending-claim-expand {
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px 8px;
  font-size: 0;
  color: #64748b;
  transition: color 0.2s;
}
.pending-claim-expand::before { content: none; }
.pending-claim-expand .bi { font-size: 14px; display: inline-block; transition: transform 0.2s; }
.pending-claim-expand.is-expanded .bi { transform: rotate(90deg); }
.pending-claim-expand:hover { color: #0f172a; }
.submission-detail-row td { background: #f8fafc; padding: 12px 16px; vertical-align: top; }
.submission-detail-inner { margin-left: 24px; }
.submission-items-table { width: 100%; font-size: 13px; }
.submission-items-table th { text-align: left; padding: 6px 8px; color: #64748b; font-weight: 500; }
.submission-items-table td { padding: 6px 8px; border-top: 1px solid #e2e8f0; }

.approvals-actions {
  white-space: nowrap;
}

.approvals-btn {
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 500;
  border-radius: 6px;
  border: 1px solid transparent;
  cursor: pointer;
  margin-right: 6px;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.approvals-btn:last-child {
  margin-right: 0;
}

.approvals-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.approvals-btn--approve {
  background: #dcfce7;
  color: #166534;
  border-color: #bbf7d0;
}

.approvals-btn--approve:hover:not(:disabled) {
  background: #bbf7d0;
}

.approvals-btn--reject {
  background: #fee2e2;
  color: #991b1b;
  border-color: #fecaca;
}

.approvals-btn--reject:hover:not(:disabled) {
  background: #fecaca;
}

.reject-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 24px;
  backdrop-filter: blur(4px);
}

.reject-modal-overlay[hidden] {
  display: none;
}

.reject-modal {
  background: #fff;
  border-radius: 12px;
  max-width: 440px;
  width: 100%;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  overflow: hidden;
}

.reject-modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 20px 20px 0;
  gap: 16px;
}

.reject-modal-title {
  margin: 0;
  font-size: 20px;
  font-weight: 600;
  color: #0f172a;
}

.reject-modal-close {
  background: none;
  border: none;
  font-size: 24px;
  line-height: 1;
  color: #64748b;
  cursor: pointer;
  padding: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  transition: color 0.15s ease, background 0.15s ease;
}

.reject-modal-close:hover {
  color: #0f172a;
  background: #f1f5f9;
}

.reject-modal-subtitle {
  margin: 8px 20px 0;
  font-size: 14px;
  color: #64748b;
  line-height: 1.5;
}

.reject-modal-body {
  padding: 20px 20px 0;
}

.reject-modal-label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: #334155;
  margin-bottom: 8px;
}

.reject-modal-required {
  color: #dc2626;
}

.reject-modal-textarea {
  width: 100%;
  padding: 12px 14px;
  font-size: 14px;
  line-height: 1.5;
  color: #0f172a;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  resize: vertical;
  min-height: 100px;
  box-sizing: border-box;
}

.reject-modal-textarea:focus {
  outline: none;
  border-color: #dc2626;
  box-shadow: 0 0 0 2px rgba(220, 38, 38, 0.2);
}

.reject-modal-textarea::placeholder {
  color: #94a3b8;
}

.reject-modal-error {
  margin: 8px 0 0;
  font-size: 13px;
  color: #dc2626;
}

.reject-modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  padding: 20px 20px 20px;
  border-top: 1px solid #f1f5f9;
}

.reject-modal-btn {
  padding: 10px 18px;
  font-size: 14px;
  font-weight: 500;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.reject-modal-btn--cancel {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  color: #475569;
}

.reject-modal-btn--cancel:hover {
  background: #f1f5f9;
  border-color: #cbd5e1;
}

.reject-modal-btn--reject {
  background: #dc2626;
  border: 1px solid #dc2626;
  color: #fff;
}

.reject-modal-btn--reject:hover:not(:disabled) {
  background: #b91c1c;
  border-color: #b91c1c;
}

.reject-modal-btn--reject:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.rejected-reason-cell {
  max-width: 200px;
}

.rejected-reason-details summary {
  cursor: pointer;
  font-size: 13px;
  color: #6366f1;
  font-weight: 500;
  list-style: none;
  display: flex;
  align-items: center;
  gap: 6px;
}

.rejected-reason-details summary::-webkit-details-marker {
  display: none;
}

.rejected-reason-details summary::before {
  content: '▶';
  font-size: 10px;
  transition: transform 0.2s ease;
}

.rejected-reason-details[open] summary::before {
  transform: rotate(90deg);
}

.rejected-reason-none {
  font-size: 13px;
  color: #94a3b8;
  font-style: italic;
}

.rejected-reason-text {
  margin: 8px 0 0 16px;
  font-size: 13px;
  color: #475569;
  line-height: 1.5;
  padding: 10px 12px;
  background: #f8fafc;
  border-radius: 6px;
  border-left: 3px solid #dc2626;
}

.pending-claims-empty {
  text-align: center;
  padding: 48px 24px;
  background: #f9fafb;
  border-radius: 12px;
  border: 1px dashed #e5e7eb;
}

.pending-claims-empty p {
  margin: 0 0 12px;
  font-size: 15px;
  color: #6b7280;
}

.pending-claims-empty-link {
  font-size: 14px;
  font-weight: 500;
  color: #dc2626;
  text-decoration: none;
}

.pending-claims-empty-link:hover {
  text-decoration: underline;
}

.pending-claims-loading {
  text-align: center;
  padding: 24px;
  font-size: 14px;
  color: #6b7280;
}
