/* ============================================================
   HADIRIN — Panel Admin v2 (desain modern & profesional)
   Font Awesome 6 lokal (assets/vendor/fontawesome)
   ============================================================ */

:root {
  --primary: #2563eb;
  --primary-600: #1d4ed8;
  --primary-soft: #eff6ff;
  --navy-900: #0f172a;
  --navy-800: #1e293b;
  --navy-700: #334155;
  --bg: #f1f5f9;
  --surface: #ffffff;
  --border: #e2e8f0;
  --text: #0f172a;
  --muted: #64748b;
  --sukses: #16a34a;
  --sukses-soft: #f0fdf4;
  --danger: #dc2626;
  --danger-soft: #fef2f2;
  --warning: #d97706;
  --warning-soft: #fffbeb;
  --info: #0891b2;
  --info-soft: #ecfeff;
  --ungu: #7c3aed;
  --ungu-soft: #f5f3ff;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, .06);
  --shadow: 0 4px 16px rgba(15, 23, 42, .08);
  --shadow-lg: 0 20px 50px rgba(15, 23, 42, .18);
}

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

/* Font lokal: Inter (400/600/700/800) */
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 400; font-display: swap; src: url('vendor/inter/latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 600; font-display: swap; src: url('vendor/inter/latin-600-normal.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 700; font-display: swap; src: url('vendor/inter/latin-700-normal.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 800; font-display: swap; src: url('vendor/inter/latin-800-normal.woff2') format('woff2'); }

/* Scrollbar halus */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 999px; border: 2px solid transparent; background-clip: content-box; }
::-webkit-scrollbar-thumb:hover { background: #94a3b8; background-clip: content-box; }
.sidebar::-webkit-scrollbar-thumb { background: #334155; background-clip: content-box; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 14px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--primary); text-decoration: none; }

/* ================= APLIKASI ================= */
.app { display: flex; min-height: 100vh; }

/* ================= SIDEBAR ================= */
.sidebar {
  width: 264px;
  flex-shrink: 0;
  background: linear-gradient(180deg, #0f172a 0%, #16284d 60%, #1d3a8a 100%);
  color: #cbd5e1;
  display: flex;
  flex-direction: column;
  padding: 22px 16px 18px;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
}
.brand { display: flex; align-items: center; gap: 12px; padding: 0 8px 20px; border-bottom: 1px solid rgba(255,255,255,.08); margin-bottom: 16px; }
.brand-logo {
  width: 42px; height: 42px; border-radius: 12px;
  background: linear-gradient(135deg, #3b82f6, #1d4ed8);
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 20px; color: #fff;
  box-shadow: 0 6px 16px rgba(59, 130, 246, .45);
}
.brand-name { color: #fff; font-weight: 700; font-size: 16px; letter-spacing: .2px; }
.brand-sub { font-size: 11px; color: #94a3b8; }

.sidebar nav { display: flex; flex-direction: column; gap: 4px; }
.sidebar nav a {
  display: flex; align-items: center; gap: 12px;
  padding: 11px 14px; border-radius: 10px;
  color: #cbd5e1; font-weight: 500; font-size: 13.5px;
  transition: all .18s ease;
}
.sidebar nav a i { width: 20px; text-align: center; font-size: 15px; opacity: .9; }
.sidebar nav a:hover { background: rgba(255,255,255,.07); color: #fff; }
.sidebar nav a.aktif {
  background: linear-gradient(90deg, rgba(59,130,246,.28), rgba(59,130,246,.10));
  color: #fff; font-weight: 600;
  box-shadow: inset 3px 0 0 #3b82f6;
}

.sidebar-user {
  margin-top: auto; padding-top: 16px;
  border-top: 1px solid rgba(255,255,255,.08);
  display: flex; align-items: center; gap: 10px;
}
.sidebar-user .avatar {
  width: 38px; height: 38px; border-radius: 50%;
  background: linear-gradient(135deg, #f59e0b, #ef4444);
  color: #fff; font-weight: 700; font-size: 15px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.uinfo { flex: 1; min-width: 0; }
.uinfo b { display: block; color: #fff; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.uinfo small { color: #94a3b8; font-size: 11px; }
.logout {
  width: 34px; height: 34px; border-radius: 9px;
  display: flex; align-items: center; justify-content: center;
  color: #94a3b8; transition: all .18s;
}
.logout:hover { background: rgba(239,68,68,.18); color: #f87171; }

/* ================= MAIN & TOPBAR ================= */
.main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.topbar {
  background: rgba(255,255,255,.9);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 1px 10px rgba(15,23,42,.04);
  padding: 16px 28px;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  position: sticky; top: 0; z-index: 20;
}
.topbar h1 { font-size: 19px; font-weight: 700; letter-spacing: -.2px; }
.topbar-right { display: flex; align-items: center; gap: 12px; }
.tgl { color: var(--muted); font-size: 13px; }
.topbar-user { display: flex; align-items: center; gap: 8px; background: var(--bg); padding: 6px 12px 6px 6px; border-radius: 999px; }
.topbar-user .avatar { width: 28px; height: 28px; font-size: 12px; }

.content { padding: 26px 28px 40px; flex: 1; }

/* ================= KARTU ================= */
.kartu {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 20px;
  transition: box-shadow .2s ease, transform .2s ease;
}
.kartu:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.k-ikon {
  position: absolute; top: 16px; right: 16px;
  width: 44px; height: 44px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 19px;
}
.kartu-biru .k-ikon { background: var(--primary-soft); color: var(--primary); }
.kartu-hijau .k-ikon { background: var(--sukses-soft); color: var(--sukses); }
.kartu-oranye .k-ikon { background: var(--warning-soft); color: var(--warning); }
.kartu-ungu .k-ikon { background: var(--ungu-soft); color: var(--ungu); }
.kartu-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 16px; margin-bottom: 24px; }
.kartu-biru { border-top: 4px solid var(--primary); background: linear-gradient(160deg, #fff, #f8fbff); }
.kartu-hijau { border-top: 4px solid var(--sukses); background: linear-gradient(160deg, #fff, #fbfefb); }
.kartu-oranye { border-top: 4px solid var(--warning); background: linear-gradient(160deg, #fff, #fffdf8); }
.kartu-ungu { border-top: 4px solid var(--ungu); background: linear-gradient(160deg, #fff, #fdfbff); }
.k-label { font-size: 12px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .4px; }
.k-nilai { font-size: 30px; font-weight: 800; letter-spacing: -1px; margin-top: 4px; }
.kartu-biru .k-nilai { color: var(--primary); }
.kartu-hijau .k-nilai { color: var(--sukses); }
.kartu-oranye .k-nilai { color: var(--warning); }
.kartu-ungu .k-nilai { color: var(--ungu); }

/* ================= PANEL & SEKSI ================= */
.panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 18px 20px;
  margin-bottom: 22px;
  overflow-x: auto;
}
.seksi { font-size: 15px; font-weight: 700; margin: 4px 0 14px; display: flex; align-items: center; gap: 8px; }
.seksi i { color: var(--primary); font-size: 15px; }

/* ================= TABEL ================= */
.tabel { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.tabel th {
  text-align: left; padding: 11px 14px;
  font-size: 11px; font-weight: 700; letter-spacing: .5px;
  text-transform: uppercase; color: var(--muted);
  background: #f8fafc; border-bottom: 1px solid var(--border);
  white-space: nowrap;
}
.tabel td { padding: 12px 14px; border-bottom: 1px solid #eef2f7; vertical-align: middle; }
.tabel tbody tr { transition: background .15s; }
.tabel tbody tr:nth-child(even) { background: #fafbfd; }
.tabel tbody tr:hover { background: #f1f5f9; }
.tabel tbody tr:last-child td { border-bottom: 0; }
.tabel .aksi { white-space: nowrap; text-align: right; }

/* ================= BADGE ================= */
.badge {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 3px 10px; border-radius: 999px;
  font-size: 11px; font-weight: 700; letter-spacing: .2px;
  white-space: nowrap;
}
.badge-hadir, .badge-aktif, .badge-disetujui { background: var(--sukses-soft); color: var(--sukses); }
.badge-telat, .badge-pending, .badge-izin { background: var(--warning-soft); color: var(--warning); }
.badge-sakit, .badge-ditolak, .badge-nonaktif { background: var(--danger-soft); color: var(--danger); }
.badge-cuti, .badge-admin { background: var(--ungu-soft); color: var(--ungu); }
.badge-karyawan { background: #f1f5f9; color: var(--navy-700); }
.badge-kosong { background: #f1f5f9; color: #94a3b8; }

/* ================= TOMBOL ================= */
.btn {
  display: inline-flex; align-items: center; gap: 7px;
  background: var(--surface);
  color: var(--navy-700);
  border: 1px solid var(--border);
  padding: 10px 16px; border-radius: var(--radius-sm);
  font-size: 13px; font-weight: 600; font-family: inherit;
  cursor: pointer; transition: all .18s ease;
  text-decoration: none;
}
.btn:hover { border-color: #cbd5e1; background: #f8fafc; transform: translateY(-1px); box-shadow: var(--shadow-sm); }
.btn:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, button:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
.btn-primary {
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  color: #fff; border: 0;
  box-shadow: 0 4px 12px rgba(37, 99, 235, .35);
}
.btn-primary:hover { background: linear-gradient(135deg, #1d4ed8, #1e40af); color: #fff; }
.btn-hapus { background: var(--danger-soft); color: var(--danger); border-color: #fecaca; }
.btn-hapus:hover { background: #fee2e2; border-color: #f87171; }
.btn.kecil { padding: 6px 10px; font-size: 12px; border-radius: 8px; gap: 5px; }
.btn.kecil i { font-size: 12px; }

/* ================= FORM ================= */
label { display: block; font-size: 12px; font-weight: 600; color: var(--muted); margin-bottom: 6px; }
label small { font-weight: 400; color: #94a3b8; }
input[type=text], input[type=password], input[type=email], input[type=date], input[type=number],
select, textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 13.5px; font-family: inherit; color: var(--text);
  background: #fff;
  transition: border .15s, box-shadow .15s;
}
input:focus, select:focus, textarea:focus {
  outline: none; border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, .14);
}
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.cek { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--text); font-weight: 500; cursor: pointer; }
.cek input { width: auto; }

/* ================= TOOLBAR & FILTER ================= */
.toolbar { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-bottom: 18px; }
.filter { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.filter input, .filter select { width: auto; }
.cari { position: relative; }
.cari i { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: #94a3b8; font-size: 13px; }
.cari input { padding-left: 34px; width: 220px; }

/* ================= FLASH ================= */
.flash {
  display: flex; align-items: center; gap: 10px;
  padding: 13px 16px; border-radius: 12px;
  font-size: 13.5px; font-weight: 500;
  margin-bottom: 18px;
  border: 1px solid;
}
.flash::before { font-family: 'Font Awesome 6 Free'; font-weight: 900; font-size: 15px; }
.flash-sukses { background: var(--sukses-soft); color: #166534; border-color: #bbf7d0; }
.flash-sukses::before { content: '\f058'; }
.flash-error { background: var(--danger-soft); color: #991b1b; border-color: #fecaca; }
.flash-error::before { content: '\f06a'; }

/* ================= MODAL ================= */
.modal {
  display: none; align-items: center; justify-content: center;
  position: fixed; inset: 0; z-index: 100;
  background: rgba(15, 23, 42, .55);
  backdrop-filter: blur(4px);
  padding: 20px;
}
.modal.terbuka { display: flex; animation: fadeIn .18s ease; }
.modal-kartu {
  background: #fff; border-radius: 18px;
  padding: 26px; width: 100%; max-width: 540px;
  box-shadow: var(--shadow-lg);
  max-height: 92vh; overflow-y: auto;
  animation: slideUp .22s ease;
}
.modal-kartu h3 { font-size: 17px; margin-bottom: 18px; display: flex; align-items: center; gap: 9px; }
.modal-kartu h3 i { color: var(--primary); }
.modal-aksi { display: flex; justify-content: flex-end; gap: 10px; margin-top: 20px; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideUp { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

/* ================= IZIN (kartu daftar) ================= */
.kartu-izin {
  background: #fff; border: 1px solid var(--border);
  border-left: 4px solid #cbd5e1;
  border-radius: 14px; padding: 16px 18px;
  margin-bottom: 12px; display: flex; gap: 14px; align-items: flex-start;
  box-shadow: var(--shadow-sm);
  transition: box-shadow .2s ease, transform .2s ease;
}
.kartu-izin:hover { box-shadow: var(--shadow); transform: translateY(-1px); }
.kartu-izin.pending { border-left-color: var(--warning); }
.kartu-izin.disetujui { border-left-color: var(--sukses); }
.kartu-izin.ditolak { border-left-color: var(--danger); }
.ki-avatar {
  width: 42px; height: 42px; border-radius: 12px; flex-shrink: 0;
  background: var(--primary-soft); color: var(--primary);
  display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 15px;
}
.ki-kiri { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.ki-tengah { flex: 1; min-width: 0; }
.ki-tengah b { font-size: 14px; display: block; }
.ki-tanggal { font-size: 12px; color: var(--muted); margin: 2px 0 4px; display: flex; gap: 6px; align-items: center; }
.ki-alasan { font-size: 13px; color: var(--navy-700); }
.ki-catatan { font-size: 12px; color: var(--muted); margin-top: 4px; }
.ki-kanan { display: flex; flex-direction: column; gap: 8px; align-items: flex-end; flex-shrink: 0; }
.ki-input { width: 220px !important; padding: 8px 10px !important; font-size: 12.5px !important; }

/* ================= SEGMEN ================= */
.segmen {
  display: inline-flex; gap: 4px; padding: 4px;
  background: #eef2f7; border-radius: 11px;
}
.segmen a {
  padding: 8px 16px; border-radius: 8px;
  font-size: 12.5px; font-weight: 600; color: var(--muted);
  display: inline-flex; align-items: center; gap: 7px;
  transition: all .15s;
}
.segmen a:hover { color: var(--navy-700); }
.segmen a.aktif { background: #fff; color: var(--primary); box-shadow: var(--shadow-sm); }

/* ================= REKAP ================= */
.rekap-panel { padding: 10px 6px; }
.tabel.rekap th, .tabel.rekap td { padding: 10px 12px; }
.rekap th, .rekap td { white-space: nowrap; }

/* ================= LOGIN ================= */
.login-body {
  min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 55%, #2563eb 100%);
  padding: 20px;
}
.login-card {
  background: #fff; border-radius: 22px;
  padding: 40px 38px; width: 100%; max-width: 420px;
  box-shadow: 0 24px 60px rgba(2, 6, 23, .4);
  text-align: center;
  animation: slideUp .3s ease;
}
.login-logo {
  width: 64px; height: 64px; border-radius: 18px;
  background: linear-gradient(135deg, #3b82f6, #1d4ed8);
  color: #fff; font-size: 30px; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 16px;
  box-shadow: 0 10px 24px rgba(37, 99, 235, .4);
}
.login-card h1 { font-size: 21px; letter-spacing: -.3px; }
.login-sub { color: var(--muted); font-size: 13.5px; margin: 6px 0 22px; }
.login-card form { text-align: left; }
.login-card form label { margin-top: 4px; }
.login-card .btn-primary { width: 100%; justify-content: center; padding: 12px; margin-top: 18px; font-size: 14px; }
.login-hint { font-size: 12px; color: #94a3b8; margin-top: 18px; background: #f8fafc; border-radius: 10px; padding: 10px; text-align: left; line-height: 1.7; }

/* ================= LAIN-LAIN ================= */
.avatar { border-radius: 50%; object-fit: cover; }
.muted { color: var(--muted); }
.tengah { text-align: center; }
.kosong { text-align: center; padding: 40px 20px; color: #94a3b8; }
.kosong i { font-size: 38px; opacity: .5; margin-bottom: 10px; }
.catatan { font-size: 12.5px; color: var(--muted); }

/* ================= RESPONSIVE ================= */
@media (max-width: 920px) {
  .app { flex-direction: column; }
  .sidebar {
    width: 100%; height: auto; position: static;
    flex-direction: row; align-items: center; gap: 14px;
    padding: 12px 16px; overflow-x: auto;
  }
  .brand { border: 0; padding: 0; margin: 0; }
  .brand-logo { width: 36px; height: 36px; font-size: 17px; }
  .brand-sub { display: none; }
  .sidebar nav { flex-direction: row; gap: 4px; flex: 1; }
  .sidebar nav a { padding: 9px 11px; font-size: 12.5px; white-space: nowrap; }
  .sidebar nav a.aktif { box-shadow: inset 0 -3px 0 #3b82f6; }
  .sidebar-user { margin: 0 0 0 auto; border: 0; padding: 0; }
  .uinfo { display: none; }
  .topbar { padding: 12px 16px; }
  .content { padding: 18px 16px 30px; }
  .grid2, .grid3 { grid-template-columns: 1fr; }
  .ki-kanan { align-items: stretch; width: 100%; }
  .kartu-izin { flex-wrap: wrap; }
  .ki-input { width: 100% !important; }
}

/* ================= FOTO KARYAWAN ================= */
.foto-sel { text-align: center; }
.foto-kecil {
  width: 42px; height: 42px; border-radius: 50%;
  object-fit: cover; border: 2px solid #fff;
  box-shadow: 0 2px 8px rgba(15,23,42,.15);
  display: inline-block; vertical-align: middle;
}
.foto-fallback {
  width: 42px; height: 42px; border-radius: 50%;
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  color: #fff; font-weight: 700; font-size: 17px;
  display: inline-flex; align-items: center; justify-content: center;
  vertical-align: middle; box-shadow: 0 2px 8px rgba(37,99,235,.3);
}

/* ================= POPUP KONFIRMASI (gaya aplikasi) ================= */
.modal-konfirmasi {
  position: fixed; inset: 0; z-index: 1200;
  display: none; align-items: center; justify-content: center;
  background: rgba(15, 23, 42, .55);
  backdrop-filter: blur(4px);
  padding: 20px;
}
.modal-konfirmasi-box {
  background: #fff; border-radius: 18px; padding: 24px;
  width: 100%; max-width: 460px; max-height: 92vh; overflow-y: auto;
  box-shadow: 0 24px 60px rgba(15, 23, 42, .28);
  animation: slideUp .22s ease;
}
.modal-konfirmasi-box h3 {
  font-size: 17px; margin-bottom: 16px; display: flex; align-items: center; gap: 9px;
}
.modal-konfirmasi-box h3 i { color: var(--primary); }
.modal-konfirmasi-box .lbl { margin-top: 4px; }
.modal-konfirmasi .modal-kartu {
  max-width: 380px; text-align: center; padding: 28px 26px 22px;
}
.modal-konfirmasi h3 { justify-content: center; }
.modal-konfirmasi h3 i { font-size: 22px; }
.modal-pesan {
  font-size: 14.5px; line-height: 1.55; color: var(--teks, #334155);
  margin: 4px 0 0;
}
.modal-konfirmasi .modal-aksi { justify-content: center; }

/* ================= LOKASI KARYAWAN (modern) ================= */
.lok-hero {
  display:flex; align-items:center; gap:14px;
  background:linear-gradient(135deg,#eff6ff,#f8fafc);
  border:1px solid #dbeafe; border-radius:16px;
  padding:16px 18px; margin-top:16px;
}
.lok-hero-ikon {
  width:44px; height:44px; flex-shrink:0;
  background:linear-gradient(135deg,#2563eb,#1d4ed8);
  color:#fff; border-radius:13px;
  display:inline-flex; align-items:center; justify-content:center;
  font-size:19px; box-shadow:0 6px 14px rgba(37,99,235,.28);
}
.lok-hero b { display:block; font-size:14.5px; color:#0f172a; }
.lok-hero span { font-size:12.5px; color:#64748b; line-height:1.55; display:block; margin-top:2px; }

.lok-legenda { display:flex; flex-wrap:wrap; gap:14px; margin-top:14px; font-size:12px; color:#64748b; }
.lok-legenda i { font-size:7px; vertical-align:middle; margin-right:4px; }

.lok-grid {
  display:grid; grid-template-columns:repeat(auto-fill,minmax(315px,1fr));
  gap:16px; margin-top:16px;
}
.lok-card {
  position:relative; background:#fff;
  border:1px solid #E2E8F0; border-radius:18px;
  padding:20px 20px 18px; overflow:hidden;
  box-shadow:0 1px 3px rgba(15,23,42,.05);
  transition:transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.lok-card::before {
  content:''; position:absolute; top:0; left:0; right:0; height:3px;
  background:linear-gradient(90deg,#2563eb,#38bdf8);
}
.lok-card.lok-kuning::before { background:linear-gradient(90deg,#f59e0b,#fbbf24); }
.lok-card.lok-merah::before { background:linear-gradient(90deg,#ef4444,#f87171); }
.lok-card:hover {
  transform:translateY(-3px);
  box-shadow:0 14px 30px rgba(15,23,42,.10);
  border-color:#cbd5e1;
}

.lok-head { display:flex; align-items:center; gap:12px; }
.lok-ava {
  width:44px; height:44px; border-radius:14px; flex-shrink:0;
  background:linear-gradient(135deg,#2563eb,#1d4ed8);
  color:#fff; font-weight:700; font-size:17px;
  display:inline-flex; align-items:center; justify-content:center;
  box-shadow:0 5px 12px rgba(37,99,235,.25);
}
.lok-info { flex:1; min-width:0; }
.lok-info b { display:block; font-size:14.5px; color:#0f172a; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.lok-info small { font-size:11.5px; color:#94a3b8; }

.lok-badge {
  display:inline-flex; align-items:center; gap:5px;
  padding:4px 10px; border-radius:999px;
  font-size:10.5px; font-weight:700; white-space:nowrap;
}
.lok-badge i { font-size:6px; }
.lok-badge-hijau { background:#f0fdf4; color:#16a34a; border:1px solid #dcfce7; }
.lok-badge-kuning { background:#fffbeb; color:#d97706; border:1px solid #fef3c7; }
.lok-badge-merah { background:#fef2f2; color:#dc2626; border:1px solid #fee2e2; }

.lok-body { margin-top:14px; padding-top:14px; border-top:1px dashed #E2E8F0; }
.lok-almt {
  display:flex; gap:8px; margin:0;
  font-size:13px; color:#334155; line-height:1.55;
}
.lok-almt i { color:#2563eb; margin-top:2.5px; font-size:13px; flex-shrink:0; }
.lok-meta {
  display:flex; flex-wrap:wrap; gap:6px 14px;
  margin:9px 0 13px; font-size:11.5px; color:#94a3b8;
  font-variant-numeric:tabular-nums;
}
.lok-meta i { margin-right:4px; }
.lok-btn {
  display:inline-flex; align-items:center; gap:7px;
  background:#eff6ff; color:#1d4ed8;
  border:1px solid #bfdbfe;
  padding:8px 15px; border-radius:11px;
  font-size:12.5px; font-weight:600; text-decoration:none;
  transition:background .15s ease, transform .15s ease;
}
.lok-btn:hover { background:#dbeafe; transform:translateY(-1px); }

.lok-tag {
  display:inline-flex; align-items:center; gap:5px;
  background:#eff6ff; color:#1d4ed8;
  border:1px solid #bfdbfe; border-radius:999px;
  padding:3px 10px; font-size:12px; text-decoration:none;
  max-width:230px;
}
.lok-tag span { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.lok-tag:hover { background:#dbeafe; }
.lok-sel { max-width:240px; }

/* ================= REKAP PERIODE (modern) ================= */
.rek-filter {
  background:#fff; border:1px solid #E2E8F0; border-radius:16px;
  padding:16px 18px; margin-top:16px;
  box-shadow:0 1px 3px rgba(15,23,42,.05);
}
.rek-form { display:flex; flex-wrap:wrap; gap:12px; align-items:flex-end; }
.rek-field { display:flex; flex-direction:column; gap:5px; }
.rek-field label { font-size:11.5px; font-weight:700; color:#64748b; letter-spacing:.3px; }
.rek-field input[type="date"] {
  border:1px solid #CBD5E1; border-radius:10px; padding:9px 12px;
  font-size:13.5px; color:#0f172a; background:#f8fafc; min-width:160px;
  font-family:inherit;
}
.rek-field input[type="date"]:focus { outline:none; border-color:#2563eb; box-shadow:0 0 0 3px rgba(37,99,235,.15); background:#fff; }
.rek-submit { padding:10px 18px; border-radius:10px; }
.rek-quick { display:flex; gap:8px; margin-top:12px; flex-wrap:wrap; }
.rek-quick a {
  font-size:12px; color:#1d4ed8; text-decoration:none;
  background:#eff6ff; border:1px solid #bfdbfe;
  padding:5px 12px; border-radius:999px; transition:background .15s;
}
.rek-quick a:hover { background:#dbeafe; }

.rek-metrics {
  display:grid; grid-template-columns:repeat(auto-fit,minmax(200px,1fr));
  gap:14px; margin-top:16px;
}
.rek-metric {
  display:flex; align-items:center; gap:14px;
  background:#fff; border:1px solid #E2E8F0; border-radius:16px;
  padding:16px 18px; box-shadow:0 1px 3px rgba(15,23,42,.05);
}
.rek-metric-ikon {
  width:46px; height:46px; border-radius:13px; flex-shrink:0;
  display:inline-flex; align-items:center; justify-content:center; font-size:19px;
}
.rek-metric b { display:block; font-size:21px; color:#0f172a; line-height:1.1; }
.rek-metric span { font-size:11.5px; color:#94a3b8; }
.rek-periode { margin:14px 2px 0; font-size:13px; color:#475569; }
.rek-periode b { color:#0f172a; }

.rek-grid {
  display:grid; grid-template-columns:repeat(auto-fill,minmax(330px,1fr));
  gap:16px; margin-top:14px;
}
.rek-card {
  background:#fff; border:1px solid #E2E8F0; border-radius:18px;
  padding:18px; box-shadow:0 1px 3px rgba(15,23,42,.05);
  transition:transform .18s ease, box-shadow .18s ease;
}
.rek-card:hover { transform:translateY(-2px); box-shadow:0 12px 26px rgba(15,23,42,.09); }
.rek-head { display:flex; align-items:center; gap:11px; }
.rek-ava {
  width:42px; height:42px; border-radius:13px; flex-shrink:0;
  background:linear-gradient(135deg,#2563eb,#1d4ed8); color:#fff;
  font-weight:700; font-size:16px;
  display:inline-flex; align-items:center; justify-content:center;
  box-shadow:0 4px 10px rgba(37,99,235,.22);
}
.rek-info { flex:1; min-width:0; }
.rek-info b { display:block; font-size:14px; color:#0f172a; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.rek-info small { font-size:11px; color:#94a3b8; }
.rek-body { margin-top:14px; padding-top:14px; border-top:1px dashed #E2E8F0; }
.rek-persen { display:flex; align-items:baseline; gap:8px; }
.rek-bar {
  height:8px; background:#E8EDF5; border-radius:999px;
  margin:10px 0 14px; overflow:hidden;
}
.rek-bar-isi {
  height:100%; border-radius:999px;
  background:linear-gradient(90deg,#2563eb,#38bdf8);
}
.rek-chips { display:flex; flex-wrap:wrap; gap:7px; }
.rek-chip {
  display:inline-flex; align-items:center; gap:5px;
  font-size:11px; font-weight:700;
  padding:4px 9px; border-radius:999px;
}
.rek-chip i { font-size:9px; }
.rek-kaki {
  display:flex; align-items:center; justify-content:space-between;
  margin-top:14px; padding-top:11px; border-top:1px solid #F1F5F9;
}
.rek-detail {
  font-size:12px; font-weight:600; color:#1d4ed8; text-decoration:none;
  background:#eff6ff; border:1px solid #bfdbfe;
  padding:5px 12px; border-radius:9px; transition:background .15s;
}
.rek-detail:hover { background:#dbeafe; }

@media print {
  .rek-filter, .rek-metrics, .rek-kaki, .sidebar, .topbar, .rek-quick { display:none !important; }
  .rek-grid { grid-template-columns:repeat(2,1fr); }
  .rek-card { box-shadow:none; break-inside:avoid; }
}

/* ================= REKAP: VERSI CETAK TABEL ================= */
.rek-cetak { display:none; }
@media print {
  .rek-cetak {
    display:block; color:#000;
    font-family: Arial, Helvetica, sans-serif;
    padding: 8px 4px;
  }
  .rek-cetak .kop {
    display:flex; align-items:center; gap:10px;
    border-bottom:3px double #111; padding-bottom:8px; margin-bottom:14px;
  }
  .rek-cetak .kop-logo {
    width:38px; height:38px; border-radius:9px;
    background:#1d4ed8; color:#fff; font-weight:900; font-size:21px;
    display:inline-flex; align-items:center; justify-content:center;
  }
  .rek-cetak .kop-judul { font-size:17px; font-weight:800; letter-spacing:1.5px; color:#111; }
  .rek-cetak .kop-sub { font-size:11px; color:#444; }
  .rek-cetak .kop-tgl { margin-left:auto; font-size:10.5px; color:#333; }
  .rek-cetak .lapor-judul {
    text-align:center; font-size:15px; font-weight:800; letter-spacing:1px;
    text-decoration:underline; margin:2px 0 4px; color:#111;
  }
  .rek-cetak .lapor-periode { text-align:center; font-size:11.5px; color:#222; margin-bottom:12px; }

  .rek-cetak table.tabel-cetak {
    width:100%; border-collapse:collapse; font-size:10.5px; color:#000;
  }
  .rek-cetak table.tabel-cetak th, .rek-cetak table.tabel-cetak td {
    border:1px solid #555; padding:5px 7px; text-align:left; vertical-align:middle;
  }
  .rek-cetak table.tabel-cetak thead th {
    background:#e8eef7; font-weight:700; text-align:center;
    font-size:10px; text-transform:uppercase;
  }
  .rek-cetak table.tabel-cetak tfoot th {
    background:#f1f5f9; border:1px solid #555; padding:5px 7px; font-size:10.5px;
  }
  .rek-cetak .tengah { text-align:center; }

  .rek-cetak .lapor-ttd {
    display:flex; justify-content:space-between; margin-top:38px; padding:0 30px;
  }
  .rek-cetak .lapor-ttd p { margin:2px 0; font-size:11px; color:#000; }
  .rek-cetak .ttd-jabatan { font-weight:700; }
  .rek-cetak .ttd-garis {
    border-bottom:1px solid #000; width:150px; height:60px;
  }
}

.rek-total { margin-top:12px; }
.rek-total b { display:block; font-size:13.5px; color:#0f172a; }
.rek-total span { font-size:11px; color:#94a3b8; }

/* ================= SHIFT KERJA ================= */
.shift-grid {
  display:grid; grid-template-columns:repeat(auto-fill,minmax(240px,1fr));
  gap:14px; margin-top:16px;
}
.shift-card {
  background:#fff; border:1px solid #E2E8F0; border-radius:16px;
  padding:16px; box-shadow:0 1px 3px rgba(15,23,42,.05);
  position:relative; overflow:hidden;
}
.shift-card::before {
  content:''; position:absolute; top:0; left:0; right:0; height:4px;
  background:linear-gradient(90deg,#2563eb,#38bdf8);
}
.shift-card.shift-nonaktif { opacity:.65; }
.shift-card.shift-nonaktif::before { background:#cbd5e1; }
.shift-top { display:flex; align-items:center; justify-content:space-between; }
.shift-ikon {
  width:40px; height:40px; border-radius:12px;
  background:linear-gradient(135deg,#2563eb,#1d4ed8); color:#fff;
  display:inline-flex; align-items:center; justify-content:center; font-size:16px;
}
.shift-status { font-size:11px; font-weight:700; padding:4px 10px; border-radius:999px; }
.shift-aktif { background:#f0fdf4; color:#16a34a; }
.shift-off { background:#f1f5f9; color:#64748b; }
.shift-nama { font-size:17px; font-weight:800; color:#0f172a; margin-top:12px; }
.shift-jam {
  display:flex; align-items:center; gap:12px; margin-top:10px;
  background:#f8fafc; border:1px solid #E8EDF5; border-radius:12px; padding:10px 12px;
}
.shift-jam span { display:flex; flex-direction:column; }
.shift-jam b { font-size:16px; color:#0f172a; }
.shift-jam small { font-size:10px; color:#94a3b8; }
.shift-jam i { color:#94a3b8; font-size:13px; }
.shift-tol { font-size:11.5px; color:#64748b; margin-top:10px; }
.shift-tol b { color:#0f172a; }
.shift-aksi { display:flex; gap:8px; margin-top:12px; }
.shift-pill {
  display:inline-block; font-size:11.5px; font-weight:700;
  background:#eff6ff; color:#1d4ed8; border:1px solid #bfdbfe;
  padding:4px 10px; border-radius:999px;
}
.kanan { text-align:right; }
.lbl { display:block; font-size:12px; font-weight:700; color:#475569; margin-bottom:5px; }
.input {
  width:100%; border:1px solid #CBD5E1; border-radius:10px;
  padding:9px 12px; font-size:13.5px; color:#0f172a; background:#fff;
  font-family:inherit;
}
.input:focus { outline:none; border-color:#2563eb; box-shadow:0 0 0 3px rgba(37,99,235,.15); }
.btn-danger { background:#fef2f2; color:#dc2626; border:1px solid #fecaca; }
.btn-danger:hover { background:#fee2e2; }

/* ================= PANDUAN ================= */
.panduan-grid {
  display:grid; grid-template-columns:repeat(auto-fill,minmax(320px,1fr));
  gap:16px; margin-top:16px;
}
.panduan-card {
  background:#fff; border:1px solid #E2E8F0; border-radius:18px;
  overflow:hidden; box-shadow:0 1px 3px rgba(15,23,42,.05);
  display:flex; flex-direction:column;
}
.panduan-head {
  display:flex; align-items:center; gap:12px;
  padding:16px 18px; color:#fff;
}
.panduan-head i { font-size:22px; width:34px; text-align:center; }
.panduan-head b { display:block; font-size:14.5px; }
.panduan-head span { font-size:11px; opacity:.85; }
.panduan-body { padding:16px 18px; flex:1; }
.panduan-langkah { margin:0; padding-left:20px; }
.panduan-langkah li { font-size:12.8px; color:#475569; line-height:1.55; margin-bottom:7px; }
.panduan-langkah li::marker { color:#2563eb; font-weight:700; }
.panduan-tip {
  margin-top:12px; background:#fffbeb; border:1px solid #fde68a;
  border-radius:12px; padding:11px 13px;
  font-size:12px; color:#92400e; line-height:1.55;
}
.panduan-tip b { color:#78350f; }
@media print { .panduan-grid { grid-template-columns:1fr; } .panduan-card { break-inside:avoid; } }

/* ================= INFO PENGEMBANG ================= */
.dev-info {
  display:flex; align-items:center; gap:10px;
  margin:14px 14px 10px; padding:10px 12px;
  background:rgba(255,255,255,.06); border:1px solid rgba(255,255,255,.09);
  border-radius:12px; color:#cbd5e1;
}
.dev-info i { font-size:15px; color:#38bdf8; }
.dev-info b { display:block; font-size:11.5px; color:#f1f5f9; }
.dev-info span { display:block; font-size:10px; color:#94a3b8; line-height:1.45; }
.dev-card { text-align:center; padding:6px 0 4px; }
.dev-logo {
  width:54px; height:54px; margin:0 auto 8px; border-radius:15px;
  background:linear-gradient(135deg,#2563eb,#1d4ed8); color:#fff;
  display:flex; align-items:center; justify-content:center; font-size:24px;
}
.dev-nama { font-size:16px; font-weight:800; color:#0f172a; }
.dev-tagline { font-size:11.5px; color:#94a3b8; margin-top:2px; }
.dev-kontak { display:flex; flex-direction:column; gap:8px; margin-top:14px; }
.dev-kontak a {
  display:flex; align-items:center; gap:10px;
  font-size:12.5px; font-weight:600; color:#0f172a; text-decoration:none;
  background:#f8fafc; border:1px solid #E2E8F0; border-radius:11px;
  padding:10px 13px; transition:border-color .15s, background .15s;
}
.dev-kontak a:hover { border-color:#2563eb; background:#eff6ff; }
.dev-kontak i { color:#2563eb; font-size:14px; width:18px; text-align:center; }
.dev-kontak a:nth-child(2) i { color:#22c55e; }

/* ================= TOMBOL KONSOLIDASI v2 ================= */
/* Semua tombol punya dasar yang sama walau class dipakai sendiri-sendiri */
.btn, .btn-primary, .btn-danger, .btn-hapus {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  padding: 10px 16px; border-radius: 10px;
  font-size: 13px; font-weight: 600; font-family: inherit; line-height: 1;
  cursor: pointer; transition: all .18s ease; text-decoration: none;
  border: 1px solid transparent; white-space: nowrap;
}
.btn { background: var(--surface); color: var(--navy-700); border-color: var(--border); }
.btn:hover { border-color: #cbd5e1; background: #f8fafc; transform: translateY(-1px); box-shadow: var(--shadow-sm); }
.btn-primary { background: linear-gradient(135deg, #2563eb, #1d4ed8); color: #fff; box-shadow: 0 4px 12px rgba(37,99,235,.35); }
.btn-primary:hover { background: linear-gradient(135deg, #1d4ed8, #1e40af); color: #fff; transform: translateY(-1px); }
.btn-danger, .btn-hapus { background: #fef2f2; color: #dc2626; border-color: #fecaca; }
.btn-danger:hover, .btn-hapus:hover { background: #fee2e2; border-color: #f87171; transform: translateY(-1px); }
/* Tombol ikon kecil (Edit/Hapus di tabel) - bentuk presisi */
.btn-ikon { width: 34px; height: 34px; padding: 0; border-radius: 9px; flex-shrink: 0; }
.btn-ikon i { font-size: 13px; }
.btn.kecil, .btn-primary.kecil { padding: 6px 10px; font-size: 12px; border-radius: 8px; gap: 5px; }
.btn.kecil i { font-size: 12px; }
button:disabled { opacity: .55; cursor: not-allowed; transform: none !important; }
