@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&display=swap');

/* ============================================================================
   APEX HRM - CENTRALIZED DESIGN SYSTEM & STYLING
   Single source of truth for colors, themes, typography, and UI tokens
   (Modeled like Android res/values/colors.xml and styles.xml)
   ============================================================================ */

:root {
  /* ==========================================================================
     1. CORE BRAND COLOR TOKENS (User Specified Palette)
     Change these colors here to instantly change the entire application!
     ========================================================================== */
  --hrm-primary: #166fe5;          /* Vibrant Royal Blue */
  --hrm-primary-dark: #0f56bc;     /* Hover state */
  --hrm-primary-deep: #082048;     /* Midnight Navy */
  --hrm-primary-light: #166fe5;    /* Sky tint */
  --hrm-primary-lighter: #166fe5;  /* Accent tint */
  --hrm-secondary: #00b4f8;        /* Electric Cyan / Azure */
  --hrm-secondary-dark: #0284c7;   /* Secondary Hover */

  /* RGB equivalents for dynamic opacity & alpha blending */
  --hrm-primary-rgb: 22, 111, 229;
  --hrm-primary-dark-rgb: 15, 86, 188;
  --hrm-primary-deep-rgb: 8, 32, 72;
  --hrm-secondary-rgb: 0, 180, 248;

  /* Subtle Alpha Tints & Glows */
  --hrm-primary-subtle: rgba(var(--hrm-primary-rgb), 0.1);
  --hrm-primary-subtle-border: rgba(var(--hrm-primary-rgb), 0.25);
  --hrm-secondary-subtle: rgba(var(--hrm-secondary-rgb), 0.12);
  --hrm-secondary-subtle-border: rgba(var(--hrm-secondary-rgb), 0.3);
  --hrm-deep-subtle: rgba(var(--hrm-primary-deep-rgb), 0.08);
  --hrm-cyan-glow: rgba(0, 180, 248, 0.45);

  /* ==========================================================================
     2. UNIFIED PORTAL THEMES (Super Admin, Company Admin, Employee / User)
     All three portals share the centralized brand identity!
     ========================================================================== */
  /* Entity / Super Admin Module (/apex-hrm/entity) */
  --entity-primary: var(--hrm-primary-deep);
  --entity-secondary: var(--hrm-primary-dark);
  --entity-accent: var(--hrm-secondary);
  --entity-accent-hover: var(--hrm-secondary-dark);
  --entity-navbar-bg: linear-gradient(135deg, var(--hrm-primary-deep) 0%, var(--hrm-primary) 100%);
  --entity-footer-bg: var(--hrm-primary-deep);

  /* Company Admin Module (/apex-hrm/admin) */
  --company-primary: var(--hrm-primary);
  --company-primary-dark: var(--hrm-primary-dark);
  --company-primary-deep: var(--hrm-primary-deep);
  --company-accent: var(--hrm-secondary);
  --company-navbar-bg: linear-gradient(135deg, var(--hrm-primary-deep) 0%, var(--hrm-primary) 100%);
  --company-footer-bg: var(--hrm-primary-deep);

  /* Employee / User Module (/apex-hrm/user) */
  --user-primary: var(--hrm-primary);
  --user-primary-dark: var(--hrm-primary-dark);
  --user-primary-deep: var(--hrm-primary-deep);
  --user-accent: var(--hrm-secondary);
  --user-navbar-bg: linear-gradient(135deg, var(--hrm-primary-deep) 0%, var(--hrm-primary) 100%);
  --user-footer-bg: var(--hrm-primary-deep);

  /* ==========================================================================
     3. CENTRALIZED GRADIENTS & HERO THEMES
     ========================================================================== */
  --hrm-brand-gradient: linear-gradient(135deg, var(--hrm-primary-deep) 0%, var(--hrm-primary) 60%, var(--hrm-secondary) 100%);
  --hrm-hero-gradient: linear-gradient(135deg, var(--hrm-primary-deep) 0%, var(--hrm-primary) 100%);
  --hrm-accent-gradient: linear-gradient(135deg, var(--hrm-primary) 0%, var(--hrm-secondary) 100%);
  --hrm-page-gradient: linear-gradient(180deg, #f0f4f9 0%, #ffffff 100%);
  --hrm-auth-gradient: linear-gradient(135deg, var(--hrm-primary-deep) 0%, var(--hrm-primary) 100%);
  --hrm-navy-gradient: linear-gradient(135deg, var(--hrm-primary-deep) 0%, var(--hrm-primary-dark) 100%);

  /* ==========================================================================
     4. SEMANTIC STATUS & ACCENT COLORS
     ========================================================================== */
  --hrm-success: #10b981;
  --hrm-warning: #f59e0b;
  --hrm-danger: #ef4444;
  --hrm-info: var(--hrm-secondary);

  /* ==========================================================================
     5. NEUTRALS, SURFACES & BORDERS
     ========================================================================== */
  --hrm-dark: var(--hrm-primary-deep);
  --hrm-slate-900: #0f172a;
  --hrm-slate-800: #1e293b;
  --hrm-slate-700: #334155;
  --hrm-slate-600: #475569;
  --hrm-slate-500: #64748b;
  --hrm-slate-400: #94a3b8;
  --hrm-slate-300: #cbd5e1;
  --hrm-slate-200: #e2e8f0;
  --hrm-slate-100: #f1f5f9;
  --hrm-slate-50: #f8fafc;

  --hrm-body-bg: #f8fafc;
  --hrm-surface: #ffffff;
  --hrm-border: #e2e8f0;
  --hrm-border-focus: var(--hrm-primary);

  /* ==========================================================================
     6. TYPOGRAPHY
     ========================================================================== */
  --hrm-font-family: 'Plus Jakarta Sans', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --hrm-font-heading: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --hrm-font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  --bs-body-font-family: var(--hrm-font-family);

  --hrm-fw-normal: 400;
  --hrm-fw-medium: 500;
  --hrm-fw-semibold: 600;
  --hrm-fw-bold: 700;
  --hrm-fw-extrabold: 800;

  --hrm-fs-xs: 0.75rem;
  --hrm-fs-sm: 0.875rem;
  --hrm-fs-base: 1rem;
  --hrm-fs-md: 1.125rem;
  --hrm-fs-lg: 1.25rem;
  --hrm-fs-xl: 1.5rem;
  --hrm-fs-2xl: 2rem;
  --hrm-fs-3xl: 2.75rem;

  /* ==========================================================================
     7. SHADOWS & RADIUS
     ========================================================================== */
  --hrm-radius-sm: 6px;
  --hrm-radius-md: 10px;
  --hrm-radius-lg: 16px;
  --hrm-radius-xl: 24px;
  --hrm-radius-pill: 9999px;

  --hrm-shadow-sm: 0 1px 3px rgba(8, 32, 72, 0.08);
  --hrm-shadow-md: 0 4px 12px rgba(8, 32, 72, 0.08);
  --hrm-shadow-lg: 0 10px 25px -5px rgba(8, 32, 72, 0.1);
  --hrm-card-shadow: 0 10px 25px -5px rgba(8, 32, 72, 0.06), 0 8px 10px -6px rgba(8, 32, 72, 0.03);
  --hrm-elevated-shadow: 0 20px 30px -10px rgba(var(--hrm-primary-rgb), 0.22), 0 10px 15px -5px rgba(8, 32, 72, 0.05);
}

/* ============================================================================
   GLOBAL BASE STYLES
   ============================================================================ */

body {
  font-family: var(--hrm-font-family);
  color: var(--hrm-slate-700);
  background-color: var(--hrm-body-bg);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
}

button, input, optgroup, select, textarea {
  font-family: var(--hrm-font-family);
}

main {
  flex: 1;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--hrm-font-heading);
  color: var(--hrm-primary-deep);
  font-weight: var(--hrm-fw-bold);
}

a {
  color: var(--hrm-primary);
  text-decoration: none;
  transition: color 0.15s ease;
}

a:hover {
  color: var(--hrm-primary-dark);
}

/* ============================================================================
   REUSABLE THEME COMPONENT STYLES (Like Android res/values/styles.xml)
   ============================================================================ */

/* ----------------------------------------------------------------------------
   1. Page Containers & Backgrounds
   ---------------------------------------------------------------------------- */
.portal-page-container {
  background: var(--hrm-page-gradient);
  min-height: 90vh;
  padding-top: 1.5rem;
  padding-bottom: 2.5rem;
}

.portal-auth-container {
  background: var(--hrm-auth-gradient);
  min-height: calc(100vh - 120px);
  display: flex;
  align-items: center;
  padding-top: 2.5rem;
  padding-bottom: 2.5rem;
}

.portal-header-banner {
  background: var(--hrm-hero-gradient);
  color: #ffffff;
  border-radius: var(--hrm-radius-lg);
  overflow: hidden;
  box-shadow: var(--hrm-shadow-md);
  margin-bottom: 1.5rem;
}

.portal-auth-card-header {
  background: var(--hrm-hero-gradient);
  color: #ffffff;
  padding: 1.5rem;
  text-align: center;
}

/* ----------------------------------------------------------------------------
   2. Navbars (Entity, Company, User all unified)
   ---------------------------------------------------------------------------- */
.navbar-custom {
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--hrm-border);
  box-shadow: 0 2px 10px rgba(8, 32, 72, 0.04);
  padding: 0.75rem 1rem;
}

.navbar-brand-custom {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: var(--hrm-fw-bold);
  font-size: var(--hrm-fs-lg);
  color: var(--hrm-primary-deep);
  text-decoration: none;
}

.brand-logo-img {
  width: 40px;
  height: 40px;
  object-fit: contain;
  transition: transform 0.25s ease;
}

.navbar-brand-custom:hover .brand-logo-img {
  transform: scale(1.06);
}

.nav-link-custom {
  color: var(--hrm-slate-600);
  font-weight: var(--hrm-fw-semibold);
  font-size: 0.95rem;
  padding: 0.5rem 0.95rem !important;
  border-radius: var(--hrm-radius-sm);
  transition: all 0.2s ease;
}

.nav-link-custom:hover, .nav-link-custom.active {
  color: var(--hrm-primary);
  background-color: var(--hrm-primary-subtle);
}

/* Portal Navbars (Entity, Company Admin, and User) */
.entity-navbar,
.company-navbar,
.user-navbar {
  background: var(--hrm-hero-gradient);
  box-shadow: 0 4px 14px rgba(8, 32, 72, 0.25);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.entity-brand,
.company-brand,
.user-brand {
  font-weight: var(--hrm-fw-extrabold);
  letter-spacing: -0.02em;
  color: #ffffff !important;
  font-size: var(--hrm-fs-lg);
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.entity-nav-link,
.company-nav-link,
.user-nav-link {
  color: rgba(255, 255, 255, 0.85) !important;
  font-weight: var(--hrm-fw-medium);
  padding: 0.45rem 0.8rem !important;
  border-radius: var(--hrm-radius-sm);
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.92rem;
}

.entity-nav-link:hover, .entity-nav-link.active,
.company-nav-link:hover, .company-nav-link.active,
.user-nav-link:hover, .user-nav-link.active {
  color: #ffffff !important;
  background: rgba(255, 255, 255, 0.16);
}

.company-dropdown-menu {
  border: 0;
  box-shadow: var(--hrm-shadow-lg);
  border-radius: var(--hrm-radius-md);
  padding: 0.5rem;
}

.company-dropdown-item {
  border-radius: var(--hrm-radius-sm);
  padding: 0.5rem 0.85rem;
  font-weight: var(--hrm-fw-medium);
  font-size: 0.88rem;
  color: var(--hrm-slate-700);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.company-dropdown-item:hover {
  background-color: var(--hrm-primary-subtle);
  color: var(--hrm-primary);
}

/* ----------------------------------------------------------------------------
   3. Buttons & Variants (All portals inherit centrally)
   ---------------------------------------------------------------------------- */
.btn-brand-primary,
.btn-primary-custom,
.btn-primary,
.btn-company,
.btn-entity,
.btn-user {
  background: var(--hrm-primary);
  color: #ffffff !important;
  border: 1px solid var(--hrm-primary);
  font-weight: var(--hrm-fw-semibold);
  border-radius: var(--hrm-radius-md);
  padding: 0.6rem 1.3rem;
  box-shadow: 0 4px 12px rgba(var(--hrm-primary-rgb), 0.28);
  transition: all 0.2s ease;
}

.btn-brand-primary:hover,
.btn-primary-custom:hover,
.btn-primary:hover,
.btn-company:hover,
.btn-entity:hover,
.btn-user:hover {
  background: var(--hrm-primary-dark) !important;
  border-color: var(--hrm-primary-dark) !important;
  color: #ffffff !important;
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(var(--hrm-primary-rgb), 0.38);
}

.btn-brand-secondary,
.btn-teal {
  background: var(--hrm-secondary);
  color: #ffffff !important;
  border: 1px solid var(--hrm-secondary);
  font-weight: var(--hrm-fw-semibold);
  border-radius: var(--hrm-radius-md);
  padding: 0.6rem 1.3rem;
  box-shadow: 0 4px 12px rgba(var(--hrm-secondary-rgb), 0.25);
  transition: all 0.2s ease;
}

.btn-brand-secondary:hover,
.btn-teal:hover {
  background: var(--hrm-secondary-dark) !important;
  border-color: var(--hrm-secondary-dark) !important;
  color: #ffffff !important;
  transform: translateY(-1px);
}

.btn-brand-deep {
  background: var(--hrm-primary-deep);
  color: #ffffff !important;
  border: 1px solid var(--hrm-primary-deep);
  font-weight: var(--hrm-fw-semibold);
  border-radius: var(--hrm-radius-md);
  padding: 0.6rem 1.3rem;
  transition: all 0.2s ease;
}

.btn-brand-deep:hover {
  background: var(--hrm-primary-dark) !important;
  border-color: var(--hrm-primary-dark) !important;
  color: #ffffff !important;
}

.btn-brand-outline {
  background: transparent;
  color: var(--hrm-primary) !important;
  border: 1px solid var(--hrm-primary);
  font-weight: var(--hrm-fw-semibold);
  border-radius: var(--hrm-radius-md);
  padding: 0.6rem 1.3rem;
  transition: all 0.2s ease;
}

.btn-brand-outline:hover {
  background: var(--hrm-primary);
  color: #ffffff !important;
}

.btn-brand-outline-light {
  background: transparent;
  color: #ffffff !important;
  border: 1px solid rgba(255, 255, 255, 0.5);
  font-weight: var(--hrm-fw-semibold);
  border-radius: var(--hrm-radius-md);
  padding: 0.6rem 1.3rem;
  transition: all 0.2s ease;
}

.btn-brand-outline-light:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: #ffffff;
  color: #ffffff !important;
}

.btn-brand-light {
  background: #ffffff;
  color: var(--hrm-primary) !important;
  border: 1px solid transparent;
  font-weight: var(--hrm-fw-semibold);
  border-radius: var(--hrm-radius-md);
  padding: 0.6rem 1.3rem;
  box-shadow: var(--hrm-shadow-sm);
  transition: all 0.2s ease;
}

.btn-brand-light:hover {
  background: #f8fafc;
  color: var(--hrm-primary-dark) !important;
  transform: translateY(-1px);
}

.btn-secondary-custom {
  background: #ffffff;
  color: var(--hrm-primary-deep);
  border: 1px solid var(--hrm-border);
  font-weight: var(--hrm-fw-semibold);
  padding: 0.65rem 1.4rem;
  border-radius: var(--hrm-radius-md);
  transition: all 0.2s ease;
}

.btn-secondary-custom:hover {
  background: var(--hrm-slate-100);
  color: var(--hrm-primary);
  border-color: var(--hrm-slate-300);
}

/* ----------------------------------------------------------------------------
   4. Badges & Labels (All portals inherit)
   ---------------------------------------------------------------------------- */
.badge-brand-primary {
  background: var(--hrm-primary-subtle) !important;
  color: var(--hrm-primary) !important;
  border: 1px solid var(--hrm-primary-subtle-border);
}

.badge-brand-secondary {
  background: var(--hrm-secondary-subtle) !important;
  color: var(--hrm-secondary) !important;
  border: 1px solid var(--hrm-secondary-subtle-border);
}

.badge-brand-deep {
  background: var(--hrm-deep-subtle) !important;
  color: var(--hrm-primary-deep) !important;
}

.badge-brand-white {
  background: rgba(255, 255, 255, 0.2) !important;
  color: #ffffff !important;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.entity-badge-super {
  background: rgba(239, 68, 68, 0.18);
  color: #ef4444;
  border: 1px solid rgba(239, 68, 68, 0.35);
  font-size: var(--hrm-fs-xs);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-weight: var(--hrm-fw-bold);
  padding: 0.25rem 0.6rem;
  border-radius: var(--hrm-radius-pill);
}

/* ----------------------------------------------------------------------------
   5. Icons & Icon Boxes (All portals inherit)
   ---------------------------------------------------------------------------- */
.brand-icon-primary {
  background: var(--hrm-primary-subtle) !important;
  color: var(--hrm-primary) !important;
}

.brand-icon-secondary {
  background: var(--hrm-secondary-subtle) !important;
  color: var(--hrm-secondary) !important;
}

.brand-icon-deep {
  background: var(--hrm-deep-subtle) !important;
  color: var(--hrm-primary-deep) !important;
}

.brand-icon-white {
  background: rgba(255, 255, 255, 0.2) !important;
  color: #ffffff !important;
}

/* ----------------------------------------------------------------------------
   6. Text & Background Utility Tokens
   ---------------------------------------------------------------------------- */
.text-brand-primary {
  color: var(--hrm-primary) !important;
}

.text-brand-dark {
  color: var(--hrm-primary-dark) !important;
}

.text-brand-deep {
  color: var(--hrm-primary-deep) !important;
}

.text-brand-secondary {
  color: var(--hrm-secondary) !important;
}

.bg-brand-primary {
  background-color: var(--hrm-primary) !important;
}

.bg-brand-deep {
  background-color: var(--hrm-primary-deep) !important;
}

.bg-brand-secondary {
  background-color: var(--hrm-secondary) !important;
}

.bg-brand-gradient {
  background: var(--hrm-brand-gradient) !important;
}

.bg-hero-gradient {
  background: var(--hrm-hero-gradient) !important;
}

.bg-accent-gradient {
  background: var(--hrm-accent-gradient) !important;
}

/* ----------------------------------------------------------------------------
   7. Attendance & Calendar Matrix Utility Classes
   ---------------------------------------------------------------------------- */
.badge-att-holiday {
  background-color: var(--hrm-secondary-subtle) !important;
  color: var(--hrm-primary) !important;
  border: 1px solid var(--hrm-secondary-subtle-border);
}

.att-stat-present {
  background-color: rgba(16, 185, 129, 0.15) !important;
  color: #15803d !important;
}

.att-stat-absent {
  background-color: rgba(239, 68, 68, 0.15) !important;
  color: #b91c1c !important;
}

.att-stat-leave {
  background-color: rgba(245, 158, 11, 0.15) !important;
  color: #b45309 !important;
}

.att-stat-holiday {
  background-color: var(--hrm-secondary-subtle) !important;
  color: var(--hrm-primary) !important;
}

.att-cell-present {
  background-color: rgba(16, 185, 129, 0.15) !important;
  color: #15803d !important;
  font-weight: bold;
}

.att-cell-absent {
  background-color: rgba(239, 68, 68, 0.15) !important;
  color: #b91c1c !important;
  font-weight: bold;
}

.att-cell-leave {
  background-color: rgba(245, 158, 11, 0.15) !important;
  color: #b45309 !important;
  font-weight: bold;
}

.att-cell-holiday {
  background-color: var(--hrm-secondary-subtle) !important;
  color: var(--hrm-primary) !important;
  font-weight: bold;
}

.att-cell-weekoff {
  background-color: var(--hrm-slate-100) !important;
  color: var(--hrm-slate-600) !important;
}

.att-cell-default {
  color: var(--hrm-slate-400) !important;
}

/* ----------------------------------------------------------------------------
   7. Forms & Inputs
   ---------------------------------------------------------------------------- */
.form-label-custom {
  font-weight: var(--hrm-fw-semibold);
  font-size: var(--hrm-fs-sm);
  color: var(--hrm-slate-700);
  margin-bottom: 0.35rem;
}

.form-control-custom, .form-select-custom {
  border: 1px solid var(--hrm-slate-300);
  border-radius: var(--hrm-radius-md);
  padding: 0.65rem 0.95rem;
  font-size: 0.95rem;
  color: var(--hrm-slate-900);
  background-color: #ffffff;
  transition: all 0.2s ease;
}

.form-control-custom:focus, .form-select-custom:focus {
  border-color: var(--hrm-primary);
  box-shadow: 0 0 0 3px rgba(var(--hrm-primary-rgb), 0.18);
  outline: none;
}

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

.input-icon-group i.field-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--hrm-slate-400);
  font-size: 1.05rem;
  pointer-events: none;
}

.input-icon-group .form-control-custom {
  padding-left: 2.6rem;
}

/* ----------------------------------------------------------------------------
   8. Cards, Metric Boxes & Tables
   ---------------------------------------------------------------------------- */
.hrm-card,
.portal-card {
  background: var(--hrm-surface);
  border: 1px solid var(--hrm-border);
  border-radius: var(--hrm-radius-lg);
  box-shadow: var(--hrm-card-shadow);
  padding: 1.75rem;
  transition: all 0.25s ease;
}

.hrm-metric-card,
.portal-metric-card {
  background: var(--hrm-surface);
  border: 1px solid var(--hrm-border);
  border-radius: var(--hrm-radius-lg);
  box-shadow: var(--hrm-card-shadow);
  padding: 1.25rem 1.5rem;
  height: 100%;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.hrm-metric-card:hover,
.portal-metric-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--hrm-elevated-shadow);
}

.plan-card {
  background: var(--hrm-surface);
  border: 1px solid var(--hrm-border);
  border-radius: var(--hrm-radius-lg);
  padding: 2rem 1.75rem;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: var(--hrm-card-shadow);
  display: flex;
  flex-direction: column;
  height: 100%;
  position: relative;
}

.plan-card:hover {
  transform: translateY(-5px);
  border-color: var(--hrm-primary);
  box-shadow: var(--hrm-elevated-shadow);
}

.plan-card.featured {
  border: 2px solid var(--hrm-primary);
  background: linear-gradient(180deg, var(--hrm-primary-subtle) 0%, #ffffff 28%);
  box-shadow: 0 15px 35px -5px rgba(var(--hrm-primary-rgb), 0.18);
}

.plan-badge-top {
  position: absolute;
  top: -13px;
  right: 24px;
  background: var(--hrm-brand-gradient);
  color: #ffffff;
  font-size: var(--hrm-fs-xs);
  font-weight: var(--hrm-fw-bold);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.28rem 0.85rem;
  border-radius: var(--hrm-radius-pill);
  box-shadow: 0 4px 10px rgba(var(--hrm-primary-rgb), 0.32);
}

.plan-price-val {
  font-size: var(--hrm-fs-3xl);
  font-weight: var(--hrm-fw-extrabold);
  color: var(--hrm-primary-deep);
  letter-spacing: -0.02em;
}

.plan-feature-item {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  font-size: 0.92rem;
  color: var(--hrm-slate-600);
  margin-bottom: 0.75rem;
}

.plan-feature-item i {
  color: var(--hrm-primary);
  font-size: 1.05rem;
  flex-shrink: 0;
  margin-top: 2px;
}

.onboard-card {
  background: var(--hrm-surface);
  border: 1px solid var(--hrm-border);
  border-radius: var(--hrm-radius-lg);
  box-shadow: var(--hrm-card-shadow);
  padding: 2.25rem;
}

.hrm-table {
  width: 100%;
  margin-bottom: 0;
}

.hrm-table thead th {
  background-color: var(--hrm-slate-50);
  color: var(--hrm-slate-500);
  font-size: var(--hrm-fs-xs);
  font-weight: var(--hrm-fw-semibold);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-bottom: 1px solid var(--hrm-border);
  padding: 0.75rem 1rem;
}

.hrm-table tbody td {
  padding: 0.85rem 1rem;
  vertical-align: middle;
  border-bottom: 1px solid var(--hrm-border);
}

/* ----------------------------------------------------------------------------
   9. Hero Section & Landing Styles
   ---------------------------------------------------------------------------- */
.hero-wrapper {
  background: radial-gradient(circle at 10% 20%, rgba(var(--hrm-primary-rgb), 0.08) 0%, rgba(var(--hrm-secondary-rgb), 0.04) 40%, rgba(248, 250, 252, 1) 85%);
  padding: 4.5rem 1rem 3.5rem;
  border-bottom: 1px solid #edf2f7;
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.38rem 0.95rem;
  background: var(--hrm-primary-subtle);
  border: 1px solid var(--hrm-primary-subtle-border);
  border-radius: var(--hrm-radius-pill);
  color: var(--hrm-primary);
  font-size: 0.84rem;
  font-weight: var(--hrm-fw-semibold);
  margin-bottom: 1.25rem;
}

.hero-title {
  font-size: 3rem;
  font-weight: var(--hrm-fw-extrabold);
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: var(--hrm-primary-deep);
}

.hero-gradient-text {
  background: var(--hrm-brand-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: var(--hrm-fs-md);
  color: var(--hrm-slate-600);
  line-height: 1.6;
}

.order-summary-box {
  background: var(--hrm-surface);
  border: 1px solid var(--hrm-border);
  border-radius: var(--hrm-radius-lg);
  padding: 1.75rem;
  box-shadow: var(--hrm-card-shadow);
  position: sticky;
  top: 90px;
}

.success-check-badge {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  background: var(--hrm-primary-subtle);
  color: var(--hrm-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  margin: 0 auto 1.5rem;
  box-shadow: 0 0 0 10px rgba(var(--hrm-primary-rgb), 0.08);
}

.credential-pill {
  background: var(--hrm-slate-50);
  border: 1px solid var(--hrm-border);
  border-radius: var(--hrm-radius-sm);
  padding: 0.5rem 0.75rem;
  font-family: var(--hrm-font-mono);
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* ----------------------------------------------------------------------------
   10. Footers
   ---------------------------------------------------------------------------- */
.footer-custom {
  background: var(--hrm-surface);
  border-top: 1px solid var(--hrm-border);
  padding: 2.5rem 1rem 1.5rem;
  color: var(--hrm-slate-500);
  font-size: 0.9rem;
}

.footer-custom a:hover {
  color: var(--hrm-primary) !important;
}

.entity-footer,
.company-footer,
.user-footer {
  margin-top: auto;
  background: var(--hrm-primary-deep);
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.85rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 1.25rem 0;
}

.entity-footer a:hover,
.company-footer a:hover,
.user-footer a:hover {
  color: #ffffff !important;
  text-decoration: underline !important;
}

/* ==========================================================================
   TABLE DROPDOWN & OVERFLOW FIX
   Ensures table action dropdowns (e.g. Manage buttons) are not clipped by
   table-responsive or card overflow containers.
   ========================================================================== */
.table-responsive {
  min-height: 240px;
}

.table-responsive .dropdown-menu {
  z-index: 1060 !important;
}

