:root { --navy: #14204a; --navy2: #1d2c63; --accent: #16a34a; --bg: #f4f6fb; }
body { background: var(--bg); font-family: "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif; font-size: .94rem; color: #1f2937; }
.app { display: flex; min-height: 100vh; }
.sidebar { width: 250px; background: var(--navy); color: #cbd5f5; display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh; overflow-y: auto; flex-shrink: 0; }
.sidebar .brand { display: flex; gap: 10px; align-items: center; padding: 18px 16px; border-bottom: 1px solid rgba(255,255,255,.08); color: #fff; }
.sidebar .brand small { color: #9fb0e6; font-size: .72rem; }
.sidebar .logo { width: 42px; height: 42px; flex: 0 0 42px; display: block; }
.sidebar nav { padding: 10px; flex: 1; }
.sidebar nav a { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 9px; color: #cbd5f5; text-decoration: none; margin-bottom: 2px; }
.sidebar nav a i { width: 20px; text-align: center; }
.sidebar nav a:hover { background: rgba(255,255,255,.07); color: #fff; }
.sidebar nav a.active { background: var(--accent); color: #fff; font-weight: 600; }
.sidebar .cnt { margin-left: auto; background: #ef4444; color: #fff; border-radius: 999px; font-size: .7rem; padding: 1px 7px; }
.sidebar .nav-sec { font-size: .68rem; letter-spacing: 1px; color: #7c8cc4; padding: 14px 12px 4px; font-weight: 700; }
.sidebar .ver { font-size: .72rem; color: #7c8cc4; padding: 12px 16px; border-top: 1px solid rgba(255,255,255,.08); }
.main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.topbar { background: #fff; border-bottom: 1px solid #e5e7eb; padding: 12px 22px; display: flex; align-items: center; gap: 12px; position: sticky; top: 0; z-index: 10; }
.topbar h1 { font-size: 1.15rem; margin: 0; font-weight: 700; color: var(--navy); }
.content { padding: 22px; }
.card-x { background: #fff; border: 1px solid #e5e7eb; border-radius: 14px; padding: 18px; margin-bottom: 18px; }
.card-x h2 { font-size: 1rem; font-weight: 700; color: var(--navy); margin-bottom: 12px; }
.stat { background: #fff; border: 1px solid #e5e7eb; border-radius: 14px; padding: 16px; display: flex; gap: 14px; align-items: center; height: 100%; text-decoration: none; color: inherit; }
.stat .ic { width: 46px; height: 46px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 1.2rem; }
.stat .v { font-size: 1.45rem; font-weight: 700; line-height: 1.1; }
.stat .l { font-size: .8rem; color: #6b7280; }
.table thead th { font-size: .76rem; text-transform: uppercase; letter-spacing: .3px; color: #6b7280; background: #f9fafb; white-space: nowrap; }
.table td { vertical-align: middle; }
.lines input, .lines select { min-width: 80px; }
.doc-head dt { font-weight: 500; color: #6b7280; font-size: .82rem; }
.doc-head dd { margin-bottom: .5rem; }
.login-wrap { min-height: 100vh; display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, var(--navy), var(--navy2)); padding: 16px; }
.login-box { background: #fff; border-radius: 16px; padding: 32px; width: 100%; max-width: 380px; box-shadow: 0 20px 50px rgba(0,0,0,.25); }
.timeline { list-style: none; padding: 0; margin: 0; }
.timeline li { padding: 6px 0 6px 22px; position: relative; font-size: .85rem; }
.timeline li::before { content: ""; position: absolute; left: 4px; top: 12px; width: 9px; height: 9px; border-radius: 50%; background: var(--accent); }
@media (max-width: 991px) {
  .sidebar { position: fixed; left: -260px; z-index: 50; transition: left .2s; }
  .sidebar.open { left: 0; box-shadow: 0 0 40px rgba(0,0,0,.4); }
  .content { padding: 14px; }
}
@media print {
  .sidebar, .topbar, .no-print, .alert { display: none !important; }
  .content { padding: 0; } body { background: #fff; } .card-x { border: 0; padding: 0; }
}
/* pilihan bahasa */
.lang-sw { display: inline-flex; border: 1px solid #e5e7eb; border-radius: 8px; overflow: hidden; font-size: .78rem; }
.lang-sw a { padding: 4px 9px; color: #475569; text-decoration: none; background: #fff; }
.lang-sw a + a { border-left: 1px solid #e5e7eb; }
.lang-sw a.on { background: var(--navy, #14204a); color: #fff; font-weight: 600; }

/* ---------- halaman login */
.lg { position: relative; min-height: 100vh; overflow: hidden; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 90px 16px 140px;
  background: radial-gradient(ellipse at 50% 20%, #1d3f8f 0%, #0f2560 45%, #0a1a46 100%); }
.lg-photo { position: absolute; left: 0; right: 0; bottom: 0; height: 42vh; min-height: 220px; background: url(login-bg.jpg) center bottom / cover no-repeat; }
.lg-photo { -webkit-mask-image: linear-gradient(to bottom, transparent 0%, rgba(0,0,0,.55) 28%, #000 55%); mask-image: linear-gradient(to bottom, transparent 0%, rgba(0,0,0,.55) 28%, #000 55%); }
.lg-swoosh { position: absolute; pointer-events: none; }
.lg-swoosh-tl { top: 0; left: 0; width: min(46vw, 560px); height: 260px; filter: drop-shadow(0 0 10px rgba(246,215,122,.45)); }
.lg-lang { position: absolute; top: 22px; right: 22px; z-index: 3; }
.lg .lang-sw { background: rgba(10,26,70,.55); border: 1px solid rgba(255,255,255,.28); border-radius: 14px; padding: 3px; gap: 2px; backdrop-filter: blur(6px); font-size: .95rem; }
.lg .lang-sw a { background: transparent; color: #e6ecff; padding: 6px 16px; border-radius: 11px; border: 0 !important; }
.lg .lang-sw a.on { background: #0a1a46; color: #f3c64e; box-shadow: inset 0 0 0 1px #d6a93a, 0 0 10px rgba(243,198,78,.35); }
.lg-frame { position: relative; z-index: 2; width: 100%; max-width: 460px; padding: 3px; border-radius: 30px;
  background: linear-gradient(135deg, #f8e08e, #c8901f 30%, #fff1b8 50%, #b8801a 72%, #f3cf6a);
  box-shadow: 0 0 22px rgba(243,198,78,.45), 0 30px 60px rgba(0,0,0,.45); }
.lg-card { position: relative; overflow: hidden; border-radius: 27px; padding: 34px 36px 36px; background: linear-gradient(160deg, #ffffff 0%, #f3f6fc 55%, #e9eef8 100%); }
.lg-mountain { position: absolute; top: 60px; right: -10px; width: 62%; opacity: .7; pointer-events: none; }
.lg-logo { width: 92px; height: 92px; filter: drop-shadow(0 6px 12px rgba(10,26,70,.3)); }
.lg-title { font-size: 2rem; font-weight: 800; color: #0d1f52; margin: 10px 0 2px; letter-spacing: -.5px; }
.lg-company { display: flex; align-items: center; gap: 12px; justify-content: center; color: #3b4664; font-weight: 600; margin-bottom: 26px; }
.lg-company::before, .lg-company::after { content: ""; height: 2px; width: 36px; background: linear-gradient(90deg, transparent, #d6a93a); }
.lg-company::after { background: linear-gradient(90deg, #d6a93a, transparent); }
.lg-label { display: flex; align-items: center; gap: 8px; font-weight: 700; color: #111a33; margin: 0 0 6px; }
.lg-label i { font-size: 1.05rem; color: #111a33; width: 18px; text-align: center; }
.lg-input { position: relative; display: flex; align-items: center; background: #f8faff; border: 1px solid #c9d1e3; border-radius: 12px; margin-bottom: 18px; box-shadow: inset 0 1px 2px rgba(15,37,96,.06); transition: border-color .15s, box-shadow .15s; }
.lg-input:focus-within { border-color: #2b4fae; box-shadow: 0 0 0 3px rgba(43,79,174,.15); }
.lg-input > i { position: absolute; left: 15px; color: #5b6784; }
.lg-input input { flex: 1; border: 0; background: transparent; padding: 13px 14px 13px 44px; font-size: 1rem; outline: none; min-width: 0; color: #111a33; }
.lg-input input::placeholder { color: #7a849c; }
.lg-eye { border: 0; background: transparent; color: #5b6784; padding: 0 14px; height: 100%; font-size: 1.05rem; }
.lg-btn { width: 100%; margin-top: 8px; display: flex; align-items: center; justify-content: center; gap: 12px; color: #fff; font-size: 1.15rem; font-weight: 700;
  padding: 13px; border-radius: 40px; border: 2px solid #e2b54a; background: linear-gradient(180deg, #13307e, #0a1a4d);
  box-shadow: 0 0 14px rgba(243,198,78,.45), 0 8px 18px rgba(10,26,70,.35); transition: transform .1s, filter .15s; }
.lg-btn:hover { filter: brightness(1.12); }
.lg-btn:active { transform: translateY(1px); }
.lg-hris { display: flex; align-items: center; justify-content: center; gap: 10px; margin-top: 12px; padding: 10px; border: 1.5px solid #c9a24a; border-radius: 10px; color: #0a1e54; font-weight: 600; text-decoration: none; background: #fff; }
.lg-hris:hover { background: #fbf5e6; }
.lg-foot { position: relative; z-index: 2; margin-top: 16px; max-width: min(460px, 100%); text-align: center;
  font-size: .74rem; line-height: 1.6; color: #e3e9fb; padding: 6px 16px; border-radius: 12px; background: rgba(8,20,58,.62);
  border: 1px solid rgba(226,181,74,.35); backdrop-filter: blur(4px); }
.lg-foot a { color: #f3c64e; text-decoration: none; }
.lg-foot a:hover { text-decoration: underline; }
@media (max-width: 520px) {
  .lg { padding: 80px 12px 40px; }
  .lg-card { padding: 26px 20px 28px; }
  .lg-title { font-size: 1.6rem; }
  .lg-lang { top: 14px; right: 12px; }
  .lg-swoosh-tl { width: 70vw; height: 160px; }
}
