:root { --ems-navy: #0f1e3d; --ems-blue: #1d4ed8; --ems-amber: #f59e0b; --ems-bg: #f3f5f9; }
body { font-family: 'Plus Jakarta Sans', system-ui, sans-serif; background: var(--ems-bg); color: #0f172a; font-size: 14px; }
.font-mono, code { font-family: 'JetBrains Mono', monospace; font-size: .92em; }
.ems-wrap { display: flex; min-height: 100vh; }
.ems-side { width: 260px; background: var(--ems-navy); color: #cbd5e1; position: fixed; inset: 0 auto 0 0; overflow-y: auto; z-index: 1040; transition: transform .2s ease; }
.ems-brand { display: flex; gap: 10px; align-items: center; padding: 18px 16px; color: #fff; text-decoration: none; border-bottom: 1px solid rgba(255,255,255,.08); }
.ems-brand img, .ems-logo-ph { width: 40px; height: 40px; border-radius: 8px; background: #fff; object-fit: contain; padding: 3px; display: grid; place-items: center; color: var(--ems-navy); font-size: 20px; }
.ems-brand b { display: block; font-size: 13px; line-height: 1.2; }
.ems-brand small { color: var(--ems-amber); font-size: 10px; text-transform: uppercase; letter-spacing: .12em; }
.ems-side nav { padding: 8px 10px 30px; }
.ems-group { font-size: 10px; text-transform: uppercase; letter-spacing: .14em; color: #64748b; padding: 14px 10px 6px; font-weight: 700; }
.ems-side nav a { display: flex; gap: 10px; align-items: center; color: #cbd5e1; text-decoration: none; padding: 7px 10px; border-radius: 6px; font-size: 13px; transition: background-color .15s, color .15s; }
.ems-side nav a:hover { background: rgba(255,255,255,.06); color: #fff; }
.ems-side nav a.active { background: var(--ems-blue); color: #fff; font-weight: 600; box-shadow: inset 3px 0 0 var(--ems-amber); }
.ems-main { margin-left: 260px; flex: 1; min-width: 0; }
.ems-top { position: sticky; top: 0; z-index: 1030; display: flex; gap: 12px; align-items: center; padding: 10px 24px; background: rgba(255,255,255,.85); backdrop-filter: blur(10px); border-bottom: 1px solid #e2e8f0; }
.ems-content { padding: 24px; }
.page-head { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; justify-content: space-between; margin-bottom: 18px; }
.page-head h1 { font-size: 22px; font-weight: 800; margin: 0; letter-spacing: -.01em; }
.page-head p { color: #64748b; margin: 2px 0 0; }
.card { border: 1px solid #e2e8f0; border-radius: 10px; box-shadow: 0 1px 2px rgba(15,23,42,.04); }
.card-header { background: #fff; font-weight: 700; border-bottom: 1px solid #e2e8f0; }
.stat { background: #fff; border: 1px solid #e2e8f0; border-left: 4px solid var(--ems-blue); border-radius: 10px; padding: 14px 16px; }
.stat.green { border-left-color: #15803d; } .stat.amber { border-left-color: var(--ems-amber); } .stat.red { border-left-color: #dc2626; }
.stat small { color: #64748b; text-transform: uppercase; font-size: 10.5px; letter-spacing: .1em; font-weight: 700; }
.stat div { font-size: 22px; font-weight: 800; }
.table thead th { background: #f1f5f9; font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: #475569; white-space: nowrap; }
.table td { vertical-align: middle; }
.btn { transition: background-color .15s, border-color .15s, transform .1s; } .btn:active { transform: scale(.97); }
.print-only, .kop-print { display: none; }
.kop { display: flex; align-items: center; gap: 16px; border-bottom: 3px double #0f172a; padding-bottom: 10px; margin-bottom: 18px; }
.kop img { width: 72px; height: 72px; object-fit: contain; }
.kop h2 { margin: 0; font-size: 20px; font-weight: 800; text-transform: uppercase; }
.kop p { margin: 0; font-size: 12px; }
.paper { background: #fff; max-width: 210mm; min-height: 297mm; margin: 24px auto; padding: 16mm; box-shadow: 0 10px 30px rgba(0,0,0,.12); }
@media (max-width: 991px) { .ems-side { transform: translateX(-100%); } .ems-side.open { transform: none; } .ems-main { margin-left: 0; } }
@media print {
  @page { size: A4; margin: 12mm; }
  .no-print, .ems-side, .ems-top, .btn, form.filters, .pagination { display: none !important; }
  .ems-main { margin: 0; } .ems-content { padding: 0; } body { background: #fff; font-size: 12px; }
  .print-only, .kop-print { display: block !important; } .kop-print.kop { display: flex !important; }
  .card { border: 0; box-shadow: none; } .paper { margin: 0; padding: 0; box-shadow: none; min-height: auto; }
  .badge { border: 1px solid #000; color: #000 !important; background: none !important; }
  a { color: #000; text-decoration: none; }
}

.emp-photo { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; border: 2px solid #fff; box-shadow: 0 0 0 1px #cbd5e1; display: inline-grid; place-items: center; }
.emp-photo-ph { background: #e2e8f0; color: #64748b; font-size: 18px; }
.att-photo { width: 44px; height: 44px; border-radius: 8px; object-fit: cover; }
.qr-board { background: #fff; border-radius: 16px; padding: 24px; display: inline-block; box-shadow: 0 20px 50px rgba(15,30,61,.25); }
