/* =========================
   1. ROOT & RESET
   ========================= */

:root {
  --emp-primary: #1d4ed8;
  --emp-primary-2: #2563eb;
  --emp-primary-3: #38bdf8;
  --emp-primary-soft: #eff6ff;

  --emp-navy: #0f172a;
  --emp-slate: #334155;
  --emp-text: #1e293b;
  --emp-muted: #64748b;
  --emp-soft-muted: #94a3b8;

  --emp-bg: #f8fafc;
  --emp-bg-2: #eef2f7;
  --emp-card: #ffffff;
  --emp-border: #e2e8f0;

  --emp-green: #16a34a;
  --emp-green-soft: #ecfdf5;
  --emp-amber: #f59e0b;
  --emp-amber-soft: #fffbeb;
  --emp-red: #dc2626;
  --emp-red-soft: #fef2f2;
  --emp-info: #0369a1;
  --emp-info-soft: #e0f2fe;

  --emp-radius-xs: 12px;
  --emp-radius-sm: 16px;
  --emp-radius-md: 20px;
  --emp-radius-lg: 24px;
  --emp-radius-xl: 28px;
  --emp-radius-2xl: 30px;

  --emp-shadow-sm: 0 10px 24px rgba(15, 23, 42, 0.05);
  --emp-shadow-md: 0 14px 34px rgba(15, 23, 42, 0.06);
  --emp-shadow-lg: 0 18px 45px rgba(15, 23, 42, 0.1);
  --emp-shadow-blue: 0 22px 55px rgba(30, 58, 138, 0.22);

  --emp-glass: rgba(255, 255, 255, 0.92);
  --emp-glass-border: rgba(226, 232, 240, 0.95);

  --emp-bottom-nav-h: 82px;
  --emp-safe-bottom: 100px;
  --emp-transition: 180ms cubic-bezier(0.22, 1, 0.36, 1);
  --emp-font:
    "Plus Jakarta Sans", system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  background:
    radial-gradient(
      circle at top left,
      rgba(37, 99, 235, 0.1),
      transparent 28%
    ),
    radial-gradient(
      circle at top right,
      rgba(14, 165, 233, 0.08),
      transparent 30%
    ),
    linear-gradient(180deg, var(--emp-bg) 0%, var(--emp-bg-2) 100%);
  color: var(--emp-navy);
  font-family: var(--emp-font);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.01em;
  padding-bottom: var(--emp-safe-bottom);
  overflow-x: hidden;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body.employee-login-page {
  padding-bottom: 0;
}

a,
button,
input,
select,
textarea {
  font: inherit;
}

a,
button {
  -webkit-tap-highlight-color: transparent;
}

img {
  max-width: 100%;
  display: block;
}

.min-w-0 {
  min-width: 0;
}

.text-primary {
  color: var(--emp-primary-2) !important;
}

.text-danger {
  color: var(--emp-red) !important;
}

.mt-3 {
  margin-top: 1rem !important;
}

/* Smooth reload */
.employee-app,
.mobile-login {
  animation: empPageIn 0.28s ease both;
}

@keyframes empPageIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

/* =========================
   2. APP SHELL
   ========================= */

.employee-app {
  width: 100%;
  max-width: 560px;
  min-height: 100vh;
  margin: 0 auto;
  position: relative;
}

.employee-page-header {
  padding: 18px 16px 10px;
}

.employee-content {
  padding: 8px 16px 22px;
}

.employee-topbar,
.employee-brand,
.employee-status-row,
.employee-profile-row,
.employee-badge-row,
.employee-section-heading,
.employee-status-pill,
.employee-sync-pill {
  display: flex;
}

.employee-topbar {
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.employee-brand {
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.employee-brand-text strong {
  display: block;
  font-size: 17px;
  line-height: 1.1;
  font-weight: 900;
  color: var(--emp-navy);
}

.employee-brand-text small {
  display: block;
  color: var(--emp-muted);
  font-size: 12px;
  margin-top: 3px;
  font-weight: 700;
}

.employee-icon-btn {
  width: 42px;
  height: 42px;
  border-radius: var(--emp-radius-sm);
  border: 1px solid var(--emp-glass-border);
  background: rgba(255, 255, 255, 0.84);
  color: var(--emp-navy);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-size: 21px;
  box-shadow: var(--emp-shadow-sm);
  backdrop-filter: blur(14px);
  transition:
    transform var(--emp-transition),
    color var(--emp-transition),
    box-shadow var(--emp-transition);
}

.employee-icon-btn:hover,
.employee-icon-btn:focus {
  color: var(--emp-primary);
  transform: translateY(-1px);
  box-shadow: var(--emp-shadow-md);
}

.employee-status-row {
  gap: 8px;
  flex-wrap: nowrap;
  overflow-x: auto;
  padding: 14px 0 2px;
  scrollbar-width: none;
}

.employee-status-row::-webkit-scrollbar {
  display: none;
}

.employee-status-pill,
.employee-sync-pill {
  align-items: center;
  gap: 7px;
  border-radius: 999px;
  padding: 8px 12px;
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
  border: 1px solid transparent;
}

.employee-status-pill.is-online {
  background: #dcfce7;
  color: #15803d;
  border-color: #bbf7d0;
}

.employee-status-pill.is-offline {
  background: #fee2e2;
  color: #b91c1c;
  border-color: #fecaca;
}

.employee-sync-pill {
  background: var(--emp-primary-soft);
  color: var(--emp-primary-2);
  border-color: #dbeafe;
}

/* =========================
   3. REUSABLE COMPONENTS
   ========================= */

.employee-card,
.summary-card,
.quick-action,
.employee-glass-panel,
.attendance-status-card,
.attendance-info-card,
.attendance-history-item,
.profile-card,
.profile-mini-card,
.payroll-card,
.payroll-mini-card,
.schedule-card,
.schedule-mini-card,
.leave-card,
.leave-mini-card {
  background: var(--emp-glass);
  border: 1px solid var(--emp-glass-border);
  box-shadow: var(--emp-shadow-md);
  backdrop-filter: blur(16px);
}

.employee-section-heading {
  justify-content: space-between;
  align-items: flex-end;
  gap: 12px;
  margin: 22px 0 12px;
}

.employee-section-heading h5 {
  margin: 0;
  font-size: 17px;
  font-weight: 900;
  letter-spacing: -0.25px;
}

.employee-section-heading small {
  color: var(--emp-muted);
  font-size: 12px;
  font-weight: 800;
}

.summary-grid,
.payroll-summary-grid,
.schedule-summary-grid,
.leave-summary-grid,
.profile-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.summary-card {
  border-radius: 22px;
  padding: 16px;
  min-height: 122px;
}

.summary-icon,
.quick-icon,
.attendance-info-icon,
.profile-info-icon,
.payroll-filter-icon,
.payroll-info-icon,
.schedule-info-icon,
.leave-item-icon {
  width: 42px;
  height: 42px;
  min-width: 42px;
  border-radius: 16px;
  background: var(--emp-primary-soft);
  color: var(--emp-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
}

.summary-icon {
  margin-bottom: 12px;
}

.summary-card small,
.payroll-mini-card small,
.schedule-mini-card small,
.leave-mini-card small,
.profile-mini-card small,
.attendance-info-card small,
.payroll-info-card small {
  display: block;
  color: var(--emp-muted);
  font-size: 11.5px;
  font-weight: 800;
  margin-bottom: 4px;
}

.summary-card h4 {
  margin: 4px 0 0;
  font-size: 24px;
  font-weight: 950;
  letter-spacing: -0.6px;
}

/* State/icon variants */
.success,
.payroll-mini-icon.success,
.schedule-mini-icon.success,
.leave-mini-icon.success,
.attendance-info-icon.success {
  color: #047857;
}

.warning,
.payroll-mini-icon.warning,
.schedule-mini-icon.warning,
.leave-mini-icon.warning,
.attendance-info-icon.warning {
  color: #b45309;
}

.danger,
.payroll-mini-icon.danger,
.leave-mini-icon.danger,
.attendance-info-icon.danger {
  color: #b91c1c;
}

.payroll-mini-icon.success,
.schedule-mini-icon.success,
.leave-mini-icon.success,
.attendance-info-icon.success {
  background: var(--emp-green-soft);
}

.payroll-mini-icon.warning,
.schedule-mini-icon.warning,
.leave-mini-icon.warning,
.attendance-info-icon.warning {
  background: var(--emp-amber-soft);
}

.payroll-mini-icon.danger,
.leave-mini-icon.danger,
.attendance-info-icon.danger {
  background: var(--emp-red-soft);
}

.schedule-mini-icon.secondary {
  background: #f1f5f9;
  color: #475569;
}

/* =========================
   4. DASHBOARD
   ========================= */

.employee-hero-card,
.attendance-hero,
.profile-hero,
.payroll-hero,
.schedule-hero,
.leave-hero {
  position: relative;
  overflow: hidden;
  border-radius: var(--emp-radius-xl);
  padding: 20px;
  color: #fff;
  background:
    radial-gradient(
      circle at 88% 18%,
      rgba(255, 255, 255, 0.2),
      transparent 30%
    ),
    linear-gradient(135deg, #0f172a 0%, #1e3a8a 50%, #2563eb 100%);
  box-shadow: var(--emp-shadow-blue);
}

.employee-hero-card::after,
.attendance-hero::after,
.profile-hero::after,
.payroll-hero::after,
.schedule-hero::after,
.leave-hero::after {
  content: "";
  position: absolute;
  right: -52px;
  bottom: -64px;
  width: 180px;
  height: 180px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.employee-hero-card::before {
  content: "";
  position: absolute;
  right: 34px;
  top: 22px;
  width: 64px;
  height: 64px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.08);
  transform: rotate(12deg);
}

.employee-hero-content,
.attendance-hero-content,
.profile-hero-content,
.payroll-hero-content,
.schedule-hero-content,
.leave-hero-content {
  position: relative;
  z-index: 2;
}

.employee-profile-row,
.profile-main-row {
  align-items: center;
  gap: 14px;
}

.employee-avatar,
.profile-avatar {
  width: 62px;
  height: 62px;
  min-width: 62px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.28);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
}

.employee-avatar img,
.profile-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.employee-hero-card .welcome-text {
  margin: 0 0 3px;
  opacity: 0.78;
  font-size: 12px;
  font-weight: 800;
}

.employee-hero-card h3,
.profile-hero h3,
.attendance-hero h3,
.payroll-hero h3,
.schedule-hero h3,
.leave-hero h3 {
  font-size: 22px;
  line-height: 1.18;
  font-weight: 950;
  margin: 0 0 6px;
  letter-spacing: -0.03em;
}

.employee-job-line,
.employee-hero-card p,
.profile-hero p,
.attendance-hero p,
.payroll-hero p,
.schedule-hero p,
.leave-hero p {
  color: rgba(255, 255, 255, 0.86);
  font-size: 13px;
  line-height: 1.6;
  margin: 8px 0 0;
}

.employee-badge-row,
.profile-badge-row {
  gap: 7px;
  flex-wrap: wrap;
  margin-top: 14px;
}

.employee-badge,
.profile-badge,
.payroll-period-badge,
.leave-badge,
.schedule-date-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 999px;
  padding: 7px 10px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  font-size: 11px;
  font-weight: 900;
  white-space: nowrap;
  backdrop-filter: blur(10px);
}

.profile-badge-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;

  gap: 7px;

  margin-top: 14px;
}

.profile-badge {
  min-height: 31px;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  gap: 6px;

  padding: 0 11px;

  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;

  background: rgba(255, 255, 255, 0.14);

  color: #ffffff;

  font-size: 11px;
  line-height: 1;

  font-weight: 800;

  letter-spacing: 0;

  white-space: nowrap;

  vertical-align: middle;

  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.profile-badge i {
  width: 14px;
  height: 14px;

  flex: 0 0 14px;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  margin: 0;
  padding: 0;

  color: inherit;

  font-size: 13px;
  line-height: 1;

  font-style: normal;

  vertical-align: middle;
}

.profile-badge span {
  display: inline-flex;
  align-items: center;

  line-height: 1;
}

.quick-actions {
  display: grid;
  gap: 10px;
}

.quick-action {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px;
  border-radius: var(--emp-radius-md);
  text-decoration: none;
  color: var(--emp-navy);
  transition:
    transform var(--emp-transition),
    color var(--emp-transition),
    box-shadow var(--emp-transition);
}

.quick-action:hover,
.quick-action:focus {
  transform: translateY(-1px);
  color: var(--emp-primary);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.08);
}

.quick-left {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.quick-action strong {
  display: block;
  font-size: 14px;
  font-weight: 900;
}

.quick-action small {
  display: block;
  color: var(--emp-muted);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.35;
}

/* =========================
   5. SIDEBAR & BOTTOM NAV
   ========================= */

.employee-sidebar {
  border-radius: 0 28px 28px 0;
  border: 0;
  z-index: 1200;
  overflow: hidden;
  height: 100dvh;
  max-height: 100dvh;
  display: flex;
  flex-direction: column;
}

.offcanvas-backdrop {
  z-index: 1190;
}

.employee-sidebar-header {
  flex: 0 0 auto;
  padding: 24px 22px;
  color: #fff;
  background:
    radial-gradient(
      circle at top right,
      rgba(255, 255, 255, 0.25),
      transparent 36%
    ),
    linear-gradient(135deg, #1d4ed8, #2563eb, #38bdf8);
}

.employee-sidebar-body {
  flex: 1 1 auto;
  min-height: 0;
  padding: 14px;
  background: var(--emp-bg);
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  touch-action: pan-y;
}

.employee-sidebar-footer {
  flex: 1 1 auto;
  min-height: 0;
  padding: 20px 16px 130px;
  background: var(--emp-bg);
  border-top: 1px solid var(--emp-border);
}

.employee-sidebar-menu {
  display: flex;
  flex-direction: column;
  gap: 26px;
  padding-bottom: 12px;
}

/* ============================================================
   GROUP
============================================================ */

.employee-sidebar-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.employee-sidebar-group__title {
  margin: 0;
  padding: 0 2px;

  color: var(--emp-navy);

  font-size: 13px;
  font-weight: 900;

  line-height: 1.3;
}

.employee-sidebar-group__items {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.employee-sidebar-link {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 62px;
  padding: 14px 16px;
  border-radius: 18px;
  color: var(--emp-slate);
  text-decoration: none;
  font-weight: 900;
  font-size: 14px;
  background: #fff;
  border: 1px solid #e5e7eb;
  transition: var(--emp-transition);
}

.employee-sidebar-link__icon {
  flex: 0 0 auto;

  width: 30px;
  min-width: 30px;

  display: flex;
  align-items: center;
  justify-content: center;
}

.employee-sidebar-link__icon i {
  font-size: 21px;
  color: var(--emp-primary-2);
}

.employee-sidebar-link__label {
  flex: 1;
  min-width: 0;

  line-height: 1.3;
}

.employee-sidebar-link.active {
  background: var(--emp-primary-2);
  color: #fff;
  border-color: var(--emp-primary-2);
  box-shadow: 0 12px 28px rgba(37, 99, 235, 0.22);
}

.employee-sidebar-link.active i {
  color: #fff;
}

.employee-sidebar-logout {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  width: 100%;
  border-radius: 17px;
  padding: 12px 14px;
  background: #fee2e2;
  color: var(--emp-red);
  text-decoration: none;
  font-weight: 950;
}

.offcanvas.employee-sidebar {
  height: 100dvh !important;
  max-height: 100dvh !important;
  display: flex !important;
  flex-direction: column !important;
  overflow: hidden !important;
}

.employee-sidebar-header {
  flex: 0 0 auto !important;
}

.employee-sidebar-body,
.offcanvas.employee-sidebar .offcanvas-body {
  flex: 1 1 auto !important;
  min-height: 0 !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
  -webkit-overflow-scrolling: touch !important;
  touch-action: pan-y !important;

  /* ruang bawah supaya menu terakhir tidak tertutup */
  padding-bottom: 120px !important;
}

.employee-sidebar-footer {
  flex: 0 0 auto !important;
  padding-bottom: calc(14px + env(safe-area-inset-bottom)) !important;
  background: var(--emp-bg) !important;
  border-top: 1px solid var(--emp-border) !important;
}

.employee-sidebar-menu {
  padding-bottom: 90px !important;
}

.employee-sidebar-menu::after {
  content: "";
  display: block;
  height: 80px;
}

.bottom-nav {
  position: fixed;
  left: 50%;
  bottom: 14px;
  transform: translateX(-50%);
  width: calc(100% - 28px);
  max-width: 520px;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid var(--emp-glass-border);
  border-radius: 24px;
  box-shadow: 0 18px 44px rgba(15, 23, 42, 0.16);
  backdrop-filter: blur(18px);
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  padding: 7px;
  z-index: 1100;
}

.bottom-nav a {
  position: relative;
  text-decoration: none;
  color: var(--emp-muted);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  font-size: 10.5px;
  font-weight: 900;
  border-radius: 18px;
  padding: 8px 4px;
  transition:
    color var(--emp-transition),
    background var(--emp-transition),
    transform var(--emp-transition);
}

.bottom-nav a i {
  font-size: 21px;
}

.bottom-nav a.active {
  color: var(--emp-primary);
  background: var(--emp-primary-soft);
}

.bottom-nav a.active::before {
  content: "";
  position: absolute;
  top: 6px;
  width: 18px;
  height: 3px;
  border-radius: 999px;
  background: var(--emp-primary);
}

/* =========================
   6. TOAST, BANNER, BROADCAST
   ========================= */

.employee-toast {
  position: fixed;
  left: 50%;
  bottom: 96px;
  transform: translateX(-50%) translateY(20px);
  width: calc(100% - 32px);
  max-width: 520px;
  z-index: 2000;
  padding: 14px 16px;
  border-radius: 18px;
  color: #fff;
  font-weight: 900;
  opacity: 0;
  pointer-events: none;
  transition:
    opacity 220ms ease,
    transform 220ms ease;
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.24);
}

.employee-toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.employee-toast.success {
  background: var(--emp-green);
}

.employee-toast.warning {
  background: var(--emp-amber);
}

.employee-toast.info {
  background: var(--emp-primary-2);
}

.employee-banner-slider,
.broadcast-slider {
  position: relative;
  margin-top: 16px;
}

.employee-banner-frame,
.broadcast-slider {
  overflow: hidden;
  border-radius: 26px;
  background: var(--emp-navy);
  box-shadow: 0 20px 45px rgba(15, 23, 42, 0.14);
}

.employee-banner-slide {
  display: none;
  position: relative;
  min-height: 178px;
  overflow: hidden;
}

.employee-banner-slide.active {
  display: block;
  animation: employeeBannerFade 0.38s ease;
}

@keyframes employeeBannerFade {
  from {
    opacity: 0.45;
    transform: scale(1.015);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

.employee-banner-image {
  width: 100%;
  height: 190px;
  object-fit: cover;
  transform: scale(1.01);
}

.employee-banner-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      90deg,
      rgba(15, 23, 42, 0.92) 0%,
      rgba(15, 23, 42, 0.7) 44%,
      rgba(15, 23, 42, 0.16) 100%
    ),
    linear-gradient(
      180deg,
      rgba(15, 23, 42, 0.08) 0%,
      rgba(15, 23, 42, 0.72) 100%
    );
}

.employee-banner-content {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 17px;
  z-index: 2;
  color: #fff;
}

.employee-banner-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 999px;
  padding: 7px 10px;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.22);
  font-size: 11px;
  font-weight: 950;
  margin-bottom: 8px;
  backdrop-filter: blur(10px);
}

.employee-banner-content small,
.broadcast-slide small {
  display: block;
  opacity: 0.78;
  font-size: 11px;
  font-weight: 800;
  margin-bottom: 2px;
}

.employee-banner-content h5,
.broadcast-slide h5 {
  font-size: 19px;
  font-weight: 950;
  letter-spacing: -0.35px;
  margin: 0 0 5px;
}

.employee-banner-content p,
.broadcast-slide p {
  font-size: 12.5px;
  line-height: 1.5;
  opacity: 0.9;
  margin: 0;
  max-width: 96%;
}

.employee-banner-dots {
  position: absolute;
  left: 18px;
  bottom: 10px;
  display: flex;
  gap: 6px;
  z-index: 4;
}

.employee-banner-dot,
.broadcast-dot {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  border: 0;
  padding: 0;
  background: rgba(255, 255, 255, 0.45);
  transition:
    width var(--emp-transition),
    background var(--emp-transition);
}

.employee-banner-dot.active,
.broadcast-dot.active {
  width: 20px;
  background: #fff;
}

.broadcast-slide {
  display: none;
  min-height: 135px;
  padding: 18px;
  color: #fff;
  background:
    radial-gradient(
      circle at top right,
      rgba(255, 255, 255, 0.24),
      transparent 34%
    ),
    linear-gradient(135deg, #1d4ed8, #2563eb, #38bdf8);
}

.broadcast-slide.active {
  display: block;
  animation: broadcastFade 0.35s ease;
}

@keyframes broadcastFade {
  from {
    opacity: 0.4;
    transform: translateX(12px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.broadcast-slide.warning {
  background:
    radial-gradient(
      circle at top right,
      rgba(255, 255, 255, 0.24),
      transparent 34%
    ),
    linear-gradient(135deg, #b45309, #f59e0b, #fbbf24);
}

.broadcast-slide.danger {
  background:
    radial-gradient(
      circle at top right,
      rgba(255, 255, 255, 0.24),
      transparent 34%
    ),
    linear-gradient(135deg, #991b1b, #dc2626, #fb7185);
}

.broadcast-slide.success {
  background:
    radial-gradient(
      circle at top right,
      rgba(255, 255, 255, 0.24),
      transparent 34%
    ),
    linear-gradient(135deg, #166534, #16a34a, #4ade80);
}

.broadcast-icon {
  width: 46px;
  height: 46px;
  border-radius: 17px;
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  margin-bottom: 12px;
}

.broadcast-dots {
  display: flex;
  gap: 6px;
  margin-top: 10px;
  justify-content: center;
}

.broadcast-dot {
  background: #cbd5e1;
}

.broadcast-dot.active {
  background: var(--emp-primary-2);
}

/* =========================
   7. INSTALL CARD
   ========================= */

.employee-install-card,
.install-card {
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 14px;
  padding: 14px;
  border-radius: 22px;
  background: var(--emp-navy);
  color: #fff;
}

.employee-install-card {
  display: flex;
}

.install-card {
  display: none;
}

.install-card.show {
  display: flex;
}

.employee-install-card small,
.install-card small {
  display: block;
  opacity: 0.72;
  font-size: 11px;
  font-weight: 700;
}

.employee-install-card strong,
.install-card strong {
  display: block;
  font-size: 14px;
  font-weight: 900;
}

.employee-install-btn,
.install-card button {
  border: 0;
  border-radius: 14px;
  padding: 10px 13px;
  background: #fff;
  color: var(--emp-navy);
  font-weight: 950;
  white-space: nowrap;
}

/* =========================
   8. ATTENDANCE
   ========================= */

.attendance-icon,
.payroll-icon,
.schedule-hero-icon,
.leave-icon {
  width: 58px;
  height: 58px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.22);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  margin-bottom: 16px;
}

.attendance-status-card,
.attendance-info-card {
  border-radius: 24px;
  padding: 17px;
}

.attendance-status-top,
.attendance-history-top,
.leave-item-top,
.weekly-content-top,
.today-schedule-top,
.payroll-hero-top,
.schedule-hero-top,
.leave-hero-top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
}

.attendance-status-label {
  color: var(--emp-muted);
  font-size: 12px;
  font-weight: 800;
}

.attendance-status-title {
  font-size: 21px;
  font-weight: 950;
  letter-spacing: -0.03em;
  margin: 3px 0 0;
  color: var(--emp-navy);
}

.attendance-status-badge,
.attendance-history-badge,
.weekly-badge,
.leave-status {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border-radius: 999px;
  padding: 6px 9px;
  font-size: 11px;
  font-weight: 950;
  white-space: nowrap;
}

.attendance-status-badge {
  background: #fff7ed;
  color: #c2410c;
  border: 1px solid #fed7aa;
}

.attendance-time-grid,
.attendance-history-time,
.today-time-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 11px;
}

.attendance-time-box,
.attendance-history-time-box,
.today-time-item {
  border-radius: 20px;
  padding: 14px;
  background: var(--emp-bg);
  border: 1px solid var(--emp-border);
}

.attendance-time-box .time-icon {
  width: 36px;
  height: 36px;
  border-radius: 14px;
  background: var(--emp-primary-soft);
  color: var(--emp-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 19px;
  margin-bottom: 10px;
}

.attendance-time-box small,
.attendance-history-time-box small,
.today-time-item small {
  display: block;
  color: var(--emp-muted);
  font-size: 11px;
  font-weight: 800;
  margin-bottom: 3px;
}

.attendance-time-box strong,
.attendance-history-time-box strong,
.today-time-item strong {
  display: block;
  color: var(--emp-navy);
  font-size: 16px;
  font-weight: 950;
}

.attendance-action-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 11px;
}

.attendance-action-btn,
.payroll-action-btn {
  border: 0;
  border-radius: 22px;
  min-height: 88px;
  font-weight: 900;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 7px;
  text-decoration: none;
  transition:
    transform var(--emp-transition),
    box-shadow var(--emp-transition);
}

.attendance-action-btn {
  padding: 15px 12px;
}

.attendance-action-btn i,
.payroll-action-btn i {
  font-size: 25px;
}

.attendance-action-btn.clock-in,
.payroll-action-btn.primary,
.leave-submit-btn,
.profile-action,
.btn-login {
  background: linear-gradient(135deg, #1d4ed8, #2563eb);
  color: #fff;
  box-shadow: 0 16px 34px rgba(37, 99, 235, 0.22);
}

.attendance-action-btn.clock-out,
.payroll-action-btn.light {
  background: #fff;
  color: var(--emp-primary);
  border: 1px solid #bfdbfe;
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.05);
}

.attendance-action-btn:hover,
.payroll-action-btn:hover,
.profile-action:hover {
  transform: translateY(-2px);
}

.attendance-info-row,
.payroll-info-row {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.attendance-info-card p,
.payroll-info-card p {
  color: #475569;
  font-size: 13px;
  line-height: 1.6;
  margin: 0;
}

.attendance-history-list {
  display: flex;
  flex-direction: column;
  gap: 11px;
}

.attendance-history-item {
  border-radius: 22px;
  padding: 14px;
}

.attendance-history-date strong {
  display: block;
  font-size: 14px;
  font-weight: 950;
  color: var(--emp-navy);
}

.attendance-history-date small {
  display: block;
  color: var(--emp-muted);
  font-size: 12px;
  font-weight: 700;
  margin-top: 2px;
}

.attendance-history-badge.success,
.weekly-badge.success,
.leave-status.success {
  background: #dcfce7;
  color: #15803d;
}

.attendance-history-badge.warning,
.weekly-badge.warning,
.leave-status.warning {
  background: #fef3c7;
  color: #b45309;
}

.attendance-history-badge.danger,
.weekly-badge.danger,
.leave-status.danger {
  background: #fee2e2;
  color: #b91c1c;
}

.attendance-history-badge.info {
  background: var(--emp-info-soft);
  color: var(--emp-info);
}

.attendance-history-badge.primary,
.weekly-badge.primary,
.leave-status.primary {
  background: #dbeafe;
  color: var(--emp-primary);
}

.attendance-history-badge.secondary,
.weekly-badge.secondary,
.leave-status.secondary {
  background: #f1f5f9;
  color: #475569;
}

.attendance-empty,
.empty-schedule,
.empty-leave,
.payroll-empty-state {
  background: rgba(255, 255, 255, 0.92);
  border: 1px dashed #cbd5e1;
  border-radius: 22px;
  padding: 26px 18px;
  text-align: center;
  color: var(--emp-muted);
}

.attendance-empty i,
.payroll-empty-state i {
  font-size: 38px;
  color: var(--emp-soft-muted);
  display: block;
  margin-bottom: 8px;
}

/* =========================
   9. PROFILE
   ========================= */

.profile-avatar {
  width: 70px;
  height: 70px;
  min-width: 70px;
  border-radius: 24px;
  font-size: 34px;
}

.profile-avatar-wrap {
  position: relative;
  width: 70px;
  height: 70px;
  min-width: 70px;
}

.profile-photo-btn {
  position: absolute;
  right: -6px;
  bottom: -6px;
  width: 30px;
  height: 30px;
  border-radius: 12px;
  border: 2px solid #fff;
  background: var(--emp-primary-2);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  box-shadow: 0 10px 24px rgba(37, 99, 235, 0.32);
}

.profile-card,
.profile-mini-card {
  border-radius: 24px;
  padding: 17px;
}

.profile-info-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.profile-info-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding-bottom: 12px;
  border-bottom: 1px solid #eef2f7;
}

.profile-info-item:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.profile-info-content small {
  display: block;
  color: var(--emp-muted);
  font-size: 11.5px;
  font-weight: 800;
  margin-bottom: 3px;
}

.profile-info-content strong {
  display: block;
  color: var(--emp-navy);
  font-size: 13.5px;
  font-weight: 900;
  line-height: 1.45;
  word-break: break-word;
}

.profile-mini-card {
  border-radius: 22px;
  padding: 15px;
}

.profile-mini-card i {
  width: 38px;
  height: 38px;
  border-radius: 15px;
  background: var(--emp-primary-soft);
  color: var(--emp-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 21px;
  margin-bottom: 11px;
}

.profile-mini-card strong {
  color: var(--emp-navy);
  font-size: 13.5px;
  font-weight: 900;
  line-height: 1.4;
}

.profile-action {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  width: 100%;
  border-radius: 20px;
  padding: 14px 16px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 950;
}

/* =========================
   10. PAYROLL / SLIP GAJI
   ========================= */

.payroll-total-card,
.leave-balance-card,
.today-schedule-card {
  margin-top: 16px;
  padding: 17px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(14px);
}

.payroll-total-card small,
.leave-balance-card small,
.today-schedule-top small,
.today-time-item small {
  opacity: 0.78;
  font-size: 12px;
  font-weight: 800;
}

.payroll-total-card h2,
.leave-balance-card h2 {
  font-size: 30px;
  font-weight: 950;
  letter-spacing: -0.05em;
  margin: 4px 0 0;
}

.payroll-status-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 13px;
}

.payroll-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 999px;
  padding: 7px 10px;
  background: rgba(255, 255, 255, 0.13);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #fff;
  font-size: 11px;
  font-weight: 900;
}

.payroll-card {
  border-radius: 24px;
  padding: 17px;
}

.payroll-filter-card {
  display: flex;
  gap: 10px;
  align-items: center;
}

.payroll-filter-content {
  flex: 1;
  min-width: 0;
}

.payroll-filter-content small {
  display: block;
  color: var(--emp-muted);
  font-size: 11.5px;
  font-weight: 800;
  margin-bottom: 4px;
}

.payroll-select {
  width: 100%;
  border: 0;
  background: transparent;
  font-size: 14px;
  font-weight: 900;
  color: var(--emp-navy);
  outline: none;
}

.payroll-mini-card {
  border-radius: 22px;
  padding: 15px;
}

.payroll-mini-icon {
  width: 39px;
  height: 39px;
  border-radius: 15px;
  background: var(--emp-primary-soft);
  color: var(--emp-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 21px;
  margin-bottom: 11px;
}

.payroll-mini-card strong {
  color: var(--emp-navy);
  font-size: 15px;
  font-weight: 950;
  line-height: 1.4;
}

.payroll-detail-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.payroll-detail-item {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid #eef2f7;
  color: inherit;
  text-decoration: none;
}

.payroll-detail-item:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.payroll-detail-item span {
  color: var(--emp-muted);
  font-size: 13px;
  font-weight: 800;
}

.payroll-detail-item strong {
  color: var(--emp-navy);
  font-size: 13.5px;
  font-weight: 950;
  text-align: right;
}

.payroll-detail-item.total {
  margin-top: 4px;
  padding: 14px;
  border-radius: 18px;
  border-bottom: 0;
  background: var(--emp-primary-soft);
}

.payroll-detail-item.total span,
.payroll-detail-item.total strong {
  color: var(--emp-primary);
  font-weight: 950;
}

.payroll-detail-item.total strong {
  font-size: 17px;
}

.payroll-action-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 11px;
}

.payroll-action-btn {
  padding: 14px 12px;
  font-size: 13px;
}

.payroll-action-btn.primary:hover {
  color: #fff;
}

.payroll-action-btn.light:hover {
  color: var(--emp-primary);
}

.payroll-info-icon {
  background: var(--emp-green-soft);
  color: #047857;
}

.payroll-slip-history-link span {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.payroll-slip-history-link span strong {
  color: var(--emp-navy);
  font-size: 14px;
  font-weight: 950;
}

.payroll-slip-history-link span small {
  color: var(--emp-muted);
  font-size: 12px;
  font-weight: 700;
}

.payroll-slip-history-link > strong {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--emp-primary-2);
  white-space: nowrap;
}

.payroll-empty-state {
  padding: 26px 14px;
}

.payroll-empty-state h5 {
  color: var(--emp-navy);
  font-size: 16px;
  font-weight: 950;
  margin: 0;
}

.payroll-empty-state p {
  color: var(--emp-muted);
  font-size: 13px;
  margin: 6px auto 0;
  max-width: 300px;
}

/* Slip detail */
.employee-slip-info-list {
  display: grid;
  gap: 10px;
}

.employee-slip-info-item {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  padding: 12px;
  border-radius: 16px;
  background: var(--emp-bg);
  border: 1px solid var(--emp-border);
}

.employee-slip-info-item span {
  color: var(--emp-muted);
  font-size: 12px;
  font-weight: 900;
}

.employee-slip-info-item strong {
  color: var(--emp-navy);
  font-size: 13px;
  font-weight: 950;
  text-align: right;
}

.payroll-detail-item span strong {
  color: var(--emp-navy);
  font-size: 13px;
  font-weight: 950;
}

.payroll-detail-item span small {
  color: var(--emp-muted);
  font-size: 11px;
  font-weight: 700;
}

.payroll-filter-riwayat-card {
  margin-bottom: 14px;
}

.payroll-riwayat-filter-form {
  display: flex;
  align-items: center;
  gap: 10px;
}

.payroll-riwayat-filter-form .payroll-filter-card {
  flex: 1;
  margin: 0;
}

.payroll-filter-reset {
  min-width: 46px;
  height: 46px;
  border-radius: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--emp-primary-2);
  background: var(--emp-primary-soft);
  text-decoration: none;
  font-weight: 950;
}

/* Pagination */
.employee-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 14px;
  margin: 18px 0;
}

.employee-pagination a,
.employee-pagination span {
  width: 42px;
  height: 42px;
  border-radius: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: var(--emp-primary-2);
  background: var(--emp-primary-soft);
}

.employee-pagination span.disabled {
  color: var(--emp-soft-muted);
  background: #f1f5f9;
}

.employee-pagination strong {
  color: var(--emp-navy);
  font-size: 13px;
  font-weight: 950;
}

/* =========================
   11. SCHEDULE
   ========================= */

.today-schedule-top h4 {
  font-size: 19px;
  font-weight: 950;
  margin: 4px 0 0;
}

.schedule-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 999px;
  padding: 8px 11px;
  font-size: 11px;
  font-weight: 950;
  white-space: nowrap;
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.schedule-status-pill.success {
  color: #dcfce7;
  background: rgba(22, 163, 74, 0.28);
}

.schedule-status-pill.primary {
  color: #dbeafe;
  background: rgba(37, 99, 235, 0.3);
}

.schedule-status-pill.warning {
  color: #fef3c7;
  background: rgba(217, 119, 6, 0.3);
}

.schedule-status-pill.danger {
  color: #fee2e2;
  background: rgba(220, 38, 38, 0.3);
}

.schedule-status-pill.secondary {
  color: #e2e8f0;
  background: rgba(100, 116, 139, 0.3);
}

.schedule-card,
.schedule-mini-card {
  border-radius: 24px;
  padding: 17px;
}

.schedule-mini-card {
  border-radius: 22px;
  padding: 15px;
}

.schedule-mini-card strong {
  color: var(--emp-navy);
  font-size: 20px;
  font-weight: 950;
  line-height: 1.3;
}

.schedule-info-list,
.weekly-list {
  display: flex;
  flex-direction: column;
  gap: 11px;
}

.schedule-info-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid #eef2f7;
}

.schedule-info-item:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.schedule-info-content {
  flex: 1;
}

.schedule-info-content small,
.schedule-info-content span {
  display: block;
  color: var(--emp-muted);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.5;
}

.schedule-info-content strong {
  display: block;
  color: var(--emp-navy);
  font-size: 14px;
  font-weight: 950;
  line-height: 1.45;
}

.weekly-item {
  display: flex;
  gap: 12px;
  align-items: stretch;
  padding: 13px;
  border-radius: 20px;
  background: #fff;
  border: 1px solid var(--emp-border);
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.04);
}

.weekly-date {
  width: 56px;
  min-width: 56px;
  border-radius: 17px;
  background: var(--emp-bg);
  border: 1px solid var(--emp-border);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.weekly-date strong {
  font-size: 20px;
  font-weight: 950;
  color: var(--emp-navy);
  line-height: 1;
}

.weekly-date small {
  font-size: 10px;
  color: var(--emp-muted);
  font-weight: 900;
  margin-top: 3px;
}

.weekly-content {
  flex: 1;
  min-width: 0;
}

.weekly-content h6 {
  font-size: 14px;
  font-weight: 950;
  color: var(--emp-navy);
  margin: 0;
}

.weekly-content p {
  font-size: 12px;
  color: var(--emp-muted);
  line-height: 1.5;
  margin: 0;
}

/* =========================
   12. CUTI / LEAVE
   ========================= */

.leave-balance-card h2 {
  font-size: 34px;
}

.leave-balance-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 9px;
  margin-top: 14px;
}

.leave-balance-item,
.today-time-item {
  border-radius: 16px;
  padding: 11px;
  background: rgba(255, 255, 255, 0.13);
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.leave-balance-item span {
  display: block;
  font-size: 10.5px;
  opacity: 0.76;
  font-weight: 800;
}

.leave-balance-item strong {
  display: block;
  font-size: 15px;
  font-weight: 950;
  margin-top: 2px;
}

.leave-card,
.leave-mini-card {
  border-radius: 24px;
  padding: 17px;
}

.leave-mini-card {
  border-radius: 22px;
  padding: 15px;
}

.leave-mini-card strong {
  color: var(--emp-navy);
  font-size: 20px;
  font-weight: 950;
}

.leave-form .form-label {
  color: var(--emp-navy);
  font-size: 12px;
  font-weight: 900;
}

.leave-form .form-control,
.leave-form .form-select,
.mobile-login .form-control,
.form-control,
.form-select {
  border-radius: 16px;
  border: 1px solid var(--emp-border);
  padding: 11px 13px;
  font-size: 13px;
  font-weight: 700;
  background: #fff;
}

.leave-form .form-control:focus,
.leave-form .form-select:focus,
.mobile-login .form-control:focus,
.form-control:focus,
.form-select:focus {
  box-shadow: 0 0 0 0.2rem rgba(37, 99, 235, 0.12);
  border-color: var(--emp-primary-2);
}

.leave-submit-btn {
  width: 100%;
  border: 0;
  border-radius: 18px;
  padding: 13px 16px;
  font-size: 14px;
  font-weight: 950;
}

.leave-list {
  display: flex;
  flex-direction: column;
  gap: 11px;
}

.leave-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 13px;
  border-radius: 20px;
  background: #fff;
  border: 1px solid var(--emp-border);
}

.leave-item-content {
  flex: 1;
  min-width: 0;
}

.leave-item h6 {
  font-size: 14px;
  font-weight: 950;
  color: var(--emp-navy);
  margin: 0;
}

.leave-item p {
  font-size: 12px;
  color: var(--emp-muted);
  line-height: 1.5;
  margin: 0;
}

.empty-schedule-icon,
.empty-leave-icon {
  width: 64px;
  height: 64px;
  border-radius: 24px;
  margin: 0 auto 14px;
  background: var(--emp-primary-soft);
  color: var(--emp-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 34px;
}

.empty-schedule h5,
.empty-leave h5 {
  font-size: 16px;
  font-weight: 950;
  color: var(--emp-navy);
  margin: 0 0 5px;
}

.empty-schedule p,
.empty-leave p {
  color: var(--emp-muted);
  font-size: 13px;
  line-height: 1.6;
  margin: 0;
}

/* =========================
   13. LOGIN KARYAWAN
   Gunakan <body class="employee-login-page"> untuk hasil terbaik.
   ========================= */

.mobile-login {
  width: 100%;
  max-width: 520px;
  min-height: 100vh;
  margin: 0 auto;
  padding: 22px 16px 28px;
  display: flex;
  flex-direction: column;
}

.login-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}

.mobile-login .brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.mobile-login .brand-icon {
  width: 46px;
  height: 46px;
  border-radius: 17px;
  background: var(--emp-primary-soft);
  color: var(--emp-primary-2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  border: 1px solid #dbeafe;
}

.mobile-login .brand strong {
  display: block;
  font-size: 17px;
  font-weight: 900;
  letter-spacing: -0.03em;
}

.mobile-login .brand small {
  display: block;
  color: var(--emp-muted);
  font-size: 12px;
  font-weight: 700;
  margin-top: 2px;
}

.admin-link {
  width: 42px;
  height: 42px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid var(--emp-border);
  color: var(--emp-slate);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 21px;
  text-decoration: none;
  box-shadow: var(--emp-shadow-sm);
}

.hero-card {
  position: relative;
  overflow: hidden;
  border-radius: 30px;
  padding: 22px;
  color: #fff;
  background:
    radial-gradient(
      circle at top right,
      rgba(255, 255, 255, 0.22),
      transparent 30%
    ),
    linear-gradient(135deg, #0f172a 0%, #1e3a8a 48%, #2563eb 100%);
  box-shadow: var(--emp-shadow-blue);
  margin-bottom: 16px;
}

.hero-card::before {
  content: "";
  position: absolute;
  right: -52px;
  bottom: -64px;
  width: 180px;
  height: 180px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.hero-content {
  position: relative;
  z-index: 2;
}

.hero-icon {
  width: 56px;
  height: 56px;
  border-radius: 21px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.22);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  margin-bottom: 18px;
}

.hero-card small {
  display: block;
  opacity: 0.78;
  font-size: 12px;
  font-weight: 800;
  margin-bottom: 4px;
}

.hero-card h1 {
  font-size: 28px;
  line-height: 1.12;
  font-weight: 950;
  letter-spacing: -0.06em;
  margin: 0 0 9px;
}

.hero-card p {
  font-size: 13px;
  line-height: 1.7;
  opacity: 0.86;
  margin: 0;
  max-width: 92%;
}

.login-card {
  background: var(--emp-glass);
  border: 1px solid var(--emp-glass-border);
  border-radius: 30px;
  padding: 22px;
  box-shadow: 0 18px 48px rgba(15, 23, 42, 0.08);
  backdrop-filter: blur(16px);
}

.login-title {
  margin-bottom: 20px;
}

.login-title h4 {
  font-size: 21px;
  font-weight: 950;
  letter-spacing: -0.04em;
  margin: 0 0 5px;
}

.login-title p {
  color: var(--emp-muted);
  font-size: 13px;
  line-height: 1.6;
  margin: 0;
  font-weight: 600;
}

.form-label {
  font-size: 12px;
  font-weight: 900;
  color: var(--emp-slate);
  margin-bottom: 8px;
}

.mobile-login .form-control {
  border-radius: 18px;
  padding: 14px 15px;
  font-size: 14px;
}

.btn-login {
  border: 0;
  border-radius: 20px;
  padding: 14px 16px;
  width: 100%;
  font-weight: 950;
}

.info-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 9px;
  margin-top: 14px;
}

.info-card {
  text-align: center;
  padding: 12px 8px;
  border-radius: 18px;
  background: #fff;
  border: 1px solid var(--emp-border);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.04);
}

.info-card i {
  display: block;
  color: var(--emp-primary-2);
  font-size: 22px;
  margin-bottom: 5px;
}

.info-card small {
  color: var(--emp-muted);
  font-size: 10.5px;
  font-weight: 800;
}

.alert {
  border-radius: 18px;
  font-size: 13px;
  font-weight: 800;
}

/* =========================
   14. RESPONSIVE
   ========================= */

@media (max-width: 420px) {
  .employee-banner-image {
    height: 184px;
  }

  .payroll-riwayat-filter-form {
    flex-direction: column;
    align-items: stretch;
  }

  .payroll-filter-reset {
    width: 100%;
  }
}

@media (max-width: 380px) {
  .summary-grid,
  .payroll-summary-grid,
  .payroll-action-grid,
  .schedule-summary-grid,
  .today-time-grid,
  .attendance-time-grid,
  .attendance-action-grid,
  .attendance-history-time,
  .profile-grid,
  .leave-summary-grid,
  .leave-balance-grid,
  .info-row {
    grid-template-columns: 1fr;
  }

  .profile-main-row {
    align-items: flex-start;
  }

  .payroll-total-card h2 {
    font-size: 25px;
  }

  .hero-card h1 {
    font-size: 25px;
  }
}

/* =========================
   15. PRINT
   ========================= */

@media print {
  body {
    background: #fff !important;
    padding-bottom: 0 !important;
  }

  .employee-bottom-nav,
  .employee-mobile-header,
  .bottom-nav,
  .employee-page-header,
  .payroll-action-grid,
  .payroll-info-card,
  .employee-sidebar,
  .offcanvas-backdrop {
    display: none !important;
  }

  .employee-app,
  .employee-content {
    max-width: none !important;
    width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
  }

  .payroll-hero,
  .payroll-card,
  .payroll-mini-card,
  .summary-card,
  .employee-card {
    box-shadow: none !important;
  }
}

/* =========================
   16. NOTIFIKASI
   ========================= */
.notification-hero {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  padding: 20px;
  color: #fff;
  background:
    radial-gradient(
      circle at 88% 20%,
      rgba(255, 255, 255, 0.2),
      transparent 30%
    ),
    linear-gradient(135deg, #0f172a 0%, #1e3a8a 50%, #2563eb 100%);
  box-shadow: 0 22px 55px rgba(30, 58, 138, 0.22);
}

.notification-hero::after {
  content: "";
  position: absolute;
  right: -48px;
  bottom: -58px;
  width: 170px;
  height: 170px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.notification-hero-content {
  position: relative;
  z-index: 2;
}

.notification-hero-top {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: flex-start;
}

.notification-icon-main {
  width: 56px;
  height: 56px;
  border-radius: 21px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.22);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  margin-bottom: 15px;
}

.notification-hero small {
  display: block;
  opacity: 0.78;
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 4px;
}

.notification-hero h3 {
  font-size: 23px;
  line-height: 1.2;
  font-weight: 900;
  letter-spacing: -0.03em;
  margin-bottom: 7px;
}

.notification-hero p {
  font-size: 13px;
  line-height: 1.6;
  opacity: 0.86;
  margin-bottom: 0;
}

.notification-count-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 999px;
  padding: 8px 11px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  white-space: nowrap;
}

.notification-filter-card {
  padding: 14px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(226, 232, 240, 0.95);
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.06);
}

.notification-filter-form {
  display: grid;
  gap: 10px;
}

.notification-search-box {
  min-height: 48px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 13px;
  border-radius: 18px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
}

.notification-search-box i {
  color: #64748b;
  font-size: 20px;
}

.notification-search-box input {
  width: 100%;
  border: 0;
  outline: none;
  background: transparent;
  color: #0f172a;
  font-size: 13px;
  font-weight: 700;
}

.notification-select {
  min-height: 48px;
  width: 100%;
  border-radius: 18px;
  border: 1px solid #e2e8f0;
  background: #fff;
  color: #0f172a;
  padding: 0 13px;
  font-size: 13px;
  font-weight: 800;
  outline: none;
}

.notification-filter-btn,
.notification-action-primary,
.notification-action-light {
  min-height: 44px;
  border-radius: 17px;
  border: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  text-decoration: none;
  font-size: 13px;
  font-weight: 900;
}

.notification-filter-btn,
.notification-action-primary {
  color: #fff;
  background: #2563eb;
}

.notification-action-light {
  color: #2563eb;
  background: #eff6ff;
}

.notification-filter-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 10px;
}

.notification-filter-actions form {
  margin: 0;
}

.notification-filter-actions button {
  width: 100%;
}

.notification-list {
  display: grid;
  gap: 11px;
}

.notification-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(226, 232, 240, 0.95);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.05);
  text-decoration: none;
  color: inherit;
}

.notification-item.unread {
  border-color: #bfdbfe;
  background: #eff6ff;
}

.notification-item-icon {
  width: 44px;
  height: 44px;
  min-width: 44px;
  border-radius: 17px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 23px;
}

.notification-item-icon.primary,
.notification-item-icon.payroll {
  color: #1d4ed8;
  background: #dbeafe;
}

.notification-item-icon.success {
  color: #047857;
  background: #ecfdf5;
}

.notification-item-icon.warning {
  color: #b45309;
  background: #fffbeb;
}

.notification-item-icon.danger {
  color: #b91c1c;
  background: #fef2f2;
}

.notification-item-icon.info {
  color: #0369a1;
  background: #e0f2fe;
}

.notification-item-icon.secondary {
  color: #475569;
  background: #f1f5f9;
}

.notification-item-content {
  flex: 1;
  min-width: 0;
}

.notification-item-top {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: flex-start;
}

.notification-item h6 {
  margin: 0;
  color: #0f172a;
  font-size: 14px;
  font-weight: 900;
  line-height: 1.35;
}

.notification-dot {
  width: 9px;
  height: 9px;
  min-width: 9px;
  border-radius: 999px;
  background: #2563eb;
  margin-top: 4px;
}

.notification-item p {
  color: #475569;
  font-size: 12.5px;
  line-height: 1.5;
  margin: 5px 0 8px;
}

.notification-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  align-items: center;
}

.notification-meta span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: #64748b;
  font-size: 10.5px;
  font-weight: 800;
}

.notification-status {
  border-radius: 999px;
  padding: 4px 8px;
}

.notification-status.unread {
  color: #1d4ed8;
  background: #dbeafe;
}

.notification-status.read {
  color: #64748b;
  background: #f1f5f9;
}

.notification-chevron {
  color: #94a3b8;
  font-size: 22px;
  margin-top: 10px;
}

.notification-empty {
  text-align: center;
  padding: 28px 18px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.94);
  border: 1px dashed #cbd5e1;
}

.notification-empty-icon {
  width: 64px;
  height: 64px;
  border-radius: 24px;
  margin: 0 auto 14px;
  background: #eff6ff;
  color: #1d4ed8;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 34px;
}

.notification-empty h5 {
  color: #0f172a;
  font-size: 16px;
  font-weight: 900;
  margin-bottom: 5px;
}

.notification-empty p {
  color: #64748b;
  font-size: 13px;
  line-height: 1.6;
  margin-bottom: 0;
}

@media (max-width: 420px) {
  .notification-hero-top {
    flex-direction: column;
  }

  .notification-filter-actions {
    grid-template-columns: 1fr;
  }

  .notification-item {
    padding: 13px;
  }
}

.summary-link-card {
  display: block;
  text-decoration: none;
  color: inherit;
}

.summary-link-card:hover {
  color: inherit;
  transform: translateY(-1px);
}

.employee-header-notif-btn {
  position: relative;
}

.employee-header-notif-badge {
  position: absolute;
  top: -5px;
  right: -5px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: #dc2626;
  color: #ffffff;
  border: 2px solid #ffffff;
  font-size: 9px;
  font-weight: 900;
  line-height: 14px;
  text-align: center;
  box-shadow: 0 6px 14px rgba(220, 38, 38, 0.28);
}

.employee-toast {
  position: fixed !important;
  top: 18px !important;
  left: 50% !important;
  right: auto !important;
  bottom: auto !important;

  width: calc(100% - 32px) !important;
  max-width: 430px !important;
  min-height: unset !important;
  height: auto !important;
  max-height: 260px !important;

  transform: translate(-50%, -14px) !important;
  z-index: 99999 !important;

  padding: 14px 16px !important;
  border-radius: 18px !important;

  background: #0f172a !important;
  color: #ffffff !important;

  font-size: 13px !important;
  line-height: 1.45 !important;

  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.28) !important;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;

  overflow-y: auto !important;
  transition: 0.22s ease !important;
}

.employee-toast.show {
  opacity: 1 !important;
  visibility: visible !important;
  transform: translate(-50%, 0) !important;
  pointer-events: auto !important;
}

.employee-toast.success {
  background: #15803d !important;
}

.employee-toast.warning {
  background: #b45309 !important;
}

.employee-toast.danger {
  background: #b91c1c !important;
}

.employee-toast-detail {
  margin-top: 10px !important;
  padding: 10px 12px !important;
  border-radius: 14px !important;
  background: rgba(255, 255, 255, 0.16) !important;
  color: #ffffff !important;
}

.employee-toast-detail div {
  margin: 0 !important;
  font-size: 12.5px !important;
  line-height: 1.5 !important;
}

.employee-toast-detail div + div {
  margin-top: 4px !important;
}

.attendance-location-summary {
  margin-top: 14px;
  padding: 14px;
  border-radius: 22px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
}

.attendance-location-main {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.attendance-location-main > i {
  width: 42px;
  height: 42px;
  min-width: 42px;
  border-radius: 16px;
  background: #eff6ff;
  color: #2563eb;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 23px;
}

.attendance-location-main small,
.attendance-location-grid small {
  display: block;
  color: #64748b;
  font-size: 11px;
  font-weight: 800;
  margin-bottom: 3px;
}

.attendance-location-main strong {
  display: block;
  color: #0f172a;
  font-size: 13px;
  font-weight: 950;
}

.attendance-location-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
}

.attendance-location-grid > div {
  padding: 11px;
  border-radius: 17px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
}

.attendance-location-grid strong {
  display: block;
  margin-top: 5px;
  color: #0f172a;
  font-size: 13px;
  font-weight: 950;
}

.attendance-location-badge {
  display: inline-flex;
  align-items: center;
  min-height: 23px;
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 10.5px;
  font-weight: 950;
}

.attendance-location-badge.success,
.attendance-history-location b.success {
  color: #15803d;
  background: #dcfce7;
}

.attendance-location-badge.danger,
.attendance-history-location b.danger {
  color: #b91c1c;
  background: #fee2e2;
}

.attendance-location-badge.secondary,
.attendance-history-location b.secondary {
  color: #475569;
  background: #f1f5f9;
}

.attendance-history-location {
  margin-top: 11px;
  padding: 11px;
  border-radius: 17px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
}

.attendance-history-location-title {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #0f172a;
  font-size: 12px;
  font-weight: 950;
  margin-bottom: 8px;
}

.attendance-history-location-title i {
  color: #2563eb;
  font-size: 16px;
}

.attendance-history-location-grid {
  display: grid;
  gap: 6px;
}

.attendance-history-location-grid span {
  color: #64748b;
  font-size: 11.5px;
  font-weight: 800;
}

.attendance-history-location b {
  display: inline-flex;
  align-items: center;
  padding: 2px 7px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 950;
}

@media (max-width: 380px) {
  .attendance-location-grid {
    grid-template-columns: 1fr;
  }
}

.employee-swal-popup {
  width: min(92vw, 420px) !important;
  border-radius: 28px !important;
  padding: 26px 22px 22px !important;
  box-shadow: 0 28px 80px rgba(15, 23, 42, 0.28) !important;
  font-family: "Plus Jakarta Sans", sans-serif !important;
}

.employee-swal-title {
  font-size: 21px !important;
  font-weight: 900 !important;
  color: #111827 !important;
  letter-spacing: -0.04em !important;
}

.employee-swal-html {
  margin-top: 8px !important;
  font-size: 14px !important;
  color: #4b5563 !important;
  line-height: 1.65 !important;
}

.employee-swal-message {
  font-weight: 600;
  color: #374151;
}

.employee-swal-detail {
  margin-top: 14px;
  padding: 14px;
  border-radius: 18px;
  background: #f8fafc;
  border: 1px solid #e5e7eb;
  text-align: left;
}

.employee-swal-detail div {
  margin-bottom: 6px;
  color: #475569;
}

.employee-swal-detail div:last-child {
  margin-bottom: 0;
}

.employee-swal-button {
  border-radius: 999px !important;
  padding: 11px 28px !important;
  font-weight: 800 !important;
  box-shadow: 0 12px 28px rgba(37, 99, 235, 0.22) !important;
}

.swal2-icon {
  margin-top: 10px !important;
}

/* ========================================================================
   17. EMPLOYEE PWA DESIGN SYSTEM V2
   Shared mobile-first components for all NEW employee pages.
   Existing legacy/module classes above are intentionally preserved.
   ======================================================================== */

:root {
  --emp-space-1: 4px;
  --emp-space-2: 8px;
  --emp-space-3: 12px;
  --emp-space-4: 16px;
  --emp-space-5: 20px;
  --emp-space-6: 24px;
  --emp-space-7: 28px;
  --emp-space-8: 32px;

  --emp-content-x: 16px;
  --emp-page-max: 560px;
  --emp-touch-target: 44px;

  --emp-shadow-card: 0 12px 30px rgba(15, 23, 42, 0.055);
  --emp-shadow-floating: 0 20px 50px rgba(15, 23, 42, 0.16);

  --emp-surface-soft: rgba(255, 255, 255, 0.94);
  --emp-surface-solid: #ffffff;

  --emp-focus-ring: 0 0 0 4px rgba(37, 99, 235, 0.12);
}

/* Page shell ------------------------------------------------------------- */

.employee-page {
  width: 100%;
  max-width: var(--emp-page-max);
  min-height: 100vh;
  margin: 0 auto;
  position: relative;
}

.employee-page-content {
  padding: 8px var(--emp-content-x) 28px;
}

.employee-page-content > :first-child {
  margin-top: 0;
}

.employee-page-content > :last-child {
  margin-bottom: 0;
}

/* Generic page topbar ---------------------------------------------------- */

.employee-page-topbar {
  min-height: 52px;
  padding: calc(14px + env(safe-area-inset-top)) var(--emp-content-x) 10px;
  display: grid;
  grid-template-columns: var(--emp-touch-target) minmax(0, 1fr) var(
      --emp-touch-target
    );
  gap: 10px;
  align-items: center;
}

.employee-page-topbar__title {
  min-width: 0;
  margin: 0;
  text-align: center;
  color: var(--emp-navy);
  font-size: 15px;
  font-weight: 950;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.employee-page-topbar__button {
  width: var(--emp-touch-target);
  height: var(--emp-touch-target);
  border: 1px solid var(--emp-glass-border);
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.9);
  color: var(--emp-navy);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-size: 21px;
  box-shadow: var(--emp-shadow-sm);
  backdrop-filter: blur(14px);
  transition:
    transform var(--emp-transition),
    color var(--emp-transition),
    box-shadow var(--emp-transition);
}

.employee-page-topbar__button:hover,
.employee-page-topbar__button:focus-visible {
  color: var(--emp-primary-2);
  box-shadow: var(--emp-shadow-md);
  transform: translateY(-1px);
}

.employee-page-topbar__button:active {
  transform: scale(0.96);
}

/* Generic hero ----------------------------------------------------------- */

.employee-page-hero {
  position: relative;
  overflow: hidden;
  margin: 0;
  padding: 22px;
  border-radius: var(--emp-radius-xl);
  color: #fff;
  background:
    radial-gradient(
      circle at 88% 18%,
      rgba(255, 255, 255, 0.22),
      transparent 30%
    ),
    linear-gradient(135deg, #0f172a 0%, #1e3a8a 48%, #2563eb 100%);
  box-shadow: var(--emp-shadow-blue);
}

.employee-page-hero::after {
  content: "";
  position: absolute;
  width: 170px;
  height: 170px;
  right: -54px;
  bottom: -68px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.employee-page-hero::before {
  content: "";
  position: absolute;
  width: 62px;
  height: 62px;
  right: 34px;
  top: 20px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.07);
  transform: rotate(12deg);
}

.employee-page-hero__content {
  position: relative;
  z-index: 2;
}

.employee-page-hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 9px;
  padding: 6px 10px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 10.5px;
  font-weight: 950;
  backdrop-filter: blur(10px);
}

.employee-page-hero h1,
.employee-page-hero h2,
.employee-page-hero h3 {
  position: relative;
  z-index: 2;
  margin: 0;
  color: #fff;
  font-size: clamp(22px, 6vw, 27px);
  line-height: 1.17;
  letter-spacing: -0.035em;
  font-weight: 950;
}

.employee-page-hero p {
  position: relative;
  z-index: 2;
  max-width: 430px;
  margin: 8px 0 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: 12.5px;
  line-height: 1.6;
  font-weight: 650;
}

.employee-page-hero__meta {
  position: relative;
  z-index: 2;
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
  margin-top: 14px;
}

.employee-page-hero__pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  max-width: 100%;
  padding: 7px 10px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 10.5px;
  font-weight: 900;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  backdrop-filter: blur(10px);
}

/* Generic section heading ------------------------------------------------ */

.employee-section {
  margin-top: 24px;
}

.employee-section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  margin: 22px 0 12px;
}

.employee-section-heading__copy {
  min-width: 0;
}

.employee-section-heading h4,
.employee-section-heading h5 {
  margin: 0;
  color: var(--emp-navy);
  font-size: 16.5px;
  line-height: 1.25;
  font-weight: 950;
  letter-spacing: -0.02em;
}

.employee-section-heading p,
.employee-section-heading small {
  display: block;
  margin: 4px 0 0;
  color: var(--emp-muted);
  font-size: 11.5px;
  line-height: 1.45;
  font-weight: 700;
}

.employee-section-link {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 32px;
  color: var(--emp-primary-2);
  text-decoration: none;
  font-size: 11px;
  font-weight: 950;
}

/* Generic card / panel --------------------------------------------------- */

.employee-panel,
.employee-list-card,
.employee-filter-card,
.employee-empty-state,
.employee-detail-card,
.employee-action-card {
  background: var(--emp-surface-soft);
  border: 1px solid var(--emp-glass-border);
  box-shadow: var(--emp-shadow-card);
  backdrop-filter: blur(16px);
}

.employee-panel,
.employee-filter-card,
.employee-detail-card,
.employee-action-card {
  border: 1px solid var(--emp-border);
  border-radius: 24px;
  padding: 16px;
}

.employee-list {
  display: grid;
  gap: 11px;
}

.employee-list-card {
  display: block;
  padding: 15px;
  border-radius: 22px;
  color: var(--emp-navy);
  text-decoration: none;
  transition:
    transform var(--emp-transition),
    box-shadow var(--emp-transition),
    border-color var(--emp-transition);
}

.employee-list-card:hover,
.employee-list-card:focus-visible {
  color: var(--emp-navy);
  border-color: #bfdbfe;
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.08);
  transform: translateY(-1px);
}

.employee-list-card:active {
  transform: scale(0.992);
}

.employee-list-card__top {
  display: flex;
  align-items: flex-start;
  gap: 11px;
}

.employee-list-card__icon,
.employee-info-icon {
  width: 44px;
  height: 44px;
  min-width: 44px;
  border-radius: 16px;
  background: var(--emp-primary-soft);
  color: var(--emp-primary-2);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
}

.employee-list-card__body {
  min-width: 0;
  flex: 1;
}

.employee-list-card__title {
  display: block;
  color: var(--emp-navy);
  font-size: 13.5px;
  line-height: 1.4;
  font-weight: 950;
}

.employee-list-card__subtitle {
  display: block;
  margin-top: 3px;
  color: var(--emp-muted);
  font-size: 11px;
  line-height: 1.4;
  font-weight: 700;
}

.employee-list-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 7px 13px;
  margin-top: 12px;
  color: var(--emp-muted);
  font-size: 10.5px;
  line-height: 1.4;
  font-weight: 750;
}

.employee-list-card__meta span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.employee-list-card__chevron {
  flex: 0 0 auto;
  color: var(--emp-soft-muted);
  font-size: 21px;
}

/* Status badges ---------------------------------------------------------- */

.employee-status-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  max-width: 100%;
  padding: 6px 9px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 10px;
  line-height: 1;
  font-weight: 950;
  white-space: nowrap;
}

.employee-status-badge.primary,
.employee-status-badge.info {
  color: #1d4ed8;
  background: #dbeafe;
  border-color: #bfdbfe;
}

.employee-status-badge.success {
  color: #047857;
  background: #dcfce7;
  border-color: #bbf7d0;
}

.employee-status-badge.warning {
  color: #b45309;
  background: #fef3c7;
  border-color: #fde68a;
}

.employee-status-badge.danger {
  color: #b91c1c;
  background: #fee2e2;
  border-color: #fecaca;
}

.employee-status-badge.secondary,
.employee-status-badge.muted {
  color: #475569;
  background: #f1f5f9;
  border-color: #e2e8f0;
}

/* Summary cards ---------------------------------------------------------- */

.employee-summary-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 11px;
}

.employee-summary-card {
  min-width: 0;
  min-height: 108px;
  padding: 15px;
  border-radius: 21px;
  background: var(--emp-surface-soft);
  border: 1px solid var(--emp-glass-border);
  box-shadow: var(--emp-shadow-card);
  backdrop-filter: blur(16px);
}

.employee-summary-card__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}

.employee-summary-card__icon {
  width: 39px;
  height: 39px;
  min-width: 39px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--emp-primary-soft);
  color: var(--emp-primary-2);
  font-size: 20px;
}

.employee-summary-card__icon.success {
  color: #047857;
  background: var(--emp-green-soft);
}

.employee-summary-card__icon.warning {
  color: #b45309;
  background: var(--emp-amber-soft);
}

.employee-summary-card__icon.danger {
  color: #b91c1c;
  background: var(--emp-red-soft);
}

.employee-summary-card__icon.secondary {
  color: #475569;
  background: #f1f5f9;
}

.employee-summary-card small {
  display: block;
  color: var(--emp-muted);
  font-size: 10.75px;
  line-height: 1.35;
  font-weight: 850;
}

.employee-summary-card strong,
.employee-summary-card h4 {
  display: block;
  margin: 4px 0 0;
  color: var(--emp-navy);
  font-size: 23px;
  line-height: 1.15;
  letter-spacing: -0.04em;
  font-weight: 950;
}

.employee-summary-card__note {
  display: block;
  margin-top: 8px;
  color: var(--emp-muted);
  font-size: 10px;
  line-height: 1.4;
  font-weight: 700;
}

/* Tabs / filter chips ---------------------------------------------------- */

.employee-chip-scroll {
  display: flex;
  gap: 8px;
  margin: 0 calc(var(--emp-content-x) * -1);
  padding: 2px var(--emp-content-x);
  overflow-x: auto;
  scrollbar-width: none;
  scroll-snap-type: x proximity;
}

.employee-chip-scroll::-webkit-scrollbar {
  display: none;
}

.employee-filter-chip {
  min-height: 36px;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 12px;
  border: 1px solid var(--emp-border);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.86);
  color: var(--emp-muted);
  text-decoration: none;
  font-size: 11px;
  font-weight: 900;
  scroll-snap-align: start;
}

.employee-filter-chip.active {
  color: #fff;
  background: var(--emp-primary-2);
  border-color: var(--emp-primary-2);
  box-shadow: 0 9px 22px rgba(37, 99, 235, 0.2);
}

/* Forms / filters -------------------------------------------------------- */

.employee-form-grid {
  display: grid;
  gap: 11px;
}

.employee-form-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 10px;
}

.employee-field label {
  display: block;
  margin-bottom: 6px;
  color: var(--emp-slate);
  font-size: 11px;
  font-weight: 900;
}

.employee-control,
.employee-select,
.employee-textarea {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--emp-border);
  border-radius: 16px;
  outline: none;
  background: #fff;
  color: var(--emp-navy);
  font-size: 13px;
  font-weight: 750;
  transition:
    border-color var(--emp-transition),
    box-shadow var(--emp-transition),
    background var(--emp-transition);
}

.employee-control,
.employee-select {
  padding: 0 13px;
}

.employee-textarea {
  min-height: 104px;
  padding: 12px 13px;
  resize: vertical;
}

.employee-control:focus,
.employee-select:focus,
.employee-textarea:focus {
  border-color: #93c5fd;
  box-shadow: var(--emp-focus-ring);
}

.employee-control::placeholder,
.employee-textarea::placeholder {
  color: #94a3b8;
  font-weight: 650;
}

.employee-search {
  position: relative;

  width: 100%;

  display: flex;
  align-items: center;
}

.employee-search > i {
  position: absolute;

  left: 14px;
  top: 50%;

  transform: translateY(-50%);

  color: var(--emp-muted);

  font-size: 19px;

  pointer-events: none;

  z-index: 2;
}

.employee-search input {
  width: 100%;

  min-height: 48px;

  padding: 11px 14px 11px 43px;

  border: 1px solid var(--emp-border);
  border-radius: 16px;

  background: #fff;

  color: var(--emp-navy);

  font-family: inherit;
  font-size: 13px;
  font-weight: 700;

  outline: none;

  transition:
    border-color var(--emp-transition),
    box-shadow var(--emp-transition),
    background var(--emp-transition);
}

.employee-search input::placeholder {
  color: #94a3b8;
  font-weight: 650;
}

.employee-search input:focus {
  border-color: var(--emp-primary-2);

  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);

  background: #fff;
}

/* Buttons --------------------------------------------------------------- */

.employee-btn {
  min-height: var(--emp-touch-target);
  border: 1px solid transparent;
  border-radius: 16px;
  padding: 10px 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  text-align: center;
  text-decoration: none;
  font-size: 12.5px;
  font-weight: 950;
  transition:
    transform var(--emp-transition),
    box-shadow var(--emp-transition),
    background var(--emp-transition);
}

.employee-btn:active {
  transform: scale(0.985);
}

.employee-btn.primary {
  color: #fff;
  background: linear-gradient(135deg, #1d4ed8, #2563eb);
  box-shadow: 0 12px 26px rgba(37, 99, 235, 0.2);
}

.employee-btn.secondary {
  color: var(--emp-primary-2);
  background: var(--emp-primary-soft);
  border-color: #dbeafe;
}

.employee-btn.light {
  color: var(--emp-navy);
  background: #fff;
  border-color: var(--emp-border);
}

.employee-btn.success {
  color: #fff;
  background: linear-gradient(135deg, #15803d, #16a34a);
  box-shadow: 0 12px 26px rgba(22, 163, 74, 0.18);
}

.employee-btn.danger {
  color: #fff;
  background: linear-gradient(135deg, #b91c1c, #dc2626);
  box-shadow: 0 12px 26px rgba(220, 38, 38, 0.18);
}

.employee-btn.block {
  width: 100%;
}

.employee-btn.icon-only {
  width: var(--emp-touch-target);
  min-width: var(--emp-touch-target);
  padding-left: 0;
  padding-right: 0;
}

/* Progress --------------------------------------------------------------- */

.employee-progress {
  width: 100%;
  height: 7px;
  overflow: hidden;
  border-radius: 999px;
  background: #e2e8f0;
}

.employee-progress__bar {
  display: block;
  height: 100%;
  min-width: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, #2563eb, #38bdf8);
  transition: width 320ms ease;
}

.employee-progress__bar.success {
  background: linear-gradient(90deg, #16a34a, #4ade80);
}

.employee-progress__bar.warning {
  background: linear-gradient(90deg, #d97706, #fbbf24);
}

/* Empty state ------------------------------------------------------------ */

.employee-empty-state {
  padding: 28px 18px;
  border-style: dashed;
  border-color: #cbd5e1;
  border-radius: 24px;
  text-align: center;
  color: var(--emp-muted);
}

.employee-empty-state__icon {
  width: 58px;
  height: 58px;
  margin: 0 auto 12px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--emp-primary-soft);
  color: var(--emp-primary-2);
  font-size: 28px;
}

.employee-empty-state h5 {
  margin: 0;
  color: var(--emp-navy);
  font-size: 15px;
  font-weight: 950;
}

.employee-empty-state p {
  max-width: 320px;
  margin: 6px auto 0;
  color: var(--emp-muted);
  font-size: 11.5px;
  line-height: 1.55;
  font-weight: 700;
}

/* Generic information rows ---------------------------------------------- */

.employee-info-list {
  display: grid;
  gap: 0;
}

.employee-info-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 13px;
  padding: 12px 0;
  border-bottom: 1px solid #eef2f7;
}

.employee-info-row:first-child {
  padding-top: 0;
}

.employee-info-row:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.employee-info-row__label {
  color: var(--emp-muted);
  font-size: 11.5px;
  font-weight: 800;
}

.employee-info-row__value {
  min-width: 0;
  color: var(--emp-navy);
  font-size: 12.5px;
  line-height: 1.45;
  font-weight: 950;
  text-align: right;
  word-break: break-word;
}

/* Sticky mobile action --------------------------------------------------- */

.employee-sticky-action {
  position: sticky;
  bottom: calc(var(--emp-bottom-nav-h) + 22px + env(safe-area-inset-bottom));
  z-index: 50;
  margin-top: 18px;
  padding: 8px;
  border: 1px solid var(--emp-glass-border);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--emp-shadow-floating);
  backdrop-filter: blur(18px);
}

.employee-action-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
}

/* ========================================================================
   18. TRAINING / LEARNING CENTER
   Use these classes for:
   - karyawan/training/index
   - karyawan/training/jadwal
   - karyawan/training/detail
   - karyawan/training/uji_kompetensi
   - karyawan/training/riwayat
   ======================================================================== */

.training-page .employee-page-hero {
  background:
    radial-gradient(
      circle at 88% 18%,
      rgba(255, 255, 255, 0.24),
      transparent 30%
    ),
    linear-gradient(135deg, #172554 0%, #1d4ed8 52%, #38bdf8 100%);
}

.training-page .employee-page-hero::before {
  background: rgba(255, 255, 255, 0.09);
}

.training-summary-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 11px;
}

.training-menu-list,
.training-list,
.training-history-list,
.competency-list {
  display: grid;
  gap: 11px;
}

.training-card {
  display: block;
  padding: 15px;
  border: 1px solid var(--emp-glass-border);
  border-radius: 22px;
  background: var(--emp-surface-soft);
  color: var(--emp-navy);
  text-decoration: none;
  box-shadow: var(--emp-shadow-card);
  backdrop-filter: blur(16px);
  transition:
    transform var(--emp-transition),
    box-shadow var(--emp-transition),
    border-color var(--emp-transition);
}

.training-card:hover,
.training-card:focus-visible {
  color: var(--emp-navy);
  border-color: #bfdbfe;
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.08);
  transform: translateY(-1px);
}

.training-card:active {
  transform: scale(0.992);
}

.training-card__top {
  display: flex;
  align-items: flex-start;
  gap: 11px;
}

.training-card__icon {
  width: 45px;
  height: 45px;
  min-width: 45px;
  border-radius: 16px;
  background: var(--emp-primary-soft);
  color: var(--emp-primary-2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 23px;
}

.training-card__content {
  flex: 1;
  min-width: 0;
}

.training-card__title {
  display: block;
  color: var(--emp-navy);
  font-size: 13.5px;
  line-height: 1.4;
  font-weight: 950;
}

.training-card__code {
  display: block;
  margin-top: 3px;
  color: var(--emp-muted);
  font-size: 10.5px;
  font-weight: 750;
}

.training-card__description {
  margin: 10px 0 0;
  color: var(--emp-slate);
  font-size: 11.5px;
  line-height: 1.55;
  font-weight: 650;
}

.training-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 7px 13px;
  margin-top: 12px;
  color: var(--emp-muted);
  font-size: 10.5px;
  line-height: 1.4;
  font-weight: 750;
}

.training-card__meta span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.training-card__progress {
  margin-top: 13px;
}

.training-card__progress-label {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 6px;
  color: var(--emp-muted);
  font-size: 10px;
  font-weight: 850;
}

.training-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 9px;
  margin-top: 13px;
  padding-top: 12px;
  border-top: 1px solid #eef2f7;
}

/* Learning menu cards */

.training-menu-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--emp-glass-border);
  border-radius: 20px;
  background: var(--emp-surface-soft);
  color: var(--emp-navy);
  text-decoration: none;
  box-shadow: var(--emp-shadow-card);
  backdrop-filter: blur(16px);
  transition:
    transform var(--emp-transition),
    box-shadow var(--emp-transition);
}

.training-menu-card:hover,
.training-menu-card:focus-visible {
  color: var(--emp-primary-2);
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.08);
}

.training-menu-card:active {
  transform: scale(0.992);
}

.training-menu-card__icon {
  width: 44px;
  height: 44px;
  min-width: 44px;
  border-radius: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--emp-primary-soft);
  color: var(--emp-primary-2);
  font-size: 22px;
}

.training-menu-card__content {
  flex: 1;
  min-width: 0;
}

.training-menu-card__content strong {
  display: block;
  color: var(--emp-navy);
  font-size: 13px;
  font-weight: 950;
}

.training-menu-card__content small {
  display: block;
  margin-top: 2px;
  color: var(--emp-muted);
  font-size: 10.75px;
  line-height: 1.45;
  font-weight: 700;
}

.training-menu-card__arrow {
  color: var(--emp-soft-muted);
  font-size: 20px;
}

/* Training detail */

.training-detail-header {
  display: flex;
  align-items: flex-start;
  gap: 13px;
}

.training-detail-icon {
  width: 52px;
  height: 52px;
  min-width: 52px;
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--emp-primary-2);
  background: var(--emp-primary-soft);
  font-size: 27px;
}

.training-detail-title {
  min-width: 0;
  flex: 1;
}

.training-detail-title h4 {
  margin: 0;
  color: var(--emp-navy);
  font-size: 17px;
  line-height: 1.35;
  font-weight: 950;
}

.training-detail-title small {
  display: block;
  margin-top: 4px;
  color: var(--emp-muted);
  font-size: 11px;
  font-weight: 750;
}

.training-material-box {
  padding: 15px;
  border: 1px solid #dbeafe;
  border-radius: 20px;
  background: linear-gradient(180deg, #eff6ff, rgba(255, 255, 255, 0.96));
}

.training-material-box__top {
  display: flex;
  align-items: flex-start;
  gap: 11px;
}

.training-material-box__icon {
  width: 42px;
  height: 42px;
  min-width: 42px;
  border-radius: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--emp-primary-2);
  background: #fff;
  font-size: 21px;
  box-shadow: var(--emp-shadow-sm);
}

/* Competency */

.competency-card {
  padding: 15px;
  border-radius: 22px;
  background: var(--emp-surface-soft);
  border: 1px solid var(--emp-glass-border);
  box-shadow: var(--emp-shadow-card);
  backdrop-filter: blur(16px);
}

.competency-score {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
  margin-top: 13px;
}

.competency-score__item {
  padding: 11px;
  border-radius: 17px;
  background: var(--emp-bg);
  border: 1px solid var(--emp-border);
}

.competency-score__item small {
  display: block;
  color: var(--emp-muted);
  font-size: 10px;
  font-weight: 850;
}

.competency-score__item strong {
  display: block;
  margin-top: 3px;
  color: var(--emp-navy);
  font-size: 17px;
  font-weight: 950;
}

/* History */

.training-history-card {
  position: relative;
  padding: 15px 15px 15px 18px;
  border-radius: 22px;
  background: var(--emp-surface-soft);
  border: 1px solid var(--emp-glass-border);
  box-shadow: var(--emp-shadow-card);
  backdrop-filter: blur(16px);
}

.training-history-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 18px;
  bottom: 18px;
  width: 4px;
  border-radius: 0 999px 999px 0;
  background: var(--emp-primary-2);
}

.training-history-card.success::before {
  background: var(--emp-green);
}

.training-history-card.warning::before {
  background: var(--emp-amber);
}

.training-history-card.danger::before {
  background: var(--emp-red);
}

/* Deadline states */

.training-deadline {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 10.5px;
  font-weight: 850;
}

.training-deadline.normal {
  color: var(--emp-muted);
}

.training-deadline.warning {
  color: #b45309;
}

.training-deadline.danger {
  color: #b91c1c;
}

/* ========================================================================
   19. MOBILE RESPONSIVE / ACCESSIBILITY V2
   ======================================================================== */

@media (hover: hover) and (pointer: fine) {
  .employee-btn:hover {
    transform: translateY(-1px);
  }

  .employee-btn.primary:hover {
    color: #fff;
    box-shadow: 0 15px 30px rgba(37, 99, 235, 0.24);
  }
}

@media (max-width: 420px) {
  :root {
    --emp-content-x: 14px;
  }

  .employee-page-hero {
    padding: 20px;
    border-radius: 25px;
  }

  .employee-page-hero h1,
  .employee-page-hero h2,
  .employee-page-hero h3 {
    font-size: 23px;
  }

  .employee-panel,
  .employee-filter-card,
  .employee-detail-card,
  .employee-action-card {
    padding: 15px;
  }

  .employee-list-card,
  .training-card {
    padding: 14px;
  }
}

@media (max-width: 360px) {
  .employee-summary-grid,
  .training-summary-grid,
  .competency-score,
  .employee-action-grid {
    grid-template-columns: 1fr;
  }

  .employee-page-hero__pill {
    white-space: normal;
  }

  .employee-page-topbar {
    grid-template-columns: 42px minmax(0, 1fr) 42px;
  }
}

@media (min-width: 480px) {
  .employee-form-row.two-cols {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Safe area improvements for standalone PWA */
@media (display-mode: standalone) {
  body {
    padding-bottom: calc(var(--emp-safe-bottom) + env(safe-area-inset-bottom));
  }

  .bottom-nav {
    bottom: calc(12px + env(safe-area-inset-bottom));
  }
}

/* Keyboard accessibility */
.employee-btn:focus-visible,
.employee-filter-chip:focus-visible,
.employee-list-card:focus-visible,
.training-card:focus-visible,
.training-menu-card:focus-visible,
.bottom-nav a:focus-visible {
  outline: 0;
  box-shadow: var(--emp-focus-ring);
}

/* Prevent accidental horizontal overflow from long data */
.employee-list-card,
.training-card,
.training-menu-card,
.employee-panel,
.employee-detail-card,
.employee-filter-card {
  min-width: 0;
}

.employee-list-card *,
.training-card *,
.training-menu-card *,
.employee-panel *,
.employee-detail-card *,
.employee-filter-card * {
  min-width: 0;
}

/* Keep long identifiers, URLs and names readable */
.employee-break-word {
  overflow-wrap: anywhere;
  word-break: break-word;
}

/* Utility: visually hidden but accessible */
.employee-sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

/* Print: also hide sticky mobile controls */
@media print {
  .employee-page-topbar,
  .employee-sticky-action {
    display: none !important;
  }

  .employee-page-hero,
  .employee-panel,
  .employee-list-card,
  .training-card,
  .competency-card,
  .training-history-card {
    box-shadow: none !important;
    backdrop-filter: none !important;
  }
}

/* ============================================================
   17. EMPLOYEE FILE UPLOAD
   Reusable mobile-friendly file picker
============================================================ */

.employee-upload {
  width: 100%;
}

.employee-upload__input {
  position: absolute;

  width: 1px;
  height: 1px;

  padding: 0;
  margin: -1px;

  overflow: hidden;

  clip: rect(0, 0, 0, 0);
  white-space: nowrap;

  border: 0;
}

.employee-upload__box {
  width: 100%;
  min-height: 86px;

  margin: 0;
  padding: 13px;

  display: flex;
  align-items: center;

  gap: 12px;

  border: 1px dashed #cbd5e1;
  border-radius: 18px;

  background: linear-gradient(
    135deg,
    rgba(248, 250, 252, 0.98),
    rgba(255, 255, 255, 0.98)
  );

  cursor: pointer;

  transition:
    border-color var(--emp-transition),
    background var(--emp-transition),
    box-shadow var(--emp-transition),
    transform var(--emp-transition);
}

.employee-upload__box:hover {
  border-color: #93c5fd;
  background: #f8fbff;
}

.employee-upload__box:active {
  transform: scale(0.995);
}

.employee-upload__input:focus-visible + .employee-upload__box {
  border-color: var(--emp-primary-2);

  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
}

.employee-upload__icon {
  width: 44px;
  height: 44px;
  min-width: 44px;

  display: flex;
  align-items: center;
  justify-content: center;

  border-radius: 15px;

  background: var(--emp-primary-soft);
  color: var(--emp-primary-2);

  font-size: 22px;
}

.employee-upload__content {
  flex: 1;
  min-width: 0;

  display: flex;
  flex-direction: column;

  gap: 3px;
}

.employee-upload__content strong {
  color: var(--emp-navy);

  font-size: 13px;
  font-weight: 950;
  line-height: 1.3;
}

.employee-upload__content small {
  color: var(--emp-muted);

  font-size: 10.5px;
  font-weight: 700;
  line-height: 1.45;
}

.employee-upload__filename {
  max-width: 100%;

  margin-top: 2px;

  color: #64748b;

  font-size: 10.5px;
  font-weight: 850;

  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.employee-upload__action {
  flex: 0 0 auto;

  min-height: 34px;

  padding: 8px 11px;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  border-radius: 12px;

  background: var(--emp-primary-soft);
  color: var(--emp-primary-2);

  font-size: 11px;
  font-weight: 950;
}

.employee-upload.has-file .employee-upload__box {
  border-style: solid;
  border-color: #86efac;

  background: #f0fdf4;
}

.employee-upload.has-file .employee-upload__icon {
  background: var(--emp-green-soft);
  color: var(--emp-green);
}

.employee-upload.has-file .employee-upload__filename {
  color: #047857;
}

.employee-upload.has-file .employee-upload__action {
  background: #dcfce7;
  color: #047857;
}

@media (max-width: 380px) {
  .employee-upload__box {
    min-height: 80px;

    padding: 11px;

    gap: 10px;
  }

  .employee-upload__icon {
    width: 40px;
    height: 40px;
    min-width: 40px;

    border-radius: 13px;

    font-size: 20px;
  }

  .employee-upload__action {
    padding: 7px 9px;

    font-size: 10px;
  }
}

/* ========================================================================
   20. TRAINING DASHBOARD - COMPATIBILITY WITH CURRENT VIEW
   Target view:
   app/Views/karyawan/training/index.php

   View selectors covered:
   .header-card
   .hero-label
   .employee-chip
   .page-content
   .summary-top
   .learning-list
   .learning-card
   .learning-top
   .learning-icon
   .learning-main
   .learning-code
   .status-badge
   .learning-meta
   .progress-wrap
   .progress-info
   .training-progress
   .empty-card
   .empty-icon
   .section-heading
   .section-link
   .menu-list
   .menu-card
   .menu-left
   .menu-icon
   .menu-arrow
   ======================================================================== */

/* Page body -------------------------------------------------------------- */

.employee-app > .header-card {
  margin: 14px 16px 0;
}

.page-content {
  padding: 10px 16px 28px;
}

/* Hero / header ---------------------------------------------------------- */

.header-card {
  position: relative;
  overflow: hidden;
  padding: 22px;
  border-radius: var(--emp-radius-xl);
  color: #fff;
  background:
    radial-gradient(
      circle at 88% 18%,
      rgba(255, 255, 255, 0.22),
      transparent 30%
    ),
    linear-gradient(135deg, #172554 0%, #1d4ed8 52%, #38bdf8 100%);
  box-shadow: var(--emp-shadow-blue);
}

.header-card::before {
  content: "";
  position: absolute;
  right: 34px;
  top: 20px;
  width: 62px;
  height: 62px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.08);
  transform: rotate(12deg);
}

.header-card::after {
  content: "";
  position: absolute;
  right: -54px;
  bottom: -68px;
  width: 170px;
  height: 170px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.header-card > * {
  position: relative;
  z-index: 2;
}

.hero-label {
  width: fit-content;
  max-width: 100%;
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 10px;
  padding: 6px 10px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 10.5px;
  font-weight: 950;
  white-space: nowrap;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.hero-label i {
  font-size: 15px;
}

.header-card h1 {
  margin: 0;
  color: #fff;
  font-size: clamp(24px, 7vw, 29px);
  line-height: 1.15;
  letter-spacing: -0.045em;
  font-weight: 950;
}

.header-card > p {
  max-width: 430px;
  margin: 9px 0 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: 12.5px;
  line-height: 1.65;
  font-weight: 650;
}

.employee-chip {
  width: fit-content;
  max-width: 100%;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 14px;
  padding: 7px 10px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 10.5px;
  line-height: 1.25;
  font-weight: 900;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

/* Summary --------------------------------------------------------------- */

.page-content > .summary-grid {
  margin-top: 4px;
}

.summary-card {
  min-height: 112px;
}

.summary-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.summary-top > div:first-child {
  min-width: 0;
}

.summary-top .summary-icon {
  margin-bottom: 0;
}

.summary-icon.primary {
  background: var(--emp-primary-soft);
  color: var(--emp-primary-2);
}

.summary-icon.warning {
  background: var(--emp-amber-soft);
  color: #b45309;
}

.summary-icon.success {
  background: var(--emp-green-soft);
  color: #047857;
}

.summary-icon.muted {
  background: #f1f5f9;
  color: #64748b;
}

/* Section heading ------------------------------------------------------- */

.section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  margin: 24px 0 12px;
}

.section-heading > div {
  min-width: 0;
}

.section-heading h5 {
  margin: 0;
  color: var(--emp-navy);
  font-size: 16.5px;
  line-height: 1.25;
  font-weight: 950;
  letter-spacing: -0.02em;
}

.section-heading p {
  margin: 4px 0 0;
  color: var(--emp-muted);
  font-size: 11.5px;
  line-height: 1.45;
  font-weight: 700;
}

.section-link {
  flex: 0 0 auto;
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--emp-primary-2);
  text-decoration: none;
  font-size: 11px;
  font-weight: 950;
}

.section-link:hover,
.section-link:focus {
  color: var(--emp-primary);
}

/* Training active / competency cards ----------------------------------- */

.learning-list {
  display: grid;
  gap: 11px;
}

.learning-card {
  display: block;
  padding: 15px;
  border: 1px solid var(--emp-glass-border);
  border-radius: 22px;
  background: var(--emp-surface-soft);
  color: var(--emp-navy);
  text-decoration: none;
  box-shadow: var(--emp-shadow-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition:
    transform var(--emp-transition),
    box-shadow var(--emp-transition),
    border-color var(--emp-transition);
}

.learning-card:hover,
.learning-card:focus-visible {
  color: var(--emp-navy);
  border-color: #bfdbfe;
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.08);
  transform: translateY(-1px);
}

.learning-card:active {
  transform: scale(0.992);
}

.learning-top {
  display: flex;
  align-items: flex-start;
  gap: 11px;
}

.learning-icon {
  width: 45px;
  height: 45px;
  min-width: 45px;
  border-radius: 16px;
  background: var(--emp-primary-soft);
  color: var(--emp-primary-2);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 23px;
}

.learning-main {
  flex: 1;
  min-width: 0;
}

.learning-main strong {
  display: block;
  color: var(--emp-navy);
  font-size: 13.5px;
  line-height: 1.4;
  font-weight: 950;
  overflow-wrap: anywhere;
}

.learning-code {
  display: block;
  margin-top: 3px;
  color: var(--emp-muted);
  font-size: 10.5px;
  line-height: 1.35;
  font-weight: 750;
}

.status-badge {
  flex: 0 0 auto;
  max-width: 42%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 9px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 10px;
  line-height: 1;
  font-weight: 950;
  white-space: nowrap;
}

.status-badge.status-berjalan {
  color: #1d4ed8;
  background: #dbeafe;
  border-color: #bfdbfe;
}

.status-badge.status-belum {
  color: #475569;
  background: #f1f5f9;
  border-color: #e2e8f0;
}

.status-badge.status-terjadwal {
  color: #b45309;
  background: #fef3c7;
  border-color: #fde68a;
}

.learning-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 7px 13px;
  margin-top: 12px;
  color: var(--emp-muted);
  font-size: 10.5px;
  line-height: 1.4;
  font-weight: 750;
}

.learning-meta span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.learning-meta i {
  color: var(--emp-primary-2);
  font-size: 15px;
}

.progress-wrap {
  margin-top: 13px;
}

.progress-info {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 6px;
  color: var(--emp-muted);
  font-size: 10px;
  line-height: 1.35;
  font-weight: 850;
}

.progress-info strong {
  color: var(--emp-navy);
  font-weight: 950;
}

.training-progress {
  width: 100%;
  height: 7px;
  overflow: hidden;
  border-radius: 999px;
  background: #e2e8f0;
}

.training-progress > span {
  display: block;
  height: 100%;
  min-width: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, #2563eb, #38bdf8);
  transition: width 320ms ease;
}

/* Empty state ----------------------------------------------------------- */

.empty-card {
  padding: 28px 18px;
  border: 1px dashed #cbd5e1;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.94);
  color: var(--emp-muted);
  text-align: center;
  box-shadow: var(--emp-shadow-card);
}

.empty-icon {
  width: 58px;
  height: 58px;
  margin: 0 auto 12px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--emp-green-soft);
  color: var(--emp-green);
  font-size: 29px;
}

.empty-card strong {
  display: block;
  color: var(--emp-navy);
  font-size: 15px;
  line-height: 1.35;
  font-weight: 950;
}

.empty-card p {
  max-width: 320px;
  margin: 6px auto 0;
  color: var(--emp-muted);
  font-size: 11.5px;
  line-height: 1.55;
  font-weight: 700;
}

/* Training menu --------------------------------------------------------- */

.menu-list {
  display: grid;
  gap: 10px;
}

.menu-card {
  min-height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--emp-glass-border);
  border-radius: 20px;
  background: var(--emp-surface-soft);
  color: var(--emp-navy);
  text-decoration: none;
  box-shadow: var(--emp-shadow-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition:
    transform var(--emp-transition),
    box-shadow var(--emp-transition),
    border-color var(--emp-transition);
}

.menu-card:hover,
.menu-card:focus-visible {
  color: var(--emp-primary-2);
  border-color: #bfdbfe;
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.08);
}

.menu-card:active {
  transform: scale(0.992);
}

.menu-left {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 12px;
}

.menu-left > div:last-child {
  min-width: 0;
}

.menu-icon {
  width: 44px;
  height: 44px;
  min-width: 44px;
  border-radius: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--emp-primary-soft);
  color: var(--emp-primary-2);
  font-size: 22px;
}

.menu-left strong {
  display: block;
  color: var(--emp-navy);
  font-size: 13px;
  line-height: 1.35;
  font-weight: 950;
}

.menu-left small {
  display: block;
  margin-top: 3px;
  color: var(--emp-muted);
  font-size: 10.75px;
  line-height: 1.45;
  font-weight: 700;
}

.menu-arrow {
  flex: 0 0 auto;
  color: var(--emp-soft-muted);
  font-size: 21px;
}

/* Touch / keyboard states ---------------------------------------------- */

.learning-card:focus-visible,
.menu-card:focus-visible,
.section-link:focus-visible {
  outline: 0;
  box-shadow: var(--emp-focus-ring);
}

/* Mobile refinements ---------------------------------------------------- */

@media (max-width: 420px) {
  .employee-app > .header-card {
    margin-left: 14px;
    margin-right: 14px;
  }

  .page-content {
    padding-left: 14px;
    padding-right: 14px;
  }

  .header-card {
    padding: 20px;
    border-radius: 25px;
  }

  .header-card h1 {
    font-size: 24px;
  }

  .learning-card {
    padding: 14px;
  }

  .status-badge {
    max-width: 44%;
  }
}

@media (max-width: 360px) {
  .summary-grid {
    grid-template-columns: 1fr;
  }

  .learning-top {
    flex-wrap: wrap;
  }

  .status-badge {
    max-width: 100%;
  }

  .employee-chip {
    white-space: normal;
  }
}
