/* NRG PeopleHub - Apple Platforms & Fintech Design System */

@font-face {
  font-family: 'SF Pro Display';
  src: url('../fonts/sf-pro-display_bold.woff2') format('woff2');
  font-weight: 700 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'SF Pro Display';
  src: url('../fonts/sf-pro-display_semibold.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'SF Pro Display';
  src: url('../fonts/sf-pro-display_medium.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'SF Pro Display';
  src: url('../fonts/sf-pro-display_regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'SF Pro Text';
  src: url('../fonts/sf-pro-text_semibold.woff2') format('woff2');
  font-weight: 600 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'SF Pro Text';
  src: url('../fonts/sf-pro-text_regular.woff2') format('woff2');
  font-weight: 400 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'SF Pro';
  src: url('../fonts/sf-pro-display_bold.woff2') format('woff2');
  font-weight: 700 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'SF Pro';
  src: url('../fonts/sf-pro-display_semibold.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'SF Pro';
  src: url('../fonts/sf-pro-display_medium.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'SF Pro';
  src: url('../fonts/sf-pro-text_regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-display: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-money: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mono: ui-monospace, Menlo, Monaco, Consolas, monospace;

  /* Modern Fintech Light Crisp Surface Palette */
  --bg-app: #f8fafc;
  --bg-sidebar: rgba(255, 255, 255, 0.97);
  --bg-card: rgba(255, 255, 255, 0.98);
  --bg-card-subtle: #ffffff;
  --bg-hover: rgba(241, 245, 249, 0.92);
  --bg-active: #eff6ff;

  --border-subtle: rgba(226, 232, 240, 0.85);
  --border-card: rgba(255, 255, 255, 0.88);
  --border-highlight: rgba(37, 99, 235, 0.3);

  --text-main: #0f172a;
  --text-secondary: #475569;
  --text-muted: #64748b;

  /* Elegant Corporate Blue Accent */
  --primary: #2563eb;
  --primary-hover: #1d4ed8;
  --primary-text: #ffffff;
  --primary-light: #eff6ff;
  --primary-border: #bfdbfe;

  --neon-lime: #2563eb;
  --neon-lime-hover: #1d4ed8;

  --success: #10b981;
  --success-text: #059669;
  --success-bg: #ecfdf5;
  --success-border: #a7f3d0;

  --warning: #f59e0b;
  --warning-text: #d97706;
  --warning-bg: #fffbeb;
  --warning-border: #fde68a;

  --danger: #ef4444;
  --danger-text: #dc2626;
  --danger-bg: #fef2f2;
  --danger-border: #fecaca;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 24px;
  --radius-full: 99px;

  --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.04);
  --shadow-md: 0 4px 14px rgba(15, 23, 42, 0.05);
  --shadow-lg: 0 8px 32px rgba(15, 23, 42, 0.05);

  --spring-bezier: cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

   Antigravity Exact Typography System (Inter / Modern Sans-Serif)
   Headlines (Font Weight: Medium = 500, Negative Letter Spacing)
   Body Text (Font Weight: Regular = 400, Positive Letter Spacing)
   ========================================================================== */

/* Headlines (Font Weight: Medium = 500) */
.headline-32, .typo-h32 {
  font-family: var(--font-family) !important;
  font-size: 32px !important;
  line-height: 40px !important;
  letter-spacing: -0.02em !important; /* -2% */
  font-weight: 500 !important;
}

.headline-28, .typo-h28 {
  font-family: var(--font-family) !important;
  font-size: 28px !important;
  line-height: 36px !important;
  letter-spacing: -0.02em !important; /* -2% */
  font-weight: 500 !important;
}

.headline-24, .typo-h24 {
  font-family: var(--font-family) !important;
  font-size: 24px !important;
  line-height: 32px !important;
  letter-spacing: -0.02em !important; /* -2% */
  font-weight: 500 !important;
}

.headline-20, .typo-h20 {
  font-family: var(--font-family) !important;
  font-size: 20px !important;
  line-height: 28px !important;
  letter-spacing: -0.02em !important; /* -2% */
  font-weight: 500 !important;
}

.headline-18, .typo-h18 {
  font-family: var(--font-family) !important;
  font-size: 18px !important;
  line-height: 26px !important;
  letter-spacing: -0.01em !important; /* -1% */
  font-weight: 500 !important;
}

.headline-16, .typo-h16 {
  font-family: var(--font-family) !important;
  font-size: 16px !important;
  line-height: 24px !important;
  letter-spacing: -0.01em !important; /* -1% */
  font-weight: 500 !important;
}

.headline-14, .typo-h14 {
  font-family: var(--font-family) !important;
  font-size: 14px !important;
  line-height: 20px !important;
  letter-spacing: -0.01em !important; /* -1% */
  font-weight: 500 !important;
}

.headline-12, .typo-h12 {
  font-family: var(--font-family) !important;
  font-size: 12px !important;
  line-height: 16px !important;
  letter-spacing: 0em !important; /* 0% */
  font-weight: 500 !important;
}

.headline-10, .typo-h10 {
  font-family: var(--font-family) !important;
  font-size: 10px !important;
  line-height: 14px !important;
  letter-spacing: 0em !important; /* 0% */
  font-weight: 500 !important;
}

/* Body Text (Font Weight: Regular = 400) */
.body-16, .typo-b16 {
  font-family: var(--font-family) !important;
  font-size: 16px !important;
  line-height: 24px !important;
  letter-spacing: 0.005em !important; /* +0.5% */
  font-weight: 400 !important;
}

.body-14, .typo-b14 {
  font-family: var(--font-family) !important;
  font-size: 14px !important;
  line-height: 20px !important;
  letter-spacing: 0.005em !important; /* +0.5% */
  font-weight: 400 !important;
}

.body-12, .typo-b12 {
  font-family: var(--font-family) !important;
  font-size: 12px !important;
  line-height: 16px !important;
  letter-spacing: 0.01em !important; /* +1% */
  font-weight: 400 !important;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Base Interaction Affordances & Focus Rings (R-32, R-39) */
a[href],
button,
summary,
select,
input[type="button"],
input[type="submit"],
input[type="reset"],
input[type="checkbox"],
input[type="radio"],
label[for],
[role="button"],
[role="tab"],
[role="switch"] {
  cursor: pointer;
}

[disabled],
button:disabled,
input:disabled,
select:disabled,
textarea:disabled {
  cursor: not-allowed !important;
}

:focus-visible {
  outline: 2px solid var(--primary, #2563eb) !important;
  outline-offset: 2px !important;
}

/* Reduced Motion Safety (R-19, R-39) */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

html {
  font-family: var(--font-family);
  background-color: #f8fafc;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: var(--font-family);
  background-color: #f8fafc !important;
  background-image: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%) !important;
  background-attachment: fixed !important;
  background-repeat: no-repeat !important;
  color: #0f172a !important;
  min-height: 100vh;
  width: 100%;
  display: flex;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Layout: Sidebar + Main Content */

.app-wrapper {
  display: flex;
  width: 100%;
  min-height: 100vh;
  background: transparent !important;
}

.sidebar {
  width: 264px;
  min-width: 264px;
  max-width: 264px;
  background: rgba(255, 255, 255, 0.97);
  border-right: 1px solid #e2e8f0;
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  padding: 0;
  position: sticky;
  top: 0;
  height: 100vh;
  max-height: 100vh;
  overflow: hidden;
  box-sizing: border-box;
  z-index: 50;
  font-family: var(--font-family);
  box-shadow: 4px 0 20px rgba(15, 23, 42, 0.04);
}

.sidebar-body {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  padding: 20px 16px 16px 16px;
}

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

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

.sidebar-body::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.14);
  border-radius: 4px;
}

.main-content {
  flex: 1;
  min-width: 0;
  padding: 28px 36px;
  max-width: 1460px;
}

/* Global Image Safety Constraint */
img {
  max-width: 100%;
}

/* Legacy Brand Header Compatibility */
.brand-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  background-color: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  margin-bottom: 16px;
  overflow: hidden;
}

.brand-badge {
  width: 28px;
  height: 28px;
  min-width: 28px;
  max-width: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
}

.brand-logo-img {
  width: 100% !important;
  max-width: 28px !important;
  height: 28px !important;
  max-height: 28px !important;
  object-fit: contain !important;
  display: block;
}

.brand-text h1 {
  font-size: 13px;
  font-weight: 700;
  color: #ffffff;
  margin: 0;
  line-height: 1.2;
}

.brand-text span {
  font-size: 10px;
  color: #94a3b8;
  font-weight: 500;
}

/* Sidebar Elements (Bento Light & Payno Corporate Theme) */

.brand-switcher {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 10px 12px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  margin-bottom: 18px;
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  text-decoration: none;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
  box-sizing: border-box;
}

.brand-switcher:hover {
  background: #f8fafc;
  border-color: #cbd5e1;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.06);
}

.brand-switcher-info {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  flex: 1;
}

.brand-switcher-logo {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #0f172a;
  border: 1.5px solid #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.08);
}

.brand-switcher-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.brand-switcher-content {
  min-width: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.brand-switcher-text {
  font-size: 13.5px;
  font-weight: 700;
  color: #0f172a;
  letter-spacing: -0.01em;
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.brand-switcher-sub {
  font-size: 10.5px;
  font-weight: 500;
  color: #64748b;
  line-height: 1.2;
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.brand-switcher-icon {
  color: #94a3b8;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-left: 8px;
  transition: color 0.2s ease, transform 0.2s ease;
}

.brand-switcher:hover .brand-switcher-icon {
  color: #2563eb;
}

/* Sidebar Search Box */
.sidebar-search-box {
  position: relative;
  margin-bottom: 16px;
}

.sidebar-search-box input {
  width: 100%;
  background-color: rgba(15, 23, 42, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 9px 36px 9px 34px;
  color: #f8fafc;
  font-size: 12px;
  font-family: inherit;
  transition: border-color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}

.sidebar-search-box input:focus {
  border-color: #6366f1;
  background-color: rgba(15, 23, 42, 0.9);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
}

.sidebar-search-box input::placeholder {
  color: #64748b;
}

.sidebar-search-icon {
  position: absolute;
  left: 11px;
  top: 50%;
  transform: translateY(-50%);
  color: #64748b;
  pointer-events: none;
  display: flex;
}

.sidebar-search-kbd {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 5px;
  font-size: 10px;
  color: #94a3b8;
  padding: 1px 5px;
  font-weight: 600;
  pointer-events: none;
}

.nav-section-title {
  font-size: 10.5px;
  font-weight: 700;
  color: #818cf8;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  margin: 18px 0 8px 6px;
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-family);
  opacity: 0.85;
}

.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 14px;
  border-radius: 12px;
  color: #cbd5e1;
  text-decoration: none;
  font-family: var(--font-family);
  font-size: 13.5px;
  font-weight: 500;
  line-height: 1.4;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
  position: relative;
  box-sizing: border-box;
  border: 1px solid transparent;
}

.nav-link:hover {
  background-color: rgba(255, 255, 255, 0.08);
  color: #ffffff;
}

.nav-link svg {
  width: 18px;
  height: 18px;
  min-width: 18px;
  min-height: 18px;
  stroke-width: 2;
  flex-shrink: 0;
  color: #94a3b8;
  transition: color 0.15s ease;
}

.nav-link:hover svg {
  color: #ffffff;
}

.nav-link.active {
  background: linear-gradient(135deg, #4f46e5 0%, #6366f1 100%);
  color: #ffffff;
  font-weight: 600;
  border: 1px solid rgba(165, 180, 252, 0.35);
  box-shadow: 0 4px 14px rgba(79, 70, 229, 0.38);
}

.nav-link.active svg {
  color: #ffffff;
}

.nav-badge {
  margin-left: auto;
  background-color: #ef4444;
  color: #ffffff;
  font-size: 10px;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 10px;
  line-height: 1.2;
}

/* Sidebar Promo / Plan Card */
.sidebar-promo-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 14px;
  margin-top: 16px;
  position: relative;
}

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

.promo-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  font-weight: 700;
  color: #ffffff;
}

.promo-close {
  background: none;
  border: none;
  color: #94a3b8;
  cursor: pointer;
  padding: 2px;
  font-size: 12px;
  line-height: 1;
}

.promo-desc {
  font-size: 11px;
  color: #cbd5e1;
  line-height: 1.4;
  margin-bottom: 10px;
}

.promo-progress-bar {
  width: 100%;
  height: 4px;
  background-color: rgba(255, 255, 255, 0.12);
  border-radius: 2px;
  overflow: hidden;
  margin-bottom: 10px;
}

.promo-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #6366f1, #a855f7);
  border-radius: 2px;
}

.promo-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 600;
  color: #ffffff;
  text-decoration: none;
  transition: color 0.15s;
}

.promo-link:hover {
  color: #a5b4fc;
}

/* Sidebar Profile & Logout Footer (Bento Light & Payno Corporate Theme) */
.sidebar-profile-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  border-top: 1px solid #e2e8f0;
  background-color: #ffffff;
  flex-shrink: 0;
  width: 100%;
  box-sizing: border-box;
  font-family: var(--font-family);
}

.sidebar-profile-left {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  flex: 1;
}

.sidebar-profile-avatar {
  width: 36px;
  height: 36px;
  min-width: 36px;
  border-radius: var(--radius-full);
  background: linear-gradient(135deg, #2563eb, #3b82f6);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  flex-shrink: 0;
  box-shadow: 0 2px 6px rgba(37, 99, 235, 0.25);
}

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

.sidebar-profile-name {
  font-size: 13px;
  font-weight: 700;
  color: #0f172a;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.25;
}

.sidebar-profile-role {
  font-size: 11px;
  font-weight: 500;
  color: #64748b;
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sidebar-logout-icon-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  min-width: 34px;
  border-radius: 10px;
  color: #64748b;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  text-decoration: none;
  cursor: pointer;
  flex-shrink: 0;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
  margin-left: 8px;
}

.sidebar-logout-icon-btn:hover {
  color: #ef4444;
  background-color: #fef2f2;
  border-color: #fecaca;
}

.sidebar-logout-icon-btn svg {
  width: 18px;
  height: 18px;
  stroke-width: 2;
  transition: transform 0.2s ease;
}

.sidebar-logout-icon-btn:hover svg {
  transform: translateX(2px);
}

/* Backward-compatibility aliases */
.sidebar-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background-color: rgba(2, 6, 23, 0.45);
  flex-shrink: 0;
  width: 100%;
  box-sizing: border-box;
}

.user-profile-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  min-width: 0;
}

.user-avatar {
  width: 36px;
  height: 36px;
  min-width: 36px;
  border-radius: var(--radius-full);
  background: linear-gradient(135deg, #4f46e5, #7c3aed);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  flex-shrink: 0;
}

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

.user-name {
  font-size: 13px;
  font-weight: 600;
  color: #ffffff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.2;
}

.user-role {
  font-size: 11px;
  font-weight: 500;
  color: #94a3b8;
  margin-top: 2px;
}

.profile-logout-icon-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  min-width: 34px;
  border-radius: 10px;
  color: #94a3b8;
  background: transparent;
  text-decoration: none;
  cursor: pointer;
  flex-shrink: 0;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.profile-logout-icon-btn:hover {
  color: #fca5a5;
  background-color: rgba(239, 68, 68, 0.18);
}

.profile-more-btn {
  background: none;
  border: none;
  color: #94a3b8;
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
}

.profile-more-btn:hover {
  color: #ffffff;
  background-color: rgba(255, 255, 255, 0.08);
}

.profile-dropdown-menu {
  position: absolute;
  bottom: 60px;
  left: 16px;
  width: 220px;
  background-color: rgba(20, 24, 33, 0.95);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 18px;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.6);
  display: none;
  flex-direction: column;
  padding: 6px;
  z-index: 100;
}

.profile-dropdown-menu.active {
  display: flex;
}

.dropdown-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  font-size: 12px;
  color: var(--text-secondary);
  text-decoration: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  border: none;
  background: transparent;
  width: 100%;
  text-align: left;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.dropdown-item:hover {
  background-color: var(--bg-hover);
  color: var(--text-main);
}

.dropdown-divider {
  height: 1px;
  background-color: var(--border-subtle);
  margin: 4px 0;
}

/* Header Bar (Top of Main Content - Bento Light Theme) */

.page-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 24px;
  gap: 16px;
}

.header-left {
  display: flex;
  flex-direction: column;
  gap: 4px;
  text-align: left;
}

.period-indicator {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  color: #4f46e5;
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: var(--radius-full);
  background-color: var(--success);
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.18);
}

.page-title {
  font-family: var(--font-family) !important;
  font-size: 24px !important; /* Headline 24pt */
  line-height: 32px !important;
  letter-spacing: -0.02em !important; /* -2% */
  font-weight: 500 !important; /* Medium */
  color: var(--text-main) !important;
  text-align: left !important;
}

.page-subtitle {
  font-family: var(--font-family) !important;
  font-size: 12px !important; /* Body 12pt */
  line-height: 16px !important;
  letter-spacing: 0.01em !important; /* +1% */
  font-weight: 400 !important; /* Regular */
  color: #94a3b8 !important; /* text-slate-400 */
  text-align: left !important;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.icon-btn {
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  border-radius: 12px;
  background-color: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  position: relative;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
  box-shadow: none;
}

.icon-btn:hover {
  background-color: var(--bg-hover);
  color: var(--primary);
  border-color: #c7d2fe;
}

.icon-btn .badge-dot {
  position: absolute;
  top: 9px;
  right: 10px;
  width: 6px;
  height: 6px;
  border-radius: var(--radius-full);
  background-color: var(--primary);
}

.period-dropdown-wrap {
  position: relative !important;
  display: inline-flex !important;
  align-items: center !important;
  z-index: 50 !important;
}

.period-native-select {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  opacity: 0 !important;
  pointer-events: none !important;
  overflow: hidden !important;
}

.period-select-pill {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 7px !important;
  background: #ffffff !important;
  background-color: #ffffff !important;
  border: 1px solid #cbd5e1 !important;
  padding: 0 16px !important;
  height: 42px !important;
  border-radius: 999px !important;
  color: #0f172a !important;
  font-family: inherit !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  line-height: 1 !important;
  white-space: nowrap !important;
  transition: border-color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease !important;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.03) !important;
  cursor: pointer !important;
  box-sizing: border-box !important;
  position: relative !important;
  -webkit-tap-highlight-color: transparent !important;
}

.period-pill-label {
  display: inline-block;
  text-align: center;
  color: #0f172a;
  font-weight: 700;
}

.period-pill-chevron {
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  transform: rotate(0deg);
}

.period-dropdown-wrap.is-open .period-pill-chevron {
  transform: rotate(180deg);
}

.period-action-btn {
  height: 42px !important;
  border-radius: 999px !important;
  padding: 0 16px !important;
  font-size: 12.5px !important;
  font-weight: 600 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 6px !important;
}

.period-select-pill:hover,
.period-select-pill:focus-visible,
.period-dropdown-wrap.is-open .period-select-pill {
  border-color: #2563eb !important;
  background-color: #ffffff !important;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12) !important;
  outline: none !important;
}

.period-dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 196px;
  width: max-content;
  max-width: min(260px, calc(100vw - 32px));
  padding: 6px;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(22px) saturate(180%);
  -webkit-backdrop-filter: blur(22px) saturate(180%);
  border: 1px solid rgba(226, 232, 240, 0.95);
  border-radius: 18px;
  box-shadow: 0 18px 42px rgba(15, 23, 42, 0.14), 0 4px 12px rgba(15, 23, 42, 0.05);
  display: flex;
  flex-direction: column;
  gap: 3px;
  z-index: 120;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(-6px) scale(0.97) translateZ(0);
  transform-origin: top right;
  transition: opacity 0.18s ease, transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.18s ease;
}

.period-dropdown-wrap.is-open .period-dropdown-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0) scale(1) translateZ(0);
}

.period-dropdown-item {
  width: 100%;
  border: none;
  background: transparent;
  border-radius: 12px;
  padding: 9px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  color: #334155;
  text-align: left;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease;
  -webkit-tap-highlight-color: transparent;
}

.period-dropdown-item:hover {
  background: rgba(15, 23, 42, 0.05);
  color: #0f172a;
}

.period-dropdown-item.is-active {
  background: rgba(37, 99, 235, 0.10);
  color: #2563eb;
  font-weight: 700;
}

.period-dropdown-item.is-create {
  justify-content: flex-start;
  gap: 8px;
  color: #2563eb;
  font-weight: 700;
}

.period-dropdown-item.is-create:hover {
  background: rgba(37, 99, 235, 0.08);
  color: #1d4ed8;
}

.period-dropdown-divider {
  height: 1px;
  background: rgba(226, 232, 240, 0.85);
  margin: 3px 6px;
}

/* Floating Kirim Slip FAB (Bottom-right shortcut agar Admin tidak perlu scroll ke atas) */
.slip-fab-btn {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 990;
  height: 46px;
  padding: 0 18px;
  border-radius: 999px;
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  border: 1px solid rgba(255, 255, 255, 0.85);
  color: #ffffff;
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  box-shadow: 0 10px 28px rgba(37, 99, 235, 0.34), 0 4px 10px rgba(15, 23, 42, 0.08);
  transform: translateZ(0);
  transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.2s ease, background-color 0.2s ease;
  -webkit-tap-highlight-color: transparent;
}

.slip-fab-btn:hover {
  background: #1d4ed8;
  transform: translateY(-2px) scale(1.02) translateZ(0);
  box-shadow: 0 14px 32px rgba(37, 99, 235, 0.42), 0 4px 12px rgba(15, 23, 42, 0.1);
}

.slip-fab-btn:active {
  transform: scale(0.97) translateZ(0);
}

.slip-fab-btn:focus-visible {
  outline: 3px solid #60a5fa;
  outline-offset: 3px;
}

.slip-fab-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: 999px;
  background: #ffffff;
  color: #1d4ed8;
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, #4f46e5 0%, #4338ca 100%);
  color: #ffffff;
  border: 1px solid rgba(79, 70, 229, 0.2);
  padding: 9px 18px;
  border-radius: 12px;
  font-family: var(--font-family) !important;
  font-size: 14px !important; /* Headline 14pt */
  line-height: 20px !important;
  letter-spacing: -0.01em !important; /* -1% */
  font-weight: 500 !important; /* Medium */
  cursor: pointer;
  transition: background 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
  box-shadow: 0 2px 8px rgba(79, 70, 229, 0.25);
  text-decoration: none;
}

.btn-primary:hover {
  background: linear-gradient(135deg, #4338ca 0%, #3730a3 100%);
  box-shadow: 0 4px 14px rgba(79, 70, 229, 0.35);
  transform: translateY(-1px);
  color: #ffffff;
}

.btn-primary:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

/* SaaS Sub-Header Bar (Date range pills on left, Export on right) */
.saas-sub-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  gap: 12px;
  flex-wrap: wrap;
}

/* Segmented Pill Filter Tabs */
.header-filter-tabs {
  display: inline-flex;
  align-items: center;
  background-color: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 99px;
  padding: 4px;
  gap: 4px;
}

.header-filter-tab {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-size: 12.5px;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 10px;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease;
  font-family: inherit;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  user-select: none;
}

.header-filter-tab:focus-visible {
  outline: 2px solid var(--primary) !important;
  outline-offset: 2px !important;
}

.header-filter-tab:hover:not(.active) {
  color: #0f172a !important;
  background-color: rgba(15, 23, 42, 0.04) !important;
}

.header-filter-tab.active {
  background: #2563eb !important;
  background-color: #2563eb !important;
  color: #ffffff !important;
  font-weight: 600 !important;
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.25) !important;
}

/* Header Live Sync / Avatars Stack */
.header-meta-group {
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
}

.header-sync-info {
  font-size: 12px;
  color: var(--text-secondary);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

.avatar-stack {
  display: inline-flex;
  flex-direction: row;
  align-items: center;
}

.avatar-stack-item {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 2px solid var(--bg-app);
  margin-left: -8px;
  font-size: 10px;
  font-weight: 700;
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.avatar-stack-item:first-child {
  margin-left: 0;
}

/* Payroll ID Monospace Badge */
.payroll-id-badge {
  font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
  font-size: 11px;
  font-weight: 600;
  color: #9ca3af;
  background-color: rgba(255, 255, 255, 0.05);
  padding: 3px 8px;
  border-radius: 99px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: inline-block;
  white-space: nowrap;
  letter-spacing: 0.3px;
}

/* Sidebar Scrollbar */
.sidebar {
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.14) transparent;
}

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

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

.sidebar::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 4px;
}

/* Alert / Notice Banner */

.info-banner {
  background-color: #eef2ff;
  border: 1px solid #c7d2fe;
  border-radius: 16px;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
}

.info-banner-icon {
  color: #4f46e5;
  display: flex;
  align-items: center;
}

.info-banner-text {
  font-size: 13px;
  color: #334155;
  line-height: 1.5;
  text-align: left;
}

.info-banner-text strong {
  color: #0f172a;
  font-weight: 700;
}

/* Modern Bento Overview Cards (Payroll Expense & Deductions) */

.saas-overview-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 24px;
}

@media (max-width: 1024px) {
  .saas-overview-grid {
    grid-template-columns: 1fr;
  }
}

/* Flexbox & Layout Utilities */
.flex { display: flex !important; }
.flex-col { flex-direction: column !important; }
.items-start { align-items: flex-start !important; }
.items-baseline { align-items: baseline !important; }
.items-center { align-items: center !important; }
.justify-between { justify-content: space-between !important; }
.justify-center { justify-content: center !important; }
.text-left { text-align: left !important; }
.text-center { text-align: center !important; }
.gap-1\.5 { gap: 6px !important; }
.gap-2 { gap: 8px !important; }
.my-2 { margin-top: 8px !important; margin-bottom: 8px !important; }
.mx-auto { margin-left: auto !important; margin-right: auto !important; }
.w-full { width: 100% !important; }
.whitespace-nowrap { white-space: nowrap !important; }
.text-slate-400 { color: #94a3b8 !important; }

.saas-card {
  background-color: #0b0f19;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  padding: 24px;
  position: relative;
  overflow: hidden;
  box-shadow: none;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
  min-height: 190px;
  color: #ffffff;
  transition: border-color 0.2s ease;
  width: 100% !important;
  box-sizing: border-box !important;
}

.saas-card:hover {
  border-color: #cbd5e1;
  box-shadow: var(--shadow-lg);
}

.saas-card-header {
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
  align-items: center !important;
  text-align: center !important;
  width: 100% !important;
  margin-bottom: 12px !important;
  gap: 6px !important;
}

.saas-card-title-group {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  white-space: nowrap !important;
  flex-shrink: 0 !important;
  text-align: center !important;
}

.saas-card-icon {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: #eef2ff;
  color: #4f46e5;
  display: flex;
  align-items: center;
  justify-content: center;
}

.saas-card-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-main);
  letter-spacing: -0.2px;
  white-space: nowrap !important;
  text-align: center !important;
}

.saas-card-legend {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 10px !important;
  font-size: 11px !important;
  color: #94a3b8 !important;
  font-weight: 500 !important;
  white-space: nowrap !important;
  text-align: center !important;
  width: 100% !important;
}

.saas-legend-item {
  display: inline-flex !important;
  align-items: center !important;
  gap: 5px !important;
  white-space: nowrap !important;
}

.saas-legend-dot {
  width: 6px !important;
  height: 6px !important;
  border-radius: 50% !important;
  flex-shrink: 0 !important;
}

.saas-card-body {
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
  align-items: center !important;
  text-align: center !important;
  gap: 8px !important;
  width: 100% !important;
}

.saas-metric-col {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
  gap: 6px !important;
  width: 100% !important;
  min-width: 0 !important;
}

.saas-metric-value {
  font-size: 28px;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -0.8px;
  line-height: 1.1;
  font-family: var(--font-family);
}

.saas-trend-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  width: fit-content;
  letter-spacing: 0.1px;
}

.saas-trend-badge.up {
  background: #ecfdf5;
  color: #059669;
  border: 1px solid #a7f3d0;
}

.saas-trend-badge.down {
  background: #fef2f2;
  color: #dc2626;
  border: 1px solid #fecaca;
}

.saas-chart-col {
  flex: 1;
  height: 85px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: flex-end;
}

.saas-chart-svg {
  width: 100%;
  height: 65px;
  overflow: visible;
}

.saas-chart-labels {
  display: flex;
  justify-content: space-between;
  width: 100%;
  margin-top: 4px;
  font-size: 10px;
  color: var(--text-muted);
  font-weight: 600;
}

/* Metric Stats Cards Grid (Balanced 4-Column Bento Grid) */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 24px;
}

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

@media (max-width: 640px) {
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
}

.stat-card {
  background-color: #0b0f19;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  padding: 20px;
  box-shadow: none;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: #ffffff;
  transition: border-color 0.2s ease;
}

.stat-card:hover {
  border-color: #cbd5e1;
  box-shadow: var(--shadow-lg);
  transform: translateY(-1px);
}

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

.stat-title {
  font-size: 12.5px;
  color: var(--text-secondary);
  font-weight: 600;
}

.stat-icon {
  color: #4f46e5;
  background: #eef2ff;
  width: 32px;
  height: 32px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.stat-value {
  font-family: var(--font-money);
  font-size: 30px;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--text-main);
}

.stat-value.total {
  color: #0f172a;
}

.stat-value.sent {
  color: #059669;
}

.stat-value.pending {
  color: #d97706;
}

.stat-subtext {
  font-size: 12px;
  color: var(--text-muted);
}

/* Filter & Search Toolbar (Bento Light) */

.filter-toolbar {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.search-wrapper {
  position: relative;
  flex: 1;
  min-width: 240px;
}

.search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  pointer-events: none;
}

.search-input {
  width: 100%;
  background-color: transparent;
  border: none;
  padding: 0;
  color: #ffffff;
  font-size: 13px;
  font-family: inherit;
  box-shadow: none;
}

.search-input:focus {
  border-color: #2563eb;
  background-color: #ffffff;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.search-input::placeholder {
  color: #94a3b8;
}

.filter-group {
  display: flex;
  align-items: center;
  background-color: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 99px;
  padding: 0 14px;
  gap: 8px;
  height: 40px;
  box-shadow: none;
}

.filter-label {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 600;
}

.filter-select {
  background: transparent;
  border: none;
  color: var(--text-main);
  font-size: 13px;
  font-family: inherit;
  font-weight: 600;
  cursor: pointer;
}

.filter-select:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
  border-radius: 6px;
}

.filter-select option {
  background-color: #ffffff;
  color: #0f172a;
}

.btn-reset-filter {
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  background-color: #ffffff !important;
  border: 1px solid #cbd5e1 !important;
  color: #64748b !important;
  border-radius: 99px !important;
  padding: 0 16px !important;
  height: 42px !important;
  font-size: 13px !important;
  font-weight: 500 !important;
  cursor: pointer !important;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease !important;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.02) !important;
}

.btn-reset-filter:hover {
  background-color: #f1f5f9 !important;
  color: #0f172a !important;
  border-color: #94a3b8 !important;
}

.record-count {
  margin-left: auto;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
}

/* Selection Control Header */

.selection-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  padding: 0 4px;
  font-size: 12.5px;
  color: #475569;
}

.selection-bar label {
  color: #0f172a !important;
  font-weight: 600 !important;
  cursor: pointer !important;
  user-select: none !important;
}

.custom-checkbox {
  width: 18px !important;
  height: 18px !important;
  min-width: 18px !important;
  min-height: 18px !important;
  border-radius: 5px !important;
  border: 1.5px solid #94a3b8 !important;
  background-color: #ffffff !important;
  appearance: none !important;
  -webkit-appearance: none !important;
  cursor: pointer !important;
  position: relative !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  vertical-align: middle !important;
  transition: background-color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease !important;
  box-sizing: border-box !important;
  margin: 0 !important;
  flex-shrink: 0 !important;
}

.custom-checkbox:hover {
  border-color: #2563eb !important;
  background-color: #eff6ff !important;
}

.custom-checkbox:focus-visible {
  outline: none !important;
  border-color: #2563eb !important;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.2) !important;
}

.custom-checkbox:checked {
  background-color: #2563eb !important;
  border-color: #2563eb !important;
  box-shadow: 0 2px 4px rgba(37, 99, 235, 0.25) !important;
}

.custom-checkbox:checked::after {
  content: '' !important;
  position: absolute !important;
  top: 1px !important;
  left: 5px !important;
  width: 5px !important;
  height: 9px !important;
  border: solid #ffffff !important;
  border-width: 0 2px 2px 0 !important;
  transform: rotate(45deg) !important;
}

.custom-checkbox:indeterminate {
  background-color: #2563eb !important;
  border-color: #2563eb !important;
  box-shadow: 0 2px 4px rgba(37, 99, 235, 0.25) !important;
}

.custom-checkbox:indeterminate::after {
  content: '' !important;
  position: absolute !important;
  top: 7px !important;
  left: 3px !important;
  width: 10px !important;
  height: 2px !important;
  background-color: #ffffff !important;
  border: none !important;
  transform: none !important;
  border-radius: 1px !important;
}

.selected-count-badge {
  color: var(--text-muted);
  font-weight: 500;
}

.selected-count-badge.has-selected {
  color: var(--primary);
  font-weight: 700;
}

/* Table Container & Table Styles (Bento Light) */

.table-card {
  background-color: #0b0f19;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: none;
}

.table-title-header {
  padding: 16px 24px;
  text-align: left !important;
  font-size: 14px;
  font-weight: 700;
  color: #ffffff;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  background-color: transparent;
  letter-spacing: -0.01em;
}

/* Table Responsive & Viewport Scroll Wrapper */

.table-responsive {
  width: 100%;
  max-height: calc(100vh - 250px);
  min-height: 360px;
  overflow: auto;
  position: relative;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: #cbd5e1 #f8fafc;
}

/* Custom Scrollbars for Table Viewport */
.table-responsive::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

.table-responsive::-webkit-scrollbar-track {
  background: #f8fafc;
}

.table-responsive::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 4px;
}

.table-responsive::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

.table-responsive::-webkit-scrollbar-corner {
  background: #f8fafc;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.data-table th {
  padding: 14px 18px;
  font-family: var(--font-family) !important;
  font-size: 12px !important; /* Headline 12pt */
  line-height: 16px !important;
  letter-spacing: 0em !important;
  font-weight: 500 !important; /* Medium */
  color: #94a3b8 !important;
  text-transform: uppercase;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  background-color: rgba(18, 22, 30, 0.95);
  white-space: nowrap;
  text-align: left;
}

/* Sticky Header on data-table when inside .table-responsive */
.table-responsive thead th {
  position: sticky;
  top: 0;
  z-index: 5;
  background-color: rgba(18, 22, 30, 0.95);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.06);
  color: #94a3b8;
}

.data-table td {
  padding: 14px 18px;
  font-family: var(--font-family) !important;
  font-size: 14px !important; /* Body 14pt */
  line-height: 20px !important;
  letter-spacing: 0.005em !important; /* +0.5% */
  font-weight: 400 !important; /* Regular */
  color: #e2e8f0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  vertical-align: middle;
  transition: background-color 0.15s ease;
  text-align: left;
}

.data-table tbody tr:hover td {
  background-color: rgba(255, 255, 255, 0.04);
}

.data-table tbody tr.selected td {
  background-color: #eef2ff;
}

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

/* Table Pagination & Metrics Footer */
.table-pagination-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  background-color: transparent;
  font-size: 12px;
  color: #9ca3af;
}

.pagination-controls {
  display: flex;
  align-items: center;
  gap: 4px;
}

.pagination-btn {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.pagination-btn:hover:not(:disabled):not(.active) {
  background-color: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.2);
}

.pagination-btn.active {
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%) !important;
  background-color: #2563eb !important;
  color: #ffffff !important;
  border-color: #1d4ed8 !important;
  font-weight: 700 !important;
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.25) !important;
}

.pagination-btn:disabled,
.pagination-btn[disabled] {
  opacity: 0.3 !important;
  cursor: not-allowed !important;
  pointer-events: none !important;
}

/* Employee Column Elements */
.employee-cell {
  display: flex;
  align-items: center;
  gap: 12px;
}

.emp-avatar {
  width: 34px;
  height: 34px;
  border-radius: var(--radius-full);
  background: #4f46e5;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: -0.5px;
  flex-shrink: 0;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.08);
}

.emp-details {
  display: flex;
  flex-direction: column;
  gap: 2px;
  text-align: left;
}

.emp-name {
  font-weight: 700;
  color: var(--text-main);
  font-size: 13px;
}

.emp-email {
  font-size: 11.5px;
  color: var(--text-muted);
}

/* Department Column */
.dept-cell {
  color: var(--text-secondary);
  font-weight: 600;
}

/* Salary Column */
.salary-cell {
  font-family: var(--font-money);
  font-weight: 800;
  color: var(--text-main);
  letter-spacing: -0.2px;
}

/* SaaS Status Pill with Indicator Dot (Pill Shape border-radius 9999px) */
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
  letter-spacing: 0.2px;
  line-height: 1.2;
}

.status-pill::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
}

.status-pill.sent {
  background-color: rgba(16, 185, 129, 0.12) !important;
  color: #34d399 !important;
  border: 1px solid rgba(52, 211, 153, 0.35) !important;
}

.status-pill.sent::before {
  background-color: #10b981;
}

.status-pill.pending {
  background-color: rgba(245, 158, 11, 0.12) !important;
  color: #fbbf24 !important;
  border: 1px solid rgba(251, 191, 36, 0.35) !important;
}

.status-pill.pending::before {
  background-color: #f59e0b;
}

.status-pill.processed {
  background-color: #eef2ff;
  color: #4f46e5;
  border: 1px solid #c7d2fe;
}

.status-pill.processed::before {
  background-color: #4f46e5;
}

.status-pill.failed {
  background-color: #fef2f2;
  color: #dc2626;
  border: 1px solid #fecaca;
}

.status-pill.failed::before {
  background-color: #ef4444;
}

/* Bank Payment Method Pills */
.bank-badge {
  display: inline-flex;
  align-items: center;
  font-size: 11px;
  font-weight: 600;
  border-radius: 99px;
  padding: 3px 9px;
  line-height: 1.3;
}

.bank-bca {
  background: rgba(99, 102, 241, 0.12);
  color: #818cf8;
  border: 1px solid rgba(129, 140, 248, 0.3);
}

.bank-mandiri {
  background: rgba(245, 158, 11, 0.12);
  color: #fbbf24;
  border: 1px solid rgba(251, 191, 36, 0.3);
}

.bank-bri {
  background: rgba(16, 185, 129, 0.12);
  color: #34d399;
  border: 1px solid rgba(52, 211, 153, 0.3);
}

.bank-bni {
  background: rgba(249, 115, 22, 0.12);
  color: #fb923c;
  border: 1px solid rgba(251, 146, 60, 0.3);
}

/* Action Buttons (Modern Fintech / Crypto Pill Style) */
.btn-action-edit,
.btn-action-preview,
.btn-action-delete {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 5px !important;
  height: 32px !important;
  padding: 0 12px !important;
  border-radius: 12px !important;
  font-size: 11.5px !important;
  font-weight: 600 !important;
  font-family: var(--font-family) !important;
  cursor: pointer !important;
  text-decoration: none !important;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.2s ease !important;
  white-space: nowrap !important;
  box-sizing: border-box !important;
}

.btn-action-preview {
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%) !important;
  color: #ffffff !important;
  border: 1px solid #1d4ed8 !important;
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.25) !important;
}
.btn-action-preview svg {
  stroke: #ffffff !important;
  color: #ffffff !important;
}
.btn-action-preview:hover {
  background: linear-gradient(135deg, #1d4ed8 0%, #1e40af 100%) !important;
  border-color: #1e40af !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.35) !important;
}

.btn-action-edit {
  background: #ffffff !important;
  color: #0f172a !important;
  border: 1px solid #cbd5e1 !important;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.05) !important;
}
.btn-action-edit svg {
  stroke: #0f172a !important;
  color: #0f172a !important;
}
.btn-action-edit:hover {
  background: #f8fafc !important;
  border-color: #94a3b8 !important;
  color: #0f172a !important;
}

.btn-action-delete {
  background: #fef2f2 !important;
  color: #ef4444 !important;
  border: 1px solid #fecaca !important;
}
.btn-action-delete svg {
  stroke: #f87171 !important;
  color: #f87171 !important;
}
.btn-action-delete:hover {
  background: #ef4444 !important;
  color: #ffffff !important;
  border-color: #ef4444 !important;
}
.btn-action-delete:hover svg {
  stroke: #ffffff !important;
  color: #ffffff !important;
}

/* Modal Dialogs (Bento Light Theme) */

.modal-backdrop {
  position: fixed;
  inset: 0;
  background-color: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(6px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 20px;
  overflow-y: auto;
  box-sizing: border-box;
  animation: fadeIn 0.2s ease;
}

.modal-backdrop.active {
  display: flex;
}

.modal-box,
.modal-card {
  background-color: rgba(20, 24, 33, 0.96);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 24px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.75);
  color: #ffffff;
  overflow: hidden;
}

.modal-box.modal-lg,
.modal-card.modal-lg {
  max-width: 780px;
}

.modal-box form,
.modal-card form {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  overflow: hidden;
}

.modal-box.preview-modal-box {
  max-width: 820px;
}

.form-row {
  display: flex;
  gap: 16px;
  width: 100%;
}

.form-col {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.modal-header {
  padding: 18px 24px;
  background-color: transparent;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #ffffff;
}

.modal-header h3,
.modal-title {
  font-family: var(--font-family) !important;
  font-size: 16px !important; /* Headline 16pt */
  line-height: 24px !important;
  letter-spacing: -0.01em !important; /* -1% */
  font-weight: 500 !important; /* Medium */
  color: var(--text-main) !important;
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
}

.modal-subtitle {
  font-family: var(--font-family) !important;
  font-size: 12px !important; /* Body 12pt */
  line-height: 16px !important;
  letter-spacing: 0.01em !important; /* +1% */
  font-weight: 400 !important; /* Regular */
  color: #94a3b8 !important; /* text-slate-400 */
  margin-top: 3px;
}

.modal-close-btn {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #9ca3af;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.modal-close-btn:hover {
  color: var(--text-main);
  background: var(--bg-hover);
}

.modal-body {
  padding: 20px 24px;
  background-color: transparent;
  color: #f3f4f6;
  max-height: 80vh;
  overflow-y: auto;
}

.modal-footer {
  padding: 16px 24px;
  background-color: transparent;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

/* Pay Slip Paper Preview Design */
.slip-paper {
  background-color: #ffffff;
  color: #0f172a;
  border-radius: 10px;
  padding: 24px 28px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  font-size: 12px;
}

.slip-kop {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  border-bottom: 2px solid #0f172a;
  padding-bottom: 14px;
  margin-bottom: 16px;
}

.slip-company-info h2 {
  font-size: 16px;
  font-weight: 800;
  color: #0f172a;
}

.slip-company-info p {
  color: #64748b;
  font-size: 10px;
}

.slip-title-box {
  text-align: right;
}

.slip-title-box h3 {
  font-size: 14px;
  font-weight: 800;
  color: #1e3a8a;
  letter-spacing: 0.5px;
}

.slip-title-box span {
  font-size: 11px;
  font-weight: 600;
  color: #475569;
}

.slip-info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 24px;
  background-color: #f8fafc;
  padding: 12px 16px;
  border-radius: 8px;
  margin-bottom: 16px;
  border: 1px solid #e2e8f0;
}

.info-item {
  display: flex;
  justify-content: space-between;
}

.info-item .label {
  color: #64748b;
}

.info-item .val {
  font-weight: 600;
  color: #0f172a;
}

.slip-tables-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}

.slip-sub-table {
  width: 100%;
  border-collapse: collapse;
}

.slip-sub-table th {
  background-color: #f1f5f9;
  color: #1e293b;
  text-align: left;
  padding: 6px 8px;
  font-size: 11px;
  font-weight: 700;
  border-bottom: 1px solid #cbd5e1;
}

.slip-sub-table td {
  padding: 6px 8px;
  font-size: 11px;
  border-bottom: 1px solid #f1f5f9;
  color: #334155;
}

.slip-sub-table tr.total-row td {
  font-weight: 700;
  color: #0f172a;
  background-color: #f8fafc;
  border-top: 1px solid #cbd5e1;
}

.slip-net-banner {
  background: linear-gradient(135deg, #1e293b, #0f172a);
  color: #ffffff;
  padding: 14px 18px;
  border-radius: 8px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.net-label {
  font-size: 11px;
  text-transform: uppercase;
  color: #94a3b8;
  letter-spacing: 0.5px;
}

.net-amount {
  font-family: var(--font-money);
  font-size: 20px;
  font-weight: 800;
  color: #38bdf8;
}

.slip-terbilang {
  font-size: 10px;
  color: #64748b;
  font-style: italic;
  margin-bottom: 20px;
}

.slip-sign-row {
  display: flex;
  justify-content: space-between;
  text-align: center;
  margin-top: 20px;
  padding: 0 20px;
}

.sign-box {
  width: 160px;
}

.sign-space {
  height: 50px;
}

.sign-name {
  font-weight: 700;
  border-top: 1px solid #94a3b8;
  padding-top: 4px;
}

/* Secondary Button */
.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #ffffff;
  padding: 10px 20px;
  border-radius: 99px;
  font-family: var(--font-family) !important;
  font-size: 14px !important; /* Headline 14pt */
  line-height: 20px !important;
  letter-spacing: -0.01em !important; /* -1% */
  font-weight: 500 !important; /* Medium */
  cursor: pointer;
  transition: background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease;
  box-shadow: none;
  text-decoration: none;
}

.btn-secondary:hover {
  background-color: var(--bg-hover);
  color: var(--text-main);
  border-color: #cbd5e1;
}

/* Batch Send Progress Box */
.progress-bar-container {
  width: 100%;
  height: 10px;
  background-color: #e2e8f0;
  border-radius: 999px;
  overflow: hidden;
  margin: 16px 0;
}

.progress-bar-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #4f46e5, #818cf8);
  transition: width 0.3s ease;
}

.progress-logs {
  background-color: #f8fafc;
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 12px;
  height: 140px;
  overflow-y: auto;
  font-family: monospace;
  font-size: 11.5px;
  color: var(--text-secondary);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.log-entry {
  display: flex;
  gap: 6px;
}

.log-entry.success {
  color: #059669;
  font-weight: 600;
}

/* Toast Notification System */

.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 2000;
}

.toast {
  background-color: rgba(20, 24, 33, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.6);
  color: #ffffff;
}

.toast.success {
  border-left: 4px solid var(--success);
}

.toast.error {
  border-left: 4px solid #ef4444;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes slideUp {
  from {
    transform: translateY(20px);
    opacity: 0;
  }

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

@keyframes slideInRight {
  from {
    transform: translateX(50px);
    opacity: 0;
  }

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

/* Format Slip Gaji PT Gallardo Utama Sentosa */

/* Company Switcher Tabs in Modal & Slip */
.modal-company-switcher {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(226, 232, 240, 0.75);
  border: 1px solid #cbd5e1;
  border-radius: 14px;
  padding: 5px;
  margin-bottom: 16px;
  max-width: 680px;
  margin-left: auto;
  margin-right: auto;
}

.btn-company-modal-tab {
  flex: 1;
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 700;
  padding: 8px 16px;
  border-radius: 10px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.btn-company-modal-tab:hover {
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.6);
}

.btn-company-modal-tab.active {
  background: #2563eb;
  color: #ffffff;
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.25);
}

.btn-company-modal-tab.gallardo-active.active {
  background: #2563eb;
  color: #ffffff;
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.25);
}

.nrg-slip-logo-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 75px;
  height: 55px;
  background: transparent;
  border: none;
  padding: 0;
  box-sizing: border-box;
}

.nrg-slip-logo-img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  display: block;
}

.gallardo-slip-box {
  background: #ffffff;
  color: #000000;
  border: 2px solid #000000;
  padding: 24px 28px;
  font-family: Calibri, 'Segoe UI', Arial, sans-serif;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
  font-size: 11px;
  line-height: 1.4;
}

.gallardo-kop {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 6px;
}

.gallardo-brand-wrap {
  display: flex;
  align-items: center;
  gap: 16px;
}

.gallardo-emblem {
  font-family: 'Arial Black', Impact, sans-serif;
  font-style: italic;
  font-weight: 900;
  font-size: 20px;
  letter-spacing: -0.5px;
  line-height: 0.95;
  color: #000;
  display: inline-block;
}

.gallardo-emblem-sub {
  font-family: Arial, sans-serif;
  font-weight: 800;
  font-size: 8px;
  letter-spacing: 2.5px;
  font-style: normal;
  display: block;
  text-align: center;
  margin-top: 2px;
}

.gallardo-company-info {
  font-size: 11px;
  color: #000;
  line-height: 1.35;
}

.gallardo-company-name {
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 0.2px;
}

.gallardo-city {
  font-weight: 700;
  display: inline-block;
}

.gallardo-title-area {
  text-align: right;
}

.gallardo-title {
  font-size: 17px;
  font-weight: 900;
  letter-spacing: 0.5px;
  color: #000;
}

.gallardo-periode {
  font-size: 12px;
  font-weight: 700;
  font-style: italic;
  color: #111;
  margin-top: 2px;
}

.gallardo-hr-thick {
  height: 3px;
  background-color: #000000;
  margin: 8px 0 12px 0;
}

.gallardo-meta-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px 24px;
  font-size: 11px;
  margin-bottom: 12px;
}

.gallardo-meta-row {
  display: flex;
  margin-bottom: 3px;
}

.gallardo-meta-lbl {
  width: 130px;
  color: #000;
}

.gallardo-meta-sep {
  width: 14px;
  color: #000;
}

.gallardo-meta-val {
  flex: 1;
  color: #000;
}

.gallardo-table-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  margin-bottom: 12px;
}

.gallardo-col-section {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.gallardo-section-header {
  font-weight: 800;
  font-size: 11.5px;
  padding: 3px 0;
  border-top: none;
  border-bottom: 1.5px solid #000000;
  text-transform: uppercase;
  margin-bottom: 3px;
}

.gallardo-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 2.5px 0;
  border-bottom: 1px dotted #000000;
  font-size: 11px;
}

.gallardo-row-name {
  color: #000000;
  font-weight: 500;
  padding-right: 8px;
}

.gallardo-row-val {
  display: flex;
  justify-content: space-between;
  width: 110px;
  text-align: right;
  color: #000000;
  flex-shrink: 0;
}

.gallardo-total-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 4px 0;
  border-top: 1.5px solid #000000;
  border-bottom: 3px double #000000;
  font-weight: 800;
  font-size: 11.5px;
  margin-top: auto;
}

.gallardo-bottom-wrap {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-top: 12px;
}

.gallardo-summary-left {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.gallardo-summary-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.gallardo-summary-label {
  font-size: 11px;
  font-weight: 800;
  width: 165px;
  text-transform: uppercase;
  color: #000000;
}

.gallardo-shaded-box {
  background-color: #d9d9d9;
  border: 1.5px solid #000000;
  padding: 2.5px 8px;
  width: 160px;
  font-weight: 800;
  font-size: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #000000;
}

.gallardo-signature-right {
  text-align: center;
  min-width: 180px;
}

.gallardo-sign-role {
  font-weight: 800;
  font-size: 11.5px;
  color: #000000;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.gallardo-sign-space {
  height: 55px;
}

.gallardo-sign-name {
  display: none;
}

@media screen and (max-width: 680px) {
  .gallardo-slip-box {
    max-width: 100%;
    padding: 18px 16px;
    border-radius: 16px;
    overflow-x: hidden;
  }

  .gallardo-kop {
    grid-template-columns: 1fr;
    gap: 10px;
    text-align: left;
  }

  .gallardo-title-col {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    text-align: left;
    padding-top: 8px;
    border-top: 1px dashed #cbd5e1;
  }

  .gallardo-meta-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .gallardo-meta-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 5px 0;
    border-bottom: 1px solid #f1f5f9;
  }

  .gallardo-meta-label {
    width: auto;
    color: #475569;
  }

  .gallardo-meta-colon {
    display: none;
  }

  .gallardo-meta-value {
    text-align: right;
    font-weight: 700;
  }

  .gallardo-table-wrapper {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .gallardo-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    padding: 6px 0;
    border-bottom: 1px solid #f1f5f9;
  }

  .gallardo-item-label {
    flex: 1;
    min-width: 0;
    padding-right: 6px;
    word-break: break-word;
  }

  .gallardo-item-currency {
    width: auto;
    padding-right: 4px;
    color: #475569;
  }

  .gallardo-item-value {
    width: auto;
    min-width: 85px;
    text-align: right;
    font-weight: 600;
    white-space: nowrap;
  }

  .gallardo-bottom-wrap {
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
  }

  .gallardo-summary-row {
    justify-content: space-between;
    width: 100%;
  }

  .gallardo-summary-label {
    width: auto;
    flex: 1;
    padding-right: 8px;
  }

  .gallardo-summary-box {
    width: auto;
    min-width: 145px;
    gap: 8px;
  }

  .gallardo-signature-right {
    align-self: flex-end;
    min-width: 140px;
  }
}

/* Print Stylesheet */
@media print {
  body {
    background-color: #ffffff !important;
    color: #000000 !important;
  }

  .sidebar,
  .page-header,
  .info-banner,
  .stats-grid,
  .filter-toolbar,
  .selection-bar,
  .modal-header,
  .modal-footer,
  .btn-action-preview,
  .toast-container {
    display: none !important;
  }

  .modal-backdrop {
    position: static !important;
    background: transparent !important;
    padding: 0 !important;
    display: block !important;
  }

  .modal-box {
    max-width: 100% !important;
    border: none !important;
    box-shadow: none !important;
    background: transparent !important;
  }

  .gallardo-slip-box {
    box-shadow: none !important;
    padding: 10px !important;
    border: 2px solid #000 !important;
  }
}

/* WhatsApp Button & Actions */
.btn-whatsapp {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: #25d366;
  color: #ffffff;
  border: none;
  padding: 9px 18px;
  border-radius: var(--radius-full);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 2px 10px rgba(37, 211, 102, 0.35);
  text-decoration: none;
}

.btn-whatsapp:hover {
  background-color: #20ba59;
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(37, 211, 102, 0.5);
  color: #ffffff;
}



/* Modal Form Tambah / Edit Karyawan & Gaji (Modern Dark Fintech UI) */
.modal-box.form-modal-box {
  max-width: 860px;
}

.form-section-card {
  background: rgba(255, 255, 255, 0.03) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  border-radius: 20px !important;
  padding: 18px 20px !important;
  margin-bottom: 20px !important;
}

.form-section-card:last-child {
  margin-bottom: 0 !important;
}

.form-section-header {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  flex-wrap: wrap !important;
  gap: 8px 12px !important;
  margin-bottom: 16px !important;
  padding-bottom: 12px !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
}

.form-section-header h4 {
  font-size: 14px !important;
  font-weight: 700 !important;
  color: #0f172a !important;
  letter-spacing: -0.2px !important;
  margin: 0 !important;
}

.form-section-header span {
  font-size: 11.5px !important;
  color: #64748b !important;
}

.form-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px 18px;
}

.form-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px 18px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  text-align: left;
}

.form-label,
label {
  font-family: var(--font-family) !important;
  font-size: 12px !important; /* Body 12pt */
  line-height: 16px !important;
  letter-spacing: 0.01em !important; /* +1% */
  font-weight: 600 !important;
  color: #0f172a !important;
  text-align: left !important;
}

.form-label .required,
label .required {
  color: #ef4444 !important;
  margin-left: 2px !important;
}

.form-input,
.form-select,
input[type="text"].form-input,
input[type="email"].form-input,
input[type="number"].form-input,
input[type="password"].form-input,
input[type="time"].form-input,
input[type="date"].form-input,
select.form-select,
textarea.form-input {
  background-color: #ffffff !important;
  border: 1px solid #cbd5e1 !important;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.02) !important;
  border-radius: 12px !important;
  color: #0f172a !important;
  font-family: var(--font-family) !important;
  font-size: 14px !important; /* Body 14pt */
  line-height: 20px !important;
  letter-spacing: 0.005em !important; /* +0.5% */
  font-weight: 400 !important; /* Regular */
  padding: 11px 16px !important;
  transition: border-color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease !important;
  width: 100% !important;
  box-sizing: border-box !important;
}

.form-select option {
  background-color: #ffffff !important;
  color: #0f172a !important;
}

.form-input::placeholder,
textarea.form-input::placeholder {
  color: #94a3b8 !important;
}

.form-input:focus,
.form-select:focus,
input[type="text"].form-input:focus,
input[type="email"].form-input:focus,
input[type="number"].form-input:focus,
input[type="password"].form-input:focus,
input[type="time"].form-input:focus,
input[type="date"].form-input:focus,
select.form-select:focus,
textarea.form-input:focus {
  border-color: #2563eb !important;
  outline: 2px solid transparent !important;
  background-color: #ffffff !important;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15), inset 0 2px 4px rgba(0, 0, 0, 0.02) !important;
}

.input-with-prefix {
  position: relative !important;
  display: flex !important;
  align-items: center !important;
  width: 100% !important;
}

.input-prefix {
  position: absolute !important;
  left: 14px !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  font-family: var(--font-family) !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  color: #64748b !important;
  pointer-events: none !important;
  user-select: none !important;
  z-index: 5 !important;
  line-height: 1 !important;
  transition: color 0.15s ease !important;
}

.input-with-prefix:focus-within .input-prefix {
  color: #2563eb !important;
}

.input-with-prefix input,
.input-with-prefix .form-input,
.input-with-prefix input[type="text"].form-input,
.input-with-prefix input[type="number"].form-input,
.input-with-prefix input.form-input {
  padding-left: 46px !important;
}

.form-hint,
.form-text,
.form-subtext {
  font-size: 11px !important;
  color: #64748b !important;
  line-height: 1.4 !important;
  margin-top: 3px !important;
}

/* Bonus Terpisah Checkbox Styling */
.bonus-terpisah-label {
  display: flex !important;
  align-items: flex-start !important;
  gap: 8px !important;
  margin-top: 8px !important;
  cursor: pointer !important;
  font-size: 11.5px !important;
  color: #0f172a !important;
}

.bonus-terpisah-text {
  font-size: 11.5px !important;
  color: #0f172a !important;
}

.bonus-terpisah-hint {
  color: #2563eb !important;
  font-weight: 600 !important;
}

/* Live Salary Summary inside Modal */
.salary-live-summary {
  background: #f1f5f9 !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 18px !important;
  padding: 16px 20px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  margin-top: 20px !important;
  box-shadow: none !important;
}

.summary-col {
  display: flex !important;
  flex-direction: column !important;
  gap: 4px !important;
}

.summary-col .lbl {
  font-size: 10.5px !important;
  text-transform: uppercase !important;
  letter-spacing: 0.5px !important;
  color: #64748b !important;
  font-weight: 600 !important;
}

.summary-col .val {
  font-family: var(--font-money) !important;
  font-size: 15px !important;
  font-weight: 800 !important;
  color: #0f172a !important;
}

.summary-col.netto {
  text-align: right !important;
}

.summary-col.netto .lbl {
  color: #64748b !important;
}

.summary-col.netto .val {
  font-size: 19px !important;
  font-weight: 800 !important;
  color: #059669 !important;
  letter-spacing: -0.5px !important;
}

/* Login Page Styling (Payno Light Frost Portal) */
html.login-html,
body.login-body {
  height: 100% !important;
  height: 100vh !important;
  height: 100dvh !important;
  max-height: 100dvh !important;
  width: 100% !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  margin: 0 !important;
  padding: 16px !important;
  box-sizing: border-box !important;
  background-color: #f8fafc !important;
  background-image: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%) !important;
  background-attachment: fixed !important;
  color: #0f172a !important;
  position: relative !important;
  overflow: hidden !important;
  overscroll-behavior: none !important;
  touch-action: pan-x pinch-zoom !important;
}

body.login-body::before {
  display: none !important;
}

.login-wrapper {
  width: 100% !important;
  max-width: 440px !important;
  margin: 0 auto !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  position: relative !important;
  z-index: 10 !important;
  animation: loginFadeIn 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes loginFadeIn {
  from {
    opacity: 0;
    transform: translateY(16px) scale(0.98);
  }

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

.login-card {
  width: 100% !important;
  box-sizing: border-box !important;
  background: rgba(255, 255, 255, 0.75) !important;
  backdrop-filter: blur(28px) !important;
  -webkit-backdrop-filter: blur(28px) !important;
  border: 1px solid rgba(255, 255, 255, 0.85) !important;
  border-radius: 28px !important;
  padding: 36px 32px !important;
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.06), 0 0 1px rgba(15, 23, 42, 0.05) !important;
  color: #0f172a !important;
}

.login-brand-header {
  text-align: center !important;
  margin-bottom: 26px !important;
}

.login-logo-img {
  width: 68px !important;
  height: 68px !important;
  object-fit: contain !important;
  border-radius: 50% !important;
  margin: 0 auto 12px auto !important;
  display: block !important;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.08) !important;
  border: 2px solid rgba(255, 255, 255, 0.9) !important;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.login-logo-img:hover {
  transform: scale(1.06) !important;
}

.login-emblem {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: #0f172a;
  color: #fff;
  font-size: 19px;
  font-weight: 800;
  letter-spacing: -0.5px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
  box-shadow: 0 8px 20px -4px rgba(15, 23, 42, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.login-brand-title {
  font-size: 22px !important;
  font-weight: 700 !important;
  color: #0f172a !important;
  letter-spacing: -0.4px !important;
  margin: 0 0 6px 0 !important;
}

.login-brand-subtitle {
  font-size: 12.5px !important;
  color: #64748b !important;
  font-weight: 400 !important;
  line-height: 1.4 !important;
  margin: 0 !important;
}

.login-alert {
  padding: 12px 16px;
  border-radius: var(--radius-md);
  font-size: 13px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
  line-height: 1.4;
  animation: loginShake 0.4s ease;
}

.login-alert.error {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #dc2626;
}

.login-alert.success {
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  color: #059669;
}

.login-card .form-group {
  display: flex !important;
  flex-direction: column !important;
  gap: 6px !important;
  text-align: left !important;
}

.login-card .form-label {
  font-size: 12.5px !important;
  font-weight: 600 !important;
  color: #0f172a !important;
  margin-bottom: 2px !important;
  display: block !important;
}

.login-input-wrap {
  position: relative !important;
  display: flex !important;
  align-items: center !important;
  width: 100% !important;
}

.login-input-icon {
  position: absolute !important;
  left: 16px !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  color: #94a3b8 !important;
  pointer-events: none !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 18px !important;
  height: 18px !important;
  z-index: 2 !important;
  transition: color 0.2s ease !important;
}

.login-input-icon svg {
  width: 18px !important;
  height: 18px !important;
  stroke: #94a3b8 !important;
  transition: stroke 0.2s ease !important;
}

.login-input,
input.login-input,
input[type="text"].login-input,
input[type="password"].login-input {
  width: 100% !important;
  height: 48px !important;
  background-color: #ffffff !important;
  border: 1px solid #cbd5e1 !important;
  border-radius: 14px !important;
  padding: 0 46px 0 48px !important;
  color: #0f172a !important;
  font-size: 13px !important;
  font-family: var(--font-family) !important;
  font-weight: 500 !important;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.02) !important;
  box-sizing: border-box !important;
  transition: border-color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease !important;
}

.login-input::placeholder,
input.login-input::placeholder {
  color: #94a3b8 !important;
  font-size: 12.5px !important;
  font-weight: 400 !important;
}

.login-input:focus,
input.login-input:focus {
  border-color: #2563eb !important;
  background-color: #ffffff !important;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15), inset 0 2px 4px rgba(0, 0, 0, 0.02) !important;
}

.login-input-wrap:focus-within .login-input-icon {
  color: #2563eb !important;
}

.login-input-wrap:focus-within .login-input-icon svg {
  stroke: #2563eb !important;
}

.login-toggle-pwd {
  position: absolute !important;
  right: 14px !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  background: transparent !important;
  border: none !important;
  color: #94a3b8 !important;
  cursor: pointer !important;
  padding: 4px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  border-radius: 8px !important;
  z-index: 2 !important;
  transition: color 0.2s ease !important;
}

.login-toggle-pwd:hover {
  color: #0f172a !important;
}

.login-toggle-pwd svg {
  width: 18px !important;
  height: 18px !important;
  stroke: currentColor !important;
}

.login-footer-text {
  text-align: center !important;
  width: 100% !important;
  font-size: 12px !important;
  color: #64748b !important;
  margin-top: 20px !important;
}

.login-btn-submit {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: #0f172a;
  color: #ffffff;
  border: none;
  padding: 12px 20px;
  border-radius: 99px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.15);
  margin-top: 24px;
}

.login-btn-submit:hover {
  background: #1e293b;
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.25);
}

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

.login-btn-submit:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

/* Demo Credentials Box */
.demo-cred-card {
  margin-top: 22px;
  background: #f8fafc;
  border: 1px dashed #cbd5e1;
  border-radius: var(--radius-md);
  padding: 14px 16px;
  font-size: 12px;
  color: #0f172a;
}

.demo-cred-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.demo-cred-title {
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  color: #2563eb;
  font-size: 12px;
}

.demo-cred-btn {
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  color: #2563eb;
  font-size: 11px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.demo-cred-btn:hover {
  background: #2563eb;
  color: #fff;
  border-color: #2563eb;
}

.demo-cred-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.demo-cred-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.demo-cred-item code {
  background: #e2e8f0;
  padding: 2px 6px;
  border-radius: 4px;
  color: #0f172a;
  font-family: monospace;
  font-size: 11.5px;
}

/* Bonus Terpisah Checkbox: Edit Gaji Modal (Payno Light Frost) */
.bonus-terpisah-label {
  display: inline-flex !important;
  align-items: center !important;
  gap: 10px !important;
  margin-top: 8px !important;
  padding: 10px 14px !important;
  background: #ffffff !important;
  border: 1px solid #cbd5e1 !important;
  border-radius: 12px !important;
  cursor: pointer !important;
  width: 100% !important;
  box-sizing: border-box !important;
  transition: background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease !important;
  user-select: none !important;
}

.bonus-terpisah-label:hover {
  background: #f8fafc !important;
  border-color: #94a3b8 !important;
}

.bonus-terpisah-label:has(input:checked) {
  background: #eff6ff !important;
  border-color: #2563eb !important;
  box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.15) !important;
}

.bonus-terpisah-label input[type="checkbox"] {
  accent-color: #2563eb !important;
  width: 16px !important;
  height: 16px !important;
  flex-shrink: 0 !important;
  cursor: pointer !important;
  border-radius: 4px !important;
}

.bonus-terpisah-text {
  font-size: 12px !important;
  font-weight: 500 !important;
  color: #0f172a !important;
  line-height: 1.35 !important;
}

.bonus-terpisah-hint {
  font-size: 11px !important;
  font-weight: 600 !important;
  color: #2563eb !important;
  margin-left: 2px !important;
}

/* Print Helper Utilities */
@media print {
  .no-print {
    display: none !important;
    visibility: hidden !important;
    height: 0 !important;
    width: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
  }
}

/* Admin Dashboard PWA & Mobile Responsive System */

/* 1. Mobile Sidebar Close Button (Hidden on Desktop) */
.sidebar-mobile-close-btn {
  display: none;
}

/* 2. Sidebar Backdrop Overlay */
.sidebar-backdrop {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 1040;
  opacity: 0;
  transition: opacity 0.25s ease;
}

body.sidebar-open .sidebar-backdrop {
  display: block;
  opacity: 1;
}

/* 3. Admin Mobile Topbar Header (Hidden on Desktop) */
.admin-mobile-topbar {
  display: none;
}

/* 4. Custom PWA Install Prompt Banner */
.admin-pwa-banner {
  background: linear-gradient(135deg, #1e1b4b 0%, #312e81 100%);
  border: 1px solid rgba(129, 140, 248, 0.35);
  border-radius: 14px;
  padding: 14px 18px;
  margin: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  box-shadow: 0 8px 24px rgba(30, 27, 75, 0.25);
  animation: fadeInDown 0.3s ease;
}

.admin-pwa-banner-content {
  display: flex;
  align-items: center;
  gap: 14px;
  flex: 1;
}

.admin-pwa-banner-icon {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: #ffffff;
  padding: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.admin-pwa-banner-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 8px;
}

.admin-pwa-banner-title {
  font-size: 14.5px;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: -0.2px;
  line-height: 1.2;
}

.admin-pwa-banner-desc {
  font-size: 12.5px;
  color: #c7d2fe;
  margin-top: 3px;
  line-height: 1.4;
}

.admin-pwa-banner-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.btn-pwa-install {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #4f46e5;
  color: #ffffff;
  border: 1px solid #6366f1;
  border-radius: 8px;
  padding: 8px 18px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
  white-space: nowrap;
  box-shadow: 0 2px 6px rgba(79, 70, 229, 0.35);
}

.btn-pwa-install:hover {
  background: #4338ca;
  transform: translateY(-1px);
}

.btn-pwa-dismiss {
  background: transparent;
  border: none;
  color: #94a3b8;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  padding: 4px 8px;
  transition: color 0.15s ease;
}

.btn-pwa-dismiss:hover {
  color: #ffffff;
}

/* ==========================================================================
   MODERN FINTECH LIGHT FROST GLASSMORPHISM DESIGN SYSTEM (DESKTOP & MOBILE PWA)
   Ultra-Premium Clean Visuals: Light Frost Mesh, Translucent Glass, Deep Navy & Corporate Blue
   ========================================================================== */

/* 1. Global Reset & Body Background (Light Gradient Mesh) */
html,
body {
  background-color: #f8fafc !important;
  background-image: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%) !important;
  background-attachment: fixed !important;
  background-repeat: no-repeat !important;
  color: #0f172a !important;
  font-family: var(--font-family) !important;
  margin: 0;
  padding: 0;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

.app-wrapper {
  background: transparent !important;
  min-height: 100vh;
  display: flex;
  width: 100%;
}

/* 2. Glassmorphism Panels & Cards */
.stat-card,
.saas-card,
.table-card,
.card,
.report-card,
.dept-card,
.location-card,
.settings-card,
.filter-toolbar,
.payroll-filter-row {
  background: rgba(255, 255, 255, 0.97) !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 24px !important;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.04) !important;
  color: #0f172a !important;
}

.modal-card,
.modal-box,
.preview-modal-box,
.form-modal-box,
.emp-modal-card {
  background: rgba(255, 255, 255, 0.99) !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 24px !important;
  box-shadow: 0 16px 48px rgba(15, 23, 42, 0.16) !important;
  color: #0f172a !important;
}

/* 3. Financial Hero Typography Scale (Exact Design System Implementation) */
.saas-metric-value,
#card1ThpValue,
#card2PotonganValue {
  font-family: var(--font-family) !important;
  font-size: 32px !important; /* Headline 32pt */
  line-height: 40px !important;
  letter-spacing: -0.02em !important; /* -2% */
  font-weight: 700 !important; /* Bold */
  color: #0f172a !important;
  margin: 4px 0 !important;
  white-space: nowrap !important;
  display: flex !important;
  align-items: baseline !important;
  justify-content: center !important;
  align-self: center !important;
  text-align: center !important;
  width: 100% !important;
  gap: 6px !important;
}

.saas-metric-value .flex,
#card1ThpValue .flex,
#card2PotonganValue .flex {
  display: flex !important;
  align-items: baseline !important;
  justify-content: center !important;
  text-align: center !important;
  gap: 6px !important;
}

.saas-metric-value .currency-symbol,
#card1ThpValue .currency-symbol,
#card2PotonganValue .currency-symbol {
  font-family: var(--font-money) !important;
  font-size: 16px !important;
  line-height: 20px !important;
  font-weight: 700 !important;
  color: #64748b !important;
  letter-spacing: -0.01em !important;
  vertical-align: baseline !important;
  align-self: baseline !important;
  display: inline-block !important;
  margin: 0 !important;
  padding: 0 !important;
}

.saas-metric-value .currency-amount,
#card1ThpValue .currency-amount,
#card2PotonganValue .currency-amount {
  font-family: var(--font-money) !important;
  font-size: 32px !important;
  line-height: 40px !important;
  font-weight: 700 !important;
  letter-spacing: -0.02em !important;
  color: #0f172a !important;
  vertical-align: baseline !important;
  align-self: baseline !important;
  display: inline-block !important;
  margin: 0 !important;
  padding: 0 !important;
}

.stat-value,
.stat-value.total {
  font-family: var(--font-money) !important;
  font-size: 30px !important;
  line-height: 38px !important;
  font-weight: 700 !important;
  color: #0f172a !important;
  letter-spacing: -0.02em !important;
  margin: 4px 0 !important;
}

.stat-title,
.saas-card-title,
.metric-label {
  font-family: var(--font-family) !important;
  font-size: 15px !important; /* Headline 15pt */
  line-height: 22px !important;
  font-weight: 600 !important; /* Semi-Bold */
  color: #0f172a !important;
  letter-spacing: -0.01em !important;
}

.saas-card-subtext,
#card1Subtitle,
#card2Subtitle {
  font-family: var(--font-family) !important;
  font-size: 12px !important; /* Body 12pt */
  line-height: 16px !important;
  font-weight: 400 !important; /* Regular */
  color: #64748b !important;
  letter-spacing: 0.01em !important;
  text-align: center !important;
  align-self: center !important;
  margin-top: 4px !important;
  width: 100% !important;
}

.stat-subtext {
  font-family: var(--font-family) !important;
  font-size: 12px !important; /* Body 12pt */
  line-height: 16px !important;
  font-weight: 400 !important; /* Regular */
  color: #64748b !important;
  letter-spacing: 0.01em !important;
  margin-top: 4px !important;
}

.saas-card-subtext span,
#card1Subtitle span,
#card2Subtitle span,
#statTotal,
#statSentSub {
  color: inherit !important;
  font-weight: 400 !important;
}

.saas-trend-badge {
  font-family: var(--font-family) !important;
  font-size: 10px !important; /* Headline 10pt */
  line-height: 14px !important;
  font-weight: 600 !important;
  letter-spacing: 0 !important;
  padding: 4px 10px !important;
  border-radius: 12px !important;
  align-self: center !important;
  margin: 4px auto !important;
}

/* Modern Fintech Custom Select Component (Light Frost Glass) */
.filter-toolbar,
.payroll-filter-row {
  overflow: visible !important;
  position: relative !important;
  z-index: 50 !important;
}

.filter-group {
  overflow: visible !important;
  position: relative !important;
  z-index: 51 !important;
}

.table-card,
.card.table-card {
  position: relative !important;
  z-index: 10 !important;
}

.filter-toolbar.has-dropdown-open,
.filter-toolbar:has(.is-open),
.payroll-filter-row.has-dropdown-open,
.payroll-filter-row:has(.is-open) {
  z-index: 1000 !important;
  position: relative !important;
}

.filter-group.has-dropdown-open,
.filter-group:has(.is-open) {
  z-index: 1001 !important;
  position: relative !important;
}

select.filter-select[data-customized="true"] {
  display: none !important;
}

.modern-custom-select {
  position: relative;
  display: flex;
  align-items: center;
  flex: 1;
  min-width: 0;
  height: 100%;
}

.modern-custom-select.is-open {
  z-index: 1002 !important;
}

.modern-select-trigger {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  width: 100%;
  height: 100%;
  background: transparent;
  border: none;
  color: #0f172a;
  font-family: var(--font-family);
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  padding: 0;
  text-align: right;
  box-shadow: none;
  user-select: none;
}

.modern-select-trigger:focus-visible {
  outline: 2px solid var(--primary, #2563eb);
  outline-offset: 2px;
  border-radius: 6px;
}

.modern-select-label {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 150px;
  color: #0f172a;
  transition: color 0.15s ease;
}

.modern-custom-select.is-open .modern-select-label {
  color: #2563eb;
}

.modern-select-chevron {
  width: 12px;
  height: 12px;
  flex-shrink: 0;
  color: #64748b;
  transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275), color 0.2s ease;
}

.modern-custom-select.is-open .modern-select-chevron {
  transform: rotate(180deg);
  color: #2563eb;
}

.modern-select-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 200px;
  max-width: min(290px, 90vw);
  max-height: 250px;
  overflow-y: auto;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  border: 1px solid rgba(255, 255, 255, 0.95);
  border-radius: 18px;
  padding: 6px;
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.12);
  z-index: 1003 !important;
  display: none;
}

.modern-custom-select.is-open .modern-select-dropdown {
  display: block;
  animation: modernSelectFade 0.22s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.modern-custom-select.is-dropup .modern-select-dropdown {
  top: auto !important;
  bottom: calc(100% + 8px) !important;
  box-shadow: 0 -18px 45px rgba(15, 23, 42, 0.12) !important;
  animation: modernSelectFadeUp 0.22s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
}

@keyframes modernSelectFade {
  from {
    opacity: 0;
    transform: translateY(-6px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes modernSelectFadeUp {
  from {
    opacity: 0;
    transform: translateY(6px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.modern-select-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 12px;
  border-radius: 12px;
  font-family: var(--font-family);
  font-size: 12.5px;
  font-weight: 500;
  color: #64748b;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease;
  user-select: none;
}

.modern-select-option:hover {
  background: #f1f5f9;
  color: #0f172a;
}

.modern-select-option.is-active {
  background: #eff6ff;
  color: #2563eb;
  font-weight: 600;
}

.modern-select-option .opt-check {
  display: none;
  flex-shrink: 0;
}

.modern-select-option.is-active .opt-check {
  display: block;
}

.modern-select-dropdown::-webkit-scrollbar {
  width: 4px;
}
.modern-select-dropdown::-webkit-scrollbar-track {
  background: transparent;
}
.modern-select-dropdown::-webkit-scrollbar-thumb {
  background: rgba(15, 23, 42, 0.15);
  border-radius: 99px;
}
.modern-select-dropdown::-webkit-scrollbar-thumb:hover {
  background: rgba(37, 99, 235, 0.4);
}

/* 5. ULTRA-MODERN FINTECH LIGHT THEME CUSTOM DATE & MONTH PICKER */

/* Native date/month input hidden from view */
.modern-datepicker-native,
input.filter-select[data-custom-picker="true"] {
  position: absolute !important;
  opacity: 0 !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  border: 0 !important;
  pointer-events: none !important;
}

/* Trigger in Filter Toolbar (.filter-group) */
.modern-datepicker-trigger {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  width: 100%;
  height: 100%;
  background: transparent;
  border: none;
  color: #0f172a;
  font-family: var(--font-family);
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  padding: 0;
  text-align: right;
  box-shadow: none;
  user-select: none;
  transition: color 0.15s ease, opacity 0.15s ease;
}

.modern-datepicker-trigger:focus-visible {
  outline: 2px solid var(--primary, #2563eb);
  outline-offset: 2px;
  border-radius: 6px;
}

.modern-datepicker-trigger .mdp-trigger-label {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 150px;
  color: #0f172a;
  transition: color 0.15s ease;
}

.modern-datepicker-trigger .mdp-trigger-icon {
  width: 13px;
  height: 13px;
  flex-shrink: 0;
  color: #64748b;
  transition: color 0.15s ease, transform 0.15s ease;
}

.modern-datepicker-trigger:hover .mdp-trigger-icon,
.modern-datepicker-trigger.is-open .mdp-trigger-icon {
  color: #2563eb;
}

.modern-datepicker-trigger.is-open .mdp-trigger-label {
  color: #2563eb;
}

/* Trigger in Standard Form Inputs (Modals, Settings, Profile) */
.modern-datepicker-trigger.form-mode {
  justify-content: space-between !important;
  width: 100% !important;
  height: 44px !important;
  background-color: #ffffff !important;
  border: 1px solid #cbd5e1 !important;
  border-radius: 12px !important;
  padding: 11px 16px !important;
  box-sizing: border-box !important;
  text-align: left !important;
  color: #0f172a !important;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.02) !important;
}

.modern-datepicker-trigger.form-mode:hover {
  border-color: #94a3b8 !important;
}

.modern-datepicker-trigger.form-mode.is-open {
  border-color: #2563eb !important;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15) !important;
}

.modern-datepicker-trigger.form-mode .mdp-trigger-label {
  max-width: none !important;
  font-size: 14px !important;
  letter-spacing: 0.005em !important;
  font-weight: 500 !important;
}

/* Global Custom Datepicker Popover - Light Frost Theme */
#globalModernDatePickerPopover {
  position: fixed;
  z-index: 10050;
  width: 316px;
  max-width: calc(100vw - 24px);
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(28px);
  border: 1px solid rgba(255, 255, 255, 0.95);
  border-radius: 24px;
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.15);
  padding: 16px;
  font-family: var(--font-family);
  color: #0f172a;
  box-sizing: border-box;
  user-select: none;
  display: none;
}

#globalModernDatePickerPopover.is-open {
  display: block;
  animation: mdpPopFadeIn 0.22s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes mdpPopFadeIn {
  from {
    opacity: 0;
    transform: translateY(-6px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Popover Header */
.mdp-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.mdp-title-btn {
  background: transparent;
  border: none;
  color: #0f172a;
  font-family: var(--font-family);
  font-size: 14px;
  line-height: 20px;
  letter-spacing: -0.01em;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 8px;
  border-radius: 8px;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.mdp-title-btn:focus-visible {
  outline: 2px solid var(--primary, #2563eb);
  outline-offset: 2px;
}

.mdp-title-btn:hover {
  background: #f1f5f9;
  color: #2563eb;
}

.mdp-nav-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  background: transparent;
  border: none;
  border-radius: 8px;
  color: #64748b;
  cursor: pointer;
  transition: color 0.15s ease, background-color 0.15s ease;
  padding: 0;
}

.mdp-nav-btn:hover {
  color: #0f172a;
  background: #f1f5f9;
}

/* Weekday Row (Mo, Tu, We, Th, Fr, Sa, Su) */
.mdp-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
  margin-bottom: 8px;
  text-align: center;
}

.mdp-weekday {
  font-size: 12px;
  line-height: 16px;
  letter-spacing: 0;
  font-weight: 600;
  color: #64748b;
  padding: 3px 0;
}

/* Days Grid (7 columns) */
.mdp-days-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
  margin-bottom: 12px;
}

.mdp-day-cell {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 35px;
  font-size: 14px;
  line-height: 20px;
  letter-spacing: 0.005em;
  font-weight: 500;
  color: #0f172a;
  border-radius: 10px;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
  position: relative;
}

.mdp-day-cell:hover:not(.is-active) {
  background: #f1f5f9;
  color: #0f172a;
}

.mdp-day-cell.is-outside {
  color: #cbd5e1;
}

.mdp-day-cell.is-today:not(.is-active) {
  box-shadow: inset 0 0 0 1.5px #2563eb;
  color: #2563eb;
  font-weight: 700;
}

.mdp-day-cell.is-active {
  background: #2563eb !important;
  color: #ffffff !important;
  font-weight: 700 !important;
  border-radius: 10px !important;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.28);
}

/* Month Grid (Month Mode & Quick Month Selector) */
.mdp-months-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 12px;
}

.mdp-month-cell {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 42px;
  font-size: 13.5px;
  font-weight: 600;
  color: #0f172a;
  background: #f8fafc;
  border-radius: 12px;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}

.mdp-month-cell:hover:not(.is-active) {
  background: #f1f5f9;
  color: #2563eb;
}

.mdp-month-cell.is-current:not(.is-active) {
  box-shadow: inset 0 0 0 1.5px #2563eb;
  color: #2563eb;
  font-weight: 700;
}

.mdp-month-cell.is-active {
  background: #2563eb !important;
  color: #ffffff !important;
  font-weight: 700 !important;
  border-radius: 12px !important;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.28);
}

/* Footer Actions */
.mdp-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 10px;
  border-top: 1px solid #f1f5f9;
}

.mdp-btn-clear {
  background: transparent;
  border: none;
  color: #64748b;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  padding: 6px 10px;
  border-radius: 6px;
  transition: color 0.15s ease, background-color 0.15s ease;
}

.mdp-btn-clear:hover {
  color: #0f172a;
  background: #f1f5f9;
}

.mdp-btn-now {
  background: #eff6ff;
  border: 1px solid #dbeafe;
  color: #2563eb;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  padding: 6px 12px;
  border-radius: 8px;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.mdp-btn-now:hover {
  background: #2563eb;
  color: #ffffff;
}

.stat-subtext,
.saas-card-subtext,
.card-subtitle {
  font-size: 12px !important;
  color: #64748b !important;
  font-weight: 400 !important;
  margin-top: 4px !important;
}

/* 4. Primary Action Buttons (Payno Electric Corporate Blue Gradient) */
.btn-primary,
.btn-submit,
.login-btn-submit,
button.btn-primary,
#btnKirimSlip,
#btnClockIn,
#btnSubmit,
#btnModalSendSingle,
#btnStartBatchSend,
#btnSaveEmployee,
#btnConfirmCreatePeriod,
.btn-pwa-install {
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%) !important;
  color: #ffffff !important;
  border-radius: 14px !important;
  font-weight: 600 !important;
  border: none !important;
  padding: 10px 22px !important;
  font-size: 13px !important;
  min-height: 44px;
  box-shadow: 0 4px 16px rgba(37, 99, 235, 0.28) !important;
  cursor: pointer !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  text-decoration: none !important;
  transition: background 0.25s ease, transform 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.25s ease !important;
}

.btn-primary:hover,
button.btn-primary:hover,
.login-btn-submit:hover,
#btnKirimSlip:hover,
.btn-pwa-install:hover,
#btnClockIn:hover,
#btnSubmit:hover,
#btnModalSendSingle:hover,
#btnStartBatchSend:hover,
#btnSaveEmployee:hover,
#btnConfirmCreatePeriod:hover {
  background: linear-gradient(135deg, #1d4ed8 0%, #1e40af 100%) !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 8px 24px rgba(37, 99, 235, 0.38) !important;
}

.btn-primary:active,
button.btn-primary:active,
.login-btn-submit:active,
#btnKirimSlip:active,
.btn-pwa-install:active {
  transform: scale(0.98) !important;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.15) !important;
}

.btn-primary svg,
button.btn-primary svg,
.login-btn-submit svg,
#btnKirimSlip svg,
.btn-pwa-install svg {
  stroke: #ffffff !important;
  color: #ffffff !important;
}

/* Secondary Action Buttons */
.btn-secondary,
button.btn-secondary,
.icon-btn,
#btnTambahKaryawan,
#btnExportExcel {
  background: #ffffff !important;
  border: 1px solid #cbd5e1 !important;
  color: #0f172a !important;
  border-radius: 14px !important;
  font-weight: 600 !important;
  padding: 10px 20px !important;
  font-size: 13px !important;
  min-height: 44px;
  cursor: pointer !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  text-decoration: none !important;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.03) !important;
  transition: background 0.25s ease, border-color 0.25s ease, color 0.25s ease, transform 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.25s ease !important;
}

.btn-secondary:hover,
button.btn-secondary:hover,
.icon-btn:hover,
#btnTambahKaryawan:hover,
#btnExportExcel:hover {
  background: #f8fafc !important;
  border-color: #94a3b8 !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.06) !important;
}

/* Status Badges - Rounded Pill Capsules (Headline 10pt Medium) */
.badge,
.status-badge,
.badge-status,
.saas-trend-badge {
  font-family: var(--font-family) !important;
  font-size: 10.5px !important;
  line-height: 14px !important;
  letter-spacing: 0em !important;
  font-weight: 600 !important;
  border-radius: 12px !important;
  padding: 4px 12px !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  white-space: nowrap !important;
}

.badge-success,
.badge-hadir,
.saas-trend-badge.up {
  background: #ecfdf5 !important;
  border: 1px solid #a7f3d0 !important;
  color: #059669 !important;
}

.badge-warning,
.badge-telat,
.badge-pending {
  background: #fffbeb !important;
  border: 1px solid #fde68a !important;
  color: #d97706 !important;
}

.badge-danger,
.saas-trend-badge.down {
  background: #fef2f2 !important;
  border: 1px solid #fecaca !important;
  color: #dc2626 !important;
}

.badge-blue,
.badge-info {
  background: #eff6ff !important;
  border: 1px solid #bfdbfe !important;
  color: #2563eb !important;
}

/* 5. Filter Dropdown & Form Inputs (Crisp White with Inset Shadow) */
input[type="text"]:not(.login-input):not(.search-input),
input[type="date"],
input[type="password"]:not(.login-input),
input[type="number"],
input[type="email"],
input[type="search"]:not(.search-input),
select:not(.header-period-select),
textarea,
.form-control,
.form-input,
.form-select,
.filter-input {
  background: #ffffff !important;
  border: 1px solid #cbd5e1 !important;
  color: #0f172a !important;
  border-radius: 14px !important;
  padding: 10px 16px !important;
  font-size: 13px !important;
  font-family: var(--font-family) !important;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.02) !important;
  box-sizing: border-box !important;
  transition: border-color 0.2s ease, box-shadow 0.2s ease !important;
}

/* Specific styling for login inputs so icons never overlap text */
.login-input,
input.login-input,
input[type="text"].login-input,
input[type="password"].login-input {
  padding-left: 48px !important;
  padding-right: 48px !important;
  height: 48px !important;
  border-radius: 14px !important;
  background-color: #ffffff !important;
  border: 1px solid #cbd5e1 !important;
  color: #0f172a !important;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.02) !important;
}

/* Specific styling for inputs with currency prefix (Rp) so prefix never overlaps numbers */
.input-with-prefix input,
.input-with-prefix .form-input,
.input-with-prefix input[type="text"].form-input,
.input-with-prefix input[type="number"].form-input,
.input-with-prefix input.form-input {
  padding-left: 46px !important;
}

textarea {
  border-radius: 18px !important;
}

input:focus,
select:focus,
textarea:focus,
.form-input:focus,
.form-select:focus,
.search-wrapper:focus-within {
  border-color: #2563eb !important;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15) !important;
}

select option {
  background-color: #ffffff !important;
  color: #0f172a !important;
}

.search-wrapper input,
.search-wrapper input.search-input,
input[type="text"].search-input,
input.search-input {
  background: transparent !important;
  background-color: transparent !important;
  border: none !important;
  border-radius: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
  color: #0f172a !important;
  box-shadow: none !important;
  outline: none !important;
  width: 100% !important;
  height: 100% !important;
}

.search-wrapper input:focus,
.search-wrapper input.search-input:focus,
input[type="text"].search-input:focus,
input.search-input:focus {
  background: transparent !important;
  background-color: transparent !important;
  border: none !important;
  box-shadow: none !important;
  outline: none !important;
}

.search-wrapper svg {
  color: #64748b !important;
}

/* Category Filter Tabs (Header Filter Tabs) */
.header-filter-tabs {
  display: inline-flex;
  align-items: center;
  background-color: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 99px;
  padding: 4px;
  gap: 4px;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.03);
}

.header-filter-tab {
  padding: 7px 18px !important;
  border-radius: 99px !important;
  font-size: 12.5px !important;
  font-weight: 500 !important;
  color: #64748b !important;
  text-decoration: none !important;
  background: transparent !important;
  border: none !important;
  cursor: pointer !important;
  transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease !important;
}

.header-filter-tab.active,
.header-filter-tabs .header-filter-tab.active,
.saas-sub-bar .header-filter-tab.active {
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%) !important;
  background-color: #2563eb !important;
  color: #ffffff !important;
  font-weight: 700 !important;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.3) !important;
}

/* HR Sub-Tabs Bar */
.hr-tabs-bar {
  display: flex !important;
  flex-direction: row !important;
  gap: 8px !important;
  overflow-x: auto !important;
  -webkit-overflow-scrolling: touch !important;
  padding: 6px !important;
  background: rgba(255, 255, 255, 0.7) !important;
  border: 1px solid rgba(255, 255, 255, 0.9) !important;
  border-radius: 16px !important;
  scrollbar-width: none !important;
  margin-bottom: 20px !important;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.03) !important;
}

.hr-tabs-bar::-webkit-scrollbar {
  display: none !important;
}

.hr-tab-btn {
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  padding: 9px 20px !important;
  border-radius: 12px !important;
  white-space: nowrap !important;
  border: 1px solid transparent !important;
  background: transparent !important;
  color: #64748b !important;
  font-size: 13px !important;
  font-weight: 500 !important;
  cursor: pointer !important;
  transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease !important;
}

.hr-tab-btn:hover {
  color: #0f172a !important;
  background: #ffffff !important;
}

.hr-tab-btn.active {
  background: #2563eb !important;
  color: #ffffff !important;
  font-weight: 600 !important;
  border: 1px solid #1d4ed8 !important;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.25) !important;
}

.hr-tab-btn.active svg {
  stroke: #ffffff !important;
  color: #ffffff !important;
}

.hr-tab-btn::after {
  display: none !important;
}

/* 6. Data Tables */
.table-card {
  background-color: rgba(255, 255, 255, 0.75) !important;
  border: 1px solid rgba(255, 255, 255, 0.9) !important;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(15, 23, 42, 0.04) !important;
}

.table-title-header {
  padding: 16px 24px;
  text-align: left !important;
  font-size: 14px;
  font-weight: 700;
  color: #0f172a;
  border-bottom: 1px solid #f1f5f9;
  background-color: transparent;
  letter-spacing: -0.01em;
}

.table-title-header h2,
.table-title-header h3,
.table-title-header .table-title {
  color: #0f172a !important;
  font-size: 16px !important;
  font-weight: 700 !important;
  margin: 0 !important;
}

.table-title-header p,
.table-title-header .table-subtitle {
  color: #64748b !important;
  font-size: 12.5px !important;
  margin-top: 2px !important;
}

table.data-table,
table.payroll-data-table {
  width: 100% !important;
  background: transparent !important;
  color: #0f172a !important;
  border-collapse: collapse !important;
  border: none !important;
}

table.data-table thead th,
table.payroll-data-table thead th,
.table-responsive thead th {
  background: #f8fafc !important;
  color: #64748b !important;
  border-bottom: 1px solid #e2e8f0 !important;
  border-top: none !important;
  border-left: none !important;
  border-right: none !important;
  padding: 14px 20px !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.6px !important;
  white-space: nowrap !important;
  position: sticky !important;
  top: 0 !important;
  z-index: 10 !important;
  box-shadow: 0 1px 0 #e2e8f0 !important;
}

table.data-table tbody td,
table.payroll-data-table tbody td {
  background: transparent !important;
  color: #0f172a !important;
  border-bottom: 1px solid #f1f5f9 !important;
  border-top: none !important;
  border-left: none !important;
  border-right: none !important;
  padding: 14px 20px !important;
  font-size: 13px !important;
  vertical-align: middle !important;
}

table.data-table tbody tr:hover td,
table.payroll-data-table tbody tr:hover td {
  background: rgba(241, 245, 249, 0.7) !important;
}

.table-pagination-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 20px;
  border-top: 1px solid #f1f5f9;
  background-color: transparent;
  font-size: 12px;
  color: #64748b;
}

/* Modals */
.modal-backdrop {
  background: rgba(15, 23, 42, 0.52) !important;
}

.modal-card,
.modal-box,
.preview-modal-box,
.form-modal-box,
.emp-modal-card {
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 28px !important;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.18) !important;
  color: #0f172a !important;
}

.modal-header {
  padding: 18px 24px;
  background-color: transparent;
  border-bottom: 1px solid #f1f5f9;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #0f172a;
}

.modal-footer {
  padding: 16px 24px;
  background-color: #f8fafc;
  border-top: 1px solid #f1f5f9;
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

/* Floating Chat FAB (Corporate Neon Pill) */
.chat-fab-btn {
  background: #2563eb !important;
  border: 1px solid rgba(255, 255, 255, 0.2) !important;
  color: #ffffff !important;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.5) !important;
  transition: background-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
  z-index: 1100 !important;
}

.chat-fab-btn:hover {
  background: #1d4ed8 !important;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6) !important;
}

/* DESKTOP RESPONSIVE RULES (>= 768px): FLOATING CRISP SIDEBAR */
@media (min-width: 768px) {
  .sidebar {
    position: fixed !important;
    top: 20px !important;
    left: 20px !important;
    width: 270px !important;
    height: calc(100vh - 40px) !important;
    margin: 0 !important;
    border-radius: 24px !important;
    background: rgba(255, 255, 255, 0.98) !important;
    border: 1px solid #e2e8f0 !important;
    box-shadow: 0 8px 28px rgba(15, 23, 42, 0.06) !important;
    z-index: 900 !important;
    display: flex !important;
    flex-direction: column !important;
    overflow: hidden !important;
  }

  .sidebar .brand-switcher {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding: 10px 14px !important;
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 16px !important;
    margin-bottom: 18px !important;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04) !important;
    transition: background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease !important;
    text-decoration: none !important;
  }

  .sidebar .brand-switcher:hover {
    background: #f8fafc !important;
    border-color: #cbd5e1 !important;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.06) !important;
  }

  .sidebar .brand-switcher-info {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    min-width: 0 !important;
    flex: 1 !important;
  }

  .sidebar .brand-switcher-logo {
    width: 36px !important;
    height: 36px !important;
    border-radius: 50% !important;
    background: #0f172a !important;
    border: 1.5px solid #e2e8f0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex-shrink: 0 !important;
    overflow: hidden !important;
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.08) !important;
  }

  .sidebar .brand-switcher-logo img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    border-radius: 50% !important;
  }

  .sidebar .brand-switcher-content {
    min-width: 0 !important;
    flex: 1 !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
  }

  .sidebar .brand-switcher-text {
    font-size: 13.5px !important;
    font-weight: 700 !important;
    color: #0f172a !important;
    letter-spacing: -0.01em !important;
    line-height: 1.25 !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
  }

  .sidebar .brand-switcher-sub {
    font-size: 10.5px !important;
    font-weight: 500 !important;
    color: #64748b !important;
    line-height: 1.2 !important;
    margin-top: 2px !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
  }

  .sidebar .brand-switcher-icon {
    color: #94a3b8 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex-shrink: 0 !important;
    margin-left: 8px !important;
    transition: color 0.2s ease !important;
  }

  .sidebar .brand-switcher:hover .brand-switcher-icon {
    color: #2563eb !important;
  }

  .sidebar .nav-section-title {
    font-size: 11px !important;
    font-weight: 700 !important;
    color: #64748b !important;
    letter-spacing: 0.08em !important;
    text-transform: uppercase !important;
    margin: 18px 0 8px 6px !important;
  }

  .sidebar .nav-link {
    color: #64748b !important;
    border-radius: 14px !important;
    transition: background-color 0.2s ease, color 0.2s ease !important;
    padding: 11px 16px !important;
    margin-bottom: 5px !important;
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    text-decoration: none !important;
    font-weight: 500 !important;
    font-size: 13.5px !important;
  }

  .sidebar .nav-link svg {
    stroke: #64748b !important;
    color: #64748b !important;
    transition: stroke 0.2s ease, color 0.2s ease !important;
  }

  .sidebar .nav-link:hover:not(.active) {
    background: rgba(15, 23, 42, 0.04) !important;
    color: #0f172a !important;
  }

  .sidebar .nav-link:hover:not(.active) svg {
    stroke: #0f172a !important;
    color: #0f172a !important;
  }

  .sidebar .nav-link.active {
    background: #2563eb !important;
    color: #ffffff !important;
    border-radius: 14px !important;
    font-weight: 600 !important;
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.28) !important;
  }

  .sidebar .nav-link.active svg {
    stroke: #ffffff !important;
    color: #ffffff !important;
  }

  .sidebar .nav-link.active .nav-badge {
    background: #ffffff !important;
    color: #2563eb !important;
  }

  .sidebar .sidebar-profile-footer {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding: 12px 14px !important;
    background: #ffffff !important;
    border-top: 1px solid #e2e8f0 !important;
    border-radius: 0 0 24px 24px !important;
    box-sizing: border-box !important;
  }

  .sidebar .sidebar-profile-avatar {
    width: 36px !important;
    height: 36px !important;
    border-radius: 50% !important;
    background: linear-gradient(135deg, #2563eb, #3b82f6) !important;
    color: #ffffff !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    flex-shrink: 0 !important;
    box-shadow: 0 2px 6px rgba(37, 99, 235, 0.25) !important;
  }

  .sidebar .sidebar-profile-name {
    font-size: 13px !important;
    font-weight: 700 !important;
    color: #0f172a !important;
    line-height: 1.25 !important;
  }

  .sidebar .sidebar-profile-role {
    font-size: 11px !important;
    font-weight: 500 !important;
    color: #64748b !important;
    margin-top: 2px !important;
  }

  .sidebar .sidebar-logout-icon-btn {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 34px !important;
    height: 34px !important;
    border-radius: 10px !important;
    color: #64748b !important;
    background: #f8fafc !important;
    border: 1px solid #e2e8f0 !important;
    transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease !important;
  }

  .sidebar .sidebar-logout-icon-btn:hover {
    color: #ef4444 !important;
    background: #fef2f2 !important;
    border-color: #fecaca !important;
  }

  .main-content {
    margin-left: 310px !important;
    width: calc(100% - 310px) !important;
    min-height: 100vh !important;
    padding: 24px 32px 60px 32px !important;
    background: transparent !important;
    box-sizing: border-box !important;
  }

  .admin-floating-bottom-nav,
  .admin-mobile-topbar,
  .sidebar-mobile-close-btn,
  .sidebar-backdrop {
    display: none !important;
  }

  .stats-grid {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 16px !important;
    margin-bottom: 24px !important;
  }

  .saas-overview-grid {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 20px !important;
    margin-bottom: 24px !important;
  }
}

/* MOBILE PWA RESPONSIVE RULES (< 768px): LIGHT FROST DOCK & CLEAN 2X2 GRID */
@media (max-width: 767px) {
  .app-wrapper {
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
    max-width: 100vw !important;
    min-width: 0 !important;
    min-height: 100vh !important;
    box-sizing: border-box !important;
    overflow-x: hidden !important;
    position: relative !important;
    background: transparent !important;
  }

  .sidebar,
  .sidebar-backdrop,
  .btn-hamburger,
  .sidebar-mobile-close-btn {
    display: none !important;
  }

  /* Admin Mobile Topbar: Light Frost Glassmorphism */
  .admin-mobile-topbar {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    position: sticky !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    height: 58px !important;
    padding: 0 16px !important;
    background: rgba(255, 255, 255, 0.98) !important;
    border-bottom: 1px solid #e2e8f0 !important;
    box-shadow: 0 2px 10px rgba(15, 23, 42, 0.04) !important;
    z-index: 1000 !important;
    box-sizing: border-box !important;
    flex-shrink: 0 !important;
  }

  .admin-mobile-brand {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
  }

  .admin-mobile-brand img {
    width: 32px !important;
    height: 32px !important;
    border-radius: 50% !important;
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.08) !important;
  }

  .admin-mobile-brand-title {
    font-size: 14.5px !important;
    font-weight: 700 !important;
    color: #0f172a !important;
    letter-spacing: -0.3px !important;
    display: inline-block !important;
    margin-right: 6px !important;
  }

  .admin-mobile-brand-badge {
    font-size: 9.5px !important;
    font-weight: 700 !important;
    padding: 2px 8px !important;
    border-radius: 12px !important;
    background: #eff6ff !important;
    border: 1px solid #bfdbfe !important;
    color: #2563eb !important;
    vertical-align: middle !important;
    letter-spacing: 0.3px !important;
  }

  .admin-mobile-portal-link {
    width: 36px !important;
    height: 36px !important;
    border-radius: 50% !important;
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    color: #0f172a !important;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.05) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-decoration: none !important;
    flex-shrink: 0 !important;
    transition: transform 0.2s ease !important;
  }

  .admin-mobile-portal-link:hover {
    transform: scale(1.05) !important;
    background: #f8fafc !important;
  }

  /* Main Content on Mobile */
  .main-content {
    margin-left: 0 !important;
    margin-right: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    padding: 16px 14px 125px 14px !important;
    background: transparent !important;
    box-sizing: border-box !important;
    overflow-x: hidden !important;
    flex: 1 1 auto !important;
  }

  /* Header Section & Typography */
  .page-header {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 10px !important;
    margin-bottom: 16px !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .header-left {
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-title {
    font-size: 20px !important;
    font-weight: 700 !important;
    line-height: 1.25 !important;
    letter-spacing: -0.3px !important;
    color: #0f172a !important;
    margin: 0 !important;
  }

  .page-subtitle {
    font-size: 12.5px !important;
    line-height: 1.4 !important;
    color: #64748b !important;
    margin-top: 4px !important;
  }

  .period-indicator {
    font-size: 11px !important;
    padding: 3px 10px !important;
    margin-bottom: 6px !important;
    color: #2563eb !important;
  }

  .header-right {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 8px !important;
    width: 100% !important;
    box-sizing: border-box !important;
    margin-top: 6px !important;
    justify-content: flex-start !important;
  }

  .header-meta-group {
    display: none !important;
  }

  .header-right .btn-primary,
  .header-right .btn-secondary,
  .header-right .icon-btn,
  .header-right .period-select-pill {
    padding: 10px 14px !important;
    font-size: 12.5px !important;
    border-radius: 99px !important;
    flex: 1 1 calc(50% - 6px) !important;
    min-width: 130px !important;
    min-height: 44px !important;
    justify-content: center !important;
    text-align: center !important;
    white-space: nowrap !important;
    box-sizing: border-box !important;
  }

  /* Sub-Bar (Range Tabs + Export & Period side-by-side) */
  .saas-sub-bar {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 10px !important;
    margin-bottom: 16px !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .saas-sub-bar .header-filter-tabs {
    display: flex !important;
    width: 100% !important;
    justify-content: space-between !important;
    padding: 4px !important;
    border-radius: 99px !important;
    box-sizing: border-box !important;
    background: #f1f5f9 !important;
    border: 1px solid #e2e8f0 !important;
  }

  .saas-sub-bar .header-filter-tab {
    flex: 1 !important;
    text-align: center !important;
    font-size: 12px !important;
    padding: 7px 6px !important;
    border-radius: 99px !important;
    color: #64748b !important;
    font-weight: 500 !important;
  }

  .saas-sub-bar .header-filter-tab.active {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%) !important;
    background-color: #2563eb !important;
    color: #ffffff !important;
    font-weight: 700 !important;
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.3) !important;
  }

  .saas-sub-bar-actions {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: wrap !important;
    gap: 8px !important;
    width: 100% !important;
  }

  .saas-sub-bar-actions > a,
  .saas-sub-bar-actions > button,
  .saas-sub-bar-actions > div,
  .saas-sub-bar-actions > label {
    flex: 1 1 calc(50% - 4px) !important;
    width: auto !important;
    min-width: 0 !important;
    height: 42px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 6px !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    box-sizing: border-box !important;
    padding: 0 12px !important;
    border-radius: 999px !important;
    white-space: nowrap !important;
    background: #ffffff !important;
    border: 1px solid #cbd5e1 !important;
    color: #0f172a !important;
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.04) !important;
    transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease !important;
  }

  .saas-sub-bar-actions > .period-dropdown-wrap {
    flex: 1 1 100% !important;
    display: block !important;
    padding: 0 !important;
    border: none !important;
    background: transparent !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    overflow: visible !important;
  }

  .saas-sub-bar-actions .period-select-pill {
    width: 100% !important;
    height: 42px !important;
    padding: 0 12px !important;
    justify-content: center !important;
    font-size: 12px !important;
  }

  .saas-sub-bar-actions .period-dropdown-menu {
    right: 0 !important;
    left: auto !important;
    min-width: 100% !important;
  }

  /* Overview Cards (index.php) - Payno Light Frost Style */
  .saas-overview-grid {
    display: flex !important;
    flex-direction: column !important;
    gap: 12px !important;
    margin-bottom: 16px !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .saas-card {
    background: rgba(255, 255, 255, 0.65) !important;
    backdrop-filter: blur(14px) !important;
    -webkit-backdrop-filter: blur(14px) !important;
    border: 1px solid rgba(255, 255, 255, 0.85) !important;
    border-radius: 24px !important;
    padding: 18px 20px !important;
    min-height: auto !important;
    box-shadow: 0 8px 32px rgba(15, 23, 42, 0.05) !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important;
    color: #0f172a !important;
    width: 100% !important;
    box-sizing: border-box !important;
    transform: translateZ(0);
  }

  .saas-card-header {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: space-between !important;
    width: 100% !important;
    margin-bottom: 10px !important;
    gap: 6px !important;
  }

  .saas-card-title-group {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    white-space: nowrap !important;
    flex-shrink: 0 !important;
  }

  .saas-card-title {
    font-family: var(--font-family) !important;
    font-size: 14px !important;
    line-height: 20px !important;
    font-weight: 500 !important;
    letter-spacing: -0.01em !important;
    color: #0f172a !important;
    white-space: nowrap !important;
  }

  .saas-card-legend {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    font-size: 10.5px !important;
    font-weight: 500 !important;
    color: #64748b !important;
    white-space: nowrap !important;
  }

  .saas-legend-item {
    display: inline-flex !important;
    align-items: center !important;
    gap: 4px !important;
    font-size: 10.5px !important;
    white-space: nowrap !important;
  }

  .saas-legend-dot {
    width: 6px !important;
    height: 6px !important;
    border-radius: 50% !important;
    flex-shrink: 0 !important;
  }

  .saas-card-body {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    justify-content: center !important;
    gap: 4px !important;
    width: 100% !important;
  }

  .saas-metric-col {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    width: 100% !important;
    gap: 4px !important;
    min-width: 0 !important;
  }

  .saas-metric-value,
  #card1ThpValue,
  #card2PotonganValue {
    font-family: var(--font-family) !important;
    font-size: 28px !important;
    line-height: 36px !important;
    letter-spacing: -0.02em !important;
    font-weight: 700 !important;
    color: #0f172a !important;
    white-space: nowrap !important;
    word-break: normal !important;
    display: flex !important;
    align-items: baseline !important;
    justify-content: flex-start !important;
    gap: 6px !important;
    margin: 2px 0 !important;
    padding: 0 !important;
    width: 100% !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
  }

  .saas-metric-value .flex,
  #card1ThpValue .flex,
  #card2PotonganValue .flex {
    display: flex !important;
    align-items: baseline !important;
    justify-content: flex-start !important;
    gap: 6px !important;
  }

  .saas-metric-value .currency-symbol,
  #card1ThpValue .currency-symbol,
  #card2PotonganValue .currency-symbol {
    font-family: var(--font-family) !important;
    font-size: 14px !important;
    line-height: 20px !important;
    font-weight: 500 !important;
    color: #64748b !important;
    letter-spacing: 0.005em !important;
    vertical-align: baseline !important;
    align-self: baseline !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  .saas-metric-value .currency-amount,
  #card1ThpValue .currency-amount,
  #card2PotonganValue .currency-amount {
    font-family: var(--font-family) !important;
    font-size: 28px !important;
    line-height: 36px !important;
    font-weight: 700 !important;
    letter-spacing: -0.02em !important;
    color: #0f172a !important;
    vertical-align: baseline !important;
    align-self: baseline !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  .saas-card-subtext,
  #card1Subtitle,
  #card2Subtitle {
    font-family: var(--font-family) !important;
    font-size: 12px !important;
    line-height: 16px !important;
    font-weight: 400 !important;
    letter-spacing: 0.01em !important;
    color: #64748b !important;
    margin-top: 4px !important;
    text-align: left !important;
    width: 100% !important;
  }

  .saas-card-subtext span,
  #card1Subtitle span,
  #card2Subtitle span,
  #statTotal,
  #statSentSub {
    color: inherit !important;
    font-weight: 500 !important;
  }

  .saas-chart-col {
    display: none !important;
  }

  /* Compact 2x2 Metric Grid for employees, attendance, reports */
  .stats-grid,
  .report-kpi-grid {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 10px !important;
    margin-bottom: 16px !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .stat-card {
    background: rgba(255, 255, 255, 0.65) !important;
    backdrop-filter: blur(14px) !important;
    -webkit-backdrop-filter: blur(14px) !important;
    border: 1px solid rgba(255, 255, 255, 0.85) !important;
    border-radius: 20px !important;
    padding: 14px 14px !important;
    min-height: 86px !important;
    box-shadow: 0 6px 20px rgba(15, 23, 42, 0.04) !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important;
    color: #0f172a !important;
    position: relative !important;
    box-sizing: border-box !important;
    transform: translateZ(0);
  }

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

  .stat-title {
    font-size: 11.5px !important;
    font-weight: 500 !important;
    color: #64748b !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    flex: 1 !important;
    min-width: 0 !important;
  }

  .stat-icon {
    width: 28px !important;
    height: 28px !important;
    min-width: 28px !important;
    min-height: 28px !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex-shrink: 0 !important;
  }

  .stat-icon svg {
    width: 14px !important;
    height: 14px !important;
  }

  .stat-value {
    font-family: var(--font-family) !important;
    font-size: 20px !important;
    font-weight: 700 !important;
    color: #0f172a !important;
    letter-spacing: -0.02em !important;
    line-height: 1.2 !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
  }

  .stat-subtext {
    font-size: 10.5px !important;
    color: #64748b !important;
    margin-top: 2px !important;
  }

  /* Filter Toolbar & Search Box on Mobile */
  .filter-toolbar,
  .payroll-filter-row {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 8px !important;
    padding: 12px 14px !important;
    border-radius: 20px !important;
    background: rgba(255, 255, 255, 0.65) !important;
    backdrop-filter: blur(14px) !important;
    -webkit-backdrop-filter: blur(14px) !important;
    border: 1px solid rgba(255, 255, 255, 0.85) !important;
    box-shadow: 0 8px 32px rgba(15, 23, 42, 0.05) !important;
    width: 100% !important;
    box-sizing: border-box !important;
    margin-bottom: 16px !important;
    position: relative !important;
    z-index: 50 !important;
    overflow: visible !important;
    transform: translateZ(0);
  }

  .filter-toolbar.has-dropdown-open,
  .filter-toolbar:has(.is-open),
  .payroll-filter-row.has-dropdown-open,
  .payroll-filter-row:has(.is-open) {
    z-index: 1000 !important;
    position: relative !important;
  }

  .filter-toolbar .search-wrapper,
  .payroll-filter-row .search-wrapper,
  .search-wrapper {
    flex: none !important;
    width: 100% !important;
    height: 42px !important;
    min-height: 42px !important;
    max-height: 42px !important;
    background: #ffffff !important;
    border: 1px solid #cbd5e1 !important;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.02) !important;
    border-radius: 999px !important;
    display: flex !important;
    align-items: center !important;
    padding: 0 16px 0 38px !important;
    box-sizing: border-box !important;
    position: relative !important;
  }

  .filter-toolbar .search-wrapper .search-icon,
  .search-wrapper .search-icon {
    position: absolute !important;
    left: 14px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    color: #94a3b8 !important;
    pointer-events: none !important;
  }

  .filter-toolbar .search-wrapper input.search-input,
  .search-wrapper input.search-input {
    width: 100% !important;
    height: 100% !important;
    border: none !important;
    background: transparent !important;
    color: #0f172a !important;
    padding: 0 !important;
    font-size: 13px !important;
    font-family: inherit !important;
    box-shadow: none !important;
  }

  .filter-toolbar .search-wrapper input.search-input::placeholder,
  .search-wrapper input.search-input::placeholder {
    color: #94a3b8 !important;
  }

  .filter-toolbar .filter-group,
  .payroll-filter-row .filter-group {
    width: 100% !important;
    height: 40px !important;
    min-height: 40px !important;
    max-height: 40px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding: 0 14px !important;
    border-radius: 999px !important;
    background: #ffffff !important;
    border: 1px solid #cbd5e1 !important;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.02) !important;
    box-sizing: border-box !important;
    overflow: visible !important;
    position: relative !important;
    z-index: 51 !important;
  }

  .filter-group.has-dropdown-open,
  .filter-group:has(.is-open) {
    z-index: 1001 !important;
    position: relative !important;
  }

  .modern-select-label {
    max-width: 165px !important;
    color: #0f172a !important;
  }

  .modern-select-dropdown {
    width: 100% !important;
    max-width: 100% !important;
    left: 0 !important;
    right: 0 !important;
    max-height: 220px !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch !important;
    z-index: 1003 !important;
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(24px) !important;
    border: 1px solid #cbd5e1 !important;
    box-shadow: 0 12px 36px rgba(15, 23, 42, 0.12) !important;
    border-radius: 14px !important;
  }

  .modern-custom-select.is-dropup .modern-select-dropdown {
    top: auto !important;
    bottom: calc(100% + 8px) !important;
  }

  .filter-toolbar .filter-label,
  .payroll-filter-row .filter-label {
    font-size: 12px !important;
    color: #64748b !important;
    white-space: nowrap !important;
    font-weight: 500 !important;
  }

  .filter-toolbar .filter-select,
  .payroll-filter-row .filter-select {
    background: transparent !important;
    border: none !important;
    color: #0f172a !important;
    font-size: 12px !important;
    font-weight: 500 !important;
    text-align: right !important;
    padding: 0 20px 0 8px !important;
    width: auto !important;
    flex: 1 !important;
  }

  .filter-toolbar .filter-select:focus-visible,
  .payroll-filter-row .filter-select:focus-visible {
    outline: 2px solid var(--primary) !important;
    outline-offset: 2px !important;
    border-radius: 6px !important;
  }

  .filter-toolbar .btn-reset-filter,
  .payroll-filter-row .btn-reset-filter {
    width: 100% !important;
    height: 38px !important;
    border-radius: 999px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 6px !important;
    font-size: 12px !important;
    background: #ffffff !important;
    border: 1px solid #cbd5e1 !important;
    color: #64748b !important;
    box-sizing: border-box !important;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease !important;
  }

  .filter-toolbar .btn-reset-filter:hover {
    background: #f8fafc !important;
    color: #0f172a !important;
  }

  .filter-toolbar .record-count,
  .payroll-filter-row .record-count {
    font-size: 11px !important;
    color: #64748b !important;
    text-align: center !important;
    width: 100% !important;
    margin-top: 2px !important;
  }

  .selection-bar {
    padding: 0 6px !important;
    font-size: 11.5px !important;
    margin-bottom: 10px !important;
    color: #64748b !important;
  }

  /* Data Tables Mobile Optimization */
  .table-card,
  .report-table-wrapper {
    width: 100% !important;
    max-width: 100% !important;
    border-radius: 24px !important;
    background: rgba(255, 255, 255, 0.65) !important;
    backdrop-filter: blur(14px) !important;
    -webkit-backdrop-filter: blur(14px) !important;
    border: 1px solid rgba(255, 255, 255, 0.85) !important;
    box-shadow: 0 8px 32px rgba(15, 23, 42, 0.05) !important;
    overflow: hidden !important;
    box-sizing: border-box !important;
    margin-bottom: 16px !important;
    position: relative !important;
    z-index: 10 !important;
    transform: translateZ(0);
  }

  .table-responsive {
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
    box-sizing: border-box !important;
  }

  .table-title-header {
    padding: 14px 18px !important;
    font-size: 13.5px !important;
    font-weight: 600 !important;
    color: #0f172a !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 4px !important;
    border-bottom: 1px solid #e2e8f0 !important;
  }

  .data-table th,
  .table-responsive thead th,
  .report-table th,
  .payroll-data-table thead th {
    padding: 10px 12px !important;
    font-size: 11px !important;
    white-space: nowrap !important;
    background: #f8fafc !important;
    color: #64748b !important;
    border-bottom: 1px solid #e2e8f0 !important;
    position: sticky !important;
    top: 0 !important;
    z-index: 10 !important;
    box-shadow: 0 1px 0 #e2e8f0 !important;
  }

  .data-table td,
  .table-responsive tbody td,
  .report-table td,
  .payroll-data-table tbody td {
    padding: 11px 12px !important;
    font-size: 12.5px !important;
    background: transparent !important;
    color: #0f172a !important;
    border-bottom: 1px solid #f1f5f9 !important;
  }

  .payroll-data-table th.sticky-action-col,
  .payroll-data-table td.sticky-action-col,
  .report-table th.sticky-col-left,
  .report-table td.sticky-col-left,
  .report-table th.sticky-col-right,
  .report-table td.sticky-col-right {
    position: static !important;
    right: auto !important;
    left: auto !important;
    background: transparent !important;
    box-shadow: none !important;
    border-left: none !important;
  }

  .payroll-data-table td.sticky-action-col {
    white-space: nowrap !important;
    display: table-cell !important;
    vertical-align: middle !important;
    text-align: right !important;
    padding: 8px 12px !important;
  }

  .payroll-data-table td.sticky-action-col .action-btn-group {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
    gap: 6px !important;
    vertical-align: middle !important;
  }

  .btn-action-preview,
  .btn-action-edit,
  .btn-action-delete {
    padding: 5px 10px !important;
    font-size: 11px !important;
    border-radius: 8px !important;
  }

  .table-pagination-footer {
    padding: 12px 16px !important;
    font-size: 11.5px !important;
    color: #64748b !important;
    flex-direction: column !important;
    gap: 8px !important;
    align-items: center !important;
  }

  /* HR Sub-Tabs Bar */
  .hr-tabs-bar {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    -webkit-overflow-scrolling: touch !important;
    touch-action: pan-x !important;
    white-space: nowrap !important;
    width: calc(100% + 28px) !important;
    max-width: none !important;
    margin-left: -14px !important;
    margin-right: -14px !important;
    padding: 6px 14px !important;
    gap: 8px !important;
    border-radius: 0 !important;
    background: transparent !important;
    border: none !important;
    scrollbar-width: none !important;
    margin-bottom: 16px !important;
    box-sizing: border-box !important;
  }

  .hr-tabs-bar::-webkit-scrollbar {
    display: none !important;
    width: 0 !important;
    height: 0 !important;
  }

  .hr-tab-btn {
    flex: 0 0 auto !important;
    flex-shrink: 0 !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 7px !important;
    padding: 9px 18px !important;
    font-size: 12.5px !important;
    font-weight: 500 !important;
    border-radius: 99px !important;
    background: rgba(255, 255, 255, 0.7) !important;
    border: 1px solid rgba(255, 255, 255, 0.9) !important;
    color: #64748b !important;
    cursor: pointer !important;
    white-space: nowrap !important;
    transition: background 0.3s ease, color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease !important;
  }

  .hr-tab-btn svg {
    width: 15px !important;
    height: 15px !important;
    flex-shrink: 0 !important;
  }

  .hr-tab-btn.active {
    background: #2563eb !important;
    color: #ffffff !important;
    font-weight: 600 !important;
    border-color: #1d4ed8 !important;
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.25) !important;
  }

  .hr-tab-btn.active svg {
    stroke: #ffffff !important;
    color: #ffffff !important;
  }

  /* Date & Month Picker Indicator */
  input[type="date"]::-webkit-calendar-picker-indicator,
  input[type="month"]::-webkit-calendar-picker-indicator {
    filter: none !important;
    opacity: 0.65 !important;
    cursor: pointer !important;
  }

  /* Settings Mobile Optimization */
  .settings-container,
  .settings-card,
  .form-section-card {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    padding: 16px !important;
    border-radius: 20px !important;
    margin-bottom: 14px !important;
    background: rgba(255, 255, 255, 0.65) !important;
    border: 1px solid rgba(255, 255, 255, 0.85) !important;
  }

  .settings-grid-2 {
    grid-template-columns: 1fr !important;
    gap: 12px !important;
  }

  .settings-card-title {
    font-size: 14.5px !important;
    color: #0f172a !important;
    font-weight: 600 !important;
  }

  /* Settings Action Bar: Natural bottom layout on mobile */
  .sticky-save-bar {
    position: static !important;
    width: 100% !important;
    max-width: 100% !important;
    background: rgba(255, 255, 255, 0.98) !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 20px !important;
    color: #0f172a !important;
    padding: 16px !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 12px !important;
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.05) !important;
    box-sizing: border-box !important;
    margin-top: 20px !important;
    margin-bottom: 96px !important;
    text-align: center !important;
  }

  .sticky-save-bar > div:first-child {
    width: 100% !important;
    font-size: 12px !important;
    line-height: 1.5 !important;
    color: #64748b !important;
    text-align: center !important;
  }

  .sticky-save-bar > div:last-child {
    display: flex !important;
    flex-direction: row !important;
    gap: 10px !important;
    width: 100% !important;
  }

  .sticky-save-bar > div:last-child a,
  .sticky-save-bar > div:last-child button {
    flex: 1 1 50% !important;
    height: 42px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 12.5px !important;
    font-weight: 600 !important;
    padding: 0 12px !important;
    border-radius: 99px !important;
    box-sizing: border-box !important;
  }

  /* Mobile Modal Forms Optimization */
  .modal-backdrop {
    padding: 12px !important;
    align-items: flex-end !important;
    background: rgba(15, 23, 42, 0.48) !important;
    z-index: 1500 !important;
  }

  .modal-box,
  .modal-card,
  .form-modal-box {
    width: 100% !important;
    max-width: 100% !important;
    max-height: 92vh !important;
    border-radius: 28px 28px 20px 20px !important;
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    box-shadow: 0 -12px 36px rgba(15, 23, 42, 0.12) !important;
    margin: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    color: #0f172a !important;
  }

  .modal-header {
    padding: 18px 20px !important;
    background: transparent !important;
    border-bottom: 1px solid #e2e8f0 !important;
  }

  .modal-header h3,
  .modal-title {
    font-size: 16px !important;
    font-weight: 700 !important;
    color: #0f172a !important;
  }

  .modal-body {
    padding: 18px 16px !important;
    background: transparent !important;
    max-height: calc(88vh - 130px) !important;
    color: #0f172a !important;
  }

  .form-section-card {
    background: rgba(248, 250, 252, 0.8) !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 18px !important;
    padding: 14px 12px !important;
    margin-bottom: 14px !important;
    box-sizing: border-box !important;
  }

  .form-section-header {
    padding-bottom: 10px !important;
    margin-bottom: 12px !important;
    border-bottom: 1px solid #e2e8f0 !important;
  }

  .form-section-header h4 {
    font-size: 13.5px !important;
    color: #0f172a !important;
    font-weight: 600 !important;
  }

  .form-section-header span {
    font-size: 11px !important;
    color: #64748b !important;
  }

  .form-grid-2,
  .form-grid-3 {
    grid-template-columns: 1fr !important;
    gap: 12px !important;
  }

  .form-group[style*="grid-column: span 2"] {
    grid-column: span 1 !important;
  }

  .form-label,
  label {
    font-size: 12px !important;
    font-weight: 600 !important;
    color: #0f172a !important;
  }

  .form-input,
  .form-select,
  input[type="text"].form-input,
  input[type="email"].form-input,
  input[type="number"].form-input,
  input[type="password"].form-input,
  input[type="time"].form-input,
  input[type="date"].form-input,
  select.form-select,
  textarea.form-input {
    background-color: #ffffff !important;
    border: 1px solid #cbd5e1 !important;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.02) !important;
    border-radius: 12px !important;
    color: #0f172a !important;
    font-size: 13px !important;
    padding: 12px 14px !important;
    box-sizing: border-box !important;
    font-family: inherit !important;
  }

  .input-with-prefix input,
  .input-with-prefix .form-input,
  .input-with-prefix input[type="text"].form-input,
  .input-with-prefix input[type="number"].form-input,
  .input-with-prefix input.form-input {
    padding-left: 46px !important;
  }

  .form-input:focus,
  .form-select:focus,
  input[type="text"].form-input:focus,
  input[type="email"].form-input:focus,
  input[type="number"].form-input:focus,
  input[type="password"].form-input:focus,
  input[type="time"].form-input:focus,
  input[type="date"].form-input:focus,
  select.form-select:focus,
  textarea.form-input:focus {
    border-color: #2563eb !important;
    outline: none !important;
    background-color: #ffffff !important;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15), inset 0 2px 4px rgba(0, 0, 0, 0.02) !important;
  }

  .form-hint,
  .form-text,
  .form-subtext {
    font-size: 11px !important;
    color: #64748b !important;
  }

  .salary-live-summary {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 10px !important;
    padding: 14px !important;
    border-radius: 16px !important;
    background: #f1f5f9 !important;
    border: 1px solid #e2e8f0 !important;
  }

  .summary-col {
    align-items: center !important;
    text-align: center !important;
  }

  .summary-col.netto {
    text-align: center !important;
  }

  .modal-footer {
    padding: 14px 18px !important;
    background: transparent !important;
    border-top: 1px solid #e2e8f0 !important;
    display: flex !important;
    gap: 10px !important;
    justify-content: flex-end !important;
  }

  /* Floating Bottom Bar: Symmetrical Bento Light Dock (Crisp Zero-Blur) */
  .admin-floating-bottom-nav {
    display: flex !important;
    position: fixed !important;
    bottom: max(18px, env(safe-area-inset-bottom, 18px)) !important;
    left: 50% !important;
    transform: translateX(-50%) translateZ(0) !important;
    width: calc(100% - 32px) !important;
    max-width: 420px !important;
    height: auto !important;
    background: rgba(255, 255, 255, 0.98) !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 999px !important;
    padding: 10px 14px !important;
    justify-content: space-between !important;
    align-items: center !important;
    z-index: 1200 !important;
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.08), 0 4px 10px rgba(15, 23, 42, 0.04) !important;
    box-sizing: border-box !important;
  }

  /* 1. Symmetrical Tab Distribution: flex-1 forces each of the 5 tabs to occupy exactly 20% width */
  .admin-floating-bottom-nav .bottom-nav-item {
    position: relative !important;
    flex: 1 1 0% !important;
    width: 20% !important;
    max-width: 20% !important;
    background: none !important;
    border: none !important;
    color: #64748b !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 3px !important;
    padding: 2px 0 !important;
    margin: 0 !important;
    cursor: pointer !important;
    font-family: inherit !important;
    text-decoration: none !important;
    user-select: none !important;
    transition: color 0.22s ease, transform 0.22s cubic-bezier(0.16, 1, 0.3, 1) !important;
  }

  /* 2. Compact Pill behind Icon (w-12 h-7.5 rounded-full) */
  .admin-floating-bottom-nav .bottom-nav-icon-pill,
  .admin-floating-bottom-nav .bottom-nav-circle {
    position: relative !important;
    width: 48px !important;
    height: 30px !important;
    border-radius: 999px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: transparent !important;
    color: #64748b !important;
    transition: background-color 0.25s ease, color 0.25s ease, transform 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
  }

  .admin-floating-bottom-nav .bottom-nav-icon-pill svg,
  .admin-floating-bottom-nav .bottom-nav-circle svg {
    width: 20px !important;
    height: 20px !important;
    stroke: #64748b !important;
    stroke-width: 2 !important;
    transition: stroke 0.2s ease, transform 0.2s ease !important;
  }

  .admin-floating-bottom-nav .bottom-nav-item span {
    font-size: 11px !important;
    font-weight: 500 !important;
    color: #64748b !important;
    line-height: 1.2 !important;
    letter-spacing: -0.01em !important;
    transition: color 0.2s ease, font-weight 0.2s ease !important;
    white-space: nowrap !important;
  }

  /* Active State: Payno Corporate Blue (#2563eb) + Subtle Pill (Bukan Hitam Solid) */
  .admin-floating-bottom-nav .bottom-nav-item.active {
    color: #2563eb !important;
  }

  .admin-floating-bottom-nav .bottom-nav-item.active .bottom-nav-icon-pill,
  .admin-floating-bottom-nav .bottom-nav-item.active .bottom-nav-circle {
    background: rgba(37, 99, 235, 0.12) !important;
    color: #2563eb !important;
    box-shadow: none !important;
  }

  .admin-floating-bottom-nav .bottom-nav-item.active .bottom-nav-icon-pill svg,
  .admin-floating-bottom-nav .bottom-nav-item.active .bottom-nav-circle svg {
    stroke: #2563eb !important;
    stroke-width: 2.3 !important;
    color: #2563eb !important;
    transform: scale(1.05) !important;
  }

  .admin-floating-bottom-nav .bottom-nav-item.active span {
    color: #2563eb !important;
    font-weight: 700 !important;
  }

  .admin-floating-bottom-nav .bottom-nav-item:hover:not(.active) .bottom-nav-icon-pill,
  .admin-floating-bottom-nav .bottom-nav-item:hover:not(.active) .bottom-nav-circle {
    background: rgba(15, 23, 42, 0.04) !important;
    color: #0f172a !important;
  }

  .admin-floating-bottom-nav .bottom-nav-item:hover:not(.active) svg {
    stroke: #0f172a !important;
  }

  .admin-floating-bottom-nav .bottom-nav-item:hover:not(.active) span {
    color: #0f172a !important;
  }

  .admin-floating-bottom-nav .bottom-nav-badge {
    position: absolute !important;
    top: 2px !important;
    right: 8px !important;
    background: #ef4444 !important;
    color: #ffffff !important;
    font-size: 8.5px !important;
    font-weight: 700 !important;
    border-radius: 12px !important;
    padding: 1px 5px !important;
    line-height: 1.2 !important;
    box-shadow: 0 2px 4px rgba(239, 68, 68, 0.4) !important;
  }

  /* Chat FAB on Mobile */
  .chat-fab-btn {
    bottom: calc(90px + max(18px, env(safe-area-inset-bottom, 18px))) !important;
    right: 16px !important;
    width: 48px !important;
    height: 48px !important;
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%) !important;
    box-shadow: 0 8px 22px rgba(37, 99, 235, 0.36) !important;
  }
}

/* ==========================================================================
   UNIFIED LIGHT FROST GLASSMORPHISM DESIGN SYSTEM (PAYNO AESTHETIC)
   Clean White Glassmorphism + Deep Navy (#0f172a) + Corporate Blue (#2563eb)
   ========================================================================== */

/* 1. Global Page Header */
.page-header {
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  margin-bottom: 24px !important;
  gap: 16px !important;
}

.page-header .page-title {
  font-family: var(--font-family) !important;
  font-size: 24px !important;
  line-height: 32px !important;
  letter-spacing: -0.025em !important;
  font-weight: 700 !important;
  color: #0f172a !important;
  margin: 0 !important;
}

.page-header .page-subtitle {
  font-family: var(--font-family) !important;
  font-size: 13.5px !important;
  line-height: 18px !important;
  color: #64748b !important;
  margin: 4px 0 0 0 !important;
}

.period-indicator {
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  font-size: 11.5px !important;
  font-weight: 600 !important;
  color: #2563eb !important;
  letter-spacing: -0.01em !important;
  margin-bottom: 4px !important;
}

/* 2. Unified Light Frost Cards & KPI Bento Grid */
.stats-grid,
.saas-overview-grid,
.report-kpi-grid {
  display: grid !important;
  grid-template-columns: repeat(4, 1fr) !important;
  gap: 16px !important;
  margin-bottom: 24px !important;
  width: 100% !important;
  box-sizing: border-box !important;
}

@media (max-width: 1024px) {
  .stats-grid,
  .saas-overview-grid,
  .report-kpi-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 14px !important;
  }
}

.stat-card,
.saas-card {
  background: rgba(255, 255, 255, 0.97) !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 24px !important;
  padding: 20px 22px !important;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.04) !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: space-between !important;
  text-align: left !important;
  min-height: 124px !important;
  color: #0f172a !important;
  box-sizing: border-box !important;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease !important;
}

.stat-card:hover,
.saas-card:hover {
  border-color: rgba(255, 255, 255, 0.95) !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 12px 36px rgba(15, 23, 42, 0.08) !important;
}

.stat-header,
.saas-card-header {
  display: flex !important;
  flex-direction: row !important;
  justify-content: space-between !important;
  align-items: center !important;
  margin-bottom: 8px !important;
  width: 100% !important;
}

.stat-title,
.saas-card-title {
  font-family: var(--font-family) !important;
  font-size: 13.5px !important;
  font-weight: 500 !important;
  color: #64748b !important;
  letter-spacing: -0.01em !important;
  margin: 0 !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  flex: 1 !important;
  min-width: 0 !important;
}

.stat-icon,
.saas-card-icon {
  width: 34px !important;
  height: 34px !important;
  border-radius: 10px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex-shrink: 0 !important;
  border: 1px solid rgba(0, 0, 0, 0.04) !important;
}

.stat-value,
.stat-value.total,
.saas-metric-value {
  font-family: var(--font-family) !important;
  font-size: 26px !important;
  font-weight: 700 !important;
  line-height: 1.15 !important;
  letter-spacing: -0.025em !important;
  color: #0f172a !important;
  margin: 4px 0 !important;
  display: flex !important;
  align-items: baseline !important;
  gap: 4px !important;
  justify-content: flex-start !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

.stat-subtext,
.saas-card-subtext {
  font-family: var(--font-family) !important;
  font-size: 12px !important;
  color: #64748b !important;
  font-weight: 400 !important;
  margin-top: 2px !important;
  text-align: left !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

/* 3. Unified Segmented Tabs & Sub-Bar */
.saas-sub-bar {
  position: relative !important;
  z-index: 40 !important;
  overflow: visible !important;
}

.saas-sub-bar,
.hr-tabs-bar {
  background: rgba(255, 255, 255, 0.5) !important;
  backdrop-filter: blur(20px) !important;
  border: 1px solid rgba(255, 255, 255, 0.8) !important;
  border-radius: 20px !important;
  padding: 8px 12px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 12px !important;
  margin-bottom: 24px !important;
  flex-wrap: wrap !important;
}

.header-filter-tabs {
  display: inline-flex !important;
  align-items: center !important;
  gap: 4px !important;
  background: #f1f5f9 !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 99px !important;
  padding: 4px !important;
}

.header-filter-tab {
  padding: 6px 16px !important;
  font-size: 12.5px !important;
  font-weight: 500 !important;
  color: #64748b !important;
  border-radius: 99px !important;
  text-decoration: none !important;
  transition: background 0.3s ease, color 0.3s ease, box-shadow 0.3s ease !important;
}

.header-filter-tab:hover {
  color: #0f172a !important;
  background: rgba(0, 0, 0, 0.03) !important;
}

.header-filter-tab.active {
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%) !important;
  background-color: #2563eb !important;
  color: #ffffff !important;
  font-weight: 700 !important;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.3) !important;
}

/* 4. Unified Filter Toolbar */
.filter-toolbar {
  background: rgba(255, 255, 255, 0.97) !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 20px !important;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.04) !important;
  padding: 10px 16px !important;
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  margin-bottom: 20px !important;
  flex-wrap: wrap !important;
}

.search-wrapper {
  background: #ffffff !important;
  border: 1.5px solid #cbd5e1 !important;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.02) !important;
  border-radius: 9999px !important;
  padding: 0 16px 0 40px !important;
  height: 42px !important;
  min-height: 42px !important;
  max-height: 42px !important;
  display: flex !important;
  align-items: center !important;
  position: relative !important;
  box-sizing: border-box !important;
  transition: border-color 0.2s ease, box-shadow 0.2s ease !important;
}

.search-wrapper:focus-within {
  border-color: #2563eb !important;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15), inset 0 2px 4px rgba(0, 0, 0, 0.02) !important;
}

.search-icon {
  position: absolute !important;
  left: 14px !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  color: #64748b !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  pointer-events: none !important;
  z-index: 2 !important;
}

.search-input,
.search-wrapper input.search-input,
input[type="text"].search-input {
  width: 100% !important;
  height: 100% !important;
  background: transparent !important;
  background-color: transparent !important;
  border: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  padding: 0 !important;
  margin: 0 !important;
  color: #0f172a !important;
  font-family: var(--font-family) !important;
  font-size: 13.5px !important;
  outline: none !important;
  line-height: normal !important;
}

.search-input::placeholder {
  color: #94a3b8 !important;
  font-size: 13px !important;
}

.filter-group {
  background: #ffffff !important;
  border: 1px solid #cbd5e1 !important;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.02) !important;
  border-radius: 99px !important;
  padding: 0 14px !important;
  height: 40px !important;
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
}

.filter-select {
  background: transparent !important;
  border: none !important;
  color: #0f172a !important;
  font-family: var(--font-family) !important;
  font-size: 13px !important;
  font-weight: 500 !important;
  outline: none !important;
  cursor: pointer !important;
}

/* 5. Unified Table Container & Clean Scrollbars */
.table-card,
.report-table-wrapper {
  background: rgba(255, 255, 255, 0.98) !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 24px !important;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.04) !important;
  overflow: hidden !important;
}

.table-title-header {
  font-family: var(--font-family) !important;
  font-size: 15px !important;
  font-weight: 600 !important;
  color: #0f172a !important;
  letter-spacing: -0.01em !important;
  padding: 16px 22px !important;
  border-bottom: 1px solid #e2e8f0 !important;
  background: transparent !important;
}

.table-responsive {
  scrollbar-width: thin !important;
  scrollbar-color: rgba(15, 23, 42, 0.15) transparent !important;
}

.table-responsive::-webkit-scrollbar {
  width: 6px !important;
  height: 6px !important;
}

.table-responsive::-webkit-scrollbar-track {
  background: transparent !important;
}

.table-responsive::-webkit-scrollbar-thumb {
  background: rgba(15, 23, 42, 0.15) !important;
  border-radius: 99px !important;
}

.table-responsive::-webkit-scrollbar-thumb:hover {
  background: rgba(15, 23, 42, 0.3) !important;
}

.table-responsive::-webkit-scrollbar-corner {
  background: transparent !important;
}

/* 6. Unified Payno Action Buttons */
.btn-primary {
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%) !important;
  color: #ffffff !important;
  border: none !important;
  border-radius: 99px !important;
  font-family: var(--font-family) !important;
  font-size: 13.5px !important;
  font-weight: 600 !important;
  height: 42px !important;
  padding: 0 22px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  cursor: pointer !important;
  transition: background 0.3s ease, transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.3s ease !important;
  box-shadow: 0 4px 16px rgba(37, 99, 235, 0.28) !important;
  text-decoration: none !important;
}

.btn-primary:hover {
  background: linear-gradient(135deg, #1d4ed8 0%, #1e40af 100%) !important;
  transform: translateY(-2px) scale(1.02) !important;
  box-shadow: 0 8px 24px rgba(37, 99, 235, 0.38) !important;
}

.btn-secondary {
  background: #ffffff !important;
  border: 1px solid #cbd5e1 !important;
  color: #0f172a !important;
  border-radius: 99px !important;
  font-family: var(--font-family) !important;
  font-size: 13px !important;
  font-weight: 500 !important;
  height: 42px !important;
  padding: 0 20px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  cursor: pointer !important;
  transition: background 0.3s ease, border-color 0.3s ease, color 0.3s ease, transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
  text-decoration: none !important;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.03) !important;
}

.btn-secondary:hover {
  background: #f8fafc !important;
  border-color: #94a3b8 !important;
  color: #0f172a !important;
  transform: translateY(-1px) !important;
}

/* 7. Mobile Layout Refinements */
@media (max-width: 768px) {
  .stats-grid,
  .saas-overview-grid,
  .report-kpi-grid {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 10px !important;
    margin-bottom: 16px !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  .stat-card,
  .saas-card {
    min-width: 0 !important;
    max-width: 100% !important;
    width: 100% !important;
    padding: 14px 14px 12px 14px !important;
    min-height: 98px !important;
    border-radius: 20px !important;
    background: rgba(255, 255, 255, 0.97) !important;
    border: 1px solid #e2e8f0 !important;
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.04) !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

  .stat-header,
  .saas-card-header {
    display: flex !important;
    flex-direction: row !important;
    justify-content: space-between !important;
    align-items: center !important;
    margin-bottom: 4px !important;
    width: 100% !important;
    min-width: 0 !important;
  }

  .stat-title,
  .saas-card-title {
    font-size: 11.5px !important;
    font-weight: 500 !important;
    color: #64748b !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    flex: 1 !important;
    min-width: 0 !important;
  }

  .stat-icon,
  .saas-card-icon {
    width: 26px !important;
    height: 26px !important;
    min-width: 26px !important;
    min-height: 26px !important;
    border-radius: 8px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex-shrink: 0 !important;
  }

  .stat-icon svg,
  .saas-card-icon svg {
    width: 13px !important;
    height: 13px !important;
  }

  .stat-value,
  .stat-value.total,
  .saas-metric-value,
  #card1ThpValue,
  #card2PotonganValue {
    font-family: var(--font-family) !important;
    font-size: clamp(14px, 3.8vw, 18px) !important;
    font-weight: 700 !important;
    letter-spacing: -0.02em !important;
    margin: 4px 0 2px 0 !important;
    line-height: 1.15 !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    display: flex !important;
    align-items: baseline !important;
    justify-content: flex-start !important;
    gap: 3px !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    color: #0f172a !important;
  }

  .currency-symbol,
  .stat-value .currency-symbol,
  .saas-metric-value .currency-symbol,
  #card1ThpValue .currency-symbol,
  #card2PotonganValue .currency-symbol,
  .stat-value > span:first-child:not(:only-child) {
    font-family: var(--font-family) !important;
    font-size: 11.5px !important;
    line-height: 1 !important;
    font-weight: 500 !important;
    color: #64748b !important;
    flex-shrink: 0 !important;
    margin-right: 2px !important;
    vertical-align: baseline !important;
  }

  .currency-amount,
  .stat-value .currency-amount,
  .saas-metric-value .currency-amount,
  #card1ThpValue .currency-amount,
  #card2PotonganValue .currency-amount,
  .stat-value span:not(.currency-symbol),
  .saas-metric-value span:not(.currency-symbol) {
    font-family: var(--font-family) !important;
    font-size: clamp(14px, 3.8vw, 18px) !important;
    line-height: 1.15 !important;
    font-weight: 700 !important;
    letter-spacing: -0.02em !important;
    color: #0f172a !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    min-width: 0 !important;
    vertical-align: baseline !important;
  }

  .stat-subtext,
  .saas-card-subtext,
  #card1Subtitle,
  #card2Subtitle {
    font-size: 10.5px !important;
    color: #64748b !important;
    margin-top: 2px !important;
    display: block !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    width: 100% !important;
    min-width: 0 !important;
  }

  .filter-toolbar {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 10px !important;
    padding: 12px 14px !important;
    border-radius: 20px !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    margin-bottom: 16px !important;
  }

  .filter-toolbar .search-wrapper,
  .filter-toolbar .filter-group {
    width: 100% !important;
    height: 42px !important;
    min-height: 42px !important;
    box-sizing: border-box !important;
  }

  .filter-toolbar .filter-group {
    justify-content: space-between !important;
  }

  .filter-toolbar .filter-group .filter-select {
    flex: 1 !important;
    text-align: right !important;
  }

  .filter-toolbar .record-count {
    text-align: center !important;
    width: 100% !important;
    font-size: 11px !important;
    color: #64748b !important;
    margin-top: 4px !important;
  }
}

/* ==========================================================================
   Bento Light Modern Modal Styles for Salary Adjustment & Employee Profile
   ========================================================================== */

/* 1. Modal Containers & Glassmorphism */
.modal-box.salary-adjust-box,
.modal-box.employee-profile-box,
.modal-card.salary-adjust-box,
.modal-card.employee-profile-box {
  max-width: 780px !important;
  background: #ffffff !important;
  border-radius: 28px !important;
  border: 1px solid rgba(226, 232, 240, 0.9) !important;
  box-shadow: 0 24px 60px -12px rgba(15, 23, 42, 0.18) !important;
  overflow: hidden !important;
}

.salary-modal-body,
.employee-modal-body {
  padding: 20px 24px !important;
  max-height: calc(88vh - 130px) !important;
  overflow-y: auto !important;
  -webkit-overflow-scrolling: touch !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 16px !important;
  background: #f8fafc !important;
}

/* 2. Employee Profile Header Card inside Salary Modal */
.sal-employee-card {
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 20px !important;
  padding: 14px 18px !important;
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  gap: 14px !important;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.03) !important;
}

.sal-emp-info {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  min-width: 0 !important;
}

.sal-emp-avatar {
  width: 44px !important;
  height: 44px !important;
  border-radius: 50% !important;
  background: #eff6ff !important;
  border: 1.5px solid #bfdbfe !important;
  color: #2563eb !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 14px !important;
  font-weight: 800 !important;
  flex-shrink: 0 !important;
}

.sal-emp-details {
  min-width: 0 !important;
}

.sal-emp-name {
  font-size: 15px !important;
  font-weight: 700 !important;
  color: #0f172a !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  letter-spacing: -0.01em !important;
}

.sal-emp-meta {
  font-size: 12px !important;
  color: #64748b !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  margin-top: 2px !important;
}

.sal-period-selector {
  text-align: right !important;
  flex-shrink: 0 !important;
}

.sal-period-label {
  font-size: 10px !important;
  font-weight: 700 !important;
  color: #64748b !important;
  letter-spacing: 0.5px !important;
  display: block !important;
  margin-bottom: 4px !important;
}

.sal-period-select {
  background: #ffffff !important;
  border: 1px solid #cbd5e1 !important;
  border-radius: 99px !important;
  padding: 6px 14px !important;
  font-size: 12.5px !important;
  font-weight: 600 !important;
  color: #0f172a !important;
  outline: none !important;
  cursor: pointer !important;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04) !important;
}

/* 3. Section Cards inside Salary Modal */
.sal-section-card {
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 20px !important;
  padding: 16px 18px !important;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.03) !important;
}

.sal-section-header {
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  margin-bottom: 14px !important;
  gap: 10px !important;
  flex-wrap: wrap !important;
}

.sal-section-title-wrap {
  min-width: 0 !important;
}

.sal-section-title {
  font-size: 13px !important;
  font-weight: 700 !important;
  color: #0f172a !important;
  display: flex !important;
  align-items: center !important;
  gap: 6px !important;
  margin: 0 !important;
}

.sal-section-title.text-income {
  color: #059669 !important;
}

.sal-section-title.text-deduction {
  color: #dc2626 !important;
}

.sal-section-sub {
  font-size: 11.5px !important;
  color: #64748b !important;
  display: block !important;
  margin-top: 2px !important;
}

.sal-sync-badge {
  font-size: 10.5px !important;
  font-weight: 600 !important;
  background: #eff6ff !important;
  color: #2563eb !important;
  border: 1px solid #bfdbfe !important;
  border-radius: 99px !important;
  padding: 3px 10px !important;
  white-space: nowrap !important;
  flex-shrink: 0 !important;
}

/* 4. Attendance Pill Grid */
.sal-attendance-grid {
  display: grid !important;
  grid-template-columns: repeat(6, 1fr) !important;
  gap: 8px !important;
  background: #f8fafc !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 16px !important;
  padding: 10px !important;
  margin-bottom: 14px !important;
}

.sal-att-pill {
  text-align: center !important;
  padding: 8px 4px !important;
  border-radius: 12px !important;
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.02) !important;
}

.sal-att-label {
  display: block !important;
  font-size: 10px !important;
  font-weight: 600 !important;
  color: #64748b !important;
  text-transform: uppercase !important;
  letter-spacing: 0.3px !important;
}

.sal-att-val {
  display: block !important;
  font-size: 16px !important;
  font-weight: 800 !important;
  margin-top: 2px !important;
  letter-spacing: -0.01em !important;
}

.att-hadir .sal-att-val { color: #059669 !important; }
.att-sakit .sal-att-val { color: #2563eb !important; }
.att-izin .sal-att-val { color: #d97706 !important; }
.att-cuti .sal-att-val { color: #7c3aed !important; }
.att-alpa .sal-att-val { color: #dc2626 !important; }
.att-late .sal-att-val { color: #e11d48 !important; }

.sal-two-col-grid {
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  gap: 12px !important;
}

/* 5. Income & Deduction Grid */
.salary-income-grid {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr) !important;
  gap: 12px 14px !important;
}

.salary-deduction-grid {
  display: grid !important;
  grid-template-columns: repeat(4, 1fr) !important;
  gap: 12px 14px !important;
}

/* 6. Bonus Terpisah Card */
.bonus-terpisah-card {
  margin-top: 14px !important;
  background: #f8fafc !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 14px !important;
  padding: 12px 14px !important;
  transition: background-color 0.2s ease, border-color 0.2s ease !important;
}

.bonus-terpisah-card:hover {
  background: #f1f5f9 !important;
  border-color: #cbd5e1 !important;
}

.bonus-terpisah-label {
  display: flex !important;
  align-items: flex-start !important;
  gap: 12px !important;
  cursor: pointer !important;
  margin: 0 !important;
  user-select: none !important;
}

.bonus-terpisah-info {
  flex: 1 !important;
  min-width: 0 !important;
}

.bonus-terpisah-title {
  font-size: 13px !important;
  font-weight: 600 !important;
  color: #0f172a !important;
  display: flex !important;
  align-items: center !important;
  gap: 6px !important;
  flex-wrap: wrap !important;
}

.bonus-terpisah-badge {
  font-size: 10px !important;
  font-weight: 600 !important;
  background: #eff6ff !important;
  color: #2563eb !important;
  border: 1px solid #bfdbfe !important;
  border-radius: 99px !important;
  padding: 1px 7px !important;
}

.bonus-terpisah-hint {
  font-size: 11.5px !important;
  color: #64748b !important;
  margin-top: 2px !important;
  line-height: 1.4 !important;
}

/* 7. Summary Card */
.sal-summary-card {
  background: #ffffff !important;
  border: 1px solid #cbd5e1 !important;
  border-radius: 20px !important;
  padding: 16px 20px !important;
  display: grid !important;
  grid-template-columns: repeat(3, 1fr) 1.3fr !important;
  gap: 14px !important;
  align-items: center !important;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.05) !important;
}

.modal-footer .btn-primary,
.modal-footer .btn-secondary {
  min-height: 42px !important;
  height: auto !important;
  padding: 9px 18px !important;
  white-space: nowrap !important;
}

.prorate-inputs-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

@media (max-width: 640px) {
  .prorate-inputs-grid {
    grid-template-columns: 1fr;
  }
  .modal-footer .btn-primary,
  .modal-footer .btn-secondary {
    white-space: normal !important;
    text-align: center !important;
    line-height: 1.3 !important;
  }
}

.sal-sum-stat {
  display: flex !important;
  flex-direction: column !important;
  gap: 2px !important;
}

.sal-sum-label {
  font-size: 10.5px !important;
  font-weight: 700 !important;
  color: #64748b !important;
  letter-spacing: 0.4px !important;
  text-transform: uppercase !important;
}

.sal-sum-val {
  font-size: 17px !important;
  font-weight: 800 !important;
  letter-spacing: -0.01em !important;
}

.sum-pendapatan .sal-sum-val { color: #059669 !important; }
.sum-potongan .sal-sum-val { color: #dc2626 !important; }

.sal-sum-highlight {
  background: #eff6ff !important;
  border: 1.5px solid #bfdbfe !important;
  border-radius: 14px !important;
  padding: 12px 16px !important;
  text-align: right !important;
}

.sal-sum-highlight .sal-sum-label {
  color: #1e40af !important;
}

.sal-sum-val-main {
  font-size: 21px !important;
  font-weight: 800 !important;
  color: #2563eb !important;
  letter-spacing: -0.02em !important;
  margin-top: 2px !important;
}

/* 8. Employee Profile Form Grid */
.emp-form-section {
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 20px !important;
  padding: 18px 20px !important;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.03) !important;
}

.emp-section-divider {
  padding-bottom: 12px !important;
  margin-bottom: 16px !important;
  border-bottom: 1px solid #f1f5f9 !important;
}

.emp-section-title {
  font-size: 13.5px !important;
  font-weight: 700 !important;
  color: #0f172a !important;
  display: flex !important;
  align-items: center !important;
  gap: 6px !important;
}

.emp-section-subtitle {
  font-size: 11.5px !important;
  color: #64748b !important;
  display: block !important;
  margin-top: 2px !important;
}

.emp-form-grid {
  display: grid !important;
  grid-template-columns: repeat(2, 1fr) !important;
  gap: 14px 16px !important;
}

.emp-form-grid .grid-full {
  grid-column: span 2 !important;
}

.pin-credential-card {
  background: #f8fafc !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 16px !important;
  padding: 14px 16px !important;
}

.pin-card-header {
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  margin-bottom: 10px !important;
  gap: 8px !important;
  flex-wrap: wrap !important;
}

.pin-card-title {
  font-size: 12.5px !important;
  font-weight: 600 !important;
  color: #0f172a !important;
  display: flex !important;
  align-items: center !important;
  gap: 6px !important;
}

.pin-card-badge {
  font-size: 11px !important;
  font-weight: 600 !important;
  color: #2563eb !important;
}

.pin-input-row {
  display: flex !important;
  gap: 10px !important;
  align-items: center !important;
}

.pin-input {
  font-weight: 700 !important;
  letter-spacing: 1px !important;
  color: #0f172a !important;
}

.pin-reset-btn {
  white-space: nowrap !important;
  height: 42px !important;
  padding: 0 16px !important;
  font-size: 12px !important;
  font-weight: 600 !important;
  border-radius: 99px !important;
  flex-shrink: 0 !important;
}

/* ==========================================================================
   MOBILE RESPONSIVE OVERRIDES (< 768px)
   ========================================================================== */
@media (max-width: 768px) {
  .modal-box.salary-adjust-box,
  .modal-box.employee-profile-box,
  .modal-card.salary-adjust-box,
  .modal-card.employee-profile-box {
    max-height: 92vh !important;
    border-radius: 28px 28px 20px 20px !important;
  }

  .salary-modal-body,
  .employee-modal-body {
    padding: 16px 14px !important;
    gap: 12px !important;
  }

  .sal-employee-card {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 10px !important;
  }

  .sal-period-selector {
    width: 100% !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    padding-top: 10px !important;
    border-top: 1px solid #e2e8f0 !important;
  }

  .sal-period-label {
    margin-bottom: 0 !important;
  }

  .sal-attendance-grid {
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 6px !important;
  }

  .sal-two-col-grid {
    grid-template-columns: 1fr !important;
    gap: 10px !important;
  }

  .salary-income-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 10px !important;
  }

  .salary-deduction-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 10px !important;
  }

  .sal-summary-card {
    grid-template-columns: 1fr 1fr !important;
    gap: 10px !important;
  }

  .sal-sum-highlight {
    grid-column: span 2 !important;
    text-align: left !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: baseline !important;
  }

  .sal-sum-val-main {
    font-size: 18px !important;
    margin-top: 0 !important;
  }

  /* Employee Profile on Mobile: Clean Single-Column for Full Visibility */
  .emp-form-grid {
    grid-template-columns: 1fr !important;
    gap: 12px !important;
  }

  .emp-form-grid .grid-full {
    grid-column: span 1 !important;
  }

  .pin-card-header {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 4px !important;
  }

  .slip-fab-btn {
    bottom: calc(90px + max(18px, env(safe-area-inset-bottom, 18px))) !important;
    right: 16px !important;
    height: 44px !important;
    padding: 0 16px !important;
    font-size: 12.5px !important;
  }
}

