/* ==========================================================================
   PT. New Ratu Group - Sistem Slip Gaji
   SaaS Modern Premium Dark Mode Design System (Inter Typography & Refined Palette)
   ========================================================================== */

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

:root {
  --font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  /* SaaS Dark Theme Palette (Sesuai Referensi Modern UI/UX) */
  --bg-app: #0e1217;
  /* Background Utama: Abu-abu sangat gelap / nyaris hitam */
  --bg-sidebar: #13171e;
  /* Background Sidebar: Berkontras halus */
  --bg-card: #161b22;
  /* Background Card: Sedikit lebih terang memberi efek depth */
  --bg-card-subtle: #1c2128;
  /* Background elemen input, pill, dan sub-card */
  --bg-hover: #1f252e;
  /* Hover state halus */
  --bg-active: #21262d;
  /* Active tab / pill background */

  --border-subtle: #21262d;
  /* Border tipis pemisah baris tabel & divider */
  --border-card: #262c36;
  /* Border card & sidebar sangat halus */
  --border-highlight: #30363d;
  /* Border input, select, & focus state */

  --text-main: #f0f6fc;
  /* Judul / angka utama: Putih tegas */
  --text-secondary: #9ca3af;
  /* Sub-judul, label, teks sekunder: Abu-abu terang */
  --text-muted: #6e7681;
  /* Header tabel & teks muted */

  --primary: #3b82f6;
  /* Aksen Biru Cerah SaaS */
  --primary-hover: #2563eb;
  --primary-light: rgba(59, 130, 246, 0.12);
  --primary-border: rgba(59, 130, 246, 0.35);

  --success: #22c55e;
  --success-text: #4ade80;
  --success-bg: rgba(34, 197, 94, 0.12);
  --success-border: rgba(34, 197, 94, 0.25);

  --warning: #f59e0b;
  --warning-text: #fbbf24;
  --warning-bg: rgba(245, 158, 11, 0.12);
  --warning-border: rgba(245, 158, 11, 0.25);

  --danger: #ef4444;
  --danger-text: #f87171;
  --danger-bg: rgba(239, 68, 68, 0.12);
  --danger-border: rgba(239, 68, 68, 0.25);

  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 14px;
  --radius-full: 9999px;

  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.35);
  --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.5);
}

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

body {
  font-family: var(--font-family);
  background-color: var(--bg-app);
  color: var(--text-main);
  min-height: 100vh;
  display: flex;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ==========================================================================
   Layout: Sidebar + Main Content
   ========================================================================== */

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

.sidebar {
  width: 260px;
  min-width: 260px;
  max-width: 260px;
  background-color: var(--bg-sidebar);
  border-right: 1px solid var(--border-subtle);
  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);
}

.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.1);
  border-radius: 4px;
}

.main-content {
  flex: 1;
  min-width: 0;
  padding: 32px 40px;
  max-width: 1400px;
}

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

/* Legacy Brand Header Compatibility */
.brand-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  background-color: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  margin-bottom: 16px;
  overflow: hidden;
}

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

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

.brand-text h1 {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-main);
  margin: 0;
  line-height: 1.2;
}

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

/* ==========================================================================
   Sidebar Elements
   ========================================================================== */

.brand-switcher {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 8px 10px;
  background-color: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  margin-bottom: 16px;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
}

.brand-switcher:hover {
  background-color: var(--bg-hover);
  border-color: var(--border-highlight);
}

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

.brand-switcher-logo {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ec4899, #8b5cf6, #3b82f6);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-weight: 700;
  font-size: 11px;
  flex-shrink: 0;
  overflow: hidden;
}

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

.brand-switcher-text {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-main);
  letter-spacing: -0.2px;
}

.brand-switcher-icon {
  color: var(--text-muted);
  font-size: 12px;
  display: flex;
}

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

.sidebar-search-box input {
  width: 100%;
  background-color: #10141b;
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  padding: 8px 36px 8px 32px;
  color: var(--text-main);
  font-size: 12px;
  font-family: inherit;
  outline: none;
  transition: all 0.2s ease;
}

.sidebar-search-box input:focus {
  border-color: #3b82f6;
  background-color: #141922;
}

.sidebar-search-box input::placeholder {
  color: #4b5563;
}

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

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

.nav-section-title {
  font-size: 11px;
  font-weight: 700;
  color: #64748b;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  margin: 18px 0 10px 4px;
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-family);
}

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

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

.nav-link:hover {
  background-color: var(--bg-hover);
  color: #ffffff;
}

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

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

.nav-link.active {
  background-color: rgba(37, 99, 235, 0.16);
  color: #ffffff;
  font-weight: 600;
  border: 1px solid rgba(59, 130, 246, 0.45);
  box-shadow: 0 0 14px rgba(59, 130, 246, 0.15);
}

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

.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 (Reference style: "5 Days left!") */
.sidebar-promo-card {
  background: linear-gradient(145deg, #161b24, #12151c);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  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: var(--text-muted);
  cursor: pointer;
  padding: 2px;
  font-size: 12px;
  line-height: 1;
}

.promo-desc {
  font-size: 11px;
  color: var(--text-secondary);
  line-height: 1.4;
  margin-bottom: 10px;
}

.promo-progress-bar {
  width: 100%;
  height: 4px;
  background-color: #21262d;
  border-radius: 2px;
  overflow: hidden;
  margin-bottom: 10px;
}

.promo-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #3b82f6, #ec4899);
  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: #60a5fa;
}

/* Sidebar Profile & Logout Footer (Modern Flexbox Bottom Bar) */
.sidebar-profile-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px;
  border-top: 1px solid #2d333b;
  background-color: var(--bg-sidebar);
  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, #1d4ed8);
  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.3);
}

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

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

.sidebar-profile-role {
  font-size: 11px;
  font-weight: 500;
  color: #9ca3af;
  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: var(--radius-md);
  color: #9ca3af;
  background: transparent;
  border: 1px solid transparent;
  text-decoration: none;
  cursor: pointer;
  flex-shrink: 0;
  transition: all 0.2s ease;
  margin-left: 8px;
}

.sidebar-logout-icon-btn:hover {
  color: #ef4444;
  background-color: rgba(239, 68, 68, 0.12);
  border-color: rgba(239, 68, 68, 0.25);
  box-shadow: 0 0 10px rgba(239, 68, 68, 0.2);
}

.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: 16px;
  border-top: 1px solid #2d333b;
  background-color: var(--bg-sidebar);
  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, #2563eb, #1d4ed8);
  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: #9ca3af;
  margin-top: 2px;
}

.profile-logout-icon-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  min-width: 34px;
  border-radius: var(--radius-md);
  color: #9ca3af;
  background: transparent;
  text-decoration: none;
  cursor: pointer;
  flex-shrink: 0;
  transition: all 0.2s ease;
}

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

.profile-more-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
}

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

.profile-dropdown-menu {
  position: absolute;
  bottom: 60px;
  left: 16px;
  width: 220px;
  background-color: #141a27;
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
  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: all 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)
   ========================================================================== */

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

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

.period-indicator {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-secondary);
}

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

.page-title {
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.5px;
  color: var(--text-main);
}

.page-subtitle {
  font-size: 13px;
  color: var(--text-muted);
}

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

.icon-btn {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-full);
  background-color: #141a27;
  border: 1px solid var(--border-card);
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  position: relative;
  transition: all 0.2s ease;
}

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

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

.period-select-pill {
  display: flex;
  align-items: center;
  gap: 6px;
  background-color: #141a27;
  border: 1px solid var(--border-card);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 500;
  transition: all 0.2s ease;
}

.period-select-pill:hover,
.period-select-pill:focus-within {
  border-color: #3b82f6;
  background-color: #182236;
}

.header-period-select {
  background: transparent;
  border: none;
  color: #f8fafc;
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  outline: none;
  cursor: pointer;
  padding: 2px 4px;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
}

.header-period-select option {
  background-color: #111622;
  color: #f8fafc;
  padding: 8px 12px;
}

.btn-primary {
  display: flex;
  align-items: center;
  gap: 8px;
  background-color: var(--primary);
  color: #ffffff;
  border: none;
  padding: 9px 20px;
  border-radius: var(--radius-full);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 2px 10px rgba(37, 99, 235, 0.35);
}

.btn-primary:hover {
  background-color: var(--primary-hover);
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.5);
  transform: translateY(-1px);
}

.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;
}

/* SaaS Header Filter Tabs (30 Days, 3 Months, 1 years) */
.header-filter-tabs {
  display: inline-flex;
  align-items: center;
  background-color: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  padding: 3px;
  gap: 2px;
}

.header-filter-tab {
  background: transparent;
  border: none;
  outline: none;
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 500;
  padding: 5px 14px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 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 {
  outline: none;
}

.header-filter-tab:hover {
  color: var(--text-main);
  background-color: var(--bg-hover);
}

.header-filter-tab.active {
  background-color: #21262d;
  color: #ffffff;
  font-weight: 600;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
}

/* 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-muted);
  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: #cbd5e1;
  background-color: rgba(255, 255, 255, 0.04);
  padding: 3px 8px;
  border-radius: 4px;
  border: 1px solid var(--border-subtle);
  display: inline-block;
  white-space: nowrap;
  letter-spacing: 0.3px;
}

/* Sidebar Scrollbar */
.sidebar {
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.1) 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: rgba(37, 99, 235, 0.08);
  border: 1px solid rgba(37, 99, 235, 0.22);
  border-radius: var(--radius-lg);
  padding: 14px 18px;
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
}

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

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

.info-banner-text strong {
  color: #ffffff;
  font-weight: 600;
}

/* ==========================================================================
   Modern SaaS Overview Cards (Matching Reference Layout)
   ========================================================================== */

.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;
  }
}

.saas-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  padding: 24px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 190px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.saas-card:hover {
  border-color: var(--border-highlight);
  box-shadow: 0 6px 22px rgba(0, 0, 0, 0.35);
}

.saas-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}

.saas-card-title-group {
  display: flex;
  align-items: center;
  gap: 8px;
}

.saas-card-icon {
  width: 22px;
  height: 22px;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
}

.saas-card-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-main);
  letter-spacing: -0.2px;
}

.saas-card-legend {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 11px;
  color: var(--text-secondary);
}

.saas-legend-item {
  display: flex;
  align-items: center;
  gap: 5px;
}

.saas-legend-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
}

.saas-card-body {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 20px;
}

.saas-metric-col {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 170px;
}

.saas-metric-value {
  font-size: 30px;
  font-weight: 700;
  color: #ffffff;
  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: 600;
  padding: 3px 8px;
  border-radius: var(--radius-full);
  width: fit-content;
  letter-spacing: 0.1px;
}

.saas-trend-badge.up {
  background: rgba(34, 197, 94, 0.12);
  color: #4ade80;
  border: 1px solid rgba(34, 197, 94, 0.25);
}

.saas-trend-badge.down {
  background: rgba(239, 68, 68, 0.12);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.25);
}

.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: 500;
}

/* Metric Stats Cards Grid (Fallback / Multi-card) */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 24px;
}

.stat-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  padding: 20px 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  position: relative;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.stat-card:hover {
  border-color: var(--border-highlight);
}

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

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

.stat-icon {
  color: var(--text-muted);
}

.stat-value {
  font-size: 32px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.8px;
  color: var(--text-main);
}

.stat-value.total {
  color: var(--text-main);
}

.stat-value.sent {
  color: var(--success-text);
}

.stat-value.pending {
  color: var(--warning-text);
}

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

/* ==========================================================================
   Filter & Search Toolbar
   ========================================================================== */

.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: #121824;
  border: 1px solid var(--border-card);
  border-radius: var(--radius-full);
  padding: 9px 16px 9px 40px;
  color: var(--text-main);
  font-size: 13px;
  font-family: inherit;
  outline: none;
  transition: all 0.2s ease;
}

.search-input:focus {
  border-color: #3b82f6;
  background-color: #161e2e;
}

.search-input::placeholder {
  color: #475569;
}

.filter-group {
  display: flex;
  align-items: center;
  background-color: #121824;
  border: 1px solid var(--border-card);
  border-radius: var(--radius-full);
  padding: 4px 14px;
  gap: 8px;
}

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

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

.filter-select option {
  background-color: #121824;
  color: var(--text-main);
}

.btn-reset-filter {
  display: flex;
  align-items: center;
  gap: 6px;
  background-color: #121824;
  border: 1px solid var(--border-card);
  color: var(--text-secondary);
  border-radius: var(--radius-full);
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

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

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

/* ==========================================================================
   Selection Control Header
   ========================================================================== */

.selection-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  padding: 0 4px;
  font-size: 12px;
  color: var(--text-secondary);
}

.custom-checkbox {
  width: 16px;
  height: 16px;
  border-radius: 4px;
  border: 1px solid var(--border-highlight);
  background-color: #131926;
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  position: relative;
  display: inline-block;
  transition: all 0.15s ease;
}

.custom-checkbox:checked {
  background-color: #2563eb;
  border-color: #2563eb;
}

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

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

.selected-count-badge.has-selected {
  color: #60a5fa;
  font-weight: 600;
}

/* ==========================================================================
   Table Container & Table Styles
   ========================================================================== */

.table-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.table-title-header {
  padding: 16px 24px;
  text-align: center;
  font-size: 13px;
  font-weight: 600;
  color: #cbd5e1;
  border-bottom: 1px solid var(--border-subtle);
  background-color: rgba(255, 255, 255, 0.015);
}

/* ==========================================================================
   Table Responsive & Viewport Scroll Wrapper
   ========================================================================== */

.table-responsive {
  width: 100%;
  max-height: calc(100vh - 250px);
  min-height: 400px;
  overflow: auto;
  position: relative;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: rgba(96, 165, 250, 0.45) rgba(15, 20, 32, 0.85);
}

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

.table-responsive::-webkit-scrollbar-track {
  background: rgba(15, 20, 32, 0.85);
}

.table-responsive::-webkit-scrollbar-thumb {
  background: rgba(96, 165, 250, 0.4);
  border-radius: 4px;
}

.table-responsive::-webkit-scrollbar-thumb:hover {
  background: rgba(96, 165, 250, 0.8);
}

.table-responsive::-webkit-scrollbar-corner {
  background: rgba(15, 20, 32, 0.95);
}

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

.data-table th {
  padding: 12px 14px;
  font-size: 11px;
  font-weight: 600;
  color: #8b949e;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-bottom: 1px solid var(--border-subtle);
  background-color: #13171e;
  white-space: nowrap;
}

/* Sticky Header on data-table when inside .table-responsive */
.table-responsive thead th {
  position: sticky;
  top: 0;
  z-index: 5;
  background-color: #13171e;
  box-shadow: 0 1px 0 var(--border-subtle);
}

.data-table td {
  padding: 12px 14px;
  font-size: 13px;
  border-bottom: 1px solid var(--border-subtle);
  vertical-align: middle;
  transition: background-color 0.15s ease;
}

.data-table tbody tr:hover td {
  background-color: #1a2028;
}

.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 var(--border-subtle);
  background-color: #13171e;
  font-size: 12px;
  color: var(--text-muted);
}

.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: 6px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s ease;
}

.pagination-btn:hover {
  background-color: var(--bg-hover);
  color: var(--text-main);
  border-color: var(--border-subtle);
}

.pagination-btn.active {
  background-color: var(--bg-active);
  color: #ffffff;
  border-color: var(--border-highlight);
  font-weight: 600;
}

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

.emp-avatar {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-full);
  background: #3b82f6;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: -0.5px;
  flex-shrink: 0;
}

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

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

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

/* Department Column */
.dept-cell {
  color: #cbd5e1;
  font-weight: 500;
}

/* Salary Column */
.salary-cell {
  font-weight: 700;
  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: 600;
  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(34, 197, 94, 0.12);
  color: #4ade80;
  border: 1px solid rgba(34, 197, 94, 0.28);
}

.status-pill.sent::before {
  background-color: #22c55e;
  box-shadow: 0 0 6px rgba(34, 197, 94, 0.6);
}

.status-pill.pending {
  background-color: rgba(245, 158, 11, 0.12);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.28);
}

.status-pill.pending::before {
  background-color: #f59e0b;
  box-shadow: 0 0 6px rgba(245, 158, 11, 0.6);
}

.status-pill.processed {
  background-color: rgba(59, 130, 246, 0.12);
  color: #60a5fa;
  border: 1px solid rgba(59, 130, 246, 0.28);
}

.status-pill.processed::before {
  background-color: #3b82f6;
  box-shadow: 0 0 6px rgba(59, 130, 246, 0.6);
}

.status-pill.failed {
  background-color: rgba(239, 68, 68, 0.12);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.28);
}

.status-pill.failed::before {
  background-color: #ef4444;
  box-shadow: 0 0 6px rgba(239, 68, 68, 0.6);
}

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

.bank-bca {
  background: rgba(59, 130, 246, 0.12);
  color: #60a5fa;
  border: 1px solid rgba(59, 130, 246, 0.25);
}

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

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

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

/* Action Buttons */
.btn-action-edit,
.btn-action-preview,
.btn-action-delete {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 10px;
  border-radius: var(--radius-md);
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s ease;
  border: 1px solid transparent;
}

.btn-action-edit {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--border-card);
  color: var(--text-secondary);
}

.btn-action-edit:hover {
  background: var(--bg-hover);
  color: var(--text-main);
  border-color: var(--border-highlight);
}

.btn-action-preview {
  background: rgba(59, 130, 246, 0.12);
  border-color: rgba(59, 130, 246, 0.25);
  color: #60a5fa;
}

.btn-action-preview:hover {
  background: var(--primary);
  color: #ffffff;
}

.btn-action-delete {
  background: rgba(239, 68, 68, 0.08);
  border-color: rgba(239, 68, 68, 0.2);
  color: #f87171;
}

.btn-action-delete:hover {
  background: #dc2626;
  color: #ffffff;
}

/* ==========================================================================
   Modal Dialogs (Pratinjau & Batch Send)
   ========================================================================== */

.modal-backdrop {
  position: fixed;
  inset: 0;
  background-color: rgba(4, 7, 13, 0.75);
  backdrop-filter: blur(4px);
  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: #111622;
  border: 1px solid var(--border-card);
  border-radius: var(--radius-xl);
  width: 100%;
  max-width: 680px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
  animation: slideUp 0.25s ease;
}

.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;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #0f1420;
}

.modal-header h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 8px;
}

.modal-close-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 4px;
  border-radius: 4px;
  display: flex;
}

.modal-close-btn:hover {
  color: #ffffff;
}

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

.modal-footer {
  padding: 16px 24px;
  border-top: 1px solid var(--border-subtle);
  background-color: #0f1420;
  display: flex;
  justify-content: flex-end;
  gap: 12px;
}

/* 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-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 {
  background-color: #161e2e;
  border: 1px solid var(--border-card);
  color: #cbd5e1;
  padding: 8px 18px;
  border-radius: var(--radius-full);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-secondary:hover {
  background-color: var(--bg-hover);
  color: #ffffff;
}

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

.progress-bar-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #2563eb, #38bdf8);
  transition: width 0.3s ease;
}

.progress-logs {
  background-color: #0b0f17;
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  padding: 12px;
  height: 140px;
  overflow-y: auto;
  font-family: monospace;
  font-size: 11px;
  color: #94a3b8;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

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

.log-entry.success {
  color: #34d399;
}

/* ==========================================================================
   Toast Notification System
   ========================================================================== */

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

.toast {
  background-color: #141b29;
  border: 1px solid var(--border-highlight);
  color: var(--text-main);
  padding: 14px 18px;
  border-radius: var(--radius-md);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  min-width: 300px;
  animation: slideInRight 0.25s ease;
}

.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: 10px;
  background: #1e293b;
  border: 1px solid #334155;
  border-radius: 10px;
  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: #94a3b8;
  font-size: 13px;
  font-weight: 700;
  padding: 8px 16px;
  border-radius: 7px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.2s ease;
}

.btn-company-modal-tab:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.05);
}

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

.btn-company-modal-tab.gallardo-active.active {
  background: #e11d48;
  box-shadow: 0 2px 8px rgba(225, 29, 72, 0.4);
}

.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;
}

/* ==========================================================================
   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: all 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;
}

.btn-action-edit {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background-color: #161e2e;
  border: 1px solid var(--border-card);
  color: #94a3b8;
  padding: 6px 12px;
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  margin-right: 6px;
}

.btn-action-edit:hover {
  background-color: #1f2a3f;
  color: #60a5fa;
  border-color: #3b82f6;
}

.btn-action-delete {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background-color: rgba(239, 68, 68, 0.08);
  border: 1px solid rgba(239, 68, 68, 0.22);
  color: #f87171;
  padding: 6px 12px;
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  margin-left: 6px;
}

.btn-action-delete:hover {
  background-color: rgba(239, 68, 68, 0.22);
  color: #fca5a5;
  border-color: #ef4444;
  transform: translateY(-1px);
}

/* ==========================================================================
   Modal Form Tambah / Edit Karyawan & Gaji
   ========================================================================== */
.modal-box.form-modal-box {
  max-width: 860px;
}

.form-section-card {
  background-color: #0d121c;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 18px 20px;
  margin-bottom: 20px;
}

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

.form-section-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.form-section-header h4 {
  font-size: 14px;
  font-weight: 700;
  color: #f1f5f9;
}

.form-section-header span {
  font-size: 11px;
  color: var(--text-muted);
}

.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;
}

.form-label {
  font-size: 12px;
  font-weight: 600;
  color: #cbd5e1;
}

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

.form-input,
.form-select {
  background-color: #141b29;
  border: 1px solid #243048;
  border-radius: var(--radius-md);
  color: #f8fafc;
  font-family: inherit;
  font-size: 13px;
  padding: 8px 12px;
  outline: none;
  transition: all 0.2s ease;
  width: 100%;
}

.form-input:focus,
.form-select:focus {
  border-color: #3b82f6;
  background-color: #172133;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}

.input-with-prefix {
  position: relative;
  display: flex;
  align-items: center;
}

.input-prefix {
  position: absolute;
  left: 10px;
  font-size: 12px;
  font-weight: 600;
  color: #64748b;
  pointer-events: none;
}

.input-with-prefix .form-input {
  padding-left: 36px;
}

.form-hint {
  font-size: 11px;
  color: var(--text-muted);
}

/* Live Salary Summary inside Modal */
.salary-live-summary {
  background: linear-gradient(135deg, #131b2e 0%, #0f172a 100%);
  border: 1px solid #1e3a8a;
  border-radius: var(--radius-lg);
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 20px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

.summary-col {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.summary-col .lbl {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #94a3b8;
  font-weight: 600;
}

.summary-col .val {
  font-size: 15px;
  font-weight: 700;
  color: #f8fafc;
}

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

.summary-col.netto .lbl {
  color: #60a5fa;
}

.summary-col.netto .val {
  font-size: 20px;
  font-weight: 800;
  color: #38bdf8;
  letter-spacing: -0.5px;
}

/* ==========================================================================
   Login Page Styling
   ========================================================================== */
.login-body {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--bg-app);
  background-image:
    radial-gradient(circle at 50% 15%, rgba(37, 99, 235, 0.18) 0%, transparent 55%),
    radial-gradient(circle at 85% 85%, rgba(16, 185, 129, 0.08) 0%, transparent 50%),
    radial-gradient(circle at 15% 85%, rgba(139, 92, 246, 0.08) 0%, transparent 50%);
  padding: 24px 16px;
  position: relative;
  overflow-x: hidden;
}

.login-body::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(59, 130, 246, 0.5), transparent);
}

.login-wrapper {
  width: 100%;
  max-width: 440px;
  margin: 0 auto;
  position: relative;
  z-index: 10;
  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 {
  background: rgba(17, 22, 34, 0.88);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 22px;
  padding: 36px 32px;
  box-shadow: 0 24px 48px -12px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(255, 255, 255, 0.05);
}

.login-brand-header {
  text-align: center;
  margin-bottom: 28px;
}

.login-logo-img {
  width: 68px;
  height: 68px;
  object-fit: contain;
  margin-bottom: 12px;
  filter: drop-shadow(0 4px 14px rgba(37, 99, 235, 0.45));
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.login-logo-img:hover {
  transform: scale(1.08);
}

.login-emblem {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  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(37, 99, 235, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.login-brand-title {
  font-size: 20px;
  font-weight: 700;
  color: #f8fafc;
  letter-spacing: -0.3px;
  margin-bottom: 4px;
}

.login-brand-subtitle {
  font-size: 13px;
  color: var(--text-secondary);
  font-weight: 400;
}

.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: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #fca5a5;
}

.login-alert.success {
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: #6ee7b7;
}

@keyframes loginShake {

  0%,
  100% {
    transform: translateX(0);
  }

  20%,
  60% {
    transform: translateX(-4px);
  }

  40%,
  80% {
    transform: translateX(4px);
  }
}

.login-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.login-input-icon {
  position: absolute;
  left: 14px;
  color: #64748b;
  pointer-events: none;
  display: flex;
  align-items: center;
}

.login-input {
  width: 100%;
  background-color: #0b0f17;
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  padding: 11px 42px 11px 40px;
  color: #f8fafc;
  font-size: 13.5px;
  font-family: inherit;
  transition: all 0.2s ease;
  outline: none;
}

.login-input:focus {
  border-color: #3b82f6;
  background-color: #0f1422;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}

.login-toggle-pwd {
  position: absolute;
  right: 12px;
  background: none;
  border: none;
  color: #64748b;
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
  transition: color 0.2s;
}

.login-toggle-pwd:hover {
  color: #94a3b8;
}

.login-btn-submit {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  color: #ffffff;
  border: none;
  padding: 12px 20px;
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.4);
  margin-top: 24px;
}

.login-btn-submit:hover {
  background: linear-gradient(135deg, #1d4ed8, #1e40af);
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(37, 99, 235, 0.5);
}

.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: rgba(30, 41, 59, 0.4);
  border: 1px dashed rgba(59, 130, 246, 0.35);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  font-size: 12px;
  color: #cbd5e1;
}

.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: #60a5fa;
  font-size: 12px;
}

.demo-cred-btn {
  background: rgba(37, 99, 235, 0.15);
  border: 1px solid rgba(59, 130, 246, 0.3);
  color: #93c5fd;
  font-size: 11px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all 0.2s ease;
}

.demo-cred-btn:hover {
  background: rgba(37, 99, 235, 0.3);
  color: #fff;
  border-color: #3b82f6;
}

.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: #0b0f17;
  padding: 2px 6px;
  border-radius: 4px;
  color: #38bdf8;
  font-family: monospace;
  font-size: 11.5px;
}

.login-footer-text {
  text-align: center;
  font-size: 12px;
  color: #64748b;
  margin-top: 24px;
}

/* =========================================
   Bonus Terpisah Checkbox — Edit Gaji Modal
   ========================================= */
.bonus-terpisah-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 6px;
  padding: 6px 10px;
  background: rgba(245, 158, 11, 0.08);
  border: 1px solid rgba(245, 158, 11, 0.25);
  border-radius: 6px;
  cursor: pointer;
  width: 100%;
  box-sizing: border-box;
  transition: all 0.2s ease;
  user-select: none;
}

.bonus-terpisah-label:hover {
  background: rgba(245, 158, 11, 0.14);
  border-color: rgba(245, 158, 11, 0.45);
}

.bonus-terpisah-label:has(input:checked) {
  background: rgba(245, 158, 11, 0.16);
  border-color: rgba(245, 158, 11, 0.6);
  box-shadow: 0 0 8px rgba(245, 158, 11, 0.12);
}

.bonus-terpisah-label input[type="checkbox"] {
  accent-color: #f59e0b;
  width: 15px;
  height: 15px;
  flex-shrink: 0;
  cursor: pointer;
}

.bonus-terpisah-text {
  font-size: 12px;
  font-weight: 600;
  color: #fbbf24;
  line-height: 1.3;
}

.bonus-terpisah-hint {
  font-size: 11px;
  font-weight: 400;
  color: rgba(251, 191, 36, 0.75);
  margin-left: 2px;
}

/* =========================================
   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;
  }
}