:root {
  --primary: #0284c7;
  --primary-hover: #0369a1;
  --primary-light: #e0f2fe;
  --secondary: #64748b;
  --dark-sidebar: #0f172a;
  --dark-sidebar-hover: #1e293b;
  --accent-gold: #f59e0b;
  --accent-gold-light: #fef3c7;
  --success: #10b981;
  --success-light: #ecfdf5;
  --danger: #ef4444;
  --danger-light: #fef2f2;
  --bg-main: #f8fafc;
  --bg-card: #ffffff;
  --text-main: #1e293b;
  --text-muted: #64748b;
  --border: #e2e8f0;
  --sidebar-width: 200px;
  --sidebar-collapsed-width: 56px;
  --sidebar-transition: 0.25s ease;
  --radius: 8px;
  --shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

body {
  background-color: var(--bg-main);
  color: var(--text-main);
  min-height: 100vh;
}

/* ===== Top Navigation Bar (legacy — disembunyikan, konten dipindah ke sidebar) ===== */
.pertamc-header {
  display: none;
  /* Navbar dipindah ke sidebar — header tidak lagi digunakan */
}

.pertamc-brand,
.brand-title,
.pertamc-nav-right,
.nav-shortcut-link {
  display: none;
}

.badge-env {
  display: inline-block;
  padding: 0.2rem 0.6rem;
  background-color: rgba(255, 255, 255, 0.08);
  border: 1px solid #334155;
  color: #94a3b8;
  font-size: 0.65rem;
  font-weight: 600;
  border-radius: 4px;
}

.badge-counter {
  background-color: var(--danger);
  color: #ffffff;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.1rem 0.45rem;
  border-radius: 9999px;
}

.user-identity-box {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding-left: 1rem;
  border-left: 1px solid var(--border);
}

.user-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background-color: var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.85rem;
}

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

.user-details .uname {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-main);
  line-height: 1.2;
}

.user-details .urole {
  font-size: 0.725rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* ===== App Layout ===== */
.app-layout {
  display: flex;
  min-height: 100vh;
  margin-left: var(--sidebar-width);
  transition: margin-left var(--sidebar-transition);
}

.app-layout.sidebar-collapsed {
  margin-left: var(--sidebar-collapsed-width);
}

/* ===== Fixed Sidebar Navigation ===== */
.pertamc-sidebar {
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  width: var(--sidebar-width);
  background-color: var(--dark-sidebar);
  color: #e2e8f0;
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  border-right: 1px solid #1e293b;
  z-index: 200;
  overflow: hidden;
  transition: width var(--sidebar-transition);
}

.pertamc-sidebar.sidebar-collapsed {
  width: var(--sidebar-collapsed-width);
}

.sidebar-mobile-brand {
  display: none;
}

/* ===== Sidebar Brand Toggle Header ===== */
.sidebar-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.55rem 0.75rem;
  border-bottom: 1px solid #1e293b;
  cursor: pointer;
  user-select: none;
  min-height: 75px;
  flex-shrink: 0;
  background: #000;
  transition: background 0.15s, min-height var(--sidebar-transition), padding var(--sidebar-transition);
  position: relative;
  overflow: hidden;
}

.sidebar-brand:hover {
  background: #1e293b;
}

.sidebar-expanded-logo,
.sidebar-collapsed-logo {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity var(--sidebar-transition), visibility 0s linear var(--sidebar-transition);
}

.sidebar-expanded-logo {
  inset: 0.4rem 0.75rem;
  flex-direction: column;
  gap: 0.25rem;
  opacity: 1;
  visibility: visible;
  transition: opacity var(--sidebar-transition), visibility 0s;
}

.sidebar-expanded-logo-image {
  display: block;
  width: 100%;
  height: 48px;
  object-fit: cover;
  object-position: center;
}

.sidebar-collapsed-logo {
  width: 42px;
  height: 42px;
  opacity: 0;
  visibility: hidden;
  overflow: hidden;
  transition: opacity var(--sidebar-transition), visibility 0s linear var(--sidebar-transition);
}

.sidebar-collapsed-logo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.sidebar-brand-text {
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow: hidden;
  white-space: nowrap;
  transition: opacity var(--sidebar-transition), max-width var(--sidebar-transition);
  max-width: 100%;
}

.sidebar-brand-title {
  font-size: 0.85rem;
  font-weight: 700;
  color: #f1f5f9;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.25;
}

.sidebar-brand-env {
  font-size: 0.65rem;
  color: #64748b;
  font-weight: 600;
  white-space: nowrap;
  margin-top: 2px;
}

/* ===== Sidebar Scrollable Menu ===== */
.sidebar-menu {
  padding: 0.75rem 0;
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
}

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

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

.sidebar-menu::-webkit-scrollbar-thumb {
  background: #334155;
  border-radius: 2px;
}

.menu-group-header {
  padding: 0.75rem 1.25rem 0.35rem;
  font-size: 0.725rem;
  font-weight: 700;
  text-transform: uppercase;
  color: #64748b;
  letter-spacing: 0.05em;
  white-space: nowrap;
  overflow: hidden;
  transition: opacity var(--sidebar-transition), max-height var(--sidebar-transition), padding var(--sidebar-transition);
}

.menu-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.65rem 1.25rem;
  color: #cbd5e1;
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  transition: all 0.15s ease;
  white-space: nowrap;
  overflow: hidden;
}

.menu-link-inner {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  overflow: hidden;
  flex: 1;
}

.menu-label {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: opacity var(--sidebar-transition);
}

.menu-chevron {
  font-size: 0.75rem;
  color: #94a3b8;
  flex-shrink: 0;
  transition: opacity var(--sidebar-transition);
}

.menu-link:hover {
  background-color: var(--dark-sidebar-hover);
  color: #ffffff;
}

.menu-link.active {
  background-color: var(--primary);
  color: #ffffff;
}

/* ===== Sidebar User Footer ===== */
.sidebar-user {
  padding: 0.75rem 1rem;
  border-top: 1px solid #1e293b;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-shrink: 0;
  background: #0a1120;
  overflow: hidden;
  transition: padding var(--sidebar-transition);
}

.sidebar-user-avatar {
  flex-shrink: 0;
  width: 32px !important;
  height: 32px !important;
  font-size: 0.8rem !important;
  border-radius: 50%;
  background-color: var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}

.sidebar-user-info {
  overflow: hidden;
  flex: 1;
  transition: opacity var(--sidebar-transition), max-width var(--sidebar-transition);
  max-width: 160px;
}

.sidebar-user-name {
  font-size: 0.8rem;
  font-weight: 600;
  color: #e2e8f0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sidebar-user-role {
  font-size: 0.68rem;
  color: #64748b;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 1px;
}

.sidebar-logout-form {
  margin: 0 0 0 auto;
  flex-shrink: 0;
  display: flex;
}

.sidebar-logout-btn {
  background: none;
  border: none;
  color: #64748b;
  cursor: pointer;
  padding: 5px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.15s, background 0.15s;
  flex-shrink: 0;
}

.sidebar-logout-btn:hover {
  color: var(--danger);
  background: rgba(239, 68, 68, 0.08);
}

/* ===== COLLAPSED STATE ===== */

/*
 * Fase 1 — Preload (sebelum JS aktif):
 * Inline script di <head> set class ini ke <html> langsung dari localStorage
 * agar sidebar tidak flash mengembang dulu saat navigasi antar halaman.
 * transition: none agar tidak ada animasi saat restore state awal.
 */
html.sidebar-preload .pertamc-sidebar {
  width: var(--sidebar-collapsed-width);
  transition: none;
}

html.sidebar-preload .sidebar-brand {
  min-height: 56px;
  padding: 0;
  transition: none;
}

html.sidebar-preload .app-layout {
  margin-left: var(--sidebar-collapsed-width);
  transition: none;
}

html.sidebar-preload .sidebar-expanded-logo {
  opacity: 0;
  visibility: hidden;
  transition: none;
}

html.sidebar-preload .sidebar-collapsed-logo {
  opacity: 1;
  visibility: visible;
  transition: none;
}

html.sidebar-preload .sidebar-brand-text {
  opacity: 0;
  max-width: 0;
  overflow: hidden;
}

html.sidebar-preload .menu-group-header {
  opacity: 0;
  max-height: 0;
  padding: 0;
  overflow: hidden;
}

html.sidebar-preload .menu-label {
  display: none;
}

html.sidebar-preload .menu-chevron {
  display: none;
}

html.sidebar-preload .menu-link {
  padding: 0.85rem 0;
  justify-content: center;
  overflow: hidden;
}

html.sidebar-preload .menu-link-inner {
  flex: 0 0 16px;
  width: 16px;
  justify-content: center;
  gap: 0;
}

html.sidebar-preload .sidebar-user {
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 0.65rem 0;
  gap: 0.45rem;
}

html.sidebar-preload .sidebar-user-avatar {
  width: 28px !important;
  height: 28px !important;
  font-size: 0.75rem !important;
}

html.sidebar-preload .sidebar-user-info {
  display: none;
}

html.sidebar-preload .sidebar-logout-form {
  margin: 0;
  width: 100%;
  display: flex;
  justify-content: center;
}

html.sidebar-preload .sidebar-logout-btn {
  display: flex;
  width: 30px;
  height: 30px;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
}

.pertamc-sidebar.sidebar-collapsed .sidebar-brand-text {
  opacity: 0;
  max-width: 0;
  overflow: hidden;
}

.pertamc-sidebar.sidebar-collapsed .sidebar-brand {
  min-height: 56px;
  padding: 0;
}

.pertamc-sidebar.sidebar-collapsed .sidebar-expanded-logo {
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--sidebar-transition), visibility 0s linear var(--sidebar-transition);
}

.pertamc-sidebar.sidebar-collapsed .sidebar-collapsed-logo {
  opacity: 1;
  visibility: visible;
  transition: opacity var(--sidebar-transition), visibility 0s;
}

.pertamc-sidebar.sidebar-collapsed .menu-group-header {
  opacity: 0;
  max-height: 0;
  padding: 0;
  overflow: hidden;
  pointer-events: none;
}

/* Sembunyikan label & chevron */
.pertamc-sidebar.sidebar-collapsed .menu-label {
  display: none;
}

.pertamc-sidebar.sidebar-collapsed .menu-chevron {
  display: none;
}

/* Menu link: padding simetris, ikon di tengah */
.pertamc-sidebar.sidebar-collapsed .menu-link {
  padding: 0.85rem 0;
  justify-content: center;
  overflow: hidden;
}

/* Inner: lebar persis ikon (16px), tidak auto agar teks panjang
   tidak mendorong layout — ikon selalu terpusat di kolom 56px */
.pertamc-sidebar.sidebar-collapsed .menu-link-inner {
  flex: 0 0 16px;
  width: 16px;
  justify-content: center;
  gap: 0;
  overflow: visible;
}

/* Pastikan SVG tidak tertutup */
.pertamc-sidebar.sidebar-collapsed .menu-link-inner svg {
  display: block;
  flex-shrink: 0;
}

/* User footer saat collapsed */
.pertamc-sidebar.sidebar-collapsed .sidebar-user {
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 0.65rem 0;
  gap: 0.45rem;
}

.pertamc-sidebar.sidebar-collapsed .sidebar-user-avatar {
  width: 28px !important;
  height: 28px !important;
  font-size: 0.75rem !important;
}

.pertamc-sidebar.sidebar-collapsed .sidebar-user-info {
  display: none;
}

.pertamc-sidebar.sidebar-collapsed .sidebar-logout-form {
  margin: 0;
  width: 100%;
  display: flex;
  justify-content: center;
}

.pertamc-sidebar.sidebar-collapsed .sidebar-logout-btn {
  display: flex;
  width: 30px;
  height: 30px;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  color: #94a3b8;
}

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


/* ===== Main Workspace ===== */
.pertamc-workspace {
  flex: 1;
  padding: 1.75rem 2rem;
  overflow-y: auto;
  min-height: 100vh;
  background-color: #f1f5f9;
}

/* Page Headers */
.workspace-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}

.workspace-title {
  font-size: 1.45rem;
  font-weight: 700;
  color: #0f172a;
}

.workspace-subtitle {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 0.2rem;
}

.workspace-header-icon,
.inbox-header-icon,
.account-header-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  color: #38bdf8;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 6px -1px rgba(15, 23, 42, 0.15);
  flex-shrink: 0;
}

.dashboard-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-left: 0.5rem;
  padding: 0.15rem 0.55rem;
  background: #f0fdf4;
  color: #166534;
  border: 1px solid #bbf7d0;
  border-radius: 9999px;
  font-size: 0.72rem;
  font-weight: 600;
  vertical-align: middle;
}

.dashboard-status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #22c55e;
}

.workspace-header .dashboard-period-filter,
.workspace-header .timesheet-header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.workspace-header .dashboard-period-filter {
  flex: 0 0 auto;
  justify-content: flex-end;
}

.workspace-header .dashboard-period-filter form,
.workspace-header .timesheet-header-actions form {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0;
  padding: 0;
  background: transparent;
  backdrop-filter: none;
}

.workspace-header .dashboard-period-filter form {
  width: auto;
  flex-wrap: nowrap;
}

.workspace-header .dashboard-period-filter label,
.workspace-header .timesheet-header-actions label {
  display: inline-block;
  margin: 0;
  color: var(--text-muted);
  font-size: 0.825rem;
  font-weight: 600;
  white-space: nowrap;
}

.workspace-header .dashboard-period-filter .form-select,
.workspace-header .timesheet-header-actions .form-select {
  min-width: 180px;
  height: 38px;
  font-size: 0.85rem;
  border-radius: 8px;
  border: 1px solid #cbd5e1;
  background-color: #ffffff;
  color: #0f172a;
}

/* Modul Manajemen Timesheet - Banner Header Standar Portal */
.timesheet-office-header {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: 1.25rem;
  padding: 1.35rem 1.5rem;
  overflow: hidden;
  border-radius: 16px;
  background: linear-gradient(135deg, #0f172a 0%, #075985 58%, #0284c7 100%);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.16);
  color: #ffffff;
}

.timesheet-office-header::after {
  content: "";
  position: absolute;
  width: 220px;
  height: 220px;
  right: -85px;
  top: -145px;
  border-radius: 50%;
  background: rgb(255 255 255 / 0.08);
  pointer-events: none;
}

.timesheet-office-heading {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  min-width: 0;
  flex: 1 1 auto;
}

.timesheet-office-heading>div:last-child {
  min-width: 0;
  flex: 1 1 auto;
}

.timesheet-office-icon {
  display: inline-flex;
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgb(255 255 255 / 0.18);
  border-radius: 11px;
  background: rgb(255 255 255 / 0.12);
  color: #38bdf8;
  flex-shrink: 0;
}

.timesheet-office-eyebrow {
  display: block;
  margin-bottom: 0.25rem;
  color: #bae6fd;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.timesheet-office-header .workspace-title {
  margin: 0;
  font-size: clamp(1.25rem, 2.5vw, 1.75rem);
  font-weight: 700;
  line-height: 1.25;
  color: #ffffff;
  overflow-wrap: anywhere;
}

.timesheet-office-header .workspace-subtitle {
  max-width: 680px;
  margin-top: 0.35rem;
  margin-bottom: 0;
  color: #e0f2fe;
  font-size: 0.85rem;
  line-height: 1.45;
}

.timesheet-header-actions {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.85rem;
  flex-wrap: wrap;
  flex: 0 0 auto;
}

.timesheet-header-actions form {
  margin: 0;
}

.timesheet-header-actions>form {
  padding: 0.65rem 0.85rem;
  border-radius: 12px;
  background: rgb(255 255 255 / 0.1);
  backdrop-filter: blur(8px);
  flex-shrink: 0;
}

.timesheet-header-actions label {
  display: block;
  margin-bottom: 0.35rem;
  color: #bae6fd;
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1.2;
}

.timesheet-header-actions .form-select {
  min-width: 180px;
  width: 100%;
  height: 38px;
  margin: 0;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 500;
  background-color: #ffffff;
  color: #0f172a;
  border: 1px solid rgba(255, 255, 255, 0.3);
  transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}

.timesheet-header-actions .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  height: 42px;
  padding: 0 1.15rem;
  font-size: 0.85rem;
  font-weight: 600;
  border-radius: 10px;
  background: #0284c7;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.25);
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.2);
  white-space: nowrap;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}

.timesheet-header-actions .btn:hover {
  transform: translateY(-1px);
  background: #0369a1;
  border-color: rgba(255, 255, 255, 0.4);
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.3);
}

.timesheet-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.timesheet-metric-card {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-height: 76px;
  padding: 0.85rem 1rem;
  border: 1px solid #dbe3ec;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 4px 14px rgb(15 23 42 / 0.05);
}

.timesheet-metric-icon {
  display: inline-flex;
  flex: 0 0 38px;
  width: 38px;
  height: 38px;
  align-items: center;
  justify-content: center;
  border: 1px solid #cbd5e1;
  border-radius: 5px;
  background: #f1f5f9;
  color: #0f4c81;
}

.timesheet-metric-card strong,
.timesheet-metric-card span {
  display: block;
}

.timesheet-metric-card strong {
  color: #0f172a;
  font-size: 1.35rem;
  line-height: 1.1;
}

.timesheet-metric-card div>span {
  margin-top: 0.25rem;
  color: var(--text-muted);
  font-size: 0.72rem;
  font-weight: 600;
}

.timesheet-table-caption {
  margin-top: 0.25rem;
  color: var(--text-muted);
  font-size: 0.75rem;
}

.dashboard-period-filter {
  display: flex;
  justify-content: flex-end;
}

.dashboard-period-filter form {
  width: 220px;
  margin: 0;
}

.dashboard-period-filter .form-select {
  min-width: 180px;
  margin: 0;
}

.dashboard-welcome-banner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: 1.25rem;
  padding: 1.35rem 1.5rem;
  overflow: hidden;
  border-radius: 16px;
  background: linear-gradient(135deg, #0f172a 0%, #075985 58%, #0284c7 100%);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.16);
  color: #ffffff;
}

.dashboard-welcome-banner::after {
  content: "";
  position: absolute;
  width: 220px;
  height: 220px;
  right: -85px;
  top: -145px;
  border-radius: 50%;
  background: rgb(255 255 255 / 0.08);
  pointer-events: none;
}

.dashboard-welcome-copy {
  position: relative;
  z-index: 1;
  min-width: 0;
  flex: 1 1 auto;
}

.dashboard-welcome-eyebrow {
  display: block;
  margin-bottom: 0.25rem;
  color: #bae6fd;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.dashboard-welcome-copy h1 {
  margin: 0;
  font-size: clamp(1.25rem, 2.5vw, 1.75rem);
  line-height: 1.25;
  color: #ffffff;
  font-weight: 700;
  overflow-wrap: anywhere;
}

.dashboard-welcome-copy h1 strong {
  font-weight: 800;
}

.dashboard-welcome-copy>p:not(.dashboard-welcome-eyebrow) {
  max-width: 680px;
  margin-top: 0.35rem;
  margin-bottom: 0;
  color: #e0f2fe;
  font-size: 0.85rem;
  line-height: 1.45;
}

.dashboard-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 0.75rem;
  padding: 0.3rem 0.65rem;
  border: 1px solid rgb(255 255 255 / 0.18);
  border-radius: 999px;
  background: rgb(255 255 255 / 0.1);
  font-size: 0.72rem;
  font-weight: 700;
  color: #ffffff;
}

.dashboard-status-pill>span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #4ade80;
  box-shadow: 0 0 0 3px rgb(74 222 128 / 0.16);
}

.dashboard-welcome-banner .dashboard-period-filter {
  position: relative;
  z-index: 1;
  flex: 0 0 auto;
  min-width: 200px;
  padding: 0.65rem 0.85rem;
  border-radius: 12px;
  background: rgb(255 255 255 / 0.1);
  backdrop-filter: blur(8px);
  flex-shrink: 0;
}

.dashboard-period-filter label {
  display: block;
  margin-bottom: 0.35rem;
  color: #bae6fd;
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1.2;
}

.dashboard-welcome-banner .dashboard-period-filter .form-select {
  min-width: 180px;
  width: 100%;
  height: 38px;
  margin: 0;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 500;
  background-color: #ffffff;
  color: #0f172a;
  border: 1px solid rgba(255, 255, 255, 0.3);
  transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}

/* Tabs Navigation */
.pertamc-tabs {
  display: flex;
  border-bottom: 2px solid var(--border);
  margin-bottom: 1.5rem;
  gap: 0.5rem;
}

.tab-btn {
  padding: 0.75rem 1.25rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-muted);
  text-decoration: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.15s;
}

.tab-btn:hover {
  color: var(--primary);
}

.tab-btn.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
  background-color: rgba(2, 132, 199, 0.04);
  border-radius: 6px 6px 0 0;
}

.timesheet-general-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
  min-width: 0;
}

.timesheet-general-cards>.card {
  min-width: 0;
  margin-bottom: 0;
}

/* Cards */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-bottom: 1.5rem;
  overflow: hidden;
}

.card-header {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: #e2e8f0;
}

.card-title {
  font-size: 1rem;
  font-weight: 700;
  color: #0f172a;
}

.card-body {
  padding: 1.25rem;
}

/* Stat Grid */
.grid-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.stat-box {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.25rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  box-shadow: 0 8px 22px rgb(15 23 42 / 0.07);
}

.stat-icon {
  flex: 0 0 auto;
  border-radius: 12px;
}

.stat-note {
  margin-top: 0.25rem;
  color: var(--text-muted);
  font-size: 0.72rem;
}

.stat-icon {
  width: 46px;
  height: 46px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--primary-light);
  color: var(--primary);
}

.stat-val {
  font-size: 1.5rem;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.2;
}

.stat-lbl {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 500;
}

.stat-val-evidence {
  display: flex;
  align-items: baseline;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.stat-val-evidence .stat-evidence-count {
  font-size: 0.925rem;
  font-weight: 600;
  color: var(--success);
}

.stat-val-evidence .stat-evidence-count.is-empty {
  color: #d97706;
}

/* Forms */
.form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.25rem;
}

.form-group {
  margin-bottom: 1rem;
}

.form-label {
  display: block;
  font-size: 0.825rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
  color: #334155;
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 0.6rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 0.875rem;
  background-color: #ffffff;
  outline: none;
  transition: border-color 0.2s;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.15);
}

.form-input:disabled,
.form-select:disabled,
.form-textarea:disabled {
  background-color: #f1f5f9;
  cursor: not-allowed;
  color: #64748b;
}

.form-help {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.55rem 1rem;
  font-size: 0.85rem;
  font-weight: 600;
  border-radius: 6px;
  cursor: pointer;
  text-decoration: none;
  border: none;
  transition: all 0.15s;
}

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

.btn-primary:hover {
  background-color: var(--primary-hover);
}

.btn-primary:disabled {
  background-color: #94a3b8;
  cursor: not-allowed;
}

.btn-secondary {
  background-color: #f1f5f9;
  color: #1e293b;
  border: 1px solid var(--border);
}

.btn-secondary:hover {
  background-color: #e2e8f0;
}

.btn-success {
  background-color: var(--success);
  color: #ffffff;
}

.btn-success:hover {
  background-color: #059669;
}

.btn-danger {
  background-color: var(--danger);
  color: #ffffff;
}

.btn-danger:hover {
  background-color: #dc2626;
}

.btn-sm {
  padding: 0.35rem 0.65rem;
  font-size: 0.775rem;
}

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

#dailyEntriesTable {
  width: 100%;
}

.daily-entry-detail-backdrop {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: rgba(15, 23, 42, 0.65);
}

.daily-entry-detail-card {
  width: 100%;
  max-width: 560px;
  max-height: 90vh;
  overflow: auto;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  background: #ffffff;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.25);
}

.daily-entry-detail-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid #e2e8f0;
  background: #f8fafc;
}

.daily-entry-detail-header h2 {
  margin: 0;
  color: #0f172a;
  font-size: 1rem;
}

.daily-entry-detail-date {
  margin-top: 0.25rem;
  color: #64748b;
  font-size: 0.8rem;
}

.daily-entry-detail-close {
  border: 0;
  background: transparent;
  color: #64748b;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
}

.daily-entry-detail-body {
  display: grid;
  gap: 1rem;
  padding: 1rem 1.25rem;
}

.daily-entry-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
  margin: 0;
}

.daily-entry-detail-grid > div {
  min-width: 0;
  padding: 0.65rem;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #f8fafc;
}

.daily-entry-detail-grid dt,
.daily-entry-detail-label {
  margin-bottom: 0.25rem;
  color: #64748b;
  font-size: 0.72rem;
  font-weight: 700;
}

.daily-entry-detail-grid dd {
  margin: 0;
  color: #0f172a;
  font-size: 0.85rem;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}

.daily-entry-detail-wide {
  grid-column: 1 / -1;
}

.daily-entry-detail-files,
.daily-entry-detail-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem;
}

.daily-entry-detail-file {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 0.25rem;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  color: #0369a1;
  font-size: 0.8rem;
}

.daily-entry-detail-file img {
  display: block;
  width: 64px;
  height: 64px;
  object-fit: cover;
  border-radius: 4px;
}

.dashboard-activity-table {
  table-layout: fixed;
}

.dashboard-activity-table .dashboard-period-column {
  width: 16%;
}

.dashboard-activity-table th.dashboard-secondary-column,
.dashboard-activity-table td.dashboard-secondary-column {
  width: 18%;
}

.dashboard-activity-table .dashboard-duty-column {
  width: 12%;
}

.dashboard-activity-table .dashboard-status-column {
  width: 14%;
}

.dashboard-activity-table .dashboard-action-column {
  width: 160px;
}

.dashboard-activity-table th,
.dashboard-activity-table td {
  padding: 0.95rem 0.75rem;
}

.dashboard-sort-button {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
}

.dashboard-sort-button:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 3px;
  border-radius: 2px;
}

.dashboard-sort-indicator {
  display: inline-flex;
  flex-direction: column;
  color: #94a3b8;
  font-size: 0.62rem;
  line-height: 0.72;
}

.dashboard-sort-button.is-ascending [data-sort-up],
.dashboard-sort-button.is-descending [data-sort-down] {
  color: var(--primary);
}

.dashboard-activity-table tbody tr {
  height: 68px;
}

.dashboard-row-action {
  display: inline-flex;
  width: 34px;
  height: 34px;
  align-items: center;
  justify-content: center;
  border: 1px solid #bae6fd;
  border-radius: 10px;
  background: #f0f9ff;
  color: var(--primary);
  transition: transform 0.15s, background-color 0.15s;
}

.dashboard-row-action:hover {
  transform: translateX(2px);
  background: #e0f2fe;
  color: var(--primary-hover);
}

.dashboard-row-actions {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.dashboard-row-pdf-action {
  width: auto;
  min-width: 34px;
  gap: 0.35rem;
  padding: 0 0.55rem;
  font: inherit;
  font-size: 0.76rem;
  white-space: nowrap;
  cursor: pointer;
}

.dashboard-row-pdf-action:disabled {
  cursor: wait;
  opacity: 0.7;
  transform: none;
}

.badge-completed {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

.dashboard-empty-state {
  padding: 2rem;
  color: var(--text-muted);
  text-align: center;
}

.dashboard-empty-mobile-row {
  display: none;
}

.app-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.85rem;
}

.timesheet-period-table {
  width: 100%;
  table-layout: fixed;
  min-width: 980px;
}

.timesheet-col-range {
  width: 15%;
}

.timesheet-col-worker {
  width: 16%;
}

.timesheet-col-contract {
  width: 14%;
}

.timesheet-col-duty {
  width: 10%;
}

.timesheet-col-status {
  width: 11%;
}

.timesheet-col-processed {
  width: 13%;
}

.timesheet-col-actions {
  width: 21%;
  min-width: 185px;
}

.timesheet-period-range-column {
  width: 16%;
}

.timesheet-period-days-column {
  width: 11%;
}

.timesheet-period-status-column {
  width: 11%;
}

.timesheet-period-actions-column {
  width: 15%;
}

.timesheet-worker-name {
  font-weight: 600;
  color: #1e293b;
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.timesheet-worker-sub {
  font-size: 0.74rem;
  color: var(--text-muted);
  margin-top: 0.15rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.timesheet-contract-code {
  font-weight: 500;
  color: #1e293b;
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.timesheet-contract-customer {
  font-size: 0.74rem;
  color: var(--text-muted);
  margin-top: 0.15rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.timesheet-process-date {
  font-weight: 500;
  color: #1e293b;
  line-height: 1.25;
}

.timesheet-process-time {
  font-size: 0.74rem;
  color: var(--text-muted);
  margin-top: 0.15rem;
}

.timesheet-mobile-summary {
  display: none;
}

.timesheet-mobile-caption-hint {
  display: none;
}

/* Modal Informasi & Aksi Timesheet (Mobile Viewport) */
.timesheet-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(4px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  animation: timesheetFadeIn 0.2s ease-out;
}

.timesheet-modal-card {
  background: #ffffff;
  border-radius: 12px;
  width: 100%;
  max-width: 480px;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.25), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  border: 1px solid #e2e8f0;
  display: flex;
  flex-direction: column;
  animation: timesheetModalZoom 0.2s ease-out;
}

@keyframes timesheetFadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes timesheetModalZoom {
  from {
    transform: scale(0.96);
    opacity: 0;
  }

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

.timesheet-modal-header {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  color: #ffffff;
  padding: 1rem 1.25rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.timesheet-modal-header-left {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.timesheet-modal-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #38bdf8;
  flex-shrink: 0;
}

.timesheet-modal-title {
  margin: 0;
  font-size: 0.98rem;
  font-weight: 600;
  color: #ffffff;
}

.timesheet-modal-subtitle {
  margin: 0.15rem 0 0;
  font-size: 0.74rem;
  color: #94a3b8;
}

.timesheet-modal-close {
  background: transparent;
  border: none;
  color: #94a3b8;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  padding: 0.25rem;
  border-radius: 4px;
  transition: color 0.15s ease;
}

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

.timesheet-modal-body {
  padding: 1.15rem 1.25rem;
  background: #ffffff;
  overflow-y: auto;
  max-height: calc(85vh - 130px);
}

.timesheet-modal-status-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.65rem 0.85rem;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  margin-bottom: 0.85rem;
}

.timesheet-modal-status-label {
  font-size: 0.8rem;
  font-weight: 500;
  color: #475569;
}

.timesheet-modal-info-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.timesheet-modal-info-item {
  background: #ffffff;
  border: 1px solid #edf2f7;
  border-radius: 8px;
  padding: 0.65rem 0.85rem;
}

.timesheet-modal-info-label {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.025em;
  color: #64748b;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 0.25rem;
}

.timesheet-modal-info-label svg {
  color: #0284c7;
}

.timesheet-modal-info-value {
  font-size: 0.88rem;
  color: #1e293b;
}

.timesheet-modal-subtext {
  font-size: 0.75rem;
  color: #64748b;
  margin-top: 0.15rem;
}

.timesheet-modal-info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.timesheet-modal-footer {
  padding: 0.85rem 1.25rem;
  background: #f8fafc;
  border-top: 1px solid #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.timesheet-period-table th,
.timesheet-period-table td {
  padding: 0.75rem;
  border-right: 1px solid #edf1f5;
}

.timesheet-period-table th:last-child,
.timesheet-period-table td:last-child {
  border-right: none;
}

.timesheet-period-table th {
  background: #f8fafc;
  color: #334155;
  font-size: 0.72rem;
  letter-spacing: 0.025em;
  text-transform: uppercase;
}

.timesheet-workday-cell,
.dashboard-workday-cell {
  text-align: center;
  white-space: normal;
}

.timesheet-sort-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 0;
  border: 0;
  color: inherit;
  background: transparent;
  font: inherit;
  font-weight: 700;
  text-align: center;
  cursor: pointer;
}

.timesheet-sort-button:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 3px;
  border-radius: 2px;
}

.timesheet-sort-indicator {
  display: inline-flex;
  flex-direction: column;
  color: #94a3b8;
  font-size: 0.58rem;
  line-height: 0.72;
}

.timesheet-sort-button.is-ascending [data-sort-up],
.timesheet-sort-button.is-descending [data-sort-down] {
  color: var(--primary);
}

.timesheet-period-table tbody tr {
  border-bottom: 1px solid #e2e8f0;
  transition: background-color 0.15s ease, box-shadow 0.15s ease;
}

.timesheet-period-table tbody tr:hover {
  background: #f8fbfd;
  box-shadow: inset 3px 0 0 #0369a1;
}

.timesheet-period-actions {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 0.35rem;
}

.timesheet-period-actions .btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  font-size: 0.75rem;
  font-weight: 500;
  line-height: 1.25;
  white-space: nowrap;
  border-radius: 4px;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}

.timesheet-period-actions .btn:not(:disabled):hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgb(15 23 42 / 0.12);
}

.timesheet-period-actions .action-btn-editor {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

.timesheet-period-actions .action-btn-editor:hover {
  background: var(--primary-hover);
  border-color: var(--primary-hover);
  color: #fff;
}

.timesheet-period-actions .action-btn-print {
  background: #f8fafc;
  border-color: #cbd5e1;
  color: #334155;
}

.timesheet-period-actions .action-btn-print:hover {
  background: #f1f5f9;
  border-color: #94a3b8;
  color: #0f172a;
}

.timesheet-period-actions .action-btn-delete {
  background: #ef4444;
  border-color: #ef4444;
  color: #fff;
}

.timesheet-period-actions .action-btn-delete:hover {
  background: #dc2626;
  border-color: #dc2626;
  color: #fff;
}

.timesheet-period-actions .btn-locked {
  background: #f1f5f9;
  border-color: #cbd5e1;
  color: #94a3b8;
  cursor: not-allowed;
}

.timesheet-period-table .badge-draft {
  color: #334155;
  border-color: #94a3b8;
  background: #e2e8f0;
}

.timesheet-period-table .badge-completed {
  color: #fff;
  border-color: #166534;
  background: #166534;
}

.app-table th {
  background-color: #f8fafc;
  padding: 0.75rem 1rem;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--text-muted);
  font-size: 0.75rem;
  border-bottom: 1px solid var(--border);
}

.app-table td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--border);
  color: var(--text-main);
  vertical-align: middle;
}

.app-table tr:hover {
  background-color: #f8fafc;
}

/* Badges & Status */
.badge {
  display: inline-block;
  padding: 0.25rem 0.55rem;
  font-size: 0.725rem;
  font-weight: 700;
  border-radius: 9999px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.badge-draft {
  background-color: #f1f5f9;
  color: #475569;
  border: 1px solid #cbd5e1;
}

.badge-waiting,
.badge-admin-review {
  background-color: var(--accent-gold-light);
  color: #b45309;
  border: 1px solid #fde68a;
}

.badge-pm-approval {
  background-color: #e0f2fe;
  color: #0369a1;
  border: 1px solid #bae6fd;
}

.badge-completed {
  background-color: var(--success-light);
  color: #065f46;
  border: 1px solid #a7f3d0;
}

.badge-rejected {
  background-color: var(--danger-light);
  color: #991b1b;
  border: 1px solid #fecaca;
}

/* Photo Thumbnail & Evidence */
.evidence-gallery {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.evidence-thumb {
  width: 48px;
  height: 48px;
  border-radius: 4px;
  object-fit: cover;
  border: 1px solid var(--border);
  cursor: pointer;
  transition: transform 0.15s;
}

.evidence-thumb:hover {
  transform: scale(1.1);
}

/* Lock Banner */
.lock-banner {
  background-color: #fffbeb;
  border: 1px solid #fde68a;
  padding: 0.85rem 1.25rem;
  border-radius: 6px;
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: #92400e;
  font-size: 0.875rem;
}

/* Inline validation notices remain contextual; notifications use the modal below. */
.alert {
  padding: 0.85rem 1.25rem;
  border-radius: 6px;
  margin-bottom: 1.25rem;
  font-size: 0.875rem;
}

.alert-error {
  background-color: var(--danger-light);
  border: 1px solid #fecaca;
  color: #991b1b;
}

.alert-success {
  background-color: var(--success-light);
  border: 1px solid #a7f3d0;
  color: #065f46;
}

/* SweetAlert2 theme overrides to match the enterprise dashboard. */
.swal2-container.app-swal-container {
  z-index: 10000;
}

.swal2-popup.app-swal-popup {
  width: min(30rem, calc(100vw - 2rem));
  padding: 1.75rem;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  box-shadow: 0 24px 70px rgba(15, 23, 42, 0.28);
  font-family: inherit;
}

.app-swal-title {
  color: #0f172a !important;
  font-size: 1.2rem !important;
  font-weight: 700 !important;
}

.app-swal-message {
  color: #475569 !important;
  font-size: 0.925rem !important;
  line-height: 1.6 !important;
  white-space: pre-line;
}

.app-swal-actions {
  gap: 0.65rem;
}

.app-swal-confirm,
.app-swal-cancel {
  min-width: 5.5rem;
  margin: 0 !important;
}

.swal2-popup.app-swal-evidence-popup {
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr) auto;
  height: min(90vh, 900px);
  max-height: 90vh;
  padding: 1.25rem;
}

.app-swal-evidence-title {
  max-width: 100%;
  margin: 0 2.5rem 0.5rem !important;
  overflow-wrap: anywhere;
  font-size: 1rem !important;
}

.app-swal-evidence-container {
  display: flex !important;
  flex: 1;
  min-height: 0;
  max-height: none !important;
  margin: 0 !important;
  overflow: hidden !important;
}

.app-swal-evidence-content {
  display: flex;
  flex: 1;
  min-height: 0;
  flex-direction: column;
  width: 100%;
}

.app-swal-evidence-header {
  flex: 0 0 auto;
  padding: 0.35rem 0 0.75rem;
  color: #64748b;
  font-size: 0.825rem;
  text-align: left;
}

.app-swal-evidence-body {
  display: grid;
  flex: 1;
  min-height: 0;
  place-items: center;
  overflow: auto;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #f1f5f9;
}

.app-swal-evidence-image {
  display: block;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.app-swal-evidence-pdf {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 60vh;
  border: 0;
  background: #fff;
}

@media (max-width: 600px) {
  .swal2-popup.app-swal-evidence-popup {
    width: calc(100vw - 1rem) !important;
    height: 92vh;
    max-height: 92vh;
    padding: 0.75rem;
  }
}

@media (max-width: 767px) {

  #dailyEntriesTable {
    table-layout: fixed;
  }

  #dailyEntriesTable th:nth-child(2),
  #dailyEntriesTable td:nth-child(2),
  #dailyEntriesTable th:nth-child(3),
  #dailyEntriesTable td:nth-child(3),
  #dailyEntriesTable th:nth-child(4),
  #dailyEntriesTable td:nth-child(4),
  #dailyEntriesTable th:nth-child(5),
  #dailyEntriesTable td:nth-child(5),
  #dailyEntriesTable th:nth-child(6),
  #dailyEntriesTable td:nth-child(6) {
    display: none;
  }

  #dailyEntriesTable th:nth-child(1),
  #dailyEntriesTable td:nth-child(1) {
    width: 24%;
  }

  #dailyEntriesTable th:nth-child(7),
  #dailyEntriesTable td:nth-child(7) {
    width: 58%;
    overflow-wrap: anywhere;
  }

  #dailyEntriesTable .evidence-note-box {
    max-width: 100% !important;
  }

  #dailyEntriesTable th:nth-child(8),
  #dailyEntriesTable td:nth-child(8) {
    width: 18%;
  }

  #dailyEntriesTable tr[data-entry-date] {
    cursor: pointer;
  }

  #dailyEntriesTable .btn-manage-evidence {
    max-width: 100%;
    white-space: normal;
  }

  .daily-entry-detail-card {
    max-height: 92vh;
  }

  .daily-entry-detail-header,
  .daily-entry-detail-body {
    padding: 0.85rem;
  }

  .daily-entry-detail-grid {
    gap: 0.5rem;
  }

  .pertamc-sidebar,
  .pertamc-sidebar.sidebar-collapsed {
    top: 0;
    right: 0;
    left: 0;
    width: 100%;
    height: calc(60px + env(safe-area-inset-top));
    flex-direction: row;
    border-top: 0;
    border-bottom: 1px solid #1e293b;
    border-right: 0;
    padding: env(safe-area-inset-top) 0.4rem 0;
  }

  html.sidebar-preload .pertamc-sidebar {
    width: 100%;
  }

  .sidebar-mobile-brand {
    display: flex;
    flex: 0 0 48px;
    align-items: center;
    justify-content: center;
    height: 100%;
    margin-right: 0.25rem;
  }

  .sidebar-mobile-brand img {
    display: block;
    width: 40px;
    height: 40px;
    object-fit: contain;
  }

  .sidebar-brand {
    display: none;
  }

  .sidebar-menu {
    display: flex;
    align-items: center;
    min-width: 0;
    padding: 0;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none;
  }

  .sidebar-menu::-webkit-scrollbar {
    display: none;
  }

  .menu-group-header {
    display: none;
  }

  .menu-link,
  .pertamc-sidebar.sidebar-collapsed .menu-link {
    position: relative;
    flex: 0 0 44px;
    align-items: center;
    justify-content: center;
    gap: 0;
    height: 44px;
    padding: 0.25rem;
    overflow: visible;
  }

  .menu-link-inner,
  .pertamc-sidebar.sidebar-collapsed .menu-link-inner {
    flex: 0 0 auto;
    width: 24px;
    flex-direction: row;
    justify-content: center;
    gap: 0;
    overflow: visible;
  }

  .menu-link-inner svg {
    width: 21px;
    height: 21px;
    flex-shrink: 0;
  }

  .menu-label,
  .pertamc-sidebar.sidebar-collapsed .menu-label,
  html.sidebar-preload .menu-label {
    display: none;
  }

  .menu-chevron {
    display: none;
  }

  .badge-counter {
    position: absolute;
    top: 0;
    right: 0;
    padding: 0.05rem 0.3rem;
    font-size: 0.6rem;
  }

  .sidebar-user,
  .pertamc-sidebar.sidebar-collapsed .sidebar-user {
    flex: 0 0 44px;
    justify-content: center;
    padding: 0;
    border-top: 0;
    border-left: 0;
  }

  .sidebar-user-avatar,
  .sidebar-user-info {
    display: none;
  }

  .sidebar-logout-form,
  .pertamc-sidebar.sidebar-collapsed .sidebar-logout-form {
    width: auto;
    margin: 0;
  }

  .sidebar-logout-btn {
    width: 44px;
    height: 44px;
  }

  .app-layout,
  .app-layout.sidebar-collapsed,
  html.sidebar-preload .app-layout {
    margin-left: 0;
  }

  .pertamc-workspace {
    min-width: 0;
    padding: calc(60px + env(safe-area-inset-top) + 1rem) 0.75rem 1rem;
  }

  .pertamc-tabs {
    gap: 0.4rem;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none;
  }

  .pertamc-tabs::-webkit-scrollbar {
    display: none;
  }

  .tab-btn {
    flex: 0 0 48px;
    justify-content: center;
    min-width: 48px;
    min-height: 48px;
    padding: 0.5rem;
    border-radius: 6px 6px 0 0;
  }

  .tab-btn svg {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
  }

  .tab-label {
    display: none;
  }

  .timesheet-general-cards {
    grid-template-columns: minmax(0, 1fr);
    gap: 1rem;
  }

  .timesheet-general-cards .card-header,
  .timesheet-general-cards .card-body {
    padding: 0.85rem 1rem;
  }

  .timesheet-general-cards .card-header>div,
  .timesheet-general-cards .card-title,
  .timesheet-general-cards .form-group {
    min-width: 0;
    overflow-wrap: anywhere;
  }

  .timesheet-general-cards .form-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
  }

  .timesheet-general-cards .form-input,
  .timesheet-general-cards .form-select {
    min-width: 0;
    max-width: 100%;
  }

  .workspace-header {
    align-items: stretch;
    flex-direction: column;
    gap: 0.85rem;
  }

  .workspace-header>* {
    min-width: 0;
    max-width: 100%;
  }

  .workspace-title {
    font-size: 1.2rem;
    overflow-wrap: anywhere;
  }

  .timesheet-header-actions {
    align-items: stretch;
    flex-direction: column;
    width: 100%;
    gap: 0.75rem;
  }

  .workspace-header .dashboard-period-filter,
  .workspace-header .timesheet-header-actions {
    width: 100%;
    align-items: stretch;
    flex-direction: column;
    gap: 0.65rem;
  }

  .workspace-header .dashboard-period-filter form,
  .workspace-header .timesheet-header-actions form {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0.35rem;
  }

  .workspace-header .dashboard-period-filter .form-select,
  .workspace-header .timesheet-header-actions .form-select {
    width: 100%;
    min-width: 0;
  }

  .workspace-header .timesheet-header-actions .btn {
    width: 100%;
    justify-content: center;
  }

  .timesheet-office-header {
    align-items: stretch;
    flex-direction: column;
    padding: 1.25rem 1rem;
    gap: 1.15rem;
  }

  .timesheet-office-heading {
    width: 100%;
    min-width: 0;
  }

  .timesheet-office-heading>div:last-child {
    min-width: 0;
    flex: 1 1 auto;
  }

  .timesheet-office-icon {
    width: 40px;
    height: 40px;
    flex-basis: 40px;
    flex-shrink: 0;
  }

  .timesheet-header-actions>form {
    width: 100%;
    min-width: 0;
  }

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

  .timesheet-metric-card {
    min-width: 0;
    min-height: 72px;
    padding: 0.75rem;
  }

  .timesheet-metric-card strong {
    font-size: 1.2rem;
  }

  .timesheet-header-actions form,
  .timesheet-header-actions .form-select,
  .timesheet-header-actions .btn {
    width: 100%;
    min-width: 0;
  }

  .timesheet-header-actions .btn {
    height: 42px;
    justify-content: center;
    text-align: center;
  }

  .timesheet-period-table {
    min-width: 0 !important;
    width: 100% !important;
    table-layout: auto !important;
  }

  .timesheet-col-desktop,
  .timesheet-col-actions {
    display: none !important;
  }

  .timesheet-col-range {
    width: 56% !important;
  }

  .timesheet-col-duty {
    width: 22% !important;
  }

  .timesheet-col-status {
    width: 22% !important;
  }

  .timesheet-period-row {
    cursor: pointer;
    -webkit-tap-highlight-color: rgba(3, 105, 161, 0.08);
  }

  .timesheet-period-row:active {
    background-color: #f0f7ff !important;
  }

  .timesheet-mobile-caption-hint {
    display: inline !important;
    color: #0284c7;
    font-weight: 500;
  }

  .timesheet-mobile-summary {
    display: flex !important;
    flex-direction: column;
    gap: 0.2rem;
    margin-top: 0.35rem;
    font-size: 0.74rem;
    color: var(--text-muted);
  }

  .timesheet-mobile-summary-item {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    color: #475569;
  }

  .timesheet-mobile-summary-item svg {
    color: #0284c7;
    flex-shrink: 0;
  }

  .timesheet-period-table th,
  .timesheet-period-table td {
    padding: 0.55rem 0.45rem;
    font-size: 0.8rem;
  }

  .dashboard-period-filter,
  .dashboard-period-filter form {
    width: 100%;
    min-width: 0;
  }

  .dashboard-period-filter .form-select {
    width: 100%;
    min-width: 0;
  }

  .dashboard-activity-table {
    min-width: 0;
  }

  .dashboard-welcome-banner {
    align-items: stretch;
    flex-direction: column;
    padding: 1.25rem 1rem;
    gap: 1.15rem;
  }

  .dashboard-welcome-copy {
    width: 100%;
    min-width: 0;
  }

  .dashboard-welcome-banner .dashboard-period-filter {
    width: 100%;
    flex-basis: auto;
    min-width: 0;
  }

  .dashboard-activity-table .dashboard-period-column {
    width: 28%;
  }

  .dashboard-activity-table .dashboard-duty-column {
    width: 24%;
  }

  .dashboard-activity-table .dashboard-status-column {
    width: 34%;
  }

  .dashboard-activity-table .dashboard-action-column {
    width: 14%;
  }

  .dashboard-activity-table .dashboard-secondary-column {
    display: none;
  }

  .dashboard-activity-table th,
  .dashboard-activity-table td {
    padding: 0.75rem 0.35rem;
    font-size: 0.78rem;
  }

  .dashboard-row-action {
    width: 32px;
    height: 32px;
  }

  .dashboard-row-actions {
    flex-direction: column;
    gap: 0.35rem;
  }

  .dashboard-pdf-action-label {
    display: none;
  }

  .dashboard-empty-desktop-row {
    display: none;
  }

  .dashboard-empty-mobile-row {
    display: table-row;
  }

  .card-header {
    gap: 0.5rem;
    flex-wrap: wrap;
    padding: 0.85rem 1rem;
  }

  /* Inbox & Approval Mobile Responsiveness */
  .inbox-desktop-table {
    display: none !important;
  }

  .inbox-mobile-cards {
    display: flex !important;
    flex-direction: column;
    gap: 0.75rem;
    padding: 0.75rem;
  }

  .inbox-modal-card {
    max-width: 95vw;
    margin: 0.5rem;
  }

  .inbox-modal-footer .btn {
    flex: 1 1 auto;
    min-height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .inbox-history-card-header {
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
  }

  .inbox-period-filter,
  .inbox-period-filter form {
    width: 100%;
  }

  .inbox-period-filter form {
    flex-direction: column;
    align-items: stretch;
    gap: 0.35rem;
  }

  .inbox-select-wrapper,
  .inbox-period-filter .form-select {
    width: 100%;
    min-width: 0;
  }

  /* Account Settings Mobile Responsiveness */
  .account-grid {
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 1.25rem !important;
  }

  .account-col,
  .account-col.col-md-6,
  .col-12,
  .col-md-6 {
    width: 100% !important;
    max-width: 100% !important;
    flex: 0 0 100% !important;
  }

  .account-card .card-header {
    padding: 0.85rem 1.05rem;
  }

  .account-card .card-body {
    padding: 1.1rem 1.05rem;
  }

  .account-form-grid {
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 0 !important;
  }

  .account-form-grid .form-group {
    margin-bottom: 0.85rem;
  }

  .account-card .form-group {
    margin-bottom: 0.95rem;
  }

  .account-card .form-label {
    font-size: 0.82rem;
    margin-bottom: 0.35rem;
  }

  .account-card .form-input {
    min-height: 42px;
    font-size: 0.88rem;
    padding: 0.6rem 0.75rem;
  }

  .account-file-upload-wrapper {
    width: 100%;
  }

  .account-file-input {
    min-height: 44px;
    padding: 0.5rem 0.65rem;
    font-size: 0.84rem;
  }

  .account-signature-box {
    padding: 1.15rem 0.85rem;
    margin-bottom: 1rem;
  }

  .account-signature-img {
    max-height: 75px;
    max-width: 180px;
  }

  .account-card-action {
    margin-top: 0.5rem;
  }

  .account-btn-submit {
    width: 100% !important;
    min-height: 44px;
    font-size: 0.9rem;
    font-weight: 600;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
  }
}

@media (max-width: 600px) {
  .app-swal-evidence-pdf {
    min-height: 70vh;
  }
}

/* Login PertaMC */
.login-body {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 1.5rem;
}

.login-card {
  width: 100%;
  max-width: 420px;
  background-color: #ffffff;
  border-radius: 10px;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.25);
  padding: 2.25rem 2rem;
}

/* Timeline Approval */
.approval-timeline {
  position: relative;
  padding-left: 2rem;
  margin: 1rem 0;
}

.approval-timeline::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 9px;
  width: 2px;
  background-color: var(--border);
}

.timeline-item {
  position: relative;
  margin-bottom: 1.5rem;
}

.timeline-dot {
  position: absolute;
  left: -2rem;
  top: 2px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background-color: #ffffff;
  border: 2px solid var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
}

.timeline-content {
  background-color: #ffffff;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 0.85rem 1rem;
}

.timeline-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.35rem;
}

/* ==========================================================================
   Inbox & Approval Management (Corporate Office-Style)
   ========================================================================== */
.inbox-header-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  color: #38bdf8;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 6px -1px rgba(15, 23, 42, 0.15);
  flex-shrink: 0;
}

.inbox-empty-box {
  text-align: center;
  color: var(--text-muted);
  padding: 2.5rem 1rem;
}

/* Desktop Formal Table (Thin border, corporate spacing) */
.inbox-desktop-table {
  display: block;
  width: 100%;
}

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

.inbox-col-period {
  width: 15%;
}

.inbox-col-worker {
  width: 20%;
}

.inbox-col-contract {
  width: 17%;
}

.inbox-col-duty {
  width: 13%;
}

.inbox-col-status {
  width: 13%;
}

.inbox-col-time {
  width: 11%;
}

.inbox-col-action {
  width: 11%;
}

.inbox-table th {
  background-color: #f8fafc;
  color: #475569;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 0.85rem 0.9rem;
  border-bottom: 2px solid #e2e8f0;
  white-space: nowrap;
}

.inbox-table td {
  padding: 0.85rem 0.9rem;
  vertical-align: middle;
  border-bottom: 1px solid #f1f5f9;
  font-size: 0.86rem;
}

.inbox-table tr:hover td {
  background-color: #f8fafc;
}

.inbox-worker-title {
  font-weight: 600;
  color: #0f172a;
  line-height: 1.3;
}

.inbox-worker-sub {
  font-size: 0.74rem;
  color: #64748b;
  margin-top: 0.15rem;
}

.inbox-contract-title {
  font-weight: 500;
  color: #1e293b;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.82rem;
}

.inbox-contract-sub {
  font-size: 0.74rem;
  color: #64748b;
  margin-top: 0.15rem;
}

.inbox-time-date {
  font-weight: 500;
  color: #334155;
  font-size: 0.82rem;
  white-space: nowrap;
}

.inbox-time-hour {
  font-size: 0.72rem;
  color: #64748b;
  white-space: nowrap;
}

/* Mobile Stacked Card List */
.inbox-mobile-cards {
  display: none;
}

.inbox-doc-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 0.95rem 1rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
  -webkit-tap-highlight-color: rgba(3, 105, 161, 0.08);
}

.inbox-doc-card:hover,
.inbox-doc-card:focus-visible {
  border-color: #94a3b8;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.08);
  outline: none;
}

.inbox-doc-card:active {
  background-color: #f8fafc;
  transform: translateY(1px);
}

.inbox-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding-bottom: 0.65rem;
  border-bottom: 1px dashed #e2e8f0;
  margin-bottom: 0.65rem;
}

.inbox-card-period {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  color: #0f172a;
  font-size: 0.92rem;
}

.inbox-card-period svg {
  color: #0284c7;
  flex-shrink: 0;
}

.inbox-card-details {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  font-size: 0.82rem;
  margin-bottom: 0.75rem;
}

.inbox-card-item {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem;
}

.inbox-card-key {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: #64748b;
  font-size: 0.76rem;
  flex-shrink: 0;
}

.inbox-card-key svg {
  color: #94a3b8;
}

.inbox-card-val {
  color: #1e293b;
  text-align: right;
  word-break: break-word;
}

.inbox-card-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 0.65rem;
  border-top: 1px solid #f1f5f9;
  font-size: 0.78rem;
}

.inbox-card-metric {
  color: #475569;
}

.inbox-card-day-summary {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.2rem 0.55rem;
  margin-bottom: 0.65rem;
  padding: 0.55rem 0.65rem;
  border: 1px solid #dbeafe;
  border-radius: 8px;
  background: #f0f8ff;
}

.inbox-card-day-value {
  color: #0369a1;
  font-size: 0.88rem;
}

.inbox-card-day-label {
  color: #475569;
  font-size: 0.74rem;
}

.inbox-card-duty-note {
  color: #64748b;
  font-size: 0.72rem;
}

.inbox-card-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  color: #0284c7;
  font-weight: 600;
  font-size: 0.76rem;
}

/* Modal Detail Dokumen Mobile */
.inbox-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1050;
  background-color: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  animation: inboxModalFadeIn 0.2s ease-out;
}

.inbox-modal-card {
  width: 100%;
  max-width: 500px;
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.25), 0 10px 10px -5px rgba(0, 0, 0, 0.08);
  display: flex;
  flex-direction: column;
  max-height: calc(90vh - 2rem);
  overflow: hidden;
  border: 1px solid #e2e8f0;
  animation: inboxModalZoom 0.2s ease-out;
}

@keyframes inboxModalFadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes inboxModalZoom {
  from {
    transform: scale(0.96);
    opacity: 0;
  }

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

.inbox-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  color: #ffffff;
}

.inbox-modal-header-left {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.inbox-modal-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.12);
  color: #38bdf8;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.inbox-modal-title {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
  color: #ffffff;
}

.inbox-modal-subtitle {
  margin: 0.15rem 0 0;
  font-size: 0.74rem;
  color: #94a3b8;
}

.inbox-modal-close {
  background: transparent;
  border: none;
  color: #94a3b8;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  transition: color 0.15s ease;
}

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

.inbox-modal-body {
  padding: 1.2rem;
  overflow-y: auto;
  flex: 1 1 auto;
  max-height: calc(85vh - 130px);
}

.inbox-modal-status-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.7rem 0.95rem;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  margin-bottom: 0.95rem;
}

.inbox-modal-status-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: #475569;
}

.inbox-modal-info-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.inbox-modal-info-item {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 0.75rem 0.9rem;
}

.inbox-modal-info-label {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #64748b;
  margin-bottom: 0.35rem;
}

.inbox-modal-info-label svg {
  color: #0284c7;
}

.inbox-modal-info-value {
  font-size: 0.9rem;
  color: #1e293b;
}

.inbox-modal-subtext {
  font-size: 0.74rem;
  color: #64748b;
  margin-top: 0.2rem;
}

.inbox-modal-info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.inbox-modal-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.5rem;
  padding: 0.85rem 1.25rem;
  background: #f8fafc;
  border-top: 1px solid #e2e8f0;
  flex-wrap: wrap;
}

/* Inbox History Period Filter (Dashboard-Style) */
.inbox-history-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  padding: 1rem 1.25rem;
}

.inbox-history-title-block {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.inbox-history-subtitle {
  margin: 0;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.inbox-period-filter {
  display: flex;
  align-items: center;
}

.inbox-period-filter form {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin: 0;
}

.inbox-filter-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: #475569;
  white-space: nowrap;
  margin: 0;
}

.inbox-select-wrapper {
  position: relative;
  min-width: 190px;
}

.inbox-period-filter .form-select {
  width: 100%;
  min-width: 190px;
  height: 38px;
  padding: 0.35rem 2rem 0.35rem 0.75rem;
  font-size: 0.85rem;
  font-weight: 500;
  color: #0f172a;
  background-color: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  cursor: pointer;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
  transition: all 0.15s ease;
}

.inbox-period-filter .form-select:hover {
  border-color: #94a3b8;
}

.inbox-period-filter .form-select:focus {
  border-color: #0284c7;
  box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.15);
  outline: none;
}

.inbox-history-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.85rem 1.25rem;
  background-color: #f8fafc;
  border-top: 1px solid #e2e8f0;
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* ==========================================================================
   Account Settings (My Account - Corporate Office-Style)
   ========================================================================== */
.account-header-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  color: #38bdf8;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 6px -1px rgba(15, 23, 42, 0.15);
  flex-shrink: 0;
}

.account-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
  align-items: start;
}

.account-col {
  min-width: 0;
}

.account-card {
  margin-bottom: 0;
  height: 100%;
  display: flex;
  flex-direction: column;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.account-card .card-header {
  padding: 1rem 1.25rem;
  background: #f8fafc;
  border-bottom: 1px solid #e2e8f0;
  border-radius: 10px 10px 0 0;
}

.account-card .card-title {
  font-size: 0.96rem;
  font-weight: 700;
  color: #0f172a;
}

.account-card .card-body {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  padding: 1.35rem 1.4rem;
}

.account-card .card-body form {
  display: flex;
  flex-direction: column;
  height: 100%;
}

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

.account-signature-desc {
  font-size: 0.825rem;
  color: var(--text-muted);
  line-height: 1.45;
  margin-bottom: 1rem;
}

.account-signature-box {
  text-align: center;
  background: #f8fafc;
  border: 1px dashed #cbd5e1;
  border-radius: 8px;
  padding: 1.25rem 1rem;
  margin-bottom: 1.15rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 120px;
}

.account-signature-preview-wrap {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.5rem;
}

.account-signature-img {
  max-height: 90px;
  max-width: 100%;
  object-fit: contain;
}

.account-signature-status {
  font-size: 0.78rem;
  color: #16a34a;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.account-signature-empty {
  color: var(--text-muted);
  font-size: 0.84rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.account-file-upload-wrapper {
  width: 100%;
  margin-bottom: 0.35rem;
}

.account-file-input {
  width: 100%;
  padding: 0.5rem 0.65rem;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  font-size: 0.85rem;
  background-color: #ffffff;
  cursor: pointer;
  box-sizing: border-box;
}

.account-file-input::file-selector-button {
  padding: 0.45rem 0.85rem;
  margin-right: 0.75rem;
  background-color: #f1f5f9;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  font-size: 0.82rem;
  font-weight: 600;
  color: #334155;
  cursor: pointer;
  transition: all 0.15s ease;
}

.account-file-input::file-selector-button:hover {
  background-color: #e2e8f0;
}

.account-card-action {
  margin-top: 0.75rem;
}

.account-btn-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: 40px;
  padding: 0.55rem 1.25rem;
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: 8px;
  transition: all 0.15s ease;
}


/* ==========================================================================
   Landing Page Corporate Split-Screen & Dynamic Carousel
   ========================================================================== */
.landing-body {
  margin: 0;
  padding: 0;
  background-color: #0b1329;
  color: #1e293b;
  min-height: 100vh;
  overflow-x: hidden;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* Header Bar Khusus Mobile Viewport */
.landing-mobile-topbar {
  display: none;
}

.landing-split-container {
  display: flex;
  min-height: 100vh;
  width: 100%;
}

/* Sisi Kiri: Visual Carousel Enterprise */
.landing-visual-pane {
  flex: 1 1 58%;
  order: 1;
  position: relative;
  background: linear-gradient(135deg, #091224 0%, #0f1e36 50%, #172554 100%);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.landing-carousel {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  outline: none;
}

.landing-slides-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.landing-carousel-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.8s;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.landing-carousel-slide.active {
  opacity: 1;
  visibility: visible;
  z-index: 2;
}

.landing-slide-picture {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: block;
}

.landing-slide-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
  user-select: none;
  -webkit-user-drag: none;
}

.landing-slide-overlay {
  position: relative;
  z-index: 3;
  padding: 3rem 3.5rem 4.5rem;
  /*background: linear-gradient(180deg, rgba(11, 19, 41, 0) 0%, rgba(11, 19, 41, 0.65) 40%, rgba(11, 19, 41, 0.94) 100%);*/
  color: #ffffff;
  max-width: 820px;
}

.landing-slide-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(2, 132, 199, 0.25);
  border: 1px solid rgba(56, 189, 248, 0.4);
  color: #7dd3fc;
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.35rem 0.85rem;
  border-radius: 9999px;
  margin-bottom: 0.85rem;
  backdrop-filter: blur(8px);
}

.landing-slide-badge .badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: #38bdf8;
  box-shadow: 0 0 8px #38bdf8;
}

.landing-slide-title {
  font-size: 2.15rem;
  font-weight: 800;
  line-height: 1.25;
  color: #ffffff;
  margin: 0 0 0.5rem;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
  letter-spacing: -0.01em;
}

.landing-slide-subtitle {
  font-size: 1.1rem;
  font-weight: 600;
  color: #38bdf8;
  margin: 0 0 0.65rem;
  line-height: 1.4;
}

.landing-slide-caption {
  font-size: 0.92rem;
  color: #cbd5e1;
  line-height: 1.55;
  margin: 0;
  max-width: 680px;
}

/* Tombol Navigasi Carousel */
.carousel-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(15, 23, 42, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  backdrop-filter: blur(6px);
}

.carousel-nav-btn:hover {
  background: #0284c7;
  border-color: #38bdf8;
  box-shadow: 0 0 15px rgba(2, 132, 199, 0.6);
  transform: translateY(-50%) scale(1.08);
}

.carousel-nav-btn.prev {
  left: 1.5rem;
}

.carousel-nav-btn.next {
  right: 1.5rem;
}

/* Dots Indikator */
.carousel-dots-container {
  position: absolute;
  bottom: 1.75rem;
  left: 3.5rem;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.carousel-dot {
  width: 28px;
  height: 6px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.3);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: all 0.25s ease;
}

.carousel-dot.active {
  width: 48px;
  background: #38bdf8;
  box-shadow: 0 0 8px rgba(56, 189, 248, 0.7);
}

.carousel-dot:hover:not(.active) {
  background: rgba(255, 255, 255, 0.6);
}

/* Watermark Korporat */
.landing-visual-watermark {
  position: absolute;
  top: 1.75rem;
  left: 3.5rem;
  z-index: 5;
  display: flex;
  flex-direction: column;
  pointer-events: none;
}

.landing-visual-watermark .watermark-logo-text {
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: #ffffff;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.6);
}

.landing-visual-watermark .watermark-sub {
  font-size: 0.72rem;
  color: #94a3b8;
  letter-spacing: 0.04em;
}

/* Sisi Kanan: Form Akses Login */
.landing-auth-pane {
  flex: 1 1 42%;
  order: 2;
  min-width: 420px;
  max-width: 420px;
  /*max-width: 580px;*/
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  box-shadow: -10px 0 30px rgba(0, 0, 0, 0.12);
  position: relative;
  z-index: 4;
}

/* Layout Centered Saat Gambar Carousel Kosong / Dinonaktifkan */
.landing-body.no-carousel {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  background: radial-gradient(circle at center, #172554 0%, #0f1e36 45%, #091224 100%);
  padding: 1.5rem;
}

.landing-split-container.no-carousel {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: auto;
  width: 100%;
}

.landing-auth-pane.no-carousel {
  flex: 0 1 450px;
  min-width: 0;
  max-width: 450px;
  width: 100%;
  border-radius: 14px;
  box-shadow: 0 20px 45px -10px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.1);
  padding: 0;
  margin: auto;
}

.landing-auth-pane.no-carousel .landing-auth-card {
  padding: 2.75rem 2.25rem;
}

.landing-auth-card {
  width: 100%;
  max-width: none;
  min-height: 100%;
  padding: 3rem 2.5rem;
  display: flex;
  flex-direction: column;
}

.landing-auth-header {
  margin-bottom: 1.75rem;
}

.landing-brand-badge-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.landing-brand-logo-wrap {
  display: flex;
  align-items: center;
}

.landing-auth-logo {
  height: 48px;
  width: auto;
  object-fit: contain;
}

.landing-env-pill {
  font-size: 0.68rem;
  font-weight: 700;
  color: #0369a1;
  background-color: #e0f2fe;
  border: 1px solid #bae6fd;
  padding: 0.25rem 0.65rem;
  border-radius: 9999px;
  letter-spacing: 0.03em;
}

.landing-header-actions-wrap {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-close-mobile-drawer {
  display: none;
  /* Sembunyikan di desktop */
}

.landing-auth-title {
  font-size: 1.65rem;
  font-weight: 800;
  color: #0f172a;
  margin: 0 0 0.35rem;
  letter-spacing: -0.015em;
}

.landing-auth-tagline {
  font-size: 0.86rem;
  color: #64748b;
  margin: 0;
  line-height: 1.45;
}

.landing-alerts-container {
  margin-bottom: 1rem;
}

.landing-login-form {
  display: flex;
  flex-direction: column;
}

.landing-field-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.84rem;
  font-weight: 600;
  color: #1e293b;
  margin-bottom: 0.4rem;
}

.landing-field-label .label-hint {
  font-size: 0.72rem;
  color: #94a3b8;
  font-weight: 400;
}

.landing-field-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.4rem;
}

.label-security-tag {
  font-size: 0.68rem;
  font-weight: 600;
  color: #0284c7;
  background: #f0f9ff;
  border: 1px solid #e0f2fe;
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
}

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

.landing-input-wrap .input-icon {
  position: absolute;
  left: 0.9rem;
  color: #94a3b8;
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: center;
}

.landing-input {
  width: 100%;
  min-height: 46px;
  padding: 0.65rem 0.9rem 0.65rem 2.6rem !important;
  font-size: 0.92rem;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  background-color: #f8fafc;
  color: #0f172a;
  transition: all 0.2s ease;
}

.landing-input:focus {
  background-color: #ffffff;
  border-color: #0284c7;
  box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.15);
  outline: none;
}

.btn-toggle-password {
  position: absolute;
  right: 0.5rem;
  background: transparent;
  border: none;
  color: #64748b;
  cursor: pointer;
  padding: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  transition: color 0.15s ease;
}

.btn-toggle-password:hover {
  color: #0f172a;
}

.landing-btn-login {
  width: 100%;
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  background-color: #0284c7;
  color: #ffffff;
  border: none;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  margin-top: 0.85rem;
  padding: 0.75rem 1.25rem;
  box-shadow: 0 4px 12px rgba(2, 132, 199, 0.28);
  transition: all 0.2s ease;
}

.landing-btn-login:hover {
  background-color: #0369a1;
  box-shadow: 0 6px 16px rgba(2, 132, 199, 0.38);
  transform: translateY(-1px);
}

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

.landing-auth-footer {
  margin-top: 1.85rem;
  border-top: 1px solid #f1f5f9;
  padding-top: 1.25rem;
}

.landing-security-box {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 0.75rem 0.85rem;
  margin-bottom: 1.25rem;
}

.security-shield-icon {
  color: #0284c7;
  flex-shrink: 0;
  margin-top: 2px;
}

.security-text {
  font-size: 0.77rem;
  color: #475569;
  line-height: 1.45;
  margin: 0;
}

.landing-bottom-meta {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.system-status-indicator {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.74rem;
  color: #16a34a;
  font-weight: 600;
}

.status-dot-pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #22c55e;
  box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7);
  animation: statusPulse 2s infinite;
}

@keyframes statusPulse {
  0% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7);
  }

  70% {
    transform: scale(1);
    box-shadow: 0 0 0 6px rgba(34, 197, 94, 0);
  }

  100% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0);
  }
}

.copyright-notice {
  font-size: 0.72rem;
  color: #94a3b8;
  line-height: 1.4;
}

/* ==========================================================================
   Admin Carousel Management Panel
   ========================================================================== */
.carousel-admin-grid {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}

.carousel-slot-card {
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  background: #ffffff;
}

.carousel-slot-badge {
  background: #0284c7;
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.2rem 0.55rem;
  border-radius: 4px;
  text-transform: uppercase;
}

.carousel-preview-dual {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 1.25rem;
  margin-bottom: 1.5rem;
  background: #f8fafc;
  padding: 1.25rem;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
}

.carousel-preview-item {
  display: flex;
  flex-direction: column;
}

.carousel-preview-tag {
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
  color: #475569;
  letter-spacing: 0.05em;
  margin-bottom: 0.4rem;
}

.carousel-preview-frame {
  position: relative;
  background: #0b1329;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid #cbd5e1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.carousel-preview-frame.desktop {
  aspect-ratio: 16 / 9;
  max-height: 220px;
}

.carousel-preview-frame.mobile {
  aspect-ratio: 4 / 5;
  max-height: 220px;
}

.carousel-preview-frame img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.carousel-preview-path {
  font-size: 0.72rem;
  color: #64748b;
  font-family: monospace;
  margin-top: 0.4rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.carousel-upload-inputs-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-bottom: 1rem;
}

.carousel-slot-actions {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  margin-top: 1rem;
}

/* ==========================================================================
   Responsive Viewport Adaptations (@media max-width: 767px)
   ========================================================================== */
@media (max-width: 767px) {

  /* Header Bar Khusus Mobile Viewport */
  .landing-mobile-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.65rem 1rem;
    background: #091224;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    position: sticky;
    top: 0;
    z-index: 50;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.45);
  }

  .mobile-brand-group {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    min-width: 0;
    flex: 1 1 auto;
  }

  .mobile-topbar-logo {
    height: 30px;
    width: auto;
    object-fit: contain;
    flex-shrink: 0;
  }

  .mobile-brand-text {
    display: flex;
    flex-direction: column;
    text-align: center;
    min-width: 0;
  }

  .brand-company-name {
    font-size: 0.78rem;
    font-weight: 700;
    color: #ffffff;
    line-height: 1.25;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    letter-spacing: -0.01em;
  }

  .brand-app-name {
    font-size: 0.64rem;
    color: #94a3b8;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  /* Tombol Logo Login di sebelah string brand */
  .mobile-login-toggle-btn {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
    color: #ffffff;
    border: 1px solid #38bdf8;
    border-radius: 9999px;
    padding: 0.4rem 0.85rem;
    font-size: 0.78rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(2, 132, 199, 0.4);
    transition: all 0.25s ease;
    min-height: 36px;
  }

  .mobile-login-toggle-btn .toggle-btn-content {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
  }

  .mobile-login-toggle-btn:hover {
    background: #0284c7;
    box-shadow: 0 0 12px rgba(56, 189, 248, 0.6);
  }

  .mobile-login-toggle-btn.is-active {
    background: #dc2626;
    border-color: #f87171;
    box-shadow: 0 2px 8px rgba(220, 38, 38, 0.45);
  }

  /* Landing Page Mobile Viewport & Split Container */
  .landing-split-container {
    flex-direction: column;
    min-height: auto;
    width: 100%;
  }

  /* Form Login: Di mobile berada di atas (order: 1) dan secara default tersembunyi */
  .landing-auth-pane {
    order: 1;
    width: 100%;
    min-width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    /* Default tertutup: slide collapse ke atas */
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    padding: 0 !important;
    margin: 0 !important;
    border: none !important;
    box-shadow: none !important;
    pointer-events: none;
    visibility: hidden;
    background: #ffffff;
    transition: max-height 0.45s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.35s ease, padding 0.35s ease, visibility 0.45s;
  }

  /* Ketika tombol logo login diklik: slide terbuka dari atas ke bawah dan mendorong landing page ke bawah */
  .landing-auth-pane.mobile-open {
    max-height: 1400px;
    opacity: 1;
    overflow: visible;
    pointer-events: auto;
    visibility: visible;
    padding: 0 !important;
    border-bottom: 2px solid #0284c7 !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35) !important;
  }

  /* Tombol Tutup Khusus Mobile Drawer di Header Kartu Login */
  .btn-close-mobile-drawer {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #f1f5f9;
    border: 1px solid #cbd5e1;
    color: #64748b;
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
  }

  .btn-close-mobile-drawer:hover {
    background: #fee2e2;
    color: #ef4444;
    border-color: #fca5a5;
  }

  /* Visual Carousel Pane: Di mobile berada di bawah form login (order: 2) */
  .landing-visual-pane {
    order: 2;
    flex: 0 0 auto;
    width: 100%;
    height: calc(100vh - 58px);
    height: calc(100dvh - 58px);
    min-height: 0;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
  }

  .landing-carousel {
    width: 100%;
    height: 100%;
    min-height: 100%;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
  }

  .landing-slides-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
  }

  .landing-carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
  }

  .landing-slide-picture {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
  }

  .landing-slide-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
  }

  .landing-slide-overlay {
    position: relative;
    z-index: 3;
    padding: 1.5rem 1.25rem 4.25rem;
    /*background: linear-gradient(180deg, rgba(11, 19, 41, 0) 0%, rgba(11, 19, 41, 0.72) 35%, rgba(11, 19, 41, 0.96) 100%);*/
    width: 100%;
    box-sizing: border-box;
  }

  .landing-slide-badge {
    font-size: 0.65rem;
    padding: 0.2rem 0.55rem;
    margin-bottom: 0.4rem;
  }

  .landing-slide-title {
    font-size: 1.22rem;
    font-weight: 800;
    line-height: 1.3;
    margin-bottom: 0.25rem;
    color: #ffffff;
  }

  .landing-slide-subtitle {
    font-size: 0.86rem;
    font-weight: 600;
    color: #38bdf8;
    margin-bottom: 0.35rem;
    line-height: 1.35;
  }

  .landing-slide-caption {
    font-size: 0.78rem;
    color: #cbd5e1;
    line-height: 1.45;
    margin: 0;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .carousel-nav-btn {
    width: 36px;
    height: 36px;
    top: 42%;
    background: rgba(15, 23, 42, 0.75);
    border: 1px solid rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(8px);
  }

  .carousel-nav-btn.prev {
    left: 0.65rem;
  }

  .carousel-nav-btn.next {
    right: 0.65rem;
  }

  .carousel-dots-container {
    bottom: 1.25rem;
    left: 1.25rem;
    right: 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.45rem;
    z-index: 6;
  }

  .carousel-dot {
    width: 20px;
    height: 5px;
    border-radius: 9999px;
  }

  .carousel-dot.active {
    width: 36px;
    background: #38bdf8;
  }

  .landing-visual-watermark {
    display: none;
    /* Sembunyikan watermark dalam carousel di mobile karena sudah ada topbar di atas */
  }

  .landing-body.no-carousel {
    padding: 1rem;
  }

  .landing-auth-pane.no-carousel {
    order: 1;
    max-height: none !important;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
    padding: 0 !important;
    border-radius: 12px;
    border-top: none;
  }

  .landing-auth-card {
    min-height: 0;
    padding: 2rem 1.25rem;
  }

  .landing-auth-pane.mobile-open .landing-auth-card {
    padding: 1.75rem 1.25rem 2.25rem;
  }

  .landing-auth-title {
    font-size: 1.4rem;
  }

  .landing-btn-login {
    min-height: 48px;
    font-size: 0.92rem;
  }

  /* Admin Carousel Panel Mobile Viewport */
  .carousel-preview-dual {
    grid-template-columns: 1fr;
  }

  .carousel-upload-inputs-grid {
    grid-template-columns: 1fr;
  }

  /* Account Settings Mobile Viewport */
  .account-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .account-form-grid {
    grid-template-columns: 1fr;
  }

  .account-btn-submit {
    width: 100%;
  }
}

.dashboard-pending-personnel-stat {
  align-items: flex-start;
  min-width: 0;
}

.dashboard-pending-personnel-copy {
  flex: 1 1 auto;
  min-width: 0;
}

.dashboard-pending-personnel-copy .stat-lbl {
  line-height: 1.4;
}

.dashboard-download-icon {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border: 1px solid #bae6fd;
  border-radius: 10px;
  background: #f0f9ff;
  color: #0369a1;
  cursor: pointer;
  transition: background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

.dashboard-download-icon:hover:not(:disabled) {
  border-color: #0284c7;
  background: #0284c7;
  color: #ffffff;
}

.dashboard-download-icon:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

.dashboard-manager-panel .card-header {
  align-items: center;
  gap: 1rem;
}

.dashboard-manager-panel-toggle {
  width: 100%;
  border: 0;
  color: inherit;
  text-align: left;
  cursor: pointer;
}

.dashboard-manager-panel-heading {
  min-width: 0;
  text-align: left;
}

.dashboard-manager-panel-actions {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  flex: 0 0 auto;
}

.dashboard-manager-panel-chevron {
  flex: 0 0 auto;
  color: var(--text-muted);
  transition: transform 180ms ease;
}

.dashboard-manager-panel-toggle[aria-expanded="true"] .dashboard-manager-panel-chevron {
  transform: rotate(180deg);
}

.dashboard-manager-content {
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity 180ms ease, transform 180ms ease;
}

.dashboard-manager-content.is-open {
  opacity: 1;
  transform: translateY(0);
}

.dashboard-manager-caption {
  margin-top: 0.25rem;
  color: var(--text-muted);
  font-size: 0.78rem;
}

.dashboard-manager-status {
  color: var(--text-muted);
  font-size: 0.78rem;
  text-align: right;
}

.dashboard-manager-status.is-error {
  color: var(--danger);
}

.dashboard-manager-status.is-success {
  color: var(--success);
}

.dashboard-manager-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 290px), 1fr));
  gap: 0.75rem;
}

.dashboard-manager-item {
  min-width: 0;
}

.dashboard-manager-badge {
  display: flex;
  align-items: stretch;
  min-width: 0;
  border: 1px solid #cbd5e1;
  border-radius: 999px;
  background: #f8fafc;
  overflow: hidden;
}

.dashboard-manager-toggle {
  display: flex;
  flex: 1 1 auto;
  align-items: center;
  gap: 0.5rem;
  min-width: 0;
  padding: 0.55rem 0.8rem;
  border: 0;
  background: transparent;
  color: #0f172a;
  text-align: left;
  cursor: pointer;
}

.dashboard-manager-toggle:focus-visible,
.dashboard-download-icon:focus-visible {
  outline: 3px solid #7dd3fc;
  outline-offset: 2px;
}

.dashboard-manager-chevron {
  flex: 0 0 auto;
  color: #64748b;
  transition: transform 0.18s ease;
}

.dashboard-manager-toggle[aria-expanded="true"] .dashboard-manager-chevron {
  transform: rotate(180deg);
}

.dashboard-manager-name {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  font-size: 0.82rem;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dashboard-manager-worker-count {
  flex: 0 0 auto;
  margin-left: auto;
  color: #0369a1;
  font-size: 0.7rem;
  font-weight: 700;
  white-space: nowrap;
}

.dashboard-manager-archive {
  width: 42px;
  height: auto;
  border: 0;
  border-left: 1px solid #cbd5e1;
  border-radius: 0;
  background: transparent;
}

.dashboard-manager-archive:hover:not(:disabled) {
  background: #0284c7;
}

.dashboard-approved-workers {
  margin: 0.4rem 0 0;
  padding: 0.75rem 0.9rem;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  background: #ffffff;
}

.dashboard-approved-workers[hidden] {
  display: none;
}

.dashboard-approved-workers ul {
  display: grid;
  gap: 0.55rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.dashboard-approved-workers li {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.2rem 0.75rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid #f1f5f9;
}

.dashboard-approved-workers li:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.dashboard-approved-worker-name {
  color: #0f172a;
  font-size: 0.82rem;
  font-weight: 600;
}

.dashboard-approved-worker-meta {
  color: #64748b;
  font-size: 0.72rem;
}

.dashboard-approved-empty {
  padding: 0.5rem 0;
  color: var(--text-muted);
  font-size: 0.82rem;
}

@media (max-width: 767px) {
  .dashboard-manager-panel .card-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .dashboard-manager-status {
    text-align: left;
  }

  .dashboard-manager-badge {
    border-radius: 14px;
  }

  .dashboard-manager-toggle {
    flex-wrap: nowrap;
  }
}

.dashboard-kpi-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: stretch;
}

.dashboard-kpi-grid .dashboard-kpi-card {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  grid-template-rows: minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.65rem 0.75rem;
  min-width: 0;
  min-height: 138px;
  padding: 1rem;
  border-radius: 6px;
  box-shadow: none;
  font-variant-numeric: tabular-nums;
}

.dashboard-kpi-grid .dashboard-pending-approval-stat {
  grid-template-rows: minmax(0, 1fr);
}

.dashboard-kpi-grid .dashboard-kpi-icon {
  grid-column: 1;
  grid-row: 1;
  width: 42px;
  height: 42px;
  border: 1px solid #cbd5e1;
  border-radius: 4px;
  background: #f1f5f9;
  color: #334155;
}

.dashboard-kpi-grid .dashboard-kpi-copy,
.dashboard-kpi-grid .dashboard-pending-personnel-copy {
  grid-column: 2;
  grid-row: 1;
  min-width: 0;
}

.dashboard-kpi-grid .stat-val {
  font-size: 1.4rem;
  font-variant-numeric: tabular-nums;
}

.dashboard-kpi-grid .stat-lbl {
  overflow-wrap: anywhere;
  line-height: 1.35;
}

.dashboard-kpi-grid .dashboard-kpi-export {
  grid-column: 1 / -1;
  grid-row: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  width: 100%;
  min-width: 0;
  min-height: 34px;
  padding: 0.4rem 0.6rem;
  border: 1px solid #cbd5e1;
  border-radius: 4px;
  background: #ffffff;
  color: #0f4c81;
  font-size: 0.76rem;
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
}

.dashboard-kpi-grid .dashboard-kpi-export:hover:not(:disabled) {
  border-color: #0f4c81;
  background: #f1f5f9;
  color: #0b3a63;
}

.dashboard-kpi-grid .dashboard-kpi-export:disabled {
  opacity: 0.5;
}

.dashboard-kpi-grid .dashboard-kpi-export:focus-visible {
  outline: 3px solid #0f4c81;
  outline-offset: 2px;
}

.dashboard-export-status {
  min-height: 1.25rem;
  margin: -0.75rem 0 1rem;
  color: #475569;
  font-size: 0.78rem;
}

.dashboard-export-status.is-error {
  color: #b91c1c;
}

.dashboard-export-status.is-success {
  color: #15803d;
}

.dashboard-export-status.is-warning {
  color: #b45309;
}

@media (min-width: 768px) and (max-width: 1024px) {
  .dashboard-kpi-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 767px) {
  .dashboard-kpi-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

.workspace-header.timesheet-detail-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-width: 0;
}

.timesheet-detail-identity {
  display: flex;
  flex: 1 1 auto;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
  overflow: hidden;
}

.timesheet-detail-identity .workspace-header-icon {
  flex: 0 0 40px;
}

.timesheet-detail-copy {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
}

.timesheet-detail-title-row {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
}

.timesheet-detail-title,
.timesheet-detail-status,
.timesheet-detail-action {
  flex: 0 0 auto;
  white-space: nowrap;
}

.timesheet-detail-title {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
}

.timesheet-detail-status {
  margin: 0;
}

.timesheet-detail-meta {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.timesheet-detail-actions {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: flex-end;
  gap: 0.5rem;
  min-width: 0;
}

.timesheet-detail-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
}

.timesheet-detail-action svg {
  flex: 0 0 auto;
}

@media (max-width: 767.98px) {
  .workspace-header.timesheet-detail-header {
    flex-direction: row;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem;
  }

  .timesheet-detail-identity {
    gap: 0.5rem;
  }

  .timesheet-detail-identity .workspace-header-icon {
    flex-basis: 36px;
    width: 36px;
    height: 36px;
  }

  .timesheet-detail-identity .workspace-header-icon svg {
    width: 20px;
    height: 20px;
  }

  .timesheet-detail-title {
    font-size: 0.95rem;
  }

  .timesheet-detail-status {
    max-width: 88px;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .timesheet-detail-meta {
    font-size: 0.68rem;
  }

  .timesheet-detail-actions {
    gap: 0.3rem;
  }

  .timesheet-detail-action {
    min-width: 36px;
    width: 36px;
    height: 36px;
    padding: 0;
  }

  .timesheet-detail-action-label {
    display: none;
  }
}

.interaction-lock-overlay {
  position: fixed;
  inset: 0;
  z-index: 100000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: rgba(15, 23, 42, 0.36);
  pointer-events: all;
  cursor: wait;
}

.interaction-lock-overlay[hidden] {
  display: none !important;
}

.interaction-lock-card {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  width: min(100%, 380px);
  min-height: 84px;
  padding: 1rem 1.15rem;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  background: #ffffff;
  box-shadow: 0 12px 32px -4px rgba(15, 23, 42, 0.14);
  color: #0f172a;
  cursor: default;
}

.interaction-lock-content {
  display: grid;
  flex: 1;
  gap: 0.65rem;
  min-width: 0;
}

.interaction-lock-spinner {
  flex: 0 0 22px;
  color: #0f4c81;
  animation: interaction-lock-spin 0.8s linear infinite;
}

.interaction-lock-copy {
  display: grid;
  gap: 0.25rem;
  min-width: 0;
}

.interaction-lock-copy strong {
  font-size: 0.92rem;
  font-weight: 650;
  line-height: 1.35;
}

.interaction-lock-copy span {
  color: #475569;
  font-size: 0.78rem;
  line-height: 1.4;
}

.interaction-lock-progress {
  display: grid;
  gap: 0.3rem;
  color: #475569;
  font-size: 0.72rem;
  line-height: 1.35;
  font-variant-numeric: tabular-nums;
}

.interaction-lock-progress[hidden] {
  display: none !important;
}

.interaction-lock-progress progress {
  appearance: none;
  -webkit-appearance: none;
  width: 100%;
  height: 8px;
  overflow: hidden;
  border: 0;
  border-radius: 999px;
  background: #e2e8f0;
}

.interaction-lock-progress progress::-webkit-progress-bar {
  background: #e2e8f0;
}

.interaction-lock-progress progress::-webkit-progress-value {
  background: #0f4c81;
  transition: width 0.15s ease;
}

.interaction-lock-progress progress::-moz-progress-bar {
  background: #0f4c81;
  transition: width 0.15s ease;
}

.interaction-lock-progress.is-complete progress::-webkit-progress-value,
.interaction-lock-progress.is-complete progress::-moz-progress-bar {
  background: #15803d;
}

.interaction-lock-progress.is-error progress::-webkit-progress-value,
.interaction-lock-progress.is-error progress::-moz-progress-bar {
  background: #b45309;
}

@keyframes interaction-lock-spin {
  to { transform: rotate(360deg); }
}

.evidence-process-status::before {
  display: none;
}

.evidence-progress-icon {
  display: none;
  flex: 0 0 16px;
  width: 16px;
  height: 16px;
}

.evidence-progress-spinner {
  display: block;
  color: #0f4c81;
  animation: interaction-lock-spin 0.8s linear infinite;
}

.evidence-process-status.is-complete .evidence-progress-spinner,
.evidence-process-status.is-error .evidence-progress-spinner {
  display: none;
  animation: none;
}

.evidence-process-status.is-complete .evidence-progress-check {
  display: block;
  color: #15803d;
}

.evidence-process-status.is-error .evidence-progress-warning {
  display: block;
  color: #b45309;
}

.evidence-process-status.is-complete progress::-webkit-progress-value {
  background: #15803d;
}

.evidence-process-status.is-complete progress::-moz-progress-bar {
  background: #15803d;
}

.evidence-process-status.is-error progress::-webkit-progress-value {
  background: #b45309;
}

.evidence-process-status.is-error progress::-moz-progress-bar {
  background: #b45309;
}
.third-party-notices-link {
  display: flex;
  justify-content: flex-end;
  padding: 12px 0 4px;
  border-top: 1px solid #E2E8F0;
  margin-top: 20px;
  font-size: 12px;
}

.third-party-notices-link a {
  color: #475569;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.third-party-notices-link a:hover {
  color: #0F4C81;
}

@media print {
  .pertamc-sidebar,
  .mobile-topbar,
  .landing-mobile-topbar,
  .third-party-notices-link,
  .print-actions,
  .interaction-lock-overlay,
  [data-timesheet-print],
  .timesheet-modal-footer,
  .dashboard-row-actions,
  .dashboard-kpi-export,
  .timesheet-period-actions,
  button,
  a.btn {
    display: none !important;
  }

  .app-layout,
  .app-layout.sidebar-collapsed,
  .pertamc-workspace {
    margin: 0 !important;
    padding: 0 !important;
  }

  .card,
  .table-responsive {
    overflow: visible !important;
    box-shadow: none !important;
  }

  body {
    background: #ffffff !important;
  }

}

/* Mobile login: no-carousel layout */
@media (max-width: 767.98px) {
  .landing-body.no-carousel {
    display: block;
    min-height: 100dvh;
    height: auto;
    margin: 0;
    padding: 16px;
    overflow-x: hidden;
    overflow-y: auto;
    background: #0f172a;
  }

  .landing-split-container.no-carousel {
    align-items: flex-start;
    justify-content: center;
    min-height: auto;
    width: 100%;
    margin: 0 !important;
  }

  .landing-auth-pane.no-carousel {
    width: 100%;
    min-width: 0;
    max-width: 450px;
    height: auto;
    max-height: none;
    margin: 0 auto;
    overflow: visible;
    border-radius: 6px;
  }

  .landing-auth-pane.no-carousel .landing-auth-card {
    min-height: 0;
    height: auto;
    overflow: visible;
    padding: 24px 20px 20px;
  }

  .landing-auth-header {
    margin-bottom: 14px;
  }

  .landing-auth-title {
    margin-bottom: 4px;
  }

  .landing-auth-tagline {
    max-width: 100%;
    line-height: 1.45;
  }

  .landing-alerts-container {
    margin-bottom: 12px;
  }

  .landing-login-form {
    gap: 12px;
  }

  .landing-login-form .form-group.mb-3 {
    margin-bottom: 0;
  }

  .landing-field-label,
  .landing-field-header-row {
    margin-bottom: 6px;
  }

  .landing-input {
    height: 44px;
    min-height: 44px;
    padding-top: 0.55rem;
    padding-bottom: 0.55rem;
  }

  .btn-toggle-password {
    width: 44px;
    height: 44px;
    right: 0;
  }

  .landing-input-wrap .input-icon,
  .btn-toggle-password svg,
  .landing-btn-login svg,
  .security-shield-icon {
    stroke-width: 1.5;
  }

  .landing-btn-login {
    min-height: 44px;
    height: 44px;
    margin-top: 2px;
  }

  .landing-auth-footer {
    margin-top: 14px;
    padding-top: 12px;
  }

  .landing-security-box {
    gap: 10px;
    margin-bottom: 12px;
    padding: 10px 12px;
  }

  .landing-bottom-meta {
    gap: 8px;
  }

  .system-status-indicator {
    min-height: 20px;
  }

  .copyright-notice {
    padding-bottom: 2px;
  }
}

/* ===== Enterprise Trust consolidated overrides ===== */
:root {
  --primary: #0f4c81;
  --primary-hover: #0b3a63;
  --primary-light: #eff6fb;
  --secondary: #64748b;
  --dark-sidebar: #0f172a;
  --dark-sidebar-hover: #1e293b;
  --accent-gold: #b45309;
  --accent-gold-light: #fffbeb;
  --success: #15803d;
  --success-light: #f0fdf4;
  --danger: #b91c1c;
  --danger-light: #fef2f2;
  --bg-main: #f8fafc;
  --bg-card: #ffffff;
  --text-main: #0f172a;
  --text-muted: #475569;
  --border: #e2e8f0;
  --radius: 6px;
  --shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
  --shadow-md: 0 1px 3px rgba(15, 23, 42, 0.06);
  --enterprise-modal-shadow: 0 12px 32px -4px rgba(15, 23, 42, 0.14);
}

html,
body {
  background-color: #f8fafc;
  color: #0f172a;
  font-family: Inter, "Plus Jakarta Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 14px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

*,
*::before,
*::after {
  font-family: Inter, "Plus Jakarta Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

td,
th,
time,
input[type="number"],
.stat-val,
.badge-counter,
.badge-number,
[class*="badge-number"],
[class*="progress"],
[class*="date"] {
  font-variant-numeric: tabular-nums;
}

.pertamc-sidebar {
  background: #0f172a;
  border-right: 1px solid #263548;
  box-shadow: none;
}

.sidebar-brand {
  background: #000000;
  border-bottom: 1px solid #263548;
}

.sidebar-brand:hover {
  background: #1e293b;
}

.sidebar-menu {
  padding: 0.65rem 0.55rem 1rem;
}

.menu-group-header {
  color: #94a3b8;
  font-size: 0.68rem;
  letter-spacing: 0.08em;
}

.menu-link {
  min-height: 40px;
  margin: 2px 0;
  border: 1px solid transparent;
  border-radius: 4px;
  color: #cbd5e1;
  transition: background-color 140ms ease, color 140ms ease, border-color 140ms ease;
}

.menu-link:hover,
.menu-link.active {
  background: #1e293b;
  border-color: #334155;
  color: #ffffff;
}

.menu-link.active {
  box-shadow: inset 3px 0 0 #7b9fbe;
}

.menu-link-inner svg,
.sidebar-logout-btn svg,
.btn svg,
.dashboard-download-icon svg {
  color: currentColor;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
}

.btn svg {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
}

.app-table .btn svg,
.dashboard-activity-table .btn svg,
.timesheet-period-table .btn svg,
.inbox-table .btn svg {
  width: 14px;
  height: 14px;
}

.sidebar-user {
  border-top: 1px solid #263548;
  background: #111d2b;
}

.sidebar-user-avatar {
  background: #1e3a56;
  color: #ffffff;
}

.sidebar-user-name {
  color: #f8fafc;
}

.sidebar-user-role {
  color: #a7b5c5;
}

.sidebar-logout-btn {
  border: 1px solid #475569;
  border-radius: 4px;
  background: transparent;
  color: #cbd5e1;
}

.pertamc-workspace {
  padding: 1.25rem 1.4rem 2rem;
}

.workspace-header {
  min-height: 76px;
  margin-bottom: 1rem;
  padding: 0.9rem 1rem;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  box-shadow: none;
}

.workspace-header-icon,
.inbox-header-icon,
.account-header-icon {
  width: 40px;
  height: 40px;
  border: 1px solid #d5dee8;
  border-radius: 5px;
  background: #f1f5f9;
  color: #0f4c81;
  box-shadow: none;
}

.workspace-title {
  color: #0f172a;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.workspace-subtitle,
.dashboard-manager-caption,
.form-help {
  color: #475569;
}

.timesheet-office-header,
.dashboard-welcome-banner {
  border: 1px solid #263548;
  border-radius: 6px;
  background: #0f172a;
  box-shadow: none;
}

.timesheet-office-header::after,
.dashboard-welcome-banner::after {
  display: none;
}

.timesheet-office-header .workspace-title,
.dashboard-welcome-copy h1 {
  color: #ffffff;
}

.timesheet-office-header .workspace-subtitle,
.dashboard-welcome-copy > p:not(.dashboard-welcome-eyebrow) {
  color: #cbd5e1;
}

.timesheet-office-eyebrow,
.dashboard-welcome-eyebrow {
  color: #cbd5e1;
}

.timesheet-office-icon {
  border: 1px solid #475569;
  border-radius: 4px;
  background: #1e293b;
  color: #e2e8f0;
}

.timesheet-header-actions > form,
.dashboard-welcome-banner .dashboard-period-filter,
.dashboard-welcome-banner .dashboard-status-pill {
  border-radius: 4px;
  background: #1e293b;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.timesheet-header-actions label,
.dashboard-welcome-banner .dashboard-period-filter label {
  color: #cbd5e1;
}

.dashboard-status-pill > span {
  box-shadow: none;
}

.dashboard-status-badge {
  border-radius: 4px;
  color: #15803d;
}

.card,
.stat-box,
.timesheet-metric-card,
.timesheet-general-cards > .card,
.account-card,
.dashboard-manager-item {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  box-shadow: none;
}

.card-header {
  min-height: 48px;
  padding: 0.7rem 0.9rem;
  background: #e2e8f0;
  border-bottom: 1px solid #cbd5e1;
}

.card-title {
  color: #0f172a;
  font-size: 0.98rem;
  font-weight: 650;
}

.card-body {
  padding: 1rem;
}

.stat-box {
  min-height: 88px;
  padding: 0.85rem;
}

.stat-icon {
  width: 38px;
  height: 38px;
  border: 1px solid #dbe3ec;
  border-radius: 5px;
  box-shadow: none;
}

.stat-val {
  color: #0f172a;
  font-size: 1.35rem;
}

.stat-lbl,
.stat-note {
  color: #475569;
}

.btn {
  min-height: 36px;
  border-radius: 4px;
  box-shadow: none;
  font-size: 0.84rem;
  font-weight: 600;
  transition: background-color 140ms ease, border-color 140ms ease, color 140ms ease;
}

.btn-primary {
  border-color: #0f4c81;
  background: #0f4c81;
  color: #ffffff;
}

.btn-primary:hover:not(:disabled) {
  border-color: #0b3a63;
  background: #0b3a63;
}

.btn-secondary {
  border: 1px solid #cbd5e1;
  background: #ffffff;
  color: #334155;
}

.btn-secondary:hover:not(:disabled) {
  border-color: #94a3b8;
  background: #f1f5f9;
  color: #0f172a;
}

.btn-success {
  border-color: #15803d;
  background: #15803d;
  color: #ffffff;
}

.btn-danger {
  border-color: #b91c1c;
  background: #b91c1c;
  color: #ffffff;
}

.btn:disabled {
  opacity: 0.58;
  box-shadow: none;
}

.btn[aria-busy="true"]::before {
  width: 13px;
  height: 13px;
  flex: 0 0 13px;
  border: 1.5px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  content: "";
  animation: enterprise-spin 0.8s linear infinite;
}

.form-label {
  color: #334155;
  font-size: 0.82rem;
  font-weight: 650;
}

.form-input,
.form-select,
.form-textarea,
.landing-input {
  border: 1px solid #cbd5e1;
  border-radius: 4px;
  background: #ffffff;
  color: #0f172a;
  font-size: 0.86rem;
  box-shadow: none;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus,
.landing-input:focus {
  border-color: #0f4c81;
  outline: 0;
  box-shadow: 0 0 0 2px rgba(15, 76, 129, 0.16);
}

.badge {
  padding: 0.2rem 0.48rem;
  border: 1px solid transparent;
  border-radius: 4px;
  font-size: 0.7rem;
  letter-spacing: 0.025em;
}

.badge-completed {
  border-color: #bbf7d0;
  background: #f0fdf4;
  color: #15803d;
}

.badge-waiting,
.badge-admin-review,
.badge-pm-approval {
  border-color: #fde68a;
  background: #fffbeb;
  color: #b45309;
}

.badge-waiting[style],
.badge-admin-review[style],
.badge-pm-approval[style] {
  border-color: #fde68a !important;
  background: #fffbeb !important;
  color: #b45309 !important;
}

.badge-rejected {
  border-color: #fecaca;
  background: #fef2f2;
  color: #b91c1c;
}

.badge-draft {
  border-color: #cbd5e1;
  background: #f1f5f9;
  color: #334155;
}

.table-responsive {
  border: 1px solid #e2e8f0;
  border-radius: 4px;
}

.app-table,
.dashboard-activity-table,
.timesheet-period-table {
  color: #0f172a;
  font-size: 0.82rem;
}

.app-table th,
.dashboard-activity-table th,
.timesheet-period-table th,
.inbox-table th {
  background: #f1f5f9;
  border-bottom: 1px solid #cbd5e1;
  color: #334155;
}

.table-responsive > table thead th {
  position: sticky;
  top: 0;
  z-index: 2;
}

.app-table td,
.app-table th,
.dashboard-activity-table td,
.dashboard-activity-table th,
.timesheet-period-table td,
.timesheet-period-table th,
.inbox-table td,
.inbox-table th {
  border-color: #e2e8f0;
}

.app-table tbody tr:hover,
.dashboard-activity-table tbody tr:hover,
.timesheet-period-table tbody tr:hover,
.inbox-table tbody tr:hover {
  background: #f8fafc;
}

.dashboard-sort-indicator {
  color: #94a3b8;
}

.dashboard-sort-button.is-ascending [data-sort-up],
.dashboard-sort-button.is-descending [data-sort-down],
.timesheet-sort-button[aria-sort="ascending"] [data-sort-up],
.timesheet-sort-button[aria-sort="descending"] [data-sort-down],
.timesheet-sort-button.is-ascending [data-sort-up],
.timesheet-sort-button.is-descending [data-sort-down] {
  color: #0f4c81;
}

.dashboard-sort-indicator svg,
.timesheet-sort-indicator svg {
  width: 10px;
  height: 10px;
}

.timesheet-sort-button {
  color: inherit;
}

.timesheet-period-table .timesheet-sort-indicator {
  display: none;
}

.timesheet-sort-button:focus-visible,
.dashboard-sort-button:focus-visible {
  outline: 2px solid #0f4c81;
  outline-offset: 3px;
}

.dashboard-row-action,
.dashboard-download-icon,
.dashboard-manager-archive {
  border: 1px solid #cbd5e1;
  border-radius: 4px;
  background: #ffffff;
  color: #0f4c81;
}

.dashboard-row-action:hover,
.dashboard-manager-archive:hover:not(:disabled) {
  border-color: #94a3b8;
  background: #f1f5f9;
  color: #0b3a63;
}

.dashboard-manager-list {
  gap: 0.55rem;
}

.dashboard-manager-item {
  overflow: hidden;
}

.dashboard-manager-badge {
  min-height: 44px;
  border: 1px solid #cbd5e1;
  border-radius: 4px;
  background: #ffffff;
}

.dashboard-manager-toggle {
  min-height: 42px;
  padding: 0.5rem 0.7rem;
  color: #0f172a;
}

.dashboard-manager-toggle:focus-visible,
.dashboard-download-icon:focus-visible {
  outline: 2px solid #0f4c81;
  outline-offset: 2px;
}

.dashboard-manager-chevron {
  transition: transform 160ms ease;
}

.dashboard-manager-toggle[aria-expanded="true"] .dashboard-manager-chevron {
  transform: rotate(180deg);
}

.dashboard-manager-worker-count {
  color: #334155;
  font-variant-numeric: tabular-nums;
}

.dashboard-manager-archive {
  width: 38px;
  min-width: 38px;
  border: 0;
  border-left: 1px solid #cbd5e1;
  border-radius: 0;
}

.dashboard-approved-workers {
  margin: 0;
  border: 0;
  border-top: 1px solid #e2e8f0;
  border-radius: 0;
  background: #ffffff;
}

.timesheet-modal-backdrop,
.inbox-modal-backdrop,
#modalEvidence,
#importModal,
#modalEditAsst {
  background: rgba(15, 23, 42, 0.48) !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

.timesheet-modal-card,
.inbox-modal-card,
#modalEvidence > .card,
#importModal > div,
#modalEditAsst > .card {
  width: min(540px, calc(100vw - 2rem));
  max-width: 540px;
  max-height: 75vh;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  background: #ffffff;
  box-shadow: var(--enterprise-modal-shadow);
  overflow-y: auto;
}

#modalEvidence > .card,
#importModal > div,
#modalEditAsst > .card {
  width: min(540px, calc(100vw - 2rem)) !important;
  max-height: 75vh !important;
  border-radius: 6px !important;
  box-shadow: var(--enterprise-modal-shadow) !important;
  overflow-y: auto !important;
}

.inbox-modal-card {
  width: min(720px, calc(100vw - 2rem));
  max-width: 720px;
}

.timesheet-modal-header,
.inbox-modal-header {
  min-height: 54px;
  padding: 0.7rem 0.9rem;
  border-bottom: 1px solid #e2e8f0;
  background: #f1f5f9;
  color: #0f172a;
}

#modalEvidence .card-header,
#modalEditAsst .card-header,
#importModal > div > div:first-child {
  background: #f1f5f9 !important;
}

.timesheet-modal-title,
.inbox-modal-title,
#modalEvidence .card-title,
#modalEditAsst .card-title,
#importModal h3 {
  color: #0f172a !important;
  font-size: 1rem !important;
  font-weight: 600 !important;
}

.timesheet-modal-subtitle,
.inbox-modal-subtitle {
  color: #475569;
}

.timesheet-modal-icon,
.inbox-modal-icon {
  width: 32px;
  height: 32px;
  border: 1px solid #cbd5e1;
  border-radius: 4px;
  background: #ffffff;
  color: #334155;
}

.timesheet-modal-close,
.inbox-modal-close {
  width: 32px;
  height: 32px;
  border: 1px solid #cbd5e1;
  border-radius: 4px;
  background: #ffffff;
  color: #334155;
}

.timesheet-modal-close:hover,
.inbox-modal-close:hover {
  background: #e2e8f0;
  color: #0f172a;
}

#modalEvidence button[aria-label="Tutup"],
#modalEditAsst button[aria-label="Tutup"],
#importModal button[aria-label="Tutup"] {
  width: 32px;
  height: 32px;
  border: 1px solid #cbd5e1 !important;
  border-radius: 4px !important;
  background: #ffffff !important;
  color: #334155 !important;
}

.timesheet-modal-body,
.inbox-modal-body {
  max-height: 75vh;
  padding: 0.9rem;
  overflow-y: auto;
  background: #ffffff;
}

.timesheet-modal-info-list,
.inbox-modal-info-list {
  gap: 0.65rem;
}

.timesheet-modal-info-item,
.inbox-modal-info-item {
  padding: 0.65rem 0.75rem;
  border: 1px solid #e2e8f0;
  border-radius: 4px;
  background: #ffffff;
}

.timesheet-modal-info-label,
.inbox-modal-info-label {
  color: #475569;
  font-weight: 700;
}

.timesheet-modal-info-label svg,
.inbox-modal-info-label svg {
  color: currentColor;
  stroke-width: 1.5;
}

.timesheet-modal-footer,
.inbox-modal-footer {
  padding: 0.7rem 0.9rem;
  border-top: 1px solid #e2e8f0;
  background: #f8fafc;
  justify-content: flex-end;
}

.swal2-container.app-swal-container {
  background: rgba(15, 23, 42, 0.48) !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

.swal2-popup.app-swal-popup,
.swal2-popup.app-swal-evidence-popup {
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  background: #ffffff;
  box-shadow: var(--enterprise-modal-shadow);
}

.swal2-popup.app-swal-popup {
  width: min(540px, calc(100vw - 2rem));
  padding: 1.15rem;
}

.swal2-popup.app-swal-popup::before {
  display: none;
}

.app-swal-title {
  color: #0f172a !important;
  font-size: 1rem !important;
  font-weight: 600 !important;
}

.app-swal-message {
  color: #334155 !important;
  font-size: 0.88rem !important;
  line-height: 1.5 !important;
}

.app-swal-actions {
  gap: 0.5rem;
}

.app-swal-confirm,
.app-swal-cancel {
  min-height: 36px;
  border-radius: 4px !important;
}

.app-swal-evidence-body {
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  border-radius: 4px;
}

.evidence-process-status {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0.6rem;
  color: #334155 !important;
  font-variant-numeric: tabular-nums;
}

.evidence-process-status::before {
  width: 13px;
  height: 13px;
  flex: 0 0 13px;
  border: 1.5px solid #0f4c81;
  border-right-color: transparent;
  border-radius: 50%;
  content: "";
  animation: enterprise-spin 0.8s linear infinite;
}

.evidence-process-status progress {
  appearance: none;
  -webkit-appearance: none;
  width: min(180px, 42vw) !important;
  height: 6px;
  flex: 0 0 auto;
  border: 0;
  border-radius: 0;
  background: #e2e8f0;
  color: #0f4c81;
  overflow: hidden;
}

.evidence-process-status progress::-webkit-progress-bar {
  background: #e2e8f0;
}

.evidence-process-status progress::-webkit-progress-value {
  background: #0f4c81;
}

.evidence-process-status progress::-moz-progress-bar {
  background: #0f4c81;
}

.evidence-process-status span {
  margin-left: auto;
  font-variant-numeric: tabular-nums;
}

.evidence-process-status[hidden] {
  display: none !important;
}

.animate-spin,
.is-loading .icon-spinner {
  animation: enterprise-spin 0.8s linear infinite;
}

@keyframes enterprise-spin {
  to { transform: rotate(360deg); }
}

.landing-body,
.login-body {
  background: #0f172a;
}

.landing-body.no-carousel {
  background: #0f172a;
}

.landing-visual-pane,
.landing-carousel {
  background: #0f172a;
}

.landing-auth-pane {
  box-shadow: none;
}

.landing-auth-card,
.login-card {
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  background: #ffffff;
  box-shadow: 0 2px 12px rgba(15, 23, 42, 0.12);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.landing-slide-badge {
  border: 1px solid #475569;
  border-radius: 4px;
  background: #1e293b;
  color: #e2e8f0;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.landing-slide-badge .badge-dot {
  background: #15803d;
  box-shadow: none;
}

.landing-slide-title,
.landing-visual-watermark .watermark-logo-text {
  text-shadow: none;
}

.landing-slide-subtitle {
  color: #cbd5e1;
}

.carousel-nav-btn {
  border: 1px solid #475569;
  border-radius: 4px;
  background: #1e293b;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.carousel-nav-btn:hover {
  border-color: #94a3b8;
  background: #334155;
  box-shadow: none;
  transform: translateY(-50%);
}

.carousel-dot {
  border-radius: 2px;
}

.carousel-dot.active {
  background: #cbd5e1;
  box-shadow: none;
}

.landing-auth-pane {
  background: #f8fafc;
}

.landing-auth-card {
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  box-shadow: 0 2px 12px rgba(15, 23, 42, 0.08);
}

.landing-security-box {
  border: 1px solid #e2e8f0;
  border-radius: 4px;
  background: #f8fafc;
  box-shadow: none;
}

.landing-btn-login {
  min-height: 42px;
  border-radius: 4px;
  box-shadow: none;
}

.landing-mobile-topbar {
  background: #0f172a;
  border-bottom: 1px solid #334155;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.mobile-login-toggle-btn {
  border: 1px solid #475569;
  border-radius: 4px;
  background: transparent;
  color: #ffffff;
  box-shadow: none;
}

.ui-icon {
  display: inline-block;
  width: 16px;
  height: 16px;
  vertical-align: -0.18em;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.app-table .ui-icon,
.inbox-table .ui-icon,
.timesheet-period-actions .ui-icon {
  width: 14px;
  height: 14px;
}

.workspace-header-icon .ui-icon,
.timesheet-modal-icon .ui-icon,
.inbox-modal-icon .ui-icon {
  width: 18px;
  height: 18px;
}

:focus-visible {
  outline: 2px solid #0f4c81;
  outline-offset: 2px;
}

::selection {
  background: #dbeafe;
  color: #0f172a;
}

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

@media (max-width: 767px) {
  .pertamc-sidebar,
  .pertamc-sidebar.sidebar-collapsed {
    align-items: center;
    gap: 0.25rem;
    padding-right: calc(0.5rem + env(safe-area-inset-right));
    padding-left: calc(0.5rem + env(safe-area-inset-left));
    background: #0f172a;
    border-bottom: 1px solid #334155;
  }

  .sidebar-mobile-brand {
    flex-basis: 44px;
    margin-right: 0;
    border-right: 1px solid #334155;
  }

  .sidebar-mobile-brand img {
    width: 36px;
    height: 36px;
  }

  .sidebar-menu {
    gap: 0.2rem;
    padding: 0 0.25rem;
    overscroll-behavior-x: contain;
    -webkit-overflow-scrolling: touch;
    scroll-behavior: smooth;
  }

  .menu-link,
  .pertamc-sidebar.sidebar-collapsed .menu-link {
    flex-basis: 42px;
    width: 42px;
    min-width: 42px;
    min-height: 42px;
    height: 42px;
    border: 1px solid transparent;
    border-radius: 4px;
    background: transparent;
    color: #cbd5e1;
    transition: background-color 140ms ease, border-color 140ms ease, color 140ms ease;
  }

  .menu-link:hover,
  .pertamc-sidebar.sidebar-collapsed .menu-link:hover {
    border-color: #334155;
    background: #1e293b;
    color: #ffffff;
  }

  .menu-link.active,
  .pertamc-sidebar.sidebar-collapsed .menu-link.active {
    border-color: #475569;
    background: #1e293b;
    color: #ffffff;
    box-shadow: inset 0 -2px 0 #94a3b8;
  }

  .menu-link-inner svg {
    width: 19px;
    height: 19px;
    stroke-width: 1.5;
  }

  .sidebar-user,
  .pertamc-sidebar.sidebar-collapsed .sidebar-user {
    flex-basis: 42px;
    margin-left: 0.15rem;
    padding-left: 0.35rem;
    border-left: 1px solid #334155;
  }

  .sidebar-logout-btn {
    width: 40px;
    height: 40px;
    border-color: #475569;
    border-radius: 4px;
    background: transparent;
    color: #cbd5e1;
    box-shadow: none;
  }

  .sidebar-logout-btn:hover {
    border-color: #64748b;
    background: #1e293b;
    color: #ffffff;
  }

  .badge-counter {
    top: 1px;
    right: 1px;
    border: 1px solid #0f172a;
  }

  .pertamc-workspace {
    padding: calc(60px + env(safe-area-inset-top) + 1rem) 0.75rem 1rem;
  }

  .workspace-header {
    padding: 0.75rem;
    border-radius: 4px;
  }

  .card-header {
    min-height: 48px;
    padding: 0.65rem 0.75rem;
  }

  .card-body {
    padding: 0.8rem;
  }

  .stat-box {
    min-height: 78px;
    padding: 0.7rem;
  }

  .timesheet-modal-card,
  .inbox-modal-card {
    width: calc(100vw - 1rem);
    max-height: 75vh;
    margin: 0.5rem;
  }

  .timesheet-modal-body,
  .inbox-modal-body {
    max-height: 75vh;
    padding: 0.75rem;
  }

  .timesheet-modal-info-grid,
  .inbox-modal-info-grid {
    grid-template-columns: 1fr;
  }

  .dashboard-manager-list {
    grid-template-columns: 1fr;
  }
}

/* ===== Consolidated Scheduler styles ===== */
.scheduler-wrapper {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
  }

  .upload-card {
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
  }

  .upload-flex {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    flex-wrap: wrap;
  }

  .custom-upload-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.65rem 1.25rem;
    background: #f8fafc;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    font-size: 0.875rem;
    font-weight: 600;
    color: #334155;
    cursor: pointer;
    transition: all 0.2s ease;
  }

  .custom-upload-btn:hover {
    background: #e2e8f0;
    border-color: var(--primary);
    color: var(--primary);
  }

  .file-name-label {
    font-size: 0.875rem;
    color: var(--text-muted);
    font-style: italic;
  }

  .file-name-label.has-file {
    color: var(--primary);
    font-weight: 600;
    font-style: normal;
  }

  .privacy-banner {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.75rem;
    padding: 0.5rem 0.75rem;
    background: #f0fdf4;
    border-left: 3px solid #10b981;
    border-radius: 4px;
    font-size: 0.8rem;
    color: #166534;
  }

  /* Database Storage & History Badges */
  .db-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.25rem 0.65rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
  }

  .db-status-saving {
    background: #fef3c7;
    color: #92400e;
    border: 1px solid #fde68a;
  }

  .db-status-saved {
    background: #dcfce7;
    color: #15803d;
    border: 1px solid #bbf7d0;
  }

  .db-status-error {
    background: #fee2e2;
    color: #b91c1c;
    border: 1px solid #fecaca;
  }

  .history-select {
    padding: 0.45rem 0.75rem;
    border: 1px solid var(--border);
    border-radius: 6px;
    font-size: 0.825rem;
    background: #ffffff;
    color: var(--text-dark);
    min-width: 250px;
    max-width: 380px;
  }

  /* Filters */
  .filter-panel {
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 0.85rem 1.25rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
    box-shadow: var(--shadow-sm);
  }

  .filter-group {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
  }

  .filter-group input[type="date"] {
    padding: 0.45rem 0.65rem;
    border: 1px solid var(--border);
    border-radius: 6px;
    font-size: 0.825rem;
    font-family: inherit;
    background: #fff;
    color: var(--text-dark);
  }

  /* Roster Table Styling */
  .roster-container {
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: 8px;
    overflow-x: auto;
    overflow-y: auto;
    position: relative;
    max-height: 600px;
    isolation: isolate;
    box-shadow: var(--shadow-sm);
  }

  .roster-table {
    border-collapse: separate;
    border-spacing: 0;
    table-layout: fixed;   /* paksa lebar kolom mengikuti definisi, bukan konten */
    width: auto;           /* lebar eksplisit dihitung & di-set oleh JS adjustStickyColumnWidths() */
    font-size: 0.775rem;   /* ← ukuran font seluruh tabel */
    text-align: center;
  }

  .roster-table th,
  .roster-table td {
    padding: 5px 4px;
    border: 1px solid #e2e8f0;
    white-space: nowrap;
    box-sizing: border-box;
  }

  .roster-table thead tr.month-row th {
    background: #0f172a;
    color: #ffffff;
    font-weight: 700;
    position: sticky;
    top: 0;
    z-index: 20;
    height: 31px;
    padding: 6px 4px;
    letter-spacing: 0.02em;
  }

  .roster-table thead tr.day-row th {
    background: #f1f5f9;
    color: #334155;
    font-weight: 600;
    position: sticky;
    top: 31px;
    z-index: 20;
    height: 25px;
  }

  .roster-table thead tr.date-row th {
    background: #ffffff;
    color: #0f172a;
    font-weight: 700;
    position: sticky;
    top: 56px;
    z-index: 20;
    height: 26px;
  }

  /* Compact Calendar Day & Date Columns */
  /* Edit ukuran di blok COL_SIZES dalam <script> di bawah — CSS ini hanya fallback */
  .roster-table th.col-cal {
    width: 38px;
    min-width: 38px;
    max-width: 38px;
    padding: 4px 1px !important;
    text-align: center;
    box-sizing: border-box;
  }

  /* Kelas pemaksa lebar seragam — diterapkan JS ke th & td kalender (non-merged) */
  .calendar-col {
    width: 38px !important;
    min-width: 38px !important;
    max-width: 38px !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
  }

  .roster-table th.col-cal-day {
    font-size: 0.675rem;
    color: #64748b;
    font-weight: 600;
    line-height: 1.2;
  }

  .roster-table th.col-cal-date {
    font-size: 0.775rem;
    color: #0f172a;
    font-weight: 700;
    line-height: 1.2;
  }

  /* Sticky Left Columns */
  .roster-table .sticky-col {
    position: sticky;
    background: #ffffff;
    z-index: 5;
    text-align: left;
    font-weight: 500;
  }

  .roster-table thead .sticky-col {
    top: 0;
    z-index: 30 !important;
    background: #0f172a !important;
    color: #ffffff !important;
    vertical-align: middle;
  }

  /* Kolom sticky: width & left di-override oleh JS (COL_SIZES). Hanya max-width yang CSS-only */
  .roster-table .col-location {
    left: 0;
    min-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .roster-table .col-worker {
    font-weight: 600;
    color: #0f4c81;
    min-width: 160px;
  }

  .roster-table .col-sum {
    text-align: center;
    font-weight: 700;
    background: #f1f5f9;
    /* left dikontrol oleh COL_SIZES di JS */
  }

  /* Unified Group Header Rows (Team • Asst Manager • Area) */
  .roster-table .group-row {
    font-size: 0.8rem;
  }

  .roster-table .group-header-unified {
    background: #0f172a;
    color: #ffffff;
    border-top: 2px solid #cbd5e1;
  }

  .roster-table .group-sticky-unified {
    left: 0;
    min-width: 326px;
    width: 326px;
    background: #0f172a !important;
    color: #ffffff !important;
    z-index: 8 !important;
    padding: 0.55rem 0.85rem !important;
    border-right: 1px solid #334155 !important;
    text-align: left;
    box-sizing: border-box;
  }

  .roster-table .group-band-unified {
    background: #1e293b;
    border-color: #334155;
  }

  /* Badges & Values in Group Headers */
  .group-badge-wrapper {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    flex-wrap: wrap;
  }

  .group-pill {
    display: inline-flex;
    align-items: center;
    padding: 0.15rem 0.45rem;
    border-radius: 4px;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    line-height: 1.2;
  }

  .pill-team {
    background: #0f4c81;
    color: #ffffff;
  }

  .pill-supervisor {
    background: #334155;
    color: #ffffff;
  }

  .pill-area {
    background: #64748b;
    color: #ffffff;
  }

  .group-val {
    font-size: 0.8rem;
    letter-spacing: 0.01em;
  }

  .group-val.team-val {
    color: #f8fafc;
    font-weight: 700;
  }

  .group-val.supervisor-val {
    color: #cbd5e1;
    font-weight: 600;
  }

  .group-val.area-val {
    color: #e2e8f0;
    font-weight: 700;
  }

  .group-sep {
    color: #94a3b8;
    font-weight: 400;
    font-size: 0.75rem;
    margin: 0 0.15rem;
  }

  /* Compact Shift Cell Styles */
  .shift-cell {
    width: 38px;
    min-width: 38px;
    max-width: 38px;
    padding: 5px 2px !important;
    cursor: pointer;
    user-select: none;
    transition: background 0.15s;
    font-weight: 600;
    font-size: 11.5px;
    text-align: center;
    box-sizing: border-box;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    /* teks pendek tidak wrap */
  }

  /* Sel shift yang ter-merge (colspan > 1): bebas melebar, tetap terpotong rapi */
  .shift-cell[colspan],
  td.calendar-col[colspan] {
    max-width: none !important;
    width: auto !important;
    min-width: 0 !important;
    padding: 5px 6px !important;
    font-size: 12px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .shift-cell.shift-day {
    background: #eff6fb;
    color: #0f4c81;
  }

  .shift-cell.shift-night {
    background: #334155;
    color: #ffffff;
  }

  .shift-cell.shift-sol {
    background: #fffbeb;
    color: #92400e;
  }

  .shift-cell.shift-sika {
    background: #f0fdf4;
    color: #166534;
  }

  .shift-cell.shift-off {
    background: #f8fafc;
    color: #94a3b8;
  }

  .roster-table .worker-row-odd td:not(.shift-cell) {
    background-color: #ffffff;
  }

  .roster-table .worker-row-even td:not(.shift-cell) {
    background-color: #f8fafc;
  }

  .roster-table .worker-row-even .col-sum {
    background-color: #f1f5f9;
  }

  .roster-table .worker-row-odd .col-sum {
    background-color: #ffffff;
  }

  .shift-cell.expanded {
    white-space: normal !important;
    overflow: visible !important;
    max-width: none !important;
    min-width: 160px !important;
    background-color: #ffffff !important;
    color: var(--text-dark) !important;
    border: 2px solid var(--primary) !important;
    z-index: 100 !important;
    position: relative;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.2);
    padding: 8px 10px !important;
    font-size: 0.825rem !important;
    font-weight: 600 !important;
  }

  /* Spinner */
  #schedulerLoading {
    display: none;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 2rem;
    font-weight: 600;
    color: var(--primary);
  }

  .spinner-dot {
    width: 24px;
    height: 24px;
    border: 3px solid #cbd5e1;
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
  }

  @keyframes spin {
    to {
      transform: rotate(360deg);
    }
  }

  .roster-meta-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0.25rem;
    flex-wrap: wrap;
    gap: 1rem;
  }

/* ===== Consolidated DAS print styles ===== */
@page {
            size: A4 portrait;
            margin: 10mm 10mm 10mm 10mm;
        }

        * {
            box-sizing: border-box;
        }

        body {
            font-family: Arial, Helvetica, sans-serif;
            font-size: 8pt;
            color: #000;
            margin: 0;
            padding: 0;
            -webkit-print-color-adjust: exact;
            print-color-adjust: exact;
        }

        body.pdf-download-mode > :not(.print-actions) {
            display: none !important;
        }

        /* ── Action Buttons (Hidden when printing) ── */
        .print-actions {
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            gap: 12px;
            min-height: 100vh;
            margin: 0;
            padding: 24px;
            text-align: center;
        }

        .btn-print {
            background: #0284c7;
            color: #fff;
            padding: 8px 18px;
            border: none;
            border-radius: 4px;
            cursor: pointer;
            font-weight: bold;
            font-size: 9pt;
            margin-right: 8px;
            box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
        }

        .btn-print:hover {
            background: #0369a1;
        }

        .btn-print:disabled {
            cursor: wait;
            opacity: 0.7;
        }

        .das-pdf-status {
            display: inline-block;
            margin-right: 8px;
            color: #475569;
            font-size: 8pt;
        }

        .das-pdf-status.is-error {
            color: #b91c1c;
        }

        .das-pdf-status.is-success {
            color: #047857;
        }

        .btn-pdf {
            background: #dc2626;
            color: #fff;
            padding: 8px 18px;
            border: none;
            border-radius: 4px;
            cursor: pointer;
            font-weight: bold;
            font-size: 9pt;
            text-decoration: none;
            display: inline-block;
            box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
        }

        .btn-pdf:hover {
            background: #b91c1c;
        }

        @media print {
            .print-actions {
                display: none;
            }

            body {
                margin: 0;
            }
        }

/* DWSR Schedule Viewer — Enterprise Trust layout */
.pertamc-workspace .scheduler-wrapper {
  gap: 16px;
}

.pertamc-workspace .scheduler-wrapper .upload-card {
  padding: 16px;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.pertamc-workspace .upload-card > div:first-child {
  align-items: center !important;
  gap: 12px !important;
  padding-bottom: 12px !important;
  margin-bottom: 12px !important;
  border-bottom-color: #e2e8f0 !important;
}

.pertamc-workspace .scheduler-wrapper .upload-flex {
  flex: 1 1 360px;
  gap: 8px;
  min-width: 0;
}

.pertamc-workspace .scheduler-wrapper .custom-upload-btn {
  min-height: 36px;
  padding: 8px 12px;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  background: #f8fafc;
  color: #334155;
}

.pertamc-workspace .scheduler-wrapper .file-name-label {
  min-width: 0;
  overflow-wrap: anywhere;
}

.pertamc-workspace .upload-card > div:first-child > div:last-child {
  flex: 1 1 420px;
  gap: 8px !important;
  min-width: 0;
}

.pertamc-workspace .scheduler-wrapper .history-select {
  flex: 1 1 240px;
  width: auto;
  min-width: 180px;
  max-width: 100%;
}

.pertamc-workspace .scheduler-wrapper .btn,
.pertamc-workspace .scheduler-wrapper .custom-upload-btn {
  min-height: 36px;
  border-radius: 6px;
  box-shadow: none;
}

.pertamc-workspace .scheduler-wrapper #loadHistoryBtn,
.pertamc-workspace .scheduler-wrapper #exportExcelBtn {
  border: 1px solid #cbd5e1 !important;
  background: #0f4c81 !important;
  color: #ffffff !important;
}

.pertamc-workspace .scheduler-wrapper #loadHistoryBtn:hover,
.pertamc-workspace .scheduler-wrapper #exportExcelBtn:hover {
  background: #0b3a63 !important;
}

.pertamc-workspace .scheduler-wrapper #loadByDateBtn {
  border: 1px solid #cbd5e1 !important;
  background: #ffffff !important;
  color: #0f4c81 !important;
}

.pertamc-workspace .scheduler-wrapper #loadByDateBtn:hover {
  background: #f1f5f9 !important;
  border-color: #94a3b8 !important;
}

.pertamc-workspace .scheduler-wrapper #loadHistoryBtn svg,
.pertamc-workspace .scheduler-wrapper #loadByDateBtn svg,
.pertamc-workspace .scheduler-wrapper #exportExcelBtn svg,
.pertamc-workspace .scheduler-wrapper .custom-upload-btn svg {
  fill: none !important;
  stroke: currentColor !important;
  stroke-width: 1.5 !important;
}

.pertamc-workspace .scheduler-wrapper .filter-panel {
  align-items: center;
  gap: 12px;
  padding: 12px;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  box-shadow: none;
}

.pertamc-workspace .scheduler-wrapper .filter-group {
  gap: 8px;
  min-width: 0;
}

.pertamc-workspace .scheduler-wrapper .filter-group > div[style] {
  flex-wrap: wrap !important;
  gap: 8px !important;
}

.pertamc-workspace .scheduler-wrapper .filter-group input[type="date"],
.pertamc-workspace .scheduler-wrapper .history-select {
  min-height: 36px;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  color: #0f172a;
}

.pertamc-workspace .scheduler-wrapper .roster-meta-bar {
  align-items: center;
  gap: 8px 16px;
  padding: 4px 0;
}

.pertamc-workspace .scheduler-wrapper .roster-meta-bar > div:first-child {
  flex: 1 1 420px;
  min-width: 0;
}

.pertamc-workspace .scheduler-wrapper .roster-meta-bar > div:last-child {
  flex: 1 1 260px;
  justify-content: flex-end;
  min-width: 0;
  overflow-wrap: anywhere;
}

.pertamc-workspace .scheduler-wrapper #active-worker-count {
  border: 1px solid #dbe7f0;
  border-radius: 4px !important;
  background: #eff6fb !important;
  color: #0f4c81 !important;
  font-variant-numeric: tabular-nums;
}

.pertamc-workspace .scheduler-wrapper #active-file-name {
  overflow-wrap: anywhere;
}

.pertamc-workspace .scheduler-wrapper .roster-container {
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  box-shadow: none;
}

.pertamc-workspace .scheduler-wrapper .roster-table th,
.pertamc-workspace .scheduler-wrapper .roster-table td {
  border-color: #cbd5e1;
}

.pertamc-workspace .scheduler-wrapper .roster-table thead th {
  position: sticky;
  border-color: #cbd5e1;
}

.pertamc-workspace .scheduler-wrapper .roster-table thead .sticky-col {
  background: #0f172a !important;
}

.pertamc-workspace .scheduler-wrapper .roster-table thead .month-row th:not(.sticky-col) {
  background-color: #0f766e !important;
  color: #ffffff !important;
}

.pertamc-workspace .scheduler-wrapper .roster-table thead .day-row th.calendar-col {
  background-color: #ccfbf1 !important;
  color: #134e4a !important;
}

.pertamc-workspace .scheduler-wrapper .roster-table thead .date-row th.calendar-col {
  background-color: #f0fdfa !important;
  color: #0f172a !important;
}

.pertamc-workspace .scheduler-wrapper .roster-table tbody tr:not(.group-row) .sticky-col {
  position: sticky;
  z-index: 7;
  background-color: #ffffff !important;
}

.pertamc-workspace .scheduler-wrapper .roster-table tbody .worker-row-even .sticky-col {
  background-color: #f8fafc !important;
}

.pertamc-workspace .scheduler-wrapper .roster-table tbody tr:not(.group-row) .col-location {
  background-color: var(--location-cell-bg, #ffffff) !important;
}

.pertamc-workspace .scheduler-wrapper .roster-table tbody .col-sum {
  background-color: #f1f5f9 !important;
  border-right: 0 !important;
  font-variant-numeric: tabular-nums;
}

.pertamc-workspace .scheduler-wrapper .roster-table thead .col-cal-day,
.pertamc-workspace .scheduler-wrapper .roster-table thead .col-cal-date {
  font-variant-numeric: tabular-nums;
}

.pertamc-workspace .scheduler-wrapper .roster-table tbody tr:not(.group-row) td {
  height: 30px;
  line-height: 1.25;
}

.pertamc-workspace .scheduler-wrapper .roster-table .shift-cell {
  height: 30px;
  max-height: 30px;
  padding: 4px 2px !important;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pertamc-workspace .scheduler-wrapper .roster-table tbody tr:not(.group-row) td.calendar-col {
  background-color: var(--location-cell-bg, #ffffff) !important;
}

.pertamc-workspace .scheduler-wrapper .roster-table .calendar-col.shift-day {
  background-color: var(--location-cell-bg, #ffffff) !important;
  color: #166534 !important;
}

.pertamc-workspace .scheduler-wrapper .roster-table .calendar-col.shift-night {
  background-color: var(--location-cell-bg, #ffffff) !important;
  color: #5b21b6 !important;
}

.pertamc-workspace .scheduler-wrapper .roster-table .calendar-col.shift-sol {
  background-color: var(--location-cell-bg, #ffffff) !important;
  color: #9f1239 !important;
}

.pertamc-workspace .scheduler-wrapper .roster-table .calendar-col.shift-off {
  background-color: var(--location-cell-bg, #ffffff) !important;
  color: #64748b !important;
}

.pertamc-workspace .scheduler-wrapper .roster-table .calendar-col.shift-sika {
  background-color: var(--location-cell-bg, #ffffff) !important;
  color: #166534 !important;
}

.pertamc-workspace .scheduler-wrapper .roster-table .calendar-col.expanded {
  background-color: var(--location-row-bg, #ffffff) !important;
  color: var(--text-dark) !important;
}

.pertamc-workspace .scheduler-wrapper .roster-table .group-sticky-unified {
  position: sticky;
  z-index: 8 !important;
  background: #0f172a !important;
  border-right: 1px solid #334155 !important;
}

.pertamc-workspace .scheduler-wrapper .group-band-unified {
  background: #1e293b;
}

.pertamc-workspace .scheduler-wrapper .group-badge-wrapper {
  gap: 6px 8px;
  line-height: 1.4;
}

.pertamc-workspace .scheduler-wrapper .group-area-line {
  display: flex;
  flex: 0 0 100%;
  align-items: center;
  gap: 8px;
  min-width: 0;
  padding-top: 2px;
}

.pertamc-workspace .scheduler-wrapper .group-pill {
  padding: 3px 6px;
  border-radius: 4px;
  line-height: 1.2;
}

.pertamc-workspace .scheduler-wrapper svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
}

@media (max-width: 767px) {
  .pertamc-workspace .scheduler-wrapper .upload-card {
    padding: 12px;
  }

  .pertamc-workspace .upload-card > div:first-child > .upload-flex,
  .pertamc-workspace .upload-card > div:first-child > div:last-child {
    flex: 1 1 100%;
    width: 100%;
  }

  .pertamc-workspace .scheduler-wrapper .history-select {
    flex: 1 1 100%;
    width: 100%;
    min-width: 0;
  }

  .pertamc-workspace .scheduler-wrapper #loadHistoryBtn {
    flex: 0 0 auto;
  }

  .pertamc-workspace .scheduler-wrapper .filter-panel,
  .pertamc-workspace .scheduler-wrapper .filter-group {
    width: 100%;
  }

  .pertamc-workspace .scheduler-wrapper .filter-group > div[style] {
    width: 100%;
  }

  .pertamc-workspace .scheduler-wrapper #startDate,
  .pertamc-workspace .scheduler-wrapper #endDate {
    flex: 1 1 130px;
    min-width: 0;
  }

  .pertamc-workspace .scheduler-wrapper #loadByDateBtn,
  .pertamc-workspace .scheduler-wrapper #exportExcelBtn {
    flex: 1 1 100%;
    justify-content: center;
  }

  .pertamc-workspace .scheduler-wrapper .roster-meta-bar > div:last-child {
    justify-content: flex-start;
  }
}

        /* ── Kop Surat Header ── */
        .kop-table {
            width: 100%;
            border-collapse: collapse;
            margin-bottom: 8px;
            padding-bottom: 6px;
            border-bottom: 2px solid #275e8f;
        }

        .kop-table td {
            vertical-align: middle;
        }

        /* ── Document Title Banner ── */
        .title-banner {
            background-color: #275e8f;
            color: #ffffff;
            font-size: 11pt;
            font-weight: bold;
            text-align: center;
            padding: 5px 0;
            margin-bottom: 12px;
            letter-spacing: 0.8px;
            text-transform: uppercase;
            border-radius: 2px;
        }

        /* ── Metadata Header: Satu Kolom ke Bawah, Rata Kiri ── */
        .meta-table {
            width: 100%;
            margin: 6px 0;
            font-size: 8pt;
            text-align: left;
        }

        .meta-table .meta-row {
            display: flex;
            padding: 1px 6px;
            align-items: flex-start;
        }

        .meta-table .label {
            font-weight: bold;
            width: 175px;
            flex: 0 0 175px;
            white-space: nowrap;
            color: #111;
        }

        .meta-table .separator {
            width: 12px;
            text-align: center;
            font-weight: bold;
        }

        .meta-table .meta-value {
            flex: 1;
            min-width: 0;
        }

        .kop-header {
            display: flex;
            align-items: center;
            justify-content: space-between;
            margin-bottom: 8px;
            padding: 0 12px 6px;
            border-bottom: 2px solid #275e8f;
        }

        .kop-logo {
            flex: 0 0 200px;
        }

        .kop-info {
            text-align: right;
        }

        .date-badge {
            background-color: #ffe699;
            border: 1px solid #d9b85c;
            padding: 1px 12px;
            font-weight: bold;
            border-radius: 2px;
            display: inline-block;
        }

        /* ── Main Data Table ── */
        .data-table {
            width: 100%;
            border-collapse: collapse;
            margin-bottom: 14px;
        }

        .data-table th,
        .data-table td {
            border: 1px solid #b4c6e7;
            padding: 3px 4px;
            font-size: 7.5pt;
            vertical-align: middle;
        }

        .data-table th {
            background-color: #275e8f;
            color: #ffffff;
            font-weight: bold;
            text-align: center;
            text-transform: uppercase;
            line-height: 1.25;
            border-color: #5b8fc7;
        }

        .data-table thead {
            display: table-header-group;
        }

        .data-table th.kop-row {
            padding: 0;
            border: 0;
            background: #fff;
        }

        .data-table th.report-header-cell {
            padding: 0;
            border: 0;
            background: #fff;
            color: #000;
            text-align: left;
            text-transform: none;
        }

        .data-table .signature-row td {
            padding: 0;
            border: 0;
        }

        .data-table tr {
            page-break-inside: avoid;
        }

        .data-table td.desc-cell {
            font-size: 7pt;
            line-height: 1.18;
            vertical-align: top;
            text-align: left;
        }

        .data-table tr.alt-row td {
            background: #f4f7fc;
        }

        .data-table td.day-count-bold {
            font-weight: 600;
        }

        .data-table td.day-count-normal {
            font-weight: normal;
        }

        /* ── Total Days Row ── */
        .total-row td {
            background-color: #d9e2f3;
            font-weight: bold;
            border-color: #8ea9db;
        }

        /* ── Signature Section ── */
        .signature-table {
            width: 100%;
            border-collapse: collapse;
            margin-top: 14px;
            page-break-inside: avoid;
        }

        .signature-table td {
            width: 33.33%;
            vertical-align: top;
            padding: 0 6px;
        }

        .signature-table td:first-child {
            padding-left: 0;
        }

        .signature-table td:last-child {
            padding-right: 0;
        }

        /* ── Signature Section ── */
        .sig-section-wrap {
            width: 100%;
            margin-top: 14px;
            page-break-inside: avoid;
        }

        .sig-boxes-row {
            display: flex;
            gap: 12px;
            align-items: stretch;
        }

        .sig-card {
            flex: 1;
            border: 1px solid #1f4e79;
            border-radius: 2px;
            background: #ffffff;
            overflow: hidden;
            display: flex;
            flex-direction: column;
            min-height: 120px;
        }

        /* Header bar: solid biru gelap (#1f4e79), teks putih */
        .sig-head {
            background-color: #1f4e79;
            color: #ffffff;
            font-weight: bold;
            font-size: 7pt;
            text-align: center;
            padding: 4px 5px;
            text-transform: uppercase;
            letter-spacing: 0.3px;
            line-height: 1.25;
        }

        /* Sub-header: biru muda (#dce6f1) berisi nama perusahaan & nama + badge */
        .sig-subhead {
            background-color: #dce6f1;
            border-bottom: 1px solid #b4c6e7;
            padding: 4px 6px;
            text-align: center;
        }

        .sig-company {
            font-size: 7pt;
            color: #1f4e79;
            font-weight: bold;
            margin-bottom: 2px;
            line-height: 1.2;
        }

        .sig-person {
            font-size: 7.5pt;
            color: #0b2545;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 4px;
            flex-wrap: wrap;
            line-height: 1.2;
        }

        .sig-person-name {
            font-weight: 600;
        }

        .sig-badge {
            background-color: #c5d7ed;
            border: 1px solid #7c9ebf;
            border-radius: 3px;
            padding: 0 4px;
            font-size: 6.8pt;
            font-weight: bold;
            color: #1f4e79;
            display: inline-block;
        }

        /* Area tanda tangan / stempel */
        .sig-area {
            flex: 1;
            display: flex;
            align-items: center;
            justify-content: center;
            min-height: 48px;
            padding: 4px 6px;
            background: #ffffff;
        }

        .sig-blank {
            width: 100%;
            height: 44px;
        }

        .sig-img {
            max-height: 44px;
            max-width: 140px;
            object-fit: contain;
        }

        /* Footer info: DATE : <tanggal> */
        .sig-footer {
            border-top: 1px solid #b4c6e7;
            background: #fafcff;
            padding: 4px 8px;
            font-size: 7.5pt;
            color: #111;
            display: flex;
            align-items: center;
        }

        .sig-date-label {
            font-weight: bold;
            width: 48px;
            color: #111;
        }

        .sig-date-sep {
            font-weight: bold;
            margin-right: 6px;
        }

        .sig-date-val {
            color: #222;
        }

        .digitally-approved {
            display: inline-block;
            color: #065f46;
            font-weight: bold;
            border: 1.5px solid #065f46;
            padding: 3px 10px;
            border-radius: 3px;
            font-size: 7pt;
            letter-spacing: 0.5px;
        }

        /* ── Evidence Attachment Page (Halaman Khusus Lampiran) ── */
        .evidence-page,
        .evidence-sheet {
            page-break-before: always;
            page-break-inside: avoid;
            break-before: page;
            break-inside: avoid-page;
            width: 100%;
            display: flex;
            flex-direction: column;
            height: 257mm;
            max-height: 257mm;
            min-height: 0;
            box-sizing: border-box;
        }

        .evidence-sheet-header {
            background-color: #275e8f;
            color: #ffffff;
            padding: 5px 10px;
            font-size: 8pt;
            font-weight: bold;
            margin-bottom: 6px;
            border-radius: 2px;
            display: flex;
            justify-content: space-between;
            align-items: center;
            flex-shrink: 0;
        }

        .evidence-img-wrap {
            flex: 1 1 0;
            border: 1px solid #cbd5e1;
            border-radius: 4px;
            background: #fafafa;
            padding: 6px;
            display: flex;
            align-items: center;
            justify-content: center;
            overflow: hidden;
            min-height: 0;
            min-width: 0;
        }

        .evidence-img-full {
            max-width: 100%;
            max-height: 100%;
            width: auto;
            height: auto;
            object-fit: contain;
            display: block;
            margin: 0 auto;
        }

        .evidence-pdf-badge-link {
            display: inline-block;
            font-size: 7.2pt;
            color: #0284c7;
            text-decoration: underline;
            margin-top: 4px;
        }

        .evidence-sheet-footer {
            border-top: 1px solid #e2e8f0;
            padding-top: 4px;
            margin-top: 6px;
            font-size: 6.5pt;
            color: #94a3b8;
            text-align: center;
            flex-shrink: 0;
        }

        @media print {
            .print-actions {
                display: none;
            }

            body {
                margin: 0;
            }

            .kop-header {
                margin-bottom: 3px;
                padding-bottom: 3px;
            }

            .title-banner {
                padding: 3px 0;
                margin-bottom: 4px;
            }

            .meta-table {
                line-height: 1;
                margin: 6px 0;
            }

            .meta-table .meta-row {
                padding: 0 6px;
            }

            .evidence-page,
            .evidence-sheet {
                page-break-before: always !important;
                page-break-inside: avoid !important;
                break-before: page !important;
                break-inside: avoid-page !important;
                height: 257mm !important;
                max-height: 257mm !important;
                min-height: 0 !important;
            }

            .evidence-img-wrap {
                flex: 1 1 0 !important;
                min-height: 0 !important;
                min-width: 0 !important;
                overflow: hidden !important;
            }

            .evidence-img-full {
                max-width: 100% !important;
                max-height: 100% !important;
                width: auto !important;
                height: auto !important;
                object-fit: contain !important;
            }
        }
