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

/* =============================================
   FITZONE OFFICIAL COLOR PALETTE
   Primary:    Dark Purple  #210B2C
   Secondary:  Wisteria     #BC96E6
   Accent:     Sunglow      #FFD166
   BG:         Neutral      #F8F8FC
   Card:       White        #FFFFFF
   Border:                  #EAEAEA
   Text-P:                  #1B1025
   Text-S:                  #6D6480
   Success:                 #22C55E
   Warning:                 #F59E0B
   Danger:                  #EF4444
   Info:                    #3B82F6
   ============================================= */

:root {
  color-scheme: light;

  /* === Core Palette === */
  --primary:          #210B2C;
  --wisteria:         #BC96E6;
  --sunglow:          #FFD166;

  /* === Layout Colors === */
  --bg:               #F8F8FC;
  --surface:          #FFFFFF;
  --sidebar:          #210B2C;
  --border:           #EAEAEA;

  /* === Typography === */
  --text-primary:     #1B1025;
  --text-muted:       #6D6480;

  /* === Accent & CTA === */
  --accent:           #BC96E6;
  --cta:              #FFD166;

  /* === Sidebar active state === */
  --sidebar-active-bg:   #BC96E6;
  --sidebar-active-text: #FFFFFF;

  /* === Semantic Colors === */
  --color-success:    #22C55E;
  --color-warning:    #F59E0B;
  --color-danger:     #EF4444;
  --color-info:       #3B82F6;

  --color-success-bg: rgba(34, 197, 94, 0.10);
  --color-warning-bg: rgba(245, 158, 11, 0.10);
  --color-danger-bg:  rgba(239, 68, 68, 0.10);
  --color-info-bg:    rgba(59, 130, 246, 0.10);

  /* === Legacy compatibility aliases === */
  --color-light-bg:         var(--bg);
  --color-surface:          var(--surface);
  --color-surface-strong:   var(--surface);
  --color-border:           var(--border);
  --color-text:             var(--text-primary);
  --color-text-muted:       var(--text-muted);
  --color-heading:          var(--text-primary);
  --color-primary:          var(--wisteria);
  --color-primary-hover:    #a87fd4;
  --color-secondary:        var(--sunglow);
  --color-secondary-hover:  #f0c24a;
  --color-primary-dark:     var(--primary);
  --color-deep-purple:      #210B2C;
  --color-mid-purple:       #BC96E6;
  --color-muted-accent:     #926cb8;
  --color-soft-accent:      #FFD166;

  /* === Metric Gradients === */
  --metric-blue-start:    #1e3a8a;
  --metric-blue-end:      #3b82f6;
  --metric-green-start:   #15803d;
  --metric-green-end:     #22C55E;
  --metric-orange-start:  #b45309;
  --metric-orange-end:    #F59E0B;
  --metric-red-start:     #b91c1c;
  --metric-red-end:       #EF4444;
  --metric-yellow-start:  #a16207;
  --metric-yellow-end:    #FFD166;

  /* === Shadows (light, minimal) === */
  --shadow-xs: 0 2px 8px rgba(33, 11, 44, 0.04);
  --shadow-sm: 0 6px 20px rgba(33, 11, 44, 0.06);
  --shadow-md: 0 16px 40px rgba(33, 11, 44, 0.08);

  /* === Spacing === */
  --radius-sm:  12px;
  --radius-md:  18px;
  --radius-lg:  24px;
  --radius-pill: 999px;
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-7: 32px;
  --space-8: 40px;
  --text-xs:  12px;
  --text-sm:  14px;
  --text-md:  16px;
  --text-lg:  18px;
  --text-xl:  24px;
  --text-2xl: 32px;
  --transition-fast: 160ms ease;
}



* {
  box-sizing: border-box;
}

html {
  color-scheme: light;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: Poppins, Inter, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: var(--text-md);
  line-height: 1.5;
  color: var(--color-text);
  background: var(--color-light-bg);
}

a {
  color: inherit;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

.app-layout {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  min-height: 100vh;
  transition: grid-template-columns 0.2s ease;
}

.kpi-card {
  background: var(--color-surface);
  border-radius: var(--radius-md);
  padding: var(--space-6);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: var(--shadow-xs);
  border: 1px solid var(--color-border);
  position: relative;
  overflow: hidden;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.sidebar {
  background: var(--sidebar);
  color: var(--text-primary);
  padding: var(--space-6);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: var(--space-6);
  border-right: 1px solid var(--border);
  box-shadow: 18px 0 42px rgba(0, 0, 0, 0.05);
  transition: width 0.2s ease, padding 0.2s ease, min-width 0.2s ease;
  overflow: hidden;
  width: 220px;
  min-width: 220px;
  position: sticky;
  top: 0;
  height: 100vh;
  z-index: 105;
}

.sidebar-scrollable::-webkit-scrollbar {
  display: none;
}
.sidebar-scrollable {
  -ms-overflow-style: none;  /* IE and Edge */
  scrollbar-width: none;  /* Firefox */
}

@media (min-width: 992px) {
  .role-staff .sidebar-scrollable {
    overflow-y: hidden !important;
  }
}

/* Sidebar brand & user boxes always use light text on the dark sidebar */
.sidebar .brand-box,
.sidebar .user-box,
.sidebar .brand-section {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.08);
}

.sidebar .brand-title,
.sidebar .brand-name,
.sidebar .user-name {
  color: #ffffff;
}

.sidebar .brand-subtitle,
.sidebar .user-role,
.sidebar .user-email,
.sidebar .nav-group-label {
  color: rgba(255, 255, 255, 0.45);
}


.brand-box {
  margin-bottom: var(--space-4);
}

.brand-mark {
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  border-radius: 12px;
  overflow: hidden;
  display: block;
  background: transparent;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.1);
  transition: all 0.2s ease;
}

.brand-logo,
.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 12px;
}

.avatar {
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--accent), #9b59b6);
  color: #fff;
  font-size: 16px;
  font-weight: 800;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.1);
  transition: all 0.2s ease;
}

[data-theme="light"] .avatar {
  background: linear-gradient(135deg, var(--accent), #7d3c98);
}

.brand-title {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text-primary);
  transition: opacity 0.2s ease;
}

.brand-subtitle,
.user-role {
  color: var(--text-muted);
  font-size: var(--text-xs);
  transition: opacity 0.2s ease;
}

.user-name {
  font-weight: 700;
  font-size: var(--text-sm);
  color: var(--text-primary);
  transition: opacity 0.2s ease;
}

.nav-menu {
  display: grid;
  gap: 4px;
  margin-top: var(--space-4);
}

.nav-group-label {
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  padding: 12px 16px 4px 16px;
  opacity: 0.7;
  transition: opacity 0.2s ease;
}

/* === SIDEBAR NAV LINKS — always light text on dark purple sidebar === */
.nav-link,
.logout-link {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: 12px 18px;
  border-radius: 20px;
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  font-size: var(--text-sm);
  font-weight: 600;
  transition: transform var(--transition-fast), background var(--transition-fast), color var(--transition-fast), box-shadow var(--transition-fast);
}

.nav-link i,
.logout-link i {
  font-size: var(--text-md);
  width: 20px;
  text-align: center;
  flex-shrink: 0;
}

/* Active: Wisteria/Lavender pill with white text — exactly as in Figma design */
.nav-link.active {
  color: #ffffff !important;
  background: #BC96E6 !important;
  box-shadow: 0 8px 20px rgba(188, 150, 230, 0.25);
  font-weight: 700;
}

.main-content {
  min-width: 0;
  padding: var(--space-6) var(--space-7) var(--space-7);
  display: flex;
  flex-direction: column;
  gap: var(--space-7);
  background: var(--bg);
}

.main-content > * {
  margin-bottom: 0 !important;
}

.topbar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--space-5);
  margin-bottom: var(--space-6);
  padding: var(--space-6);
  border: 1px solid rgba(43, 18, 76, 0.08);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.62);
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(10px);
}

.topbar h1 {
  margin: 0;
  font-size: clamp(24px, 4vw, 34px);
  line-height: 1.05;
  letter-spacing: -0.04em;
  color: var(--color-heading);
}

.topbar-copy {
  display: grid;
  gap: var(--space-2);
}

.topbar-subtitle,
.topbar-role,
.muted,
.small,
.footer-note,
.subtext,
.logged-in {
  color: var(--color-text-muted);
}

.page-header,
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  margin-bottom: var(--space-5);
}

.page-header h2,
.section-header h2,
.page-title {
  margin: 0;
  font-size: clamp(22px, 3vw, 30px);
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--color-heading);
}

.page-header-copy {
  display: grid;
  gap: var(--space-1);
}

.page-description {
  margin: 0;
  color: var(--color-text-muted);
}

.panel,
.card,
.table-card,
.content-card,
.stat-card,
.modal-content,
.credential-box,
.mini-card,
.auth-card {
  background: var(--color-surface, rgba(255, 255, 255, 0.94));
  border: 1px solid var(--color-border);
  border-radius: 16px;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.panel,
.card,
.table-card,
.content-card,
.auth-card {
  padding: var(--space-7);
}

.mini-card {
  padding: var(--space-5);
}

.card,
.table-card,
.panel,
.content-card {
  margin-bottom: var(--space-7);
}

.cards .card,
.grid-two .panel,
.grid-2 .panel,
.grid-3 .card {
  margin-bottom: 0;
}

.content-card h3,
.table-card h3,
.panel h3,
.card h3 {
  margin: 0 0 var(--space-4);
  font-size: 20px;
  color: var(--color-heading);
}

.cards,
.stats-grid,
.grid-2,
.grid-two,
.view-grid {
  display: grid;
  gap: var(--space-6);
}

.cards,
.stats-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.cards.cards-4,
.stats-grid.stats-grid-4,
.dashboard-summary-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.grid-2,
.grid-two,
.view-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid-3,
.insights-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-6);
}

.stat-card {
  padding: var(--space-7);
  min-height: 168px;
  display: flex !important;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  text-align: center;
  position: relative;
  overflow: hidden;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.hover-card {
  transition: transform var(--transition-fast), box-shadow var(--transition-fast) !important;
}

.stat-card .label,
.stat-title {
  font-size: var(--text-sm);
  color: inherit;
  opacity: 0.82;
  margin: 0;
  position: relative;
  z-index: 1;
  flex: 0 0 40px;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  width: 100%;
}

.stat-card .value,
.stat-value,
.metric-value {
  font-size: clamp(24px, 3.2vw, 32px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.04em;
  position: relative;
  width: 100%;
  text-align: center;
  z-index: 1;
  margin: auto 0;
  display: flex;
  align-items: center;
  justify-content: center;
  text-wrap: balance;
}

/* === STAT CARD COLOR VARIANTS (Palette-aligned) === */
.stat-card.purple {
  color: #fff;
  background: linear-gradient(135deg, #210B2C, #4a1870);
  border-top: 3px solid #BC96E6;
}

.stat-card.blue {
  color: #fff;
  background: linear-gradient(135deg, #1e3a8a, #3B82F6);
  border-top: 3px solid #93c5fd;
}

.stat-card.green {
  color: #fff;
  background: linear-gradient(135deg, #15803d, #22C55E);
  border-top: 3px solid #86efac;
}

.stat-card.orange {
  color: #1B1025;
  background: linear-gradient(135deg, #FFD166, #ffe08a);
  border-top: 3px solid #FFD166;
}

.stat-card.soft {
  background: linear-gradient(135deg, rgba(188, 150, 230, 0.12), rgba(255, 255, 255, 0.98));
  color: #210B2C;
}

.stat-card.danger {
  color: #fff;
  background: linear-gradient(135deg, #b91c1c, #EF4444);
  border-top: 3px solid #fca5a5;
}

.stat-card.dark-red,
.stat-card.dark-red.expired-alert {
  color: #fff;
  background: linear-gradient(135deg, #7f1d1d, #b91c1c);
  border-color: rgba(239, 68, 68, 0.22);
  box-shadow: 0 18px 36px rgba(239, 68, 68, 0.18);
}

.stat-card.ok {
  color: #fff;
  background: linear-gradient(135deg, #15803d, #22C55E);
  border-top: 3px solid #86efac;
}

.stat-card.expired-alert {
  color: #fff;
  background: linear-gradient(135deg, #b91c1c 0%, #EF4444 52%, #f87171 100%);
  border: 1px solid rgba(239, 68, 68, 0.22);
  box-shadow: 0 18px 36px rgba(239, 68, 68, 0.18);
}

.stat-card.yellow,
.stat-card.sunglow {
  color: #1B1025;
  background: linear-gradient(135deg, #FFD166, #ffe08a);
  border-top: 3px solid #f0c24a;
}

.stat-card.red {
  color: #fff;
  background: linear-gradient(135deg, #b91c1c, #EF4444);
  border-top: 3px solid #fca5a5;
}

.stat-card.soft .label,
.stat-card.soft .value,
.stat-card.soft .stat-meta {
  color: inherit;
  opacity: 1;
}

.stat-card.expired-alert::after {
  background: rgba(255, 255, 255, 0.16);
}

.stat-card.expired-alert .label,
.stat-card.expired-alert .value,
.stat-card.expired-alert .stat-meta {
  color: #fff;
  opacity: 1;
}

.stat-card .stat-meta {
  margin: 0;
  font-size: 13px;
  opacity: 0.84;
  position: relative;
  z-index: 1;
  text-align: center;
  flex: 0 0 40px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  width: 100%;
}

.kpi-card {
  min-height: 196px;
  padding: 32px;
  display: flex !important;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  position: relative;
  text-align: center;
}

.kpi-card .label,
.kpi-card .stat-title {
  width: 100%;
  margin: 0;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.4;
  text-align: center;
  opacity: 0.82;
  position: relative;
  z-index: 1;
  flex: 0 0 42px;
  display: flex;
  align-items: flex-start;
  justify-content: center;
}

.kpi-card .value,
.kpi-card .stat-value {
  position: relative;
  width: 100%;
  margin: auto 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: clamp(24px, 3.2vw, 32px);
  line-height: 1.1;
  letter-spacing: -0.04em;
  text-align: center;
  text-wrap: balance;
  overflow-wrap: anywhere;
  z-index: 1;
}

.kpi-card .value.is-loss,
.kpi-card .stat-value.is-loss {
  font-size: clamp(24px, 3.2vw, 32px);
  line-height: 1.18;
}

.kpi-card .stat-meta {
  width: 100%;
  margin: 0;
  font-size: 12px;
  line-height: 1.45;
  opacity: 0.9;
  text-align: center;
  position: relative;
  z-index: 1;
  flex: 0 0 42px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.kpi-card .stat-meta:empty {
  display: none;
}

.summary-stat-card {
  min-height: 196px;
  padding: 32px;
}

.reports-kpi-card {
  min-height: 196px;
  padding: 32px;
}

.summary-stat-card.soft {
  color: var(--text-primary);
}

.summary-stat-card.soft .label,
.summary-stat-card.soft .value,
.summary-stat-card.soft .stat-meta {
  color: inherit;
  opacity: 1;
}

.staff-payroll-kpi-grid {
  margin-bottom: var(--space-5);
}

.staff-payroll-kpi-card {
  min-height: 196px;
  padding: 32px;
  display: flex !important;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  position: relative;
  text-align: center;
}

.staff-payroll-kpi-card .label {
  margin: 0;
  width: 100%;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.35;
  opacity: 0.82;
  position: relative;
  z-index: 1;
  flex: 0 0 44px;
  display: flex;
  align-items: flex-start;
  justify-content: center;
}

.staff-payroll-kpi-card .value {
  position: relative;
  width: 100%;
  margin: auto 0;
  font-size: clamp(24px, 3.2vw, 32px);
  line-height: 1.1;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
}

.staff-payroll-kpi-card .stat-meta {
  margin: 0;
  width: 100%;
  font-size: 12px;
  line-height: 1.45;
  opacity: 0.9;
  position: relative;
  z-index: 1;
  flex: 0 0 44px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.dashboard-panel {
  min-height: 100%;
}

.dashboard-lower-grid {
  align-items: stretch;
}

.dashboard-lower-grid--staff .dashboard-spacer {
  visibility: hidden;
  pointer-events: none;
}

.page-header .action-group,
.action-group {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  align-items: center;
}

.action-group .btn,
.action-group .btn-primary,
.action-group .btn-secondary,
.action-group .btn-danger,
.action-group .btn-success,
.action-group .btn-soft,
.action-group .btn-edit,
.action-group .btn-view {
  min-width: 96px;
}

td .action-group button,
td .action-group .btn,
td .action-group a,
td .action-group span {
  width: 120px;
  flex: 0 0 120px;
  padding: 0;
  text-align: center;
  justify-content: center;
  box-sizing: border-box;
}

.btn-view-archive {
  width: 230px !important;
  flex: 0 0 230px !important;
  min-width: 230px !important;
  max-width: 230px !important;
  justify-content: center;
  text-align: center;
  white-space: nowrap;
  padding: 0 16px;
}

.table-card tbody tr,
.content-card tbody tr {
  transition: background var(--transition-fast);
}

.staff-row {
  transition: transform var(--transition-fast), box-shadow var(--transition-fast), background var(--transition-fast);
}

.btn,
.btn-primary,
.btn-secondary,
.btn-danger,
.btn-soft,
.btn-success,
.btn-edit,
.btn-toggle,
.btn-activate,
.btn-delete,
.btn-view {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  border: 1px solid transparent;
  border-radius: 14px;
  min-height: 44px;
  padding: 0 16px;
  font-weight: 700;
  text-decoration: none;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast), background var(--transition-fast), border-color var(--transition-fast), color var(--transition-fast);
}

/* === PRIMARY BUTTON — Dark Purple + Wisteria gradient === */
.btn,
.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, #210B2C, #4a1870);
  border-color: transparent;
}

/* === SECONDARY BUTTON — Wisteria === */
.btn-secondary {
  color: #210B2C;
  background: rgba(188, 150, 230, 0.18);
  border-color: rgba(188, 150, 230, 0.4);
}

/* === SOFT / EDIT / VIEW BUTTON — Wisteria tint === */
.btn-soft,
.btn-edit,
.btn-view {
  color: #210B2C;
  background: rgba(188, 150, 230, 0.12);
  border-color: rgba(188, 150, 230, 0.28);
}

/* === CTA BUTTON — Sunglow === */
.btn-cta {
  color: #1B1025;
  background: linear-gradient(135deg, #FFD166, #ffe08a);
  border-color: transparent;
  font-weight: 700;
}

/* === SUCCESS BUTTON === */
.btn-success,
.btn-activate {
  color: #15803d;
  background: rgba(34, 197, 94, 0.10);
  border-color: rgba(34, 197, 94, 0.28);
}

/* === DANGER BUTTON === */
.btn-danger,
.btn-delete,
.btn-toggle {
  color: #b91c1c;
  background: rgba(239, 68, 68, 0.10);
  border-color: rgba(239, 68, 68, 0.28);
}

button:disabled,
.btn-secondary:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  box-shadow: none;
  transform: none;
}

.button-row,
.modal-actions,
.btn-row {
  display: flex;
  gap: var(--space-3);
  flex-wrap: wrap;
}

.button-row>*,
.modal-actions>*,
.btn-row>* {
  flex: 1 1 180px;
}

.action-group {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}

label {
  display: block;
  margin-bottom: var(--space-2);
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--color-heading);
}

input,
select,
textarea {
  width: 100%;
  min-height: 48px;
  border-radius: 14px;
  border: 1px solid rgba(43, 18, 76, 0.16);
  background: rgba(255, 255, 255, 0.94);
  color: var(--color-text);
  padding: 0 14px;
  outline: none;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast), background var(--transition-fast);
}

input[type="checkbox"],
input[type="radio"] {
  width: auto;
  min-height: auto;
  padding: 0;
  border-radius: 3px;
}

textarea {
  min-height: 120px;
  padding: 14px;
}

input:focus,
select:focus,
textarea:focus {
  border-color: rgba(82, 43, 91, 0.7);
  box-shadow: 0 0 0 4px rgba(82, 43, 91, 0.12);
  background: #fff;
}

input[readonly] {
  background: rgba(239, 232, 247, 0.65);
  color: var(--color-text-muted);
}

.form-group {
  margin-bottom: var(--space-4);
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-4);
}

.form-group.full-width {
  grid-column: 1 / -1;
}

.field-error {
  display: none;
  margin-top: var(--space-2);
  padding: 10px 12px;
  border-radius: 12px;
  background: var(--color-danger-bg);
  color: var(--color-danger);
  font-size: 13px;
}

.input-error {
  border-color: rgba(163, 53, 74, 0.65) !important;
}

.password-wrapper {
  position: relative;
}

.password-wrapper input {
  padding-right: 46px;
}

.toggle-password {
  position: absolute;
  top: 50%;
  right: 14px;
  transform: translateY(-50%);
  color: var(--color-text-muted);
  user-select: none;
}

.toolbar,
.reports-filters {
  display: flex;
  gap: var(--space-3);
  flex-wrap: wrap;
  margin-bottom: var(--space-5);
}

.toolbar input,
.toolbar select,
.reports-filters select,
.statusSelect {
  flex: 1 1 180px;
}

.statusSelect {
  min-width: 140px;
}

.table-card table,
table {
  width: 100%;
  border-collapse: collapse;
}

th,
td {
  padding: 14px 12px;
  text-align: left;
  border-bottom: 1px solid rgba(43, 18, 76, 0.08);
  vertical-align: middle;
}

thead th {
  color: var(--color-text-muted);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.badge,
.status,
.status-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 30px;
  padding: 0 12px;
  border-radius: var(--radius-pill);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: capitalize;
  border: 1px solid transparent;
}

.badge.active,
.badge.paid,
.badge.success,
.status.active,
.status-badge.paid {
  background: #dcfce7;
  color: #15803d;
}

.badge.expired,
.badge.cancelled,
.badge.failed,
.badge.error,
.badge.inactive,
.status.inactive,
.status-badge.cancelled {
  background: #fee2e2;
  color: #b91c1c;
}

.badge.pending,
.badge.warning,
.status-badge.pending,
.status-badge.warning {
  background: #fef3c7;
  color: #b45309;
}

/* === Inactive Soon — orange, distinct from amber pending and red inactive === */
.status-badge.inactive-soon {
  background: #ffedd5;
  color: #c2410c;
  border-color: rgba(234, 88, 12, 0.25);
  animation: pulse-orange 2s ease-in-out infinite;
}

@keyframes pulse-orange {
  0%, 100% { box-shadow: 0 0 0 0 rgba(234, 88, 12, 0); }
  50%       { box-shadow: 0 0 0 4px rgba(234, 88, 12, 0.18); }
}

.badge.refunded,
.status.refunded,
.status-badge.refunded {
  background: #f3f4f6;
  color: #4b5563;
}

.badge.partial,
.status.partial,
.status-badge.partial {
  background: #dbeafe;
  color: #1d4ed8;
}

.flash-box,
.note-box,
.warning-box,
.info-box,
.success-box,
.error-box,
.info-note,
.helper-box,
.demo-box {
  margin-bottom: var(--space-4);
  padding: 16px 18px;
  border-radius: 16px;
  border: 1px solid transparent;
}

.flash-box.success,
.success-box {
  background: var(--color-success-bg);
  color: var(--color-success);
  border-color: rgba(46, 125, 87, 0.14);
}

.flash-box.error,
.error-box {
  background: var(--color-danger-bg);
  color: var(--color-danger);
  border-color: rgba(163, 53, 74, 0.14);
}

.note-box,
.info-box,
.info-note,
.helper-box,
.demo-box {
  background: var(--color-info-bg);
  color: var(--color-info);
  border-color: rgba(76, 52, 114, 0.14);
}

.warning-box {
  background: var(--color-warning-bg);
  color: var(--color-warning);
  border-color: rgba(138, 90, 24, 0.12);
}

.expiry-alert {
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}

.expiry-alert-copy {
  display: grid;
  gap: 4px;
  line-height: 1.45;
}

.expiry-alert-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.expiry-alert-close {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--color-warning);
  font-size: 22px;
  line-height: 1;
}

.expiry-alert.is-visible {
  animation: fadeSlideIn 0.22s ease;
}

.expiry-alert.is-hiding {
  animation: fadeSlideOut 0.22s ease forwards;
}

@keyframes fadeSlideIn {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }

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

@keyframes fadeSlideOut {
  from {
    opacity: 1;
    transform: translateY(0);
  }

  to {
    opacity: 0;
    transform: translateY(-6px);
  }
}

@media (max-width: 640px) {
  .expiry-alert {
    align-items: stretch;
    flex-direction: column;
  }

  .expiry-alert-actions {
    justify-content: space-between;
    width: 100%;
  }
}

.list-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  padding: 16px 18px;
  margin-bottom: var(--space-3);
  border-radius: 18px;
  background: rgba(244, 232, 229, 0.54);
  border: 1px solid rgba(43, 18, 76, 0.08);
}

.list-item.expired {
  background: rgba(250, 233, 236, 0.78);
  border-color: rgba(163, 53, 74, 0.12);
}

.list-item>input[type="radio"] {
  width: auto;
  min-height: auto;
  margin: 0;
}

.right {
  text-align: right;
}

.modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 999;
  align-items: center;
  justify-content: center;
  padding: var(--space-6);
  background: rgba(25, 0, 25, 0.52);
  backdrop-filter: blur(6px);
}

.modal-content {
  width: min(760px, 100%);
  max-height: calc(100vh - 48px);
  overflow: hidden auto;
}

.modal-content::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
.modal-content::-webkit-scrollbar-track {
  background: transparent;
}
.modal-content::-webkit-scrollbar-thumb {
  background: rgba(188, 150, 230, 0.4);
  border-radius: 10px;
}

.modal-small,
.modal-compact {
  width: min(620px, 100%);
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  padding: 20px 24px;
  border-bottom: 1px solid rgba(43, 18, 76, 0.08);
}

.modal-header h3,
.modal-header h4 {
  margin: 0;
  font-size: 20px;
  color: var(--color-heading);
}

.modal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  justify-content: flex-end;
  margin-top: var(--space-4);
}

.modal-actions .btn {
  flex: 1 1 180px;
}

.modal-body,
form {
  padding: 24px;
}

.close-btn {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 12px;
  background: rgba(239, 232, 247, 0.85);
  color: var(--color-primary);
  font-size: 24px;
}

.confirm-message {
  color: var(--color-text);
  line-height: 1.6;
}

.no-results {
  text-align: center;
  color: var(--color-text-muted);
  padding: var(--space-4) 0 0;
}

.pie-wrap {
  display: grid;
  place-items: center;
  gap: var(--space-4);
  min-height: 280px;
}

.pie {
  width: 190px;
  height: 190px;
  border-radius: 50%;
  box-shadow: inset 0 0 0 12px rgba(255, 255, 255, 0.58), var(--shadow-xs);
}

.pie-legend {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  justify-content: center;
  color: var(--color-primary);
  font-weight: 700;
}

.simple-chart,
.bar-chart {
  min-height: 260px;
  display: flex;
  align-items: end;
}

.bars,
.bar-chart {
  width: 100%;
  gap: var(--space-4);
}

.bars {
  display: flex;
  align-items: end;
  padding-top: var(--space-4);
}

.bar-col,
.bar-stack {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: end;
  gap: var(--space-3);
  flex: 1;
}

.dot-line,
.bar {
  width: min(72px, 100%);
  border-radius: 999px 999px 16px 16px;
  background: linear-gradient(180deg, rgba(223, 182, 178, 0.9), var(--color-muted-accent) 56%, var(--color-primary) 100%);
  position: relative;
  box-shadow: inset 0 -10px 18px rgba(25, 0, 25, 0.08);
}

.dot-line {
  width: 6px;
}

.dot {
  position: absolute;
  top: -8px;
  left: 50%;
  width: 18px;
  height: 18px;
  transform: translateX(-50%);
  border-radius: 50%;
  background: var(--color-soft-accent);
  border: 4px solid var(--color-primary);
}

.bar-label,
.label {
  color: var(--color-text-muted);
  font-size: 13px;
  text-align: center;
}

.insight {
  padding: var(--space-5);
  border-radius: 20px;
  border: 1px solid var(--color-border);
  display: grid;
  gap: 6px;
}

.insight.red {
  background: rgba(254, 226, 226, 0.95);
  color: #b91c1c;
}

.insight.purple {
  background: rgba(219, 234, 254, 0.88);
  color: #1d4ed8;
}

.insight.yellow {
  background: rgba(254, 243, 199, 0.9);
  color: #b45309;
}

.search-input {
  margin: 0 0 var(--space-4);
}

.container {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: var(--space-6);
}

.card.auth-card,
.container .card {
  width: min(100%, 460px);
  padding: 32px;
}

.card.large {
  width: min(100%, 760px);
}

.logo-circle,
.status-circle {
  width: 84px;
  height: 84px;
  margin: 0 auto var(--space-4);
  border-radius: 28px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, rgba(223, 182, 178, 0.9), rgba(133, 79, 108, 0.42));
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

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

.status-circle {
  color: var(--color-success);
  font-size: 34px;
  font-weight: 800;
  background: linear-gradient(135deg, #eef8f1, #d8efe3);
}

h1 {
  margin: 0 0 var(--space-2);
  text-align: center;
  font-size: 28px;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--color-heading);
}

h2 {
  margin: 0 0 var(--space-5);
  text-align: center;
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-text-muted);
}

.left {
  text-align: left;
}

.back-link,
.text-link {
  color: var(--color-primary);
  text-decoration: none;
  font-weight: 700;
}

.center-text {
  text-align: center;
}

.auth-btn-row {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: var(--space-2);
}

.auth-btn-row .btn,
.auth-btn-row .btn-primary,
.auth-btn-row .btn-secondary,
.auth-btn-row .btn-danger,
.auth-btn-row .btn-soft,
.auth-btn-row .btn-success,
.auth-btn-row .btn-edit,
.auth-btn-row .btn-view {
  flex: 0 0 auto;
}

.auth-actions {
  display: grid;
  gap: var(--space-3);
  margin-top: var(--space-5);
}

.credential-box {
  padding: var(--space-4);
  margin-bottom: var(--space-4);
}

.radio-stack {
  display: grid;
  gap: var(--space-3);
}

.radio-stack .list-item {
  justify-content: flex-start;
}

.section-value {
  font-size: 16px;
  margin-top: 10px;
}

.metric-card {
  height: 100%;
  position: relative;
}

.metric-card .metric-value.primary {
  color: var(--color-primary);
}

.metric-card .metric-value.danger {
  color: var(--color-danger);
}

.highlight-badge {
  position: absolute;
  top: 18px;
  right: 18px;
}

.plan-card {
  position: relative;
}

.plan-card .metric-value {
  position: static;
  top: auto;
  left: auto;
  transform: none;
  width: auto;
  display: block;
  text-align: left;
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.radio-inline {
  width: auto !important;
  max-width: none !important;
  min-height: auto;
}

.stack-gap {
  display: grid;
  gap: var(--space-3);
}

.mt-3 {
  margin-top: var(--space-3) !important;
}

.mt-4 {
  margin-top: var(--space-4) !important;
}

.mt-5 {
  margin-top: var(--space-5) !important;
}

.p-0 {
  padding: 0 !important;
}

.modal-footer-pad {
  padding: 0 24px 24px;
}

@media (max-width: 1080px) {
  .app-layout {
    grid-template-columns: 1fr;
  }

  .sidebar {
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }
}

@media (max-width: 900px) {
  .main-content {
    padding: var(--space-5);
  }

  .cards,
  .stats-grid,
  .grid-2,
  .grid-two,
  .grid-3,
  .insights-grid,
  .view-grid,
  .form-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .topbar,
  .page-header,
  .section-header,
  .toolbar,
  .reports-filters,
  .modal-actions,
  .button-row,
  .btn-row {
    flex-direction: column;
    align-items: stretch;
  }
}

@media (max-width: 640px) {

  .sidebar,
  .main-content,
  .topbar,
  .panel,
  .card,
  .table-card,
  .content-card,
  .modal-header,
  .modal-body,
  form,
  .container .card {
    padding-left: 18px;
    padding-right: 18px;
  }

  th,
  td {
    padding-left: 8px;
    padding-right: 8px;
  }

  .brand-title {
    font-size: 20px;
  }
}

.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 18px;
}

.summary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--space-4);
  margin-bottom: var(--space-5);
  align-items: stretch;
}

.summary-card {
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  box-shadow: var(--shadow-sm);
}

.summary-card .kicker {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  margin-bottom: var(--space-2);
}

.summary-card .number {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 800;
  color: var(--color-heading);
}


/* Reports, backup, and credential enhancements */
.reports-filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  align-items: end;
  justify-content: flex-end;
}

.date-filter-field {
  display: grid;
  gap: 6px;
  min-width: 170px;
}

.reports-filter-actions,
.reports-export-actions,
.table-utilities,
.table-pagination {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.compact-card {
  padding: var(--space-4);
}

.reports-kpi-grid {
  margin-bottom: var(--space-6);
}

.reports-kpi-card {
  min-height: 188px;
}

.section-header.tight {
  margin-bottom: var(--space-4);
}

.table-responsive {
  overflow-x: auto;
}

.sortable-table th.is-sortable {
  cursor: pointer;
  position: relative;
}

.sortable-table th.is-sortable::after {
  content: '⇅';
  font-size: 11px;
  margin-left: 6px;
  color: var(--color-text-muted);
}

.table-meta,
.table-summary-total,
.pagination-info {
  color: var(--color-text-muted);
  font-size: 14px;
}

.empty-state-inline {
  color: var(--color-text-muted);
  padding: var(--space-4);
}

.bar-track {
  width: 56px;
  height: 200px;
  border-radius: 18px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  background: rgba(43, 18, 76, 0.08);
  padding: 8px;
}

.bar-fill {
  width: 100%;
  border-radius: 16px;
  background: linear-gradient(180deg, var(--metric-blue-end), var(--metric-blue-start));
}

.horizontal-bars {
  display: grid;
  gap: var(--space-4);
}

.horizontal-bar-row {
  display: grid;
  grid-template-columns: minmax(140px, 220px) 1fr 110px;
  gap: var(--space-4);
  align-items: center;
}

.horizontal-bar-copy {
  display: grid;
  gap: 2px;
}

.horizontal-bar-track {
  height: 14px;
  background: rgba(43, 18, 76, 0.08);
  border-radius: 999px;
  overflow: hidden;
}

.horizontal-bar-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--metric-orange-end), var(--metric-orange-start));
}

.payment-status-legend span {
  display: flex;
  align-items: center;
  gap: 8px;
}

.payment-status-legend i {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  display: inline-block;
}

.restore-preview ul {
  margin: 8px 0 0;
  padding-left: 20px;
}

.password-display-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.btn-small {
  padding: 10px 14px;
  font-size: 13px;
}

@media (max-width: 900px) {

  .reports-filter-bar,
  .reports-export-actions,
  .horizontal-bar-row {
    grid-template-columns: 1fr;
  }

  .horizontal-bar-row {
    display: grid;
  }
}

@media (max-width: 720px) {

  .reports-filter-bar,
  .reports-filter-actions,
  .reports-export-actions,
  .table-pagination,
  .password-display-row {
    flex-direction: column;
    align-items: stretch;
  }

  .date-filter-field {
    min-width: 100%;
  }
}


/* Unified surfaces and spacing across dashboard, reports, and payroll */
.cards.cards-4,
.dashboard-summary-grid,
.reports-kpi-grid,
.summary-grid.dashboard-summary-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--space-5);
  margin-bottom: var(--space-6);
  align-items: stretch;
}

.section-surface,
.reports-toolbar,
.table-card,
.panel,
.content-card {
  width: 100%;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.panel,
.content-card,
.table-card,
.reports-toolbar {
  padding: var(--space-6);
  margin-bottom: var(--space-6);
}

.reports-header {
  margin-bottom: var(--space-6);
}

.reports-filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  align-items: end;
  justify-content: flex-end;
}

.reports-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
}

.cards.cards-4 .stat-card {
  min-height: 196px;
}

.table-card table,
.content-card table {
  width: 100%;
}

#transactionsTable tbody tr,
#summaryTable tbody tr,
#payrollRows tr {
  transition: background var(--transition-fast);
}

.password-display-row {
  align-items: center;
}

@media (max-width: 1200px) {

  .cards.cards-4,
  .dashboard-summary-grid,
  .reports-kpi-grid,
  .summary-grid.dashboard-summary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .reports-toolbar {
    flex-direction: column;
    align-items: stretch;
  }
}

@media (max-width: 640px) {

  .cards.cards-4,
  .dashboard-summary-grid,
  .reports-kpi-grid,
  .summary-grid.dashboard-summary-grid {
    grid-template-columns: 1fr;
  }

  .panel,
  .content-card,
  .table-card,
  .reports-toolbar {
    padding: 18px;
  }
}


.page-header .action-group {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  align-items: center;
}



.table-card .toolbar input,
.table-card .toolbar select,
.reports-filter-bar input,
.reports-filter-bar select {
  min-height: 44px;
}

.financial-overview-grid .stat-card {
  min-height: 138px;
}

.insight.green {
  background: rgba(232, 244, 238, 0.78);
  color: var(--color-success);
}

.insight small {
  display: block;
  margin-top: var(--space-2);
  line-height: 1.45;
}

.empty-state-inline {
  width: 100%;
  min-height: 180px;
  display: grid;
  place-items: center;
  border: 1px dashed var(--color-border-strong);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.55);
}

.table-summary-total {
  margin-top: var(--space-4);
  font-weight: 700;
  color: var(--color-heading);
}

.badge.success {
  background: var(--color-success-bg);
  color: var(--color-success);
}

.badge.failed,
.badge.error {
  background: var(--color-danger-bg);
  color: var(--color-danger);
}


/* Update refinements */
.restore-warning {
  background: linear-gradient(135deg, rgba(163, 53, 74, 0.14), rgba(251, 228, 216, 0.95));
  border-color: rgba(163, 53, 74, 0.35);
  color: var(--color-danger);
  font-weight: 700;
}

.empty-state-cell {
  padding: 18px;
  text-align: center;
  color: var(--color-text-muted);
}

button:disabled,
.btn:disabled,
.btn-primary:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.password-wrapper input::-ms-reveal,
.password-wrapper input::-ms-clear {
  display: none;
}

.password-wrapper input::-webkit-credentials-auto-fill-button,
.password-wrapper input::-webkit-textfield-decoration-container {
  display: none !important;
}

.action-group {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

/* Backup history and restore log refinements */
.section-header-stack {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--space-4);
}

.section-subtitle {
  margin: 6px 0 0;
  color: var(--color-text-muted);
  line-height: 1.5;
}

.filter-toolbar {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: var(--space-4);
  align-items: end;
  margin-bottom: var(--space-4);
}

.form-group.compact label {
  display: block;
  margin-bottom: 6px;
  font-weight: 600;
}

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

.table-meta-row {
  display: flex;
  justify-content: space-between;
  gap: var(--space-3);
  flex-wrap: wrap;
  margin-bottom: var(--space-3);
  color: var(--color-text-muted);
  font-size: 14px;
}

.pagination-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-3);
  flex-wrap: wrap;
  margin-top: var(--space-4);
  width: 100%;
}

.pagination-pages {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.pagination-page {
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  border: 1px solid var(--color-border);
  background: #ffffff;
  color: #111827;
  text-decoration: none;
  font-weight: 700;
  transition: all 0.2s;
}

.pagination-page.is-active {
  background: linear-gradient(135deg, #8b5cf6, #5b21b6);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 4px 10px rgba(139, 92, 246, 0.25);
}

.pagination-btn {
  background: #f3e8ff;
  color: #311b5e;
  border: none;
  padding: 0 20px;
  border-radius: 30px;
  font-weight: 700;
  cursor: pointer;
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  height: 40px;
  transition: all 0.2s;
}

.btn.is-disabled {
  pointer-events: none;
  opacity: 0.5;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.status-pill--success {
  background: rgba(46, 125, 50, 0.14);
  color: #2e7d32;
}

.status-pill--danger {
  background: rgba(198, 40, 40, 0.14);
  color: #c62828;
}

.status-pill--neutral {
  background: rgba(82, 43, 91, 0.12);
  color: var(--color-mid-purple);
}

.empty-state-panel {
  min-height: 120px;
  display: grid;
  place-items: center;
  text-align: center;
  border-radius: var(--radius-md);
  border: 1px dashed var(--color-border-strong);
  color: var(--color-text-muted);
  background: rgba(255, 255, 255, 0.45);
}

.restore-warning-strong {
  display: flex;
  align-items: center;
  gap: 10px;
}

.warning-icon {
  font-size: 18px;
  line-height: 1;
}

@media (max-width: 640px) {

  .table-meta-row,
  .toolbar-actions,
  .section-header-stack {
    flex-direction: column;
    align-items: stretch;
  }

  .pagination-pages {
    justify-content: center;
  }
}

.reports-kpi-card .stat-meta {
  font-size: 13px;
  opacity: .88;
  margin-top: 10px;
}

.status-badge.cancelled,
.status-badge.inactive {
  background: #fee2e2;
  color: #b91c1c;
}

.status-badge.pending {
  background: #fef3c7;
  color: #b45309;
}

.status-badge.paid {
  background: #dcfce7;
  color: #15803d;
}

.reports-kpi-grid .stat-card {
  min-height: 196px;
  padding: 32px;
}

.search-label {
  font-size: 13px;
  font-weight: 700;
  color: var(--color-text-muted);
  display: block;
  margin-bottom: 8px;
}

@media (max-width: 900px) {
  .dashboard-lower-grid--staff .dashboard-spacer {
    display: none;
  }
}


.page-header .header-action-group {
  justify-content: flex-end;
  align-items: center;
  flex-wrap: nowrap;
  gap: var(--space-3);
  margin-left: auto;
}

.page-header .header-action-group .btn-primary,
.page-header .header-action-group .btn-secondary {
  min-height: 44px;
}

@media (max-width: 640px) {
  .page-header .header-action-group {
    flex-wrap: wrap;
    justify-content: flex-start;
    margin-left: 0;
  }
}

/* Auth Page Redesign */
.auth-page {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  background-image: url('../img/auth_gym_bg.png');
  background-size: cover;
  background-position: center;
  position: relative;
  z-index: 1;
}

.auth-page::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(25, 0, 25, 0.75) 0%, rgba(43, 18, 76, 0.45) 100%);
  z-index: -1;
}

.auth-branding {
  padding: 40px 80px;
  color: #fff;
  text-align: left;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.auth-brand-name {
  font-size: clamp(48px, 6vw, 76px);
  margin: 0 0 8px;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.02em;
  line-height: 1.1;
  text-shadow: 0 4px 12px rgba(0,0,0,0.3);
  text-align: left !important;
}

.auth-brand-tagline {
  font-size: clamp(24px, 3vw, 36px);
  margin: 0 0 20px;
  font-weight: 700;
  color: rgba(255,255,255,0.9);
  line-height: 1.3;
  text-shadow: 0 2px 8px rgba(0,0,0,0.3);
  text-align: left !important;
}

.auth-brand-desc {
  font-size: 18px;
  margin: 0;
  padding: 0;
  opacity: 0.85;
  max-width: 480px;
  color: #fff;
  line-height: 1.6;
  text-align: left;
  text-shadow: 0 2px 6px rgba(0,0,0,0.3);
}

.auth-card-wrapper {
  display: flex;
  justify-content: center;
  padding: 40px;
}

.glass-card.auth-card {
  width: min(100%, 460px);
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 20px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
  padding: 44px 40px;
  margin: 0;
  color: #fff;
}

.glass-card h1, 
.glass-card h2,
.glass-card label,
.glass-card p,
.glass-card a,
.glass-card .back-link,
.glass-card .text-link {
  color: #fff;
}

.glass-card .logo-circle {
  margin: 0 auto 24px;
}

.glass-card input {
  background: #fff;
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 6px;
  color: #333;
}

.glass-card input:focus {
  background: #fff;
  border-color: #fff;
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.25);
}

.glass-card .btn-primary {
  border-radius: 6px;
  transition: all 0.25s ease;
}

@media (max-width: 900px) {
  .auth-page {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .auth-branding {
    padding: 40px 24px 10px;
  }
  .auth-brand-desc {
    margin: 0 auto;
  }
  .auth-card-wrapper {
    padding: 10px 20px 40px;
  }
  .glass-card.auth-card {
    padding: 32px 24px;
    text-align: left;
  }
}

.glass-card .credential-box,
.glass-card .demo-box,
.glass-card .info-box,
.glass-card .error-box,
.glass-card .success-box,
.glass-card .flash-box {
  color: #111;
  text-shadow: none;
}

.glass-card .credential-box *,
.glass-card .demo-box *,
.glass-card .info-box *,
.glass-card .error-box *,
.glass-card .success-box *,
.glass-card .flash-box * {
  color: #111 !important;
  text-shadow: none !important;
}

/* Collapsible Sidebar Styles */
body.sidebar-collapsed .app-layout {
  grid-template-columns: 64px minmax(0, 1fr);
}

body.sidebar-collapsed .sidebar {
  width: 64px;
  min-width: 64px;
  padding: var(--space-4) 8px;
}

body.sidebar-collapsed .brand-box {
  padding: var(--space-2);
  justify-content: center;
}

body.sidebar-collapsed .user-box {
  padding: var(--space-2);
  justify-content: center;
}

body.sidebar-collapsed .nav-group-label {
  opacity: 0;
  height: 0;
  padding: 0;
  margin: 0;
  overflow: hidden;
  pointer-events: none;
}

body.sidebar-collapsed .nav-link span,
body.sidebar-collapsed .logout-link span,
body.sidebar-collapsed .brand-title,
body.sidebar-collapsed .brand-subtitle,
body.sidebar-collapsed .user-name,
body.sidebar-collapsed .user-role {
  display: none;
}

body.sidebar-collapsed .nav-link,
body.sidebar-collapsed .logout-link {
  justify-content: center;
  padding: 10px 0;
}

/* Tooltip for Collapsed Sidebar Icons */
body.sidebar-collapsed .nav-link,
body.sidebar-collapsed .logout-link {
  position: relative;
}

body.sidebar-collapsed .nav-link::after,
body.sidebar-collapsed .logout-link::after {
  content: attr(data-tooltip);
  position: absolute;
  left: 100%;
  top: 50%;
  transform: translateY(-50%) scale(0.85);
  background: var(--surface);
  color: var(--text-primary);
  border: 1px solid var(--border);
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 11px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: all 0.15s ease;
  margin-left: 14px;
  z-index: 1000;
  box-shadow: var(--shadow-sm);
}

/* New Slim Top Bar Styles */
.top-bar-new {
  height: 52px;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--space-6);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
}

.top-bar-left {
  display: flex;
  align-items: center;
  gap: var(--space-4);
}

#sidebar-toggle {
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 18px;
  cursor: pointer;
  padding: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  transition: background 0.2s ease;
}

.top-bar-title-group {
  display: flex;
  flex-direction: column;
}

.top-bar-title-group h2 {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.2;
}

.top-bar-title-group p {
  margin: 0;
  font-size: 11px;
  color: var(--text-muted);
  line-height: 1.2;
}

.top-bar-right {
  display: flex;
  align-items: center;
  gap: var(--space-4);
}

.top-bar-btn {
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 16px;
  cursor: pointer;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background 0.2s ease;
  position: relative;
}

.notification-badge {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 7px;
  height: 7px;
  background: var(--metric-red-start);
  border-radius: 50%;
  border: 1px solid var(--surface);
  display: none;
}

.top-bar-user {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.top-bar-user-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), #9b59b6);
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 13px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.top-bar-user-info {
  display: flex;
  flex-direction: column;
}

.top-bar-user-name {
  font-weight: 600;
  font-size: var(--text-xs);
  color: var(--text-primary);
  line-height: 1.1;
}

.top-bar-user-role {
  font-size: 10px;
  color: var(--text-muted);
  line-height: 1.1;
}

/* Notification Dropdown Styles */
.notification-container {
  position: relative;
}

.notification-dropdown {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  width: 320px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.3);
  z-index: 1000;
  display: none;
  flex-direction: column;
  overflow: hidden;
}

.notification-dropdown.active {
  display: flex;
}

.notification-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.01);
}

.notification-header h4 {
  margin: 0;
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--text-primary);
}

.notification-mark-read {
  font-size: 11px;
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
  cursor: pointer;
}

.notification-list {
  max-height: 320px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}

.notification-item {
  display: flex;
  gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  transition: background 0.2s ease;
  text-decoration: none;
  color: var(--text-primary);
}

.notification-item.unread {
  background: rgba(155, 89, 182, 0.06);
}

.notification-item.type-expired { border-left: 4px solid var(--metric-red-start); }
.notification-item.type-expiring { border-left: 4px solid var(--metric-yellow-start); }
.notification-item.type-stock { border-left: 4px solid var(--metric-orange-start); }
.notification-item.type-payroll { border-left: 4px solid var(--metric-purple-start); }
.notification-item.type-backup { border-left: 4px solid var(--metric-green-start); }

.notification-icon {
  font-size: var(--text-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 20px;
}

.notification-item.type-expired .notification-icon { color: var(--metric-red-start); }
.notification-item.type-expiring .notification-icon { color: var(--metric-yellow-start); }
.notification-item.type-stock .notification-icon { color: var(--metric-orange-start); }
.notification-item.type-payroll .notification-icon { color: var(--metric-purple-start); }
.notification-item.type-backup .notification-icon { color: var(--metric-green-start); }

.notification-content {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex-grow: 1;
}

.notification-message {
  font-size: var(--text-xs);
  line-height: 1.4;
  color: var(--text-primary);
}

.notification-time {
  font-size: 10px;
  color: var(--text-muted);
}

.notification-empty {
  padding: 24px;
  text-align: center;
  color: var(--text-muted);
  font-size: var(--text-xs);
}

/* Stat Cards Uniform Pattern */
.kpi-card {
  background: var(--surface) !important;
  border: 1px solid var(--border) !important;
  border-radius: 14px !important;
  padding: 20px 22px !important;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.15) !important;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 8px;
  overflow: hidden;
  margin-bottom: 0;
  border-top: 3px solid var(--border) !important; /* fallback */
}

[data-theme="light"] .kpi-card {
  box-shadow: 0 4px 24px rgba(33, 11, 44, 0.05) !important;
}

/* === KPI CARD SEMANTIC TOP BORDERS (Official Palette) === */
.kpi-card.purple, .kpi-card.wisteria { border-top: 3px solid #BC96E6 !important; }
.kpi-card.green  { border-top: 3px solid #22C55E !important; }
.kpi-card.red, .kpi-card.dark-red, .kpi-card.inactive-alert, .kpi-card.expired-alert { border-top: 3px solid #EF4444 !important; }
.kpi-card.yellow, .kpi-card.orange, .kpi-card.sunglow { border-top: 3px solid #FFD166 !important; }
.kpi-card.blue   { border-top: 3px solid #3B82F6 !important; }

.kpi-card .card-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.kpi-card .label, 
.kpi-card .stat-title {
  font-size: 11px !important;
  text-transform: uppercase !important;
  font-weight: 700 !important;
  color: var(--text-muted) !important;
  margin: 0;
  padding: 0;
}

.kpi-card .value, 
.kpi-card .stat-value {
  font-size: 28px !important;
  font-weight: 800 !important;
  color: var(--text-primary) !important;
  margin: 4px 0 0 0 !important;
  line-height: 1.1;
}

.kpi-card .value.currency, 
.kpi-card .stat-value.currency,
.kpi-card .value[data-currency],
.kpi-card .stat-value[data-currency] {
  font-family: 'Courier New', Courier, monospace !important;
}

.kpi-card .stat-meta {
  font-size: 12px !important;
  color: var(--text-muted) !important;
  margin: 0 !important;
  padding: 0 !important;
}

.kpi-card .card-icon-circle {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-md);
  flex-shrink: 0;
}

/* === KPI CARD ICON CIRCLE COLORS (Official Palette) === */
.kpi-card.purple .card-icon-circle,
.kpi-card.wisteria .card-icon-circle { background: rgba(188, 150, 230, 0.15); color: #BC96E6; }

.kpi-card.green .card-icon-circle   { background: rgba(34, 197, 94, 0.12);   color: #15803d; }

.kpi-card.red .card-icon-circle,
.kpi-card.dark-red .card-icon-circle,
.kpi-card.inactive-alert .card-icon-circle { background: rgba(239, 68, 68, 0.12); color: #b91c1c; }

.kpi-card.yellow .card-icon-circle,
.kpi-card.orange .card-icon-circle,
.kpi-card.sunglow .card-icon-circle { background: rgba(255, 209, 102, 0.18); color: #a16207; }

.kpi-card.blue .card-icon-circle    { background: rgba(59, 130, 246, 0.12);  color: #1e3a8a; }

/* Mobile Close Button hidden on desktop */
.sidebar-close-btn {
  display: none;
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.6);
  font-size: 20px;
  cursor: pointer;
  margin-left: auto;
  padding: 4px 8px;
  border-radius: 8px;
  transition: all 0.2s ease;
}

/* Responsive Sidebar Clipping and overlays */
.sidebar-backdrop {
  display: none;
}

@media (max-width: 768px) {
  .app-layout {
    grid-template-columns: 1fr !important;
  }
  .sidebar {
    position: fixed;
    left: -260px;
    top: 0;
    bottom: 0;
    width: 250px;
    z-index: 1000;
    transition: left 0.28s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 10px 0 30px rgba(0, 0, 0, 0.3);
  }
  body.sidebar-open .sidebar {
    left: 0;
  }
  .sidebar-close-btn {
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .sidebar-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(2px);
    z-index: 999;
    display: none;
    opacity: 0;
    transition: opacity 0.25s ease;
  }
  body.sidebar-open .sidebar-backdrop {
    display: block;
    opacity: 1;
  }
}

/* Sidebar mockup brand and user card layout classes */
.brand-section {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
  padding-left: 8px;
}

.brand-section .logo-circle,
.brand-logo-circle {
  width: 38px;
  height: 38px;
  margin: 0;
  background: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.3);
  flex-shrink: 0;
  overflow: hidden;
}

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

.brand-details {
  display: flex;
  flex-direction: column;
}

.brand-name {
  font-size: 18px;
  font-weight: 800;
  line-height: 1.1;
  color: var(--text-primary);
  letter-spacing: -0.5px;
}

.brand-subtitle {
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 500;
}

/* Sidebar User Info Card */
.sidebar-user-card {
  background-color: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: auto;
  transition: all 0.2s ease;
}

[data-theme="dark"] .sidebar-user-card {
  background-color: rgba(255, 255, 255, 0.02);
}

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

.user-avatar {
  width: 38px;
  height: 38px;
  background-color: #ffd2e6;
  color: #c94a85;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 16px;
  flex-shrink: 0;
}

.user-details {
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.user-name {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-primary);
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
}

.user-email {
  font-size: 11px;
  color: var(--text-muted);
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
}

.user-card-actions {
  display: flex;
  gap: 8px;
}

.btn-profile-link {
  flex-grow: 1;
  background-color: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border);
  color: var(--text-primary);
  padding: 8px 12px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  text-decoration: none;
  transition: all 0.2s;
}

[data-theme="light"] .btn-profile-link {
  background-color: rgba(33, 11, 44, 0.04);
}

.btn-logout-icon {
  width: 32px;
  height: 32px;
  background-color: rgba(231, 76, 60, 0.1);
  border: 1px solid rgba(231, 76, 60, 0.2);
  color: var(--color-red);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
}

/* Collapsed state user card styling */
body.sidebar-collapsed .sidebar-user-card {
  padding: 8px 0;
  gap: 0;
  border-radius: 50%;
  border: none;
  background: transparent;
}
body.sidebar-collapsed .user-profile-header {
  justify-content: center;
}
body.sidebar-collapsed .sidebar-user-card .user-details,
body.sidebar-collapsed .sidebar-user-card .user-card-actions {
  display: none;
}

/* Sidebar Custom Scrollbar */
.sidebar-scrollable {
  scrollbar-width: thin !important;
  scrollbar-color: rgba(255, 255, 255, 0.3) transparent !important;
  padding-right: 6px;
  margin-right: -6px;
}
.sidebar-scrollable::-webkit-scrollbar {
  width: 6px !important;
  background-color: transparent !important;
}
.sidebar-scrollable::-webkit-scrollbar-track {
  background: transparent !important;
}
.sidebar-scrollable::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.3) !important;
  border-radius: 10px !important;
}
.sidebar-scrollable::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.5) !important;
}

/* =============================================
   ACTION MENU ACCORDION (PROFILE PAGES)
   ============================================= */
.action-menu-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-width: 0;
}

.table-responsive {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.table-responsive::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
.table-responsive::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.02);
    border-radius: 10px;
}
.table-responsive::-webkit-scrollbar-thumb {
    background: rgba(33, 11, 44, 0.15);
    border-radius: 10px;
}
.table-responsive::-webkit-scrollbar-thumb:hover {
    background: rgba(33, 11, 44, 0.25);
}

@media print {
    body {
        background: #fff;
    }
    .sidebar, .top-header, .summary-kpi-grid, .table-utilities, .btn, .flash-box {
        display: none !important;
    }
    .main-content {
        margin: 0 !important;
        padding: 0 !important;
        width: 100% !important;
    }
    .card {
        box-shadow: none !important;
        border: none !important;
    }
    table {
        width: 100% !important;
        border-collapse: collapse !important;
    }
    th, td {
        border: 1px solid #ddd !important;
        padding: 8px !important;
        color: #000 !important;
    }
}

.action-menu-item {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    transition: all 0.2s ease;
    min-width: 0;
}

.action-menu-item:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--accent);
}

.action-menu-header {
    display: flex;
    align-items: center;
    padding: 20px 24px;
    cursor: pointer;
    background: var(--surface);
    transition: background 0.2s ease;
}

.action-menu-header:hover {
    background: #fdfcff;
}

.action-menu-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: rgba(188, 150, 230, 0.15); /* Soft wisteria bg */
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    margin-right: 20px;
    flex-shrink: 0;
}

.action-menu-title {
    flex: 1;
}

.action-menu-title h4 {
    margin: 0 0 4px 0;
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary);
}

.action-menu-title p {
    margin: 0;
    font-size: 13px;
    color: var(--text-muted);
}

.action-menu-chevron {
    color: var(--text-muted);
    font-size: 16px;
    transition: transform 0.3s ease;
}

/* When active (expanded) */
.action-menu-item.active {
    border-color: var(--primary);
}

.action-menu-item.active .action-menu-header {
    border-bottom: 1px solid var(--border);
}

.action-menu-item.active .action-menu-chevron {
    transform: rotate(90deg);
}

.action-menu-content {
    display: none;
    padding: 24px;
    background: #fafafa;
}

.action-menu-item.active .action-menu-content {
    display: block;
    animation: slideDown 0.3s ease forwards;
}

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}