/* ============================================================
   JURNAL HRD — Stylesheet
   Design System: "Architectural Wireframe" (monochrome, audit-grade)
   ============================================================ */

:root {
  --primary: #111827;
  --secondary: #374151;
  --tertiary: #6B7280;
  --neutral-border: #9CA3AF;
  --surface-canvas: #F5F5F7;
  --surface-panel: #FFFFFF;
  --border-default: #D1D5DB;
  --border-strong: #9CA3AF;
  --border-dark: #111827;
  --text-primary: #111827;
  --text-secondary: #4B5563;
  --text-tertiary: #6B7280;
  --text-inverse: #FFFFFF;
  --wireframe-guide: #E5E7EB;
  --error: #BA1A1A;
  --error-bg: #FFDAD6;
  --error-text: #93000A;
  --org-inferred: #B45309; /* garis/label "taksiran" di Struktur Organisasi — beda dari --error, ini bukan kesalahan, cuma penanda perkiraan otomatis */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-full: 9999px;
  --font-ui: 'Inter', -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  --sidebar-w: 260px;
}

[data-theme="dark"] {
  --primary: #F5F5F7;
  --secondary: #D1D5DB;
  --tertiary: #9CA3AF;
  --neutral-border: #4B5563;
  --surface-canvas: #0B0D12;
  --surface-panel: #161A22;
  --border-default: #2A2F3A;
  --border-strong: #3F4654;
  --border-dark: #F5F5F7;
  --text-primary: #F5F5F7;
  --text-secondary: #C4C9D4;
  --text-tertiary: #8A93A3;
  --text-inverse: #111827;
  --wireframe-guide: #1E222B;
  --error-bg: #3A1414;
  --error-text: #FF8A80;
  --org-inferred: #F59E0B;
}

* { box-sizing: border-box; }
html, body {
  margin: 0; padding: 0;
  font-family: var(--font-ui);
  background: var(--surface-canvas);
  color: var(--text-primary);
  font-size: 14px;
  transition: background .2s ease, color .2s ease;
}
.d-none { display: none !important; }
a { text-decoration: none; color: inherit; }
button { font-family: inherit; cursor: pointer; }
.mono { font-family: var(--font-mono); }

/* ── Buttons ── */
.btn-primary-custom, .btn-outline-custom, .btn-danger-custom, .btn-ghost-custom {
  height: 40px; padding: 0 16px; border-radius: var(--radius-sm);
  font-size: 14px; font-weight: 500; border: 1px solid transparent;
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  transition: all .15s ease;
}
.btn-primary-custom { background: var(--primary); color: var(--text-inverse); }
.btn-primary-custom:hover { background: #374151; }
.btn-primary-custom:disabled { opacity: .5; cursor: not-allowed; }
.btn-outline-custom { background: var(--surface-panel); border-color: var(--border-default); color: var(--text-primary); }
.btn-outline-custom:hover { background: var(--surface-canvas); border-color: var(--border-dark); }
.btn-danger-custom { background: var(--error-bg); color: var(--error-text); border-color: #FFB4AB; }
.btn-danger-custom:hover { background: #FFCDD2; }
.btn-ghost-custom { background: transparent; border: 1px dashed var(--neutral-border); color: var(--text-secondary); }
.btn-ghost-custom:hover { background: var(--surface-canvas); }
.btn-icon { width: 36px; height: 36px; border-radius: var(--radius-sm); border: none; background: transparent; color: var(--text-secondary); display: inline-flex; align-items: center; justify-content: center; font-size: 16px; }
.btn-icon:hover { background: var(--surface-canvas); }
.btn-full { width: 100%; }

/* ── Inputs ── */
.field-group { margin-bottom: 14px; }
.field-label { display: block; font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .03em; color: var(--text-tertiary); font-family: var(--font-mono); margin-bottom: 6px; }
.field-label .req { color: var(--error); }
.field-input, .field-select, .field-textarea {
  width: 100%; height: 40px; padding: 0 12px; border-radius: var(--radius-sm);
  border: 1px solid var(--border-default); background: var(--surface-panel); color: var(--text-primary);
  font-family: var(--font-ui); font-size: 14px;
}
.field-textarea { height: auto; min-height: 90px; padding: 10px 12px; resize: vertical; }
.field-input:focus, .field-select:focus, .field-textarea:focus { outline: none; border-color: var(--border-dark); }
.field-error { color: var(--error-text); font-size: 12px; margin-top: 4px; }
.field-error.d-none { display: none; }
.field-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 12px; }
@media (max-width: 767px) { .field-grid-2 { grid-template-columns: 1fr; } }

/* ── Badges ── */
.badge-pill { display: inline-flex; align-items: center; padding: 3px 10px; border-radius: var(--radius-full); font-size: 11px; font-weight: 600; font-family: var(--font-mono); text-transform: uppercase; letter-spacing: .02em; }
.badge-solid { background: var(--primary); color: var(--text-inverse); }
.badge-outline { background: var(--surface-panel); border: 1px solid var(--neutral-border); color: var(--text-secondary); }
.badge-error { background: var(--error-bg); color: var(--error-text); }
.badge-slate { background: var(--secondary); color: var(--text-inverse); }

/* ── Cards ──
   Permintaan kang: kolom/kartu diperkecil & simetris di seluruh halaman, tapi tetap elegan &
   rapi. Karena .card-panel/.stat-card/.grid-4/.grid-3/.grid-2/table.data-table dipakai BERSAMA
   oleh semua 14 halaman (Dashboard, Data Karyawan, Data Aset, dst — bukan CSS per-halaman),
   memperkecil padding/gap/ukuran font di sini secara otomatis membuat kolom di SEMUA halaman
   lebih kecil & seragam sekaligus, tanpa mengubah struktur/fungsi satu pun halaman. */
.card-panel { background: var(--surface-panel); border: 1px solid var(--border-default); border-radius: var(--radius-sm); padding: 14px; }
.card-panel-header { display: flex; align-items: center; justify-content: space-between; padding-bottom: 8px; margin-bottom: 10px; border-bottom: 1px solid var(--wireframe-guide); }
.card-panel-header h3 { font-size: 15px; font-weight: 600; margin: 0; }
/* Tinggi tetap untuk pembungkus chart Dashboard — dipakai bersama Chart.js maintainAspectRatio:false
   supaya chart (terutama Capaian Target Kinerja yang sebelumnya sendirian di luar grid) punya
   tinggi container yang stabil dan tidak memicu bug infinite resize-loop bawaan Chart.js. */
.chart-wrap { position: relative; height: 200px; }
@media (max-width: 640px) { .chart-wrap { height: 180px; } }
.stat-card { background: var(--surface-panel); border: 1px solid var(--border-default); border-radius: var(--radius-sm); padding: 12px 14px; }
.stat-card-label { font-family: var(--font-mono); font-size: 10.5px; text-transform: uppercase; letter-spacing: .03em; color: var(--text-tertiary); margin-bottom: 5px; }
.stat-card-value { font-size: 23px; font-weight: 700; line-height: 1.2; }
.stat-card-trend { font-size: 11px; color: var(--text-tertiary); margin-top: 3px; }

/* ── Wireframe placeholder box ── */
.placeholder-box {
  background: var(--surface-canvas); border: 1px solid var(--border-default); border-radius: var(--radius-sm);
  position: relative; overflow: hidden; display: flex; align-items: center; justify-content: center; color: var(--text-tertiary);
}
.placeholder-box::before, .placeholder-box::after {
  content: ''; position: absolute; top: 0; left: 50%; width: 1px; height: 141.4%; background: var(--border-default);
  transform-origin: top center;
}
.placeholder-box::before { transform: translateX(-50%) rotate(45deg); }
.placeholder-box::after { transform: translateX(-50%) rotate(-45deg); }

/* ── Tables ── */
.table-wrap { overflow-x: auto; border: 1px solid var(--border-default); border-radius: var(--radius-sm); background: var(--surface-panel); }
table.data-table { width: 100%; border-collapse: collapse; font-size: 12.5px; }
table.data-table thead th {
  background: var(--surface-canvas); text-transform: uppercase; font-size: 10.5px; letter-spacing: .03em;
  font-family: var(--font-mono); color: var(--text-tertiary); text-align: left; padding: 8px 10px;
  border-bottom: 1px solid var(--border-default); white-space: nowrap;
}
table.data-table tbody td { padding: 8px 10px; border-bottom: 1px solid var(--wireframe-guide); vertical-align: middle; }
table.data-table tbody tr:hover { background: var(--surface-canvas); }
table.data-table tbody tr.row-selected { background: var(--wireframe-guide); box-shadow: inset 3px 0 0 var(--primary); }
.table-empty { text-align: center; padding: 40px 20px; color: var(--text-tertiary); }
.pagination-custom { display: flex; align-items: center; justify-content: space-between; padding: 12px; font-size: 12px; color: var(--text-tertiary); }
.pagination-pills { display: flex; gap: 4px; }
.pagination-pills button { width: 28px; height: 28px; border-radius: var(--radius-full); border: 1px solid var(--border-default); background: var(--surface-panel); color: var(--text-primary); font-size: 12px; }
.pagination-pills button.active { background: var(--primary); color: var(--text-inverse); border-color: var(--primary); }

/* ── Toolbar / Filter bar ── */
.toolbar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; background: var(--surface-panel); border: 1px solid var(--border-default); border-radius: var(--radius-sm); padding: 8px 10px; margin-bottom: 12px; }
.toolbar .field-input, .toolbar .field-select { width: auto; min-width: 160px; height: 36px; }
.page-header { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; margin-bottom: 14px; }
.page-header h2 { font-size: 22px; font-weight: 600; margin: 0; }
.page-header-actions { display: flex; gap: 8px; flex-wrap: wrap; }

/* ── Tabs ── */
.tabs-underline { display: flex; gap: 20px; border-bottom: 1px solid var(--border-default); margin-bottom: 16px; }
.tabs-underline .tab-item { padding: 10px 2px; font-size: 14px; font-weight: 500; color: var(--text-tertiary); border-bottom: 2px solid transparent; cursor: pointer; }
.tabs-underline .tab-item.active { color: var(--text-primary); border-bottom-color: var(--primary); }

/* ── Stepper ── */
.stepper-mini { display: flex; align-items: center; gap: 4px; font-size: 11px; color: var(--text-tertiary); }
.stepper-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--border-default); }
.stepper-dot.done { background: var(--primary); }
.stepper-dot.current { background: var(--primary); box-shadow: 0 0 0 3px var(--wireframe-guide); }
.stepper-line { width: 16px; height: 1px; background: var(--border-default); }

/* ── App shell layout (Admin) ── */
.app-shell { display: flex; min-height: 100vh; }
.sidebar {
  width: var(--sidebar-w); flex-shrink: 0; background: var(--surface-panel); border-right: 1px solid var(--border-default);
  display: flex; flex-direction: column; height: 100vh; position: sticky; top: 0;
}
.sidebar-logo { height: 64px; display: flex; align-items: center; gap: 10px; padding: 0 20px; font-weight: 700; font-size: 18px; border-bottom: 1px solid var(--wireframe-guide); }
.sidebar-logo-img { height: 32px; width: 32px; object-fit: contain; border-radius: var(--radius-sm); }
.sidebar-nav { flex: 1; overflow-y: auto; padding: 10px; display: flex; flex-direction: column; gap: 2px; }
.nav-item { display: flex; align-items: center; gap: 10px; height: 40px; padding: 0 12px; border-radius: var(--radius-sm); color: var(--text-secondary); font-size: 14px; position: relative; }
.nav-item i { font-size: 16px; width: 20px; text-align: center; }
.nav-item:hover { background: var(--surface-canvas); }
.nav-item.active { background: var(--primary); color: var(--text-inverse); }
.nav-badge { margin-left: auto; background: var(--primary); color: var(--text-inverse); font-family: var(--font-mono); font-size: 10px; padding: 1px 7px; border-radius: var(--radius-full); }
.nav-item.active .nav-badge { background: var(--text-inverse); color: var(--primary); }
.sidebar-footer { border-top: 1px solid var(--wireframe-guide); padding: 12px; }
.sidebar-user { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.sidebar-user-name { font-size: 13px; font-weight: 600; }
.sidebar-user-role { font-size: 11px; color: var(--text-tertiary); }
.sidebar-logout { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--text-tertiary); padding: 6px 4px; }
.sidebar-logout:hover { color: var(--error); }
.sidebar-overlay { display: none; position: fixed; inset: 0; background: rgba(17,24,39,.45); z-index: 900; }
.sidebar-overlay.show { display: block; }

.avatar-circle { width: 36px; height: 36px; border-radius: 50%; background: var(--primary); color: var(--text-inverse); display: flex; align-items: center; justify-content: center; font-weight: 600; font-size: 14px; flex-shrink: 0; overflow: hidden; }
.avatar-sm { width: 32px; height: 32px; font-size: 12px; }

.app-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.topbar { height: 64px; background: var(--surface-panel); border-bottom: 1px solid var(--border-default); display: flex; align-items: center; gap: 14px; padding: 0 24px; position: sticky; top: 0; z-index: 10; }
.topbar-title { font-size: 20px; font-weight: 600; margin: 0; white-space: nowrap; }
.topbar-filters { display: flex; gap: 8px; flex: 1; flex-wrap: wrap; }
.topbar-filters select { height: 32px; font-size: 12px; border-radius: var(--radius-sm); border: 1px solid var(--border-default); background: var(--surface-panel); color: var(--text-secondary); padding: 0 8px; }
.topbar-actions { display: flex; align-items: center; gap: 10px; }
.btn-hamburger { display: none; background: none; border: none; font-size: 22px; color: var(--text-primary); }
.notif-dot { position: absolute; top: 6px; right: 6px; width: 7px; height: 7px; border-radius: 50%; background: var(--error); }
.content-area { padding: 24px; flex: 1; }
.page-section { animation: fadeIn .15s ease; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

@media (max-width: 1024px) {
  .sidebar { position: fixed; left: -260px; z-index: 950; transition: left .2s ease; }
  .sidebar.show { left: 0; }
  .btn-hamburger { display: inline-flex; align-items: center; justify-content: center; }
  .content-area { padding: 16px; }
}

/* ── Grid helpers ──
   Permintaan kang: kolom diperkecil & simetris di seluruh halaman. Jarak antar-kolom (gap)
   dirapatkan sedikit (16px → 12px) — grid-template-columns TETAP repeat(...,1fr) seperti semula
   (itulah yang membuatnya "simetris"/sama rata, sudah benar sejak awal), jadi perubahan ini
   murni memperkecil ukuran tampilan tanpa mengubah jumlah kolom atau breakpoint responsif. */
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
@media (max-width: 1024px) { .grid-4 { grid-template-columns: repeat(2, 1fr); } .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid-4, .grid-3, .grid-2 { grid-template-columns: 1fr; } }

/* ── Employee Portal shell ── */
.employee-shell { max-width: 480px; margin: 0 auto; min-height: 100vh; background: var(--surface-canvas); display: flex; flex-direction: column; position: relative; }
.emp-topbar { height: 56px; background: var(--surface-panel); border-bottom: 1px solid var(--border-default); display: flex; align-items: center; gap: 10px; padding: 0 16px; position: sticky; top: 0; z-index: 10; }
.emp-topbar-logo { font-weight: 700; display: flex; align-items: center; gap: 6px; }
.emp-topbar-logo-img { height: 24px; width: 24px; object-fit: contain; border-radius: var(--radius-sm); }
.emp-topbar-title { flex: 1; font-size: 15px; font-weight: 600; margin: 0; text-align: center; }
.emp-topbar-actions { display: flex; align-items: center; gap: 8px; }
.emp-content { flex: 1; padding: 16px; padding-bottom: 84px; }
.emp-bottom-nav { position: sticky; bottom: 0; background: var(--surface-panel); border-top: 1px solid var(--border-default); display: flex; }
.emp-nav-item { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 8px 0; font-size: 10px; color: var(--neutral-border); min-height: 44px; justify-content: center; }
.emp-nav-item i { font-size: 20px; }
.emp-nav-item.active { color: var(--primary); }

/* ── Auth screen ── */
.auth-screen { min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; background: var(--surface-canvas); padding: 20px; gap: 16px; }
.auth-card { width: 100%; max-width: 360px; background: var(--surface-panel); border: 1px solid var(--border-default); border-radius: var(--radius-md); padding: 32px 24px; text-align: center; }
.auth-logo { font-size: 32px; color: var(--primary); margin-bottom: 10px; }
.auth-logo-img { display: flex; align-items: center; justify-content: center; }
.auth-logo-img img { max-height: 56px; max-width: 160px; object-fit: contain; border-radius: var(--radius-sm); }
.auth-title { font-size: 24px; font-weight: 700; margin: 0 0 4px; }
.auth-subtitle { font-size: 16px; font-weight: 600; color: var(--text-secondary); margin-bottom: 20px; }
.login-user-box { display: flex; align-items: center; justify-content: center; gap: 8px; height: 44px; border: 1px solid var(--border-default); border-radius: var(--radius-sm); font-size: 13px; color: var(--text-secondary); background: var(--surface-panel); }
.auth-helper { font-size: 12px; color: var(--text-tertiary); margin: 12px 0 0; }
.auth-footer { font-family: var(--font-mono); font-size: 10px; color: var(--neutral-border); margin-top: 16px; }
.auth-help-link { font-size: 13px; color: var(--text-secondary); text-decoration: underline; }

/* ── Empty state ── */
.empty-state { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 40px 20px; text-align: center; color: var(--text-tertiary); gap: 10px; }
.empty-state .placeholder-box { width: 80px; height: 80px; margin-bottom: 6px; }

/* ── Skeleton loading ── */
.skeleton { background: linear-gradient(90deg, var(--wireframe-guide) 25%, var(--border-default) 37%, var(--wireframe-guide) 63%); background-size: 400% 100%; animation: skeleton-loading 1.4s ease infinite; border-radius: var(--radius-sm); }
@keyframes skeleton-loading { 0% { background-position: 100% 50%; } 100% { background-position: 0 50%; } }

/* ── Toasts ── */
.toast-container { position: fixed; bottom: 20px; right: 20px; z-index: 2000; display: flex; flex-direction: column; gap: 8px; max-width: 340px; }
@media (max-width: 767px) { .toast-container { left: 16px; right: 16px; bottom: 16px; max-width: none; align-items: center; } }
.toast-custom { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: var(--radius-sm); font-size: 13px; font-weight: 500; box-shadow: 0 2px 0 0 var(--border-default); animation: toastIn .2s ease; }
@keyframes toastIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
.toast-success { background: var(--primary); color: var(--text-inverse); }
.toast-error { background: var(--error-bg); color: var(--error-text); border: 1px solid #FFB4AB; }
.toast-info { background: var(--surface-panel); border: 1px solid var(--border-dark); color: var(--text-primary); }
.toast-warning { background: var(--surface-panel); border: 1px solid var(--neutral-border); color: var(--text-primary); }

/* ── Global loader ── */
.global-loader { position: fixed; inset: 0; background: rgba(245,245,247,.7); z-index: 3000; display: flex; align-items: center; justify-content: center; }
[data-theme="dark"] .global-loader { background: rgba(11,13,18,.7); }

/* ── Slideover / Modal / Backdrop ── */
.modal-backdrop-custom { position: fixed; inset: 0; background: rgba(17,24,39,.45); z-index: 1400; }
.slideover {
  position: fixed; top: 0; right: -520px; width: 480px; max-width: 100%; height: 100vh; background: var(--surface-panel);
  border-left: 2px solid var(--border-dark); z-index: 1500; transition: right .25s ease; display: flex; flex-direction: column;
}
.slideover.show { right: 0; }
.slideover-header { display: flex; align-items: center; justify-content: space-between; padding: 18px 20px; border-bottom: 1px solid var(--wireframe-guide); }
.slideover-header h3 { margin: 0; font-size: 17px; font-weight: 600; }
.slideover-body { flex: 1; overflow-y: auto; padding: 20px; }
.slideover-footer { display: flex; align-items: center; justify-content: space-between; padding: 14px 20px; border-top: 1px solid var(--wireframe-guide); gap: 8px; }

.modal-box {
  position: fixed; top: 50%; left: 50%; transform: translate(-50%, -50%) scale(.96); width: 480px; max-width: calc(100% - 32px);
  max-height: 85vh; background: var(--surface-panel); border: 2px solid var(--border-dark); border-radius: var(--radius-md);
  z-index: 1500; display: none; flex-direction: column; opacity: 0; transition: opacity .15s ease, transform .15s ease;
}
.modal-box.show { display: flex; opacity: 1; transform: translate(-50%, -50%) scale(1); }
.modal-box-header { display: flex; align-items: center; justify-content: space-between; padding: 18px 20px; border-bottom: 1px solid var(--wireframe-guide); }
.modal-box-header h3 { margin: 0; font-size: 17px; font-weight: 600; }
.modal-box-body { padding: 20px; overflow-y: auto; }
.modal-box-footer { display: flex; align-items: center; justify-content: flex-end; gap: 8px; padding: 14px 20px; border-top: 1px solid var(--wireframe-guide); }
@media (max-width: 640px) {
  .modal-box { width: 100%; max-width: 100%; left: 0; top: auto; bottom: 0; transform: translateY(100%); border-radius: var(--radius-md) var(--radius-md) 0 0; max-height: 90vh; }
  .modal-box.show { transform: translateY(0); }
}

/* Section title used inside forms */
.section-title { font-size: 15px; font-weight: 600; margin: 18px 0 10px; padding-bottom: 6px; border-bottom: 1px solid var(--wireframe-guide); }
.section-title:first-child { margin-top: 0; }

/* Upload dropzone */
.dropzone { border: 1px dashed var(--neutral-border); border-radius: var(--radius-sm); background: #F9FAFB; padding: 20px; text-align: center; color: var(--text-tertiary); font-size: 13px; }
[data-theme="dark"] .dropzone { background: #12151C; }
.dropzone:hover { border-color: var(--border-dark); }

/* Timeline */
.timeline { position: relative; padding-left: 20px; }
.timeline::before { content: ''; position: absolute; left: 4px; top: 4px; bottom: 4px; width: 2px; background: var(--border-default); }
.timeline-item { position: relative; padding-bottom: 18px; }
.timeline-item::before { content: ''; position: absolute; left: -20px; top: 3px; width: 9px; height: 9px; border-radius: 50%; background: var(--primary); }

/* Progress bar */
.progress-track { height: 6px; background: var(--wireframe-guide); border-radius: var(--radius-full); overflow: hidden; }
.progress-fill { height: 100%; background: var(--primary); }

/* Misc text helpers */
.text-tertiary { color: var(--text-tertiary); }
.text-secondary { color: var(--text-secondary); }
.text-sm { font-size: 12px; }
.fw-600 { font-weight: 600; }
.disclaimer-note { font-size: 11px; color: var(--text-tertiary); margin-top: 8px; }

/* ── Optimistic UI pending state (gas-instant-ux prinsip 2) ── */
.pending-card { opacity: .8; border-style: dashed; }
.pending-badge { animation: pendingPulse 1.2s ease-in-out infinite; }
@keyframes pendingPulse { 0%, 100% { opacity: 1; } 50% { opacity: .45; } }

/* ── Audit aksesibilitas ui-ux-pro-max (non-destruktif terhadap DESIGN.md) ──
   1) Focus-visible ring: hanya tampak saat navigasi keyboard (Tab), tidak mengubah
      tampilan saat diklik mouse — tidak mengubah look finalized untuk pengguna mouse.
   2) Hit-slop 44×44px: memperluas AREA KLIK tombol ikon kecil tanpa mengubah UKURAN
      VISUAL tombolnya, agar tetap nyaman disentuh di layar mobile (WCAG 2.5.5). */
.btn-primary-custom:focus-visible, .btn-outline-custom:focus-visible, .btn-danger-custom:focus-visible,
.btn-ghost-custom:focus-visible, .btn-icon:focus-visible, .field-input:focus-visible, .field-select:focus-visible,
.field-textarea:focus-visible, .nav-item:focus-visible, .emp-nav-item:focus-visible, a:focus-visible {
  outline: 2px solid var(--border-dark); outline-offset: 2px;
}
.btn-icon, .pagination-pills button { position: relative; }
.btn-icon::after, .pagination-pills button::after {
  content: ''; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 44px; height: 44px; /* hit-slop transparan, tidak terlihat, memperluas area sentuh saja */
}

/* ── Struktur Organisasi — bagan pohon (permintaan kang: tampilan lama cuma daftar kotak
   acak tanpa hierarki; sekarang digambar sebagai pohon atasan → bawahan sungguhan, pola
   "pure-CSS org chart" — garis penghubung dibentuk dari border, bukan gambar/library luar). */
.org-divisi-section { margin-bottom: 28px; }
.org-divisi-section:last-child { margin-bottom: 0; }
.org-divisi-title { font-size: 13px; font-weight: 700; color: var(--text-secondary); text-transform: uppercase; letter-spacing: .03em; margin-bottom: 14px; padding-bottom: 8px; border-bottom: 1px solid var(--wireframe-guide); }
.org-tree-wrap { overflow-x: auto; overflow-y: hidden; }
.org-root-group { display: flex; flex-wrap: wrap; gap: 36px; justify-content: center; align-items: flex-start; padding-bottom: 8px; }
.org-tree, .org-tree ul { display: flex; justify-content: center; }
.org-tree { padding: 0; margin: 0; }
.org-tree ul { padding: 24px 0 0; margin: 0; position: relative; }
.org-tree li { display: flex; flex-direction: column; align-items: center; list-style: none; position: relative; padding: 0 10px; }
.org-tree ul > li { padding-top: 24px; }
.org-tree ul > li::before, .org-tree ul > li::after {
  content: ''; position: absolute; top: 0; right: 50%; width: 50%; height: 24px; border-top: 1.5px solid var(--border-strong);
}
.org-tree ul > li::after { right: auto; left: 50%; border-left: 1.5px solid var(--border-strong); }
.org-tree ul > li:only-child { padding-top: 0; }
.org-tree ul > li:only-child::before, .org-tree ul > li:only-child::after { display: none; }
.org-tree ul > li:first-child::before, .org-tree ul > li:last-child::after { border-color: transparent; }
.org-tree ul > li:last-child::before { border-right: 1.5px solid var(--border-strong); border-radius: 0 6px 0 0; }
.org-tree ul > li:first-child::after { border-radius: 6px 0 0 0; }
.org-tree ul ul::before {
  content: ''; position: absolute; top: 0; left: 50%; width: 0; height: 24px; border-left: 1.5px solid var(--border-strong);
}
.org-node-card { background: var(--surface-panel); border: 1px solid var(--border-default); border-radius: var(--radius-md); padding: 10px 14px; width: 168px; text-align: center; box-shadow: 0 1px 2px rgba(0,0,0,.06); position: relative; z-index: 1; }
.org-node-avatar { width: 38px; height: 38px; border-radius: var(--radius-full); margin: 0 auto 6px; background: var(--wireframe-guide); display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 12px; color: var(--text-secondary); overflow: hidden; }
.org-node-avatar img { width: 100%; height: 100%; object-fit: cover; }
.org-node-name { font-weight: 600; font-size: 12.5px; line-height: 1.3; word-break: break-word; }
.org-node-jabatan { font-size: 11px; color: var(--text-secondary); margin-top: 2px; word-break: break-word; }
.org-node-divisi { font-size: 10px; color: var(--text-tertiary); font-family: var(--font-mono); margin-top: 4px; }
.org-toggle { position: absolute; bottom: -9px; left: 50%; transform: translateX(-50%); width: 18px; height: 18px; border-radius: 50%; background: var(--surface-panel); border: 1px solid var(--border-strong); font-size: 11px; line-height: 16px; padding: 0; cursor: pointer; z-index: 2; color: var(--text-secondary); }
.org-tree li.org-collapsed > ul { display: none; }
.org-legend { font-size: 12px; color: var(--text-tertiary); margin-bottom: 16px; }
.org-legend-taksiran { display: block; margin-top: 4px; color: var(--org-inferred); }
/* Permintaan kang: bedakan garis "turunan" (Atasan/Foreman resmi, SOLID) dari garis "koordinasi"
   (posisi atasan ditaksir otomatis dari Level Jabatan karena Atasan/Foreman-nya belum diisi,
   PUTUS-PUTUS) — supaya jelas mana relasi pasti dan mana yang cuma perkiraan tampilan. */
.org-tree ul > li.org-inferred-link::before, .org-tree ul > li.org-inferred-link::after {
  border-top-style: dashed; border-top-color: var(--org-inferred);
}
.org-tree ul > li.org-inferred-link::after { border-left-style: dashed; border-left-color: var(--org-inferred); }
.org-tree ul > li.org-inferred-link:last-child::before { border-right-style: dashed; border-right-color: var(--org-inferred); }
.org-tree ul.org-inferred-only::before { border-left-style: dashed; border-left-color: var(--org-inferred); }
.org-node-taksiran { font-size: 9px; color: var(--org-inferred); font-style: italic; font-weight: 600; margin-top: 3px; }

/* Permintaan kang: zoom in/out, unduh PDF, dan mode "Kastem" (bagan bebas gambar sendiri, terpisah
   dari data Karyawan) di halaman Struktur Organisasi. */
.org-zoom-viewport { overflow: auto; max-height: 70vh; }
.org-zoom-layer { transform-origin: 0 0; display: inline-block; min-width: 100%; }
.struktur-zoom-controls { display: flex; align-items: center; gap: 6px; }
.struktur-zoom-controls span { font-size: 12px; min-width: 42px; text-align: center; color: var(--text-secondary); font-family: var(--font-mono); }
.struktur-kastem-controls { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.kastem-canvas-wrap { position: relative; background-image: radial-gradient(circle, var(--wireframe-guide) 1.5px, transparent 1.5px); background-size: 20px 20px; }
.kastem-empty-hint { position: absolute; top: 40px; left: 40px; color: var(--text-tertiary); font-size: 13px; }
.kastem-edge-svg { position: absolute; top: 0; left: 0; z-index: 1; pointer-events: none; }
.kastem-box { position: absolute; width: 160px; min-height: 52px; background: var(--surface-panel); border: 1.5px solid var(--border-strong); border-radius: var(--radius-md); padding: 8px 10px; box-shadow: 0 1px 2px rgba(0,0,0,.08); cursor: move; user-select: none; z-index: 2; text-align: center; }
.kastem-box-label { font-weight: 600; font-size: 12.5px; word-break: break-word; }
.kastem-box-sub { font-size: 11px; color: var(--text-secondary); margin-top: 2px; word-break: break-word; }
.kastem-box-del { position: absolute; top: -8px; right: -8px; width: 18px; height: 18px; border-radius: var(--radius-full); background: var(--error); color: #fff; font-size: 12px; line-height: 18px; text-align: center; cursor: pointer; display: none; }
.kastem-box:hover .kastem-box-del { display: block; }
.kastem-box.connect-from { outline: 2px dashed var(--org-inferred); outline-offset: 2px; }
/* Permintaan kang: kotak yang dipilih (dipakai fitur Salin/Tempel Kotak) diberi highlight solid,
   beda dengan garis putus-putus punya mode Hubungkan, supaya kang bisa bedakan sedang di mode apa. */
.kastem-box.selected { outline: 2px solid var(--primary); outline-offset: 2px; }
/* Permintaan kang: begitu tombol Simpan diklik, perhatian kang diarahkan ke dropdown daftar struktur
   (tempat struktur yang baru disimpan itu tersimpan/terlihat) lewat highlight berkedip sesaat. */
.kastem-select-highlight { animation: kastemHighlightPulse_ 1.4s ease; border-radius: var(--radius-sm); }
@keyframes kastemHighlightPulse_ {
  0% { box-shadow: 0 0 0 0 rgba(0,0,0,0); }
  25% { box-shadow: 0 0 0 4px var(--primary); }
  100% { box-shadow: 0 0 0 0 rgba(0,0,0,0); }
}
/* Permintaan kang: kolom "Keterangan" di bawah bagan Kastem (sebelah kiri), otomatis mendeskripsikan
   jalur koordinasi (garis penghubung) yang ada di struktur — terisi & terupdate otomatis. */
.kastem-keterangan-panel { margin-top: 12px; max-width: 560px; }
.kastem-keterangan-title { font-weight: 600; font-size: 13px; margin-bottom: 6px; display: flex; align-items: center; gap: 6px; }
.kastem-keterangan-body { font-size: 12.5px; color: var(--text-secondary); line-height: 1.65; }
.kastem-keterangan-body ul { margin: 0; padding-left: 18px; }
.kastem-keterangan-body li { margin-bottom: 4px; }
/* Permintaan kang: halaman Flowchart Builder — kanvas seret-elemen (drag dari palet bentuk ke
   kanvas), pakai kelas kotak/garis/kanvas yang sama dengan Struktur Kastem (.kastem-canvas-wrap,
   .kastem-edge-svg, .kastem-box-del, .kastem-empty-hint, .kastem-edge-hit, .kastem-select-highlight
   di atas) supaya tampilannya konsisten satu aplikasi, tanpa duplikasi CSS. */
.flowchart-viewport { overflow: auto; max-height: 65vh; }
.flowchart-palet { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.flowchart-palet-label { font-size: 12px; color: var(--text-secondary); margin-right: 2px; }
.flowchart-palet-item { display: flex; align-items: center; gap: 6px; padding: 8px 12px; min-height: 40px; border: 1.5px dashed var(--border-strong); border-radius: var(--radius-md); background: var(--surface-panel); font-size: 12.5px; font-weight: 500; cursor: grab; user-select: none; }
.flowchart-palet-item:active { cursor: grabbing; }
.flowchart-palet-item:hover { border-color: var(--primary); color: var(--primary); }
.flowchart-aksi { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.flowchart-box { position: absolute; display: flex; align-items: center; justify-content: center; text-align: center; padding: 8px 14px; cursor: move; user-select: none; z-index: 2; font-size: 12.5px; font-weight: 600; word-break: break-word; box-shadow: 0 1px 2px rgba(0,0,0,.08); }
.flowchart-box-label { line-height: 1.3; position: relative; z-index: 1; }
.flowchart-box:hover .kastem-box-del { display: block; }
.flowchart-box.connect-from { outline: 2px dashed var(--org-inferred); outline-offset: 2px; }
.flowchart-shape-mulai { background: var(--surface-panel); border: 1.5px solid var(--border-strong); border-radius: 999px; }
.flowchart-shape-proses { background: var(--surface-panel); border: 1.5px solid var(--border-strong); border-radius: var(--radius-md); }
/* Keputusan (diamond) & Input/Output (jajaran genjang): dipotong pakai clip-path, jadi border CSS
   biasa tidak bisa dipakai (border ikut kepotong di sisi miringnya, jadi nyaris tidak kelihatan). */
/* Keputusan: dibuat dari kotak persegi yang diputar 45°, bukan clip-path — supaya border tetap utuh
   & rapi di semua sisi. Teksnya diputar balik 45° di dalamnya supaya tetap terbaca datar. */
.flowchart-shape-keputusan { background: transparent; border: none; box-shadow: none; padding: 0; }
.flowchart-diamond-inner { position: absolute; inset: 8px; background: var(--surface-panel); border: 1.5px solid var(--border-strong); transform: rotate(45deg); box-shadow: 0 1px 2px rgba(0,0,0,.08); }
.flowchart-diamond-inner .flowchart-box-label { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; text-align: center; padding: 0 6px; transform: rotate(-45deg); font-size: 12.5px; font-weight: 600; line-height: 1.2; word-break: break-word; z-index: 1; }
/* Input/Output: dua lapis clip-path (lapisan luar warna border, lapisan dalam warna isi digeser
   masuk 1.5px) — trik standar supaya "border" tetap kelihatan mengikuti sisi miring jajaran genjang. */
.flowchart-shape-input { position: relative; background: var(--border-strong); clip-path: polygon(12% 0, 100% 0, 88% 100%, 0 100%); }
.flowchart-shape-input::before { content: ''; position: absolute; inset: 1.5px; background: var(--surface-panel); clip-path: polygon(12% 0, 100% 0, 88% 100%, 0 100%); }

/* PERMINTAAN KANG: banner "Tambahkan ke Layar Utama" (Add to Home Screen) — elemen TAMBAHAN murni
   (dibuat lewat JS, lihat initTambahKeLayarUtama_ di JavaScript.html), tidak mengubah elemen/halaman
   yang sudah ada. Ditampilkan mengambang di bawah layar, khusus tampilan HP. */
.a2hs-banner { position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 4000; background: var(--primary); color: var(--text-inverse); border-radius: var(--radius-md); padding: 12px 14px; display: flex; align-items: center; gap: 10px; box-shadow: 0 4px 16px rgba(0,0,0,.25); font-size: 13px; }
.a2hs-banner-text { flex: 1; line-height: 1.4; }
.a2hs-banner-btn { flex-shrink: 0; height: 32px; padding: 0 14px; font-size: 12.5px; background: var(--text-inverse); color: var(--primary); border: none; border-radius: var(--radius-sm); font-weight: 600; cursor: pointer; }
.a2hs-banner-close { flex-shrink: 0; background: transparent; border: none; color: var(--text-inverse); font-size: 20px; line-height: 1; cursor: pointer; padding: 0 2px; opacity: .8; }
.a2hs-banner-close:hover { opacity: 1; }
</style>

<style>
/* =====================================================================
   PAYROLL — PayrollCSS.html (TAMBAHAN, khusus menu "Hitung Payroll" &
   kartu "Slip Gaji Resmi" di portal karyawan Jurnal HRD)
   - Memakai token warna/radius/font milik Jurnal HRD (--primary,
     --surface-panel, --border-default, --font-mono, dst.) → ikut mode
     gelap Jurnal HRD otomatis.
   - SEMUA selektor berawalan .prx- supaya tidak menyentuh tampilan
     halaman Jurnal HRD yang lain.
   ===================================================================== */

/* ── Layar buka (login) Payroll ── */
.prx-unlock { max-width: 440px; margin: 24px auto; }
.prx-unlock .prx-lock-ic { width: 44px; height: 44px; border-radius: var(--radius-sm); border: 1px solid var(--border-default);
  display: inline-flex; align-items: center; justify-content: center; font-size: 20px; margin-bottom: 10px; background: var(--surface-canvas); }
.prx-unlock h3 { margin: 0 0 4px; font-size: 18px; }
.prx-muted { color: var(--text-tertiary); font-size: 13px; line-height: 1.5; }
.prx-form-error { background: var(--error-bg); color: var(--error-text); border-radius: var(--radius-sm); padding: 8px 10px; font-size: 13px; margin-bottom: 12px; }
.prx-note { font-size: 12px; color: var(--text-tertiary); margin-top: 12px; line-height: 1.5; }

/* ── Strip pengguna Payroll ── */
.prx-userstrip { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.prx-userstrip .prx-who { font-size: 12px; color: var(--text-secondary); }
.prx-userstrip .prx-who b { color: var(--text-primary); }

/* ── Sub-menu Payroll (dikelompokkan) ── */
.prx-subnav { display: flex; gap: 18px; overflow-x: auto; padding-bottom: 6px; margin-bottom: 14px; border-bottom: 1px solid var(--border-default); scrollbar-width: thin; }
.prx-subnav-group { display: flex; flex-direction: column; gap: 6px; flex: 0 0 auto; }
.prx-subnav-label { font-family: var(--font-mono); font-size: 10px; text-transform: uppercase; letter-spacing: .05em; color: var(--text-tertiary); }
.prx-subnav-items { display: flex; gap: 6px; }
.prx-chip { height: 32px; padding: 0 12px; border-radius: var(--radius-full); border: 1px solid var(--border-default); background: var(--surface-panel);
  color: var(--text-secondary); font-size: 12.5px; font-weight: 500; display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; transition: all .15s ease; }
.prx-chip:hover { border-color: var(--border-dark); color: var(--text-primary); }
.prx-chip.active { background: var(--primary); border-color: var(--primary); color: var(--text-inverse); }

/* ── Kotak info / tahap ── */
.prx-callout { border: 1px dashed var(--neutral-border); border-radius: var(--radius-sm); padding: 10px 12px; font-size: 13px; color: var(--text-secondary);
  background: var(--surface-canvas); margin-bottom: 14px; display: flex; gap: 10px; align-items: flex-start; line-height: 1.5; }
.prx-callout i { font-size: 16px; margin-top: 1px; }
.prx-callout.prx-warn { border-style: solid; border-color: #F59E0B; }
.prx-kv { display: grid; grid-template-columns: 160px 1fr; gap: 6px 12px; font-size: 13px; }
.prx-kv dt { color: var(--text-tertiary); font-family: var(--font-mono); font-size: 11px; text-transform: uppercase; padding-top: 2px; }
.prx-kv dd { margin: 0; word-break: break-word; }
.prx-steps { margin: 0; padding-left: 18px; font-size: 13px; line-height: 1.7; }
.prx-num { font-family: var(--font-mono); text-align: right; white-space: nowrap; }
.prx-temp-pass { font-family: var(--font-mono); font-size: 20px; font-weight: 700; letter-spacing: .04em; padding: 12px; text-align: center;
  border: 1px dashed var(--border-dark); border-radius: var(--radius-sm); margin: 10px 0; user-select: all; }
.prx-row-actions { display: flex; gap: 6px; flex-wrap: wrap; }
.prx-row-actions button { height: 30px; padding: 0 10px; font-size: 12px; }
.prx-linkbox { display: flex; gap: 8px; }
.prx-linkbox input { flex: 1; }

/* ── Aturan PIN (checklist) ── */
.prx-rules { list-style: none; margin: 8px 0 12px; padding: 0; font-size: 12.5px; }
.prx-rules li { padding: 2px 0; color: var(--text-tertiary); }
.prx-rules li::before { content: '○ '; }
.prx-rules li.ok { color: var(--text-primary); font-weight: 600; }
.prx-rules li.ok::before { content: '● '; }

/* ── Kartu Slip Gaji Resmi di portal karyawan ── */
.prx-slipcard { margin-bottom: 14px; }
.prx-slipcard .prx-pin { font-family: var(--font-mono); font-size: 18px; letter-spacing: .3em; text-align: center; }
.prx-hello { font-size: 16px; font-weight: 700; }

/* ── Tahap 1B: komponen halaman Payroll ── */
.prx-total td { font-weight: 700; background: var(--surface-canvas); }
.prx-grp td { background: var(--surface-canvas); font-size: 12px; }
.prx-stepper { display: flex; gap: 6px; flex-wrap: wrap; margin: 6px 0 8px; }
.prx-step { flex: 1 1 110px; display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--text-tertiary); padding: 6px 8px; border: 1px solid var(--border-default); border-radius: var(--radius-sm); }
.prx-step span { width: 20px; height: 20px; border-radius: 50%; border: 1px solid var(--border-strong); display: inline-flex; align-items: center; justify-content: center; font-size: 11px; font-family: var(--font-mono); flex: 0 0 auto; }
.prx-step.done { color: var(--text-primary); }
.prx-step.done span { background: var(--primary); color: var(--text-inverse); border-color: var(--primary); }
.prx-step.now { color: var(--text-primary); font-weight: 600; border-color: var(--border-dark); }
.prx-step.now span { border: 2px solid var(--border-dark); }
.prx-grid td { padding: 4px 6px; vertical-align: middle; }
.prx-cell { width: 86px; height: 30px; padding: 0 6px; border: 1px solid var(--border-default); border-radius: var(--radius-sm); background: var(--surface-panel); color: var(--text-primary); font-family: var(--font-mono); font-size: 12px; text-align: right; }
.prx-cell:focus { outline: none; border-color: var(--border-dark); }
.prx-dirty { border-color: #F59E0B; background: rgba(245, 158, 11, .08); }
.prx-sliprow { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--border-default); }
.prx-slipframe { width: 100%; min-height: 360px; border: 1px solid var(--border-default); border-radius: var(--radius-sm); background: #fff; margin: 6px 0 10px; }

@media (max-width: 767px) {
  .prx-kv { grid-template-columns: 1fr; }
  .prx-linkbox { flex-direction: column; }
}

/* ============================================================
   JURNAL HRD v2.0 — TEMA "CORPORATE ENTERPRISE" (hasil Stitch)
   Tempel di BAGIAN PALING BAWAH Stylesheet.html (tepat sebelum tag penutup style).
   Cara kerja: hanya MENIMPA nilai variabel & gaya visual komponen yang
   sudah ada. Tidak ada nama kelas lama yang diganti, tidak ada tata letak
   / fungsi / urutan menu yang diubah. Hapus blok ini = kembali ke v1.2.
   ============================================================ */

:root {
  --primary: #2563EB;
  --primary-hover: #1D4ED8;
  --primary-active: #1E40AF;
  --primary-soft: #EFF6FF;
  --primary-ring: rgba(37, 99, 235, .15);
  --secondary: #334155;
  --tertiary: #64748B;
  --neutral-border: #94A3B8;
  --surface-canvas: #F8FAFC;
  --surface-panel: #FFFFFF;
  --border-default: #E2E8F0;
  --border-strong: #CBD5E1;
  --border-dark: #2563EB;
  --text-primary: #0F172A;
  --text-secondary: #475569;
  --text-tertiary: #64748B;
  --text-inverse: #FFFFFF;
  --wireframe-guide: #F1F5F9;
  --error: #DC2626;
  --error-bg: #FEE2E2;
  --error-text: #B91C1C;
  --success: #16A34A;
  --success-bg: #DCFCE7;
  --success-text: #166534;
  --warning: #D97706;
  --warning-bg: #FEF3C7;
  --warning-text: #B45309;
  --info-bg: #DBEAFE;
  --info-text: #1E40AF;
  --support-bg: #FFEDD5;
  --support-text: #9A3412;
  --sidebar-bg: #0F172A;
  --sidebar-surface: #1E293B;
  --sidebar-text: #F8FAFC;
  --sidebar-muted: #94A3B8;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --font-ui: 'Inter', -apple-system, 'Segoe UI', sans-serif;
  --font-display: 'Plus Jakarta Sans', 'Inter', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  --shadow-1: 0 1px 3px 0 rgba(15, 23, 42, .05), 0 1px 2px -1px rgba(15, 23, 42, .05);
  --shadow-2: 0 4px 6px -1px rgba(15, 23, 42, .07), 0 2px 4px -2px rgba(15, 23, 42, .05);
  --shadow-3: 0 20px 25px -5px rgba(15, 23, 42, .10), 0 8px 10px -6px rgba(15, 23, 42, .08);
  --chart-1: #2563EB; --chart-2: #0D9488; --chart-3: #D97706; --chart-4: #9333EA;
  --chart-5: #DB2777; --chart-6: #65A30D; --chart-7: #0891B2; --chart-8: #EA580C;
  --chart-main: #2563EB; --chart-compare: #94A3B8;
}

[data-theme="dark"] {
  --primary: #3B82F6;
  --primary-hover: #60A5FA;
  --primary-active: #2563EB;
  --primary-soft: #172554;
  --primary-ring: rgba(59, 130, 246, .25);
  --secondary: #CBD5E1;
  --tertiary: #94A3B8;
  --neutral-border: #64748B;
  --surface-canvas: #0B1220;
  --surface-panel: #111A2E;
  --border-default: #1E293B;
  --border-strong: #334155;
  --border-dark: #3B82F6;
  --text-primary: #E2E8F0;
  --text-secondary: #CBD5E1;
  --text-tertiary: #94A3B8;
  --text-inverse: #FFFFFF;
  --wireframe-guide: #172033;
  --error: #F87171;
  --error-bg: #3B1219;
  --error-text: #FCA5A5;
  --success: #4ADE80;
  --success-bg: #052E1A;
  --success-text: #86EFAC;
  --warning: #FBBF24;
  --warning-bg: #3A2A0A;
  --warning-text: #FCD34D;
  --info-bg: #0C2350;
  --info-text: #93C5FD;
  --support-bg: #3A1D0A;
  --support-text: #FDBA74;
  --sidebar-bg: #020617;
  --sidebar-surface: #0F172A;
  --sidebar-text: #F8FAFC;
  --sidebar-muted: #94A3B8;
  --shadow-1: 0 1px 2px 0 rgba(0, 0, 0, .4);
  --shadow-2: 0 4px 10px -2px rgba(0, 0, 0, .5);
  --shadow-3: 0 20px 25px -5px rgba(0, 0, 0, .6);
  --chart-1: #3B82F6; --chart-2: #0D9488; --chart-3: #D97706; --chart-4: #A855F7;
  --chart-5: #DB2777; --chart-6: #65A30D; --chart-7: #0891B2; --chart-8: #EA580C;
  --chart-main: #3B82F6; --chart-compare: #64748B;
}

/* ── Tipografi: judul memakai Plus Jakarta Sans ── */
h1, h2, h3, .topbar-title, .page-header h2, .auth-title, .card-panel-header h3,
.stat-card-value, .slideover-header h3, .modal-box-header h3, .emp-topbar-title {
  font-family: var(--font-display); letter-spacing: -.01em;
}
.page-header h2 { font-size: 24px; font-weight: 700; }

/* ── Tombol ── */
.btn-primary-custom:hover { background: var(--primary-hover); }
.btn-primary-custom:active { background: var(--primary-active); }
.btn-outline-custom { border-color: var(--border-strong); }
.btn-outline-custom:hover { background: var(--wireframe-guide); border-color: var(--border-strong); }
.btn-danger-custom { background: #EF4444; color: #FFFFFF; border-color: #EF4444; }
.btn-danger-custom:hover { background: #DC2626; border-color: #DC2626; }
.btn-ghost-custom { border: 1px solid var(--border-default); background: var(--surface-panel); color: var(--text-primary); }
.btn-ghost-custom:hover { background: var(--wireframe-guide); }
.btn-icon { color: var(--text-tertiary); }
.btn-icon:hover { background: var(--wireframe-guide); color: var(--text-primary); }

/* ── Form ── */
.field-label { font-family: var(--font-ui); font-size: 13px; font-weight: 500; text-transform: none; letter-spacing: 0; color: var(--text-primary); }
.field-input, .field-select, .field-textarea { border-color: var(--border-strong); }
.field-input::placeholder, .field-textarea::placeholder { color: #94A3B8; }
.field-input:focus, .field-select:focus, .field-textarea:focus { border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-ring); }
.field-input:disabled, .field-select:disabled { background: var(--wireframe-guide); color: var(--text-tertiary); }

/* ── Lencana ── */
.badge-pill { font-family: var(--font-ui); padding: 2px 10px; letter-spacing: .04em; white-space: nowrap; }
.badge-solid { background: var(--primary); color: #FFFFFF; }
.badge-outline { background: var(--wireframe-guide); border: 0; color: var(--text-secondary); }
.badge-error { background: var(--error-bg); color: var(--error-text); }
.badge-slate { background: var(--wireframe-guide); color: var(--text-secondary); }
.badge-success { background: var(--success-bg); color: var(--success-text); }
.badge-warning { background: var(--warning-bg); color: var(--warning-text); }
.badge-info { background: var(--info-bg); color: var(--info-text); }

/* ── Kartu, statistik, tabel ── */
.card-panel { border-radius: var(--radius-md); box-shadow: var(--shadow-1); border-color: var(--border-default); padding: 16px; }
.card-panel-header { border-bottom-color: var(--border-default); }
.stat-card { border-radius: var(--radius-md); box-shadow: var(--shadow-1); padding: 14px 16px; }
.stat-card-label { font-family: var(--font-ui); font-size: 11px; font-weight: 600; letter-spacing: .06em; }
.stat-card-value { font-size: 26px; letter-spacing: -.02em; }
.table-wrap { border-radius: var(--radius-md); box-shadow: var(--shadow-1); }
table.data-table thead th { font-family: var(--font-ui); font-size: 11px; font-weight: 600; letter-spacing: .06em; background: var(--surface-canvas); }
table.data-table tbody td { border-bottom-color: var(--border-default); }
table.data-table tbody tr.row-selected { background: var(--primary-soft); box-shadow: inset 3px 0 0 var(--primary); }
.toolbar { border-radius: var(--radius-md); box-shadow: var(--shadow-1); }
.pagination-pills button.active { background: var(--primary); border-color: var(--primary); color: #FFFFFF; }
.tabs-underline .tab-item.active { color: var(--primary); border-bottom-color: var(--primary); }

/* ── Sidebar admin: navy gelap ── */
.sidebar { background: var(--sidebar-bg); border-right-color: var(--sidebar-bg); color: var(--sidebar-text); }
.sidebar-logo { color: var(--sidebar-text); border-bottom-color: rgba(255, 255, 255, .08); font-family: var(--font-display); }
.sidebar-logo i { color: #60A5FA; }
.nav-item { color: var(--sidebar-muted); border-radius: var(--radius-sm); }
.nav-item:hover { background: rgba(255, 255, 255, .06); color: var(--sidebar-text); }
.nav-item.active { background: var(--primary); color: #FFFFFF; }
.nav-badge { background: rgba(255, 255, 255, .14); color: #FFFFFF; }
.nav-item.active .nav-badge { background: #FFFFFF; color: var(--primary); }
.sidebar-footer { border-top-color: rgba(255, 255, 255, .08); }
.sidebar-user-name { color: var(--sidebar-text); }
.sidebar-user-role { color: var(--sidebar-muted); }
.sidebar-logout { color: var(--sidebar-muted); }
.sidebar-logout:hover { color: #F87171; }
.sidebar-overlay { background: rgba(15, 23, 42, .6); }
.sidebar-nav::-webkit-scrollbar { width: 6px; }
.sidebar-nav::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, .15); border-radius: 9999px; }

/* ── Topbar, avatar ── */
.topbar { border-bottom-color: var(--border-default); }
.topbar-title { font-size: 20px; font-weight: 700; }
.avatar-circle { background: var(--primary); color: #FFFFFF; }

/* ── Toast, modal, slideover, loader ── */
.toast-custom { border-radius: var(--radius-sm); box-shadow: var(--shadow-2); }
.toast-success { background: #16A34A; color: #FFFFFF; }
.toast-error { background: var(--error-bg); color: var(--error-text); border: 1px solid rgba(220, 38, 38, .25); }
.toast-info { background: var(--info-bg); color: var(--info-text); border: 1px solid rgba(37, 99, 235, .2); }
.toast-warning { background: var(--warning-bg); color: var(--warning-text); border: 1px solid rgba(217, 119, 6, .25); }
.modal-backdrop-custom { background: rgba(15, 23, 42, .6); }
.modal-box { border: 1px solid var(--border-default); border-radius: var(--radius-lg); box-shadow: var(--shadow-3); }
.slideover { border-left: 1px solid var(--border-default); box-shadow: var(--shadow-3); }
.global-loader { background: rgba(248, 250, 252, .7); }

/* ── Lain-lain ── */
.dropzone { background: var(--wireframe-guide); border: 2px dashed var(--border-strong); border-radius: var(--radius-md); }
[data-theme="dark"] .dropzone { background: var(--wireframe-guide); }
.dropzone:hover { border-color: var(--primary); }
.progress-fill { background: var(--primary); }
.timeline-item::before { background: var(--primary); }
.auth-card { border-radius: var(--radius-lg); box-shadow: var(--shadow-2); }
.auth-logo { color: var(--primary); }
.prx-callout.prx-warn { border-color: var(--warning); }

/* ── Fokus keyboard ── */
.btn-primary-custom:focus-visible, .btn-outline-custom:focus-visible, .btn-danger-custom:focus-visible,
.btn-ghost-custom:focus-visible, .btn-icon:focus-visible, .field-input:focus-visible, .field-select:focus-visible,
.field-textarea:focus-visible, .nav-item:focus-visible, .emp-nav-item:focus-visible, a:focus-visible {
  outline: 2px solid var(--primary); outline-offset: 2px;
}

/* ── Portal karyawan: di HP tetap seperti sekarang (menu bawah);
      di layar ≥1024px menu pindah ke kiri (tidak lagi tampilan HP yang diregangkan). ── */
.emp-nav-item.active { color: var(--primary); }
@media (min-width: 1024px) {
  .employee-shell {
    max-width: none; display: grid; grid-template-columns: 240px minmax(0, 1fr);
    grid-template-rows: 64px minmax(0, 1fr); grid-template-areas: "top top" "nav main";
  }
  .emp-topbar { grid-area: top; height: 64px; padding: 0 24px; }
  .emp-topbar-title { text-align: left; font-size: 18px; }
  .emp-bottom-nav {
    grid-area: nav; position: sticky; top: 64px; height: calc(100vh - 64px); flex-direction: column;
    gap: 2px; padding: 12px; border-top: 0; border-right: 1px solid var(--border-default); background: var(--surface-panel);
  }
  .emp-nav-item { flex: 0 0 auto; flex-direction: row; justify-content: flex-start; gap: 10px; height: 40px; min-height: 40px;
    padding: 0 12px; font-size: 14px; border-radius: var(--radius-sm); color: var(--text-secondary); }
  .emp-nav-item i { font-size: 16px; width: 20px; text-align: center; }
  .emp-nav-item:hover { background: var(--wireframe-guide); }
  .emp-nav-item.active { background: var(--primary-soft); color: var(--primary); font-weight: 600; }
  .emp-content { grid-area: main; padding: 24px 32px; width: 100%; max-width: 1080px; }
}
/* ======================= AKHIR TEMA v2.0 ======================= */

/* ============================================================
   JURNAL HRD v2.0 — KOMPONEN MULTI-PERUSAHAAN (.mt-*)
   Tempel di Stylesheet.html SETELAH blok "TEMA v2.0".
   Semua selektor berawalan .mt- agar tidak menyentuh komponen lama.
   ============================================================ */

/* ---------- 1. Pita status di atas aplikasi (E1–E3) ---------- */
.mt-banner {
  position: sticky; top: 0; z-index: 1050; display: flex; align-items: center; gap: 12px;
  padding: 10px 24px; font-size: 13px; line-height: 18px; border-bottom: 1px solid rgba(0, 0, 0, .08);
}
.mt-banner > i { font-size: 18px; flex-shrink: 0; }
.mt-banner-text { flex: 1; min-width: 0; }
.mt-banner-text b { font-weight: 700; }
.mt-banner-actions { display: flex; gap: 8px; flex-shrink: 0; }
.mt-banner .btn-primary-custom, .mt-banner .btn-outline-custom { height: 32px; font-size: 13px; padding: 0 12px; }
.mt-banner--grace { background: var(--warning-bg); color: #92400E; }
.mt-banner--readonly { background: var(--error-bg); color: #991B1B; }
.mt-banner--support { background: var(--support-bg); color: var(--support-text); }
.mt-banner--info { background: var(--info-bg); color: var(--info-text); }
[data-theme="dark"] .mt-banner--grace { color: var(--warning-text); }
[data-theme="dark"] .mt-banner--readonly { color: var(--error-text); }
.mt-banner-timer { font-family: var(--font-mono); font-size: 12px; font-weight: 600; padding: 2px 8px; border-radius: 9999px; background: rgba(255, 255, 255, .6); }
@media (max-width: 767px) {
  .mt-banner { padding: 10px 12px; flex-wrap: wrap; }
  .mt-banner-actions { width: 100%; }
  .mt-banner-actions > * { flex: 1; }
}

/* ---------- 2. Layar perawatan (E4) ---------- */
.mt-maint { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 24px; background: var(--sidebar-bg); color: var(--sidebar-text); }
.mt-maint-card { width: 100%; max-width: 520px; text-align: center; }
.mt-maint-icon { width: 64px; height: 64px; margin: 0 auto 20px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: rgba(59, 130, 246, .15); color: #60A5FA; font-size: 28px; }
.mt-maint-tag { display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: 3px 10px; border-radius: 6px; background: #F59E0B; color: #1F2937; margin-bottom: 14px; }
.mt-maint h1 { font-size: 26px; line-height: 34px; margin: 0 0 10px; color: #FFFFFF; }
.mt-maint p { color: var(--sidebar-muted); font-size: 14px; line-height: 22px; margin: 0 0 24px; }
.mt-maint-eta { border: 1px solid rgba(255, 255, 255, .1); background: var(--sidebar-surface); border-radius: var(--radius-md); padding: 16px; }
.mt-maint-eta small { display: block; font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--sidebar-muted); margin-bottom: 6px; }
.mt-maint-eta strong { font-family: var(--font-mono); font-size: 20px; color: #4ADE80; }
.mt-maint-countdown { margin-top: 8px; font-size: 12px; color: #FCD34D; font-family: var(--font-mono); }

/* ---------- 3. Kode perusahaan & kotak kode verifikasi ---------- */
.mt-code { display: inline-flex; align-items: center; gap: 6px; font-family: var(--font-mono); font-size: 12px; font-weight: 600; letter-spacing: .08em; padding: 2px 8px; border-radius: 6px; background: var(--info-bg); color: var(--info-text); }
.mt-code-lg { display: block; text-align: center; font-family: var(--font-mono); font-size: 36px; font-weight: 700; letter-spacing: .18em; color: var(--primary); background: var(--surface-canvas); border: 1px solid var(--border-default); border-radius: var(--radius-md); padding: 14px 10px; }
.mt-otp { display: flex; gap: 8px; justify-content: center; }
.mt-otp input {
  width: 48px; height: 54px; text-align: center; font-family: var(--font-mono); font-size: 20px; font-weight: 600;
  border: 1px solid var(--border-strong); border-radius: var(--radius-sm); background: var(--surface-panel); color: var(--text-primary);
}
.mt-otp input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-ring); }
.mt-otp input.is-error { border-color: var(--error); }
@media (max-width: 380px) { .mt-otp input { width: 42px; height: 50px; } }

/* ---------- 4. Halaman publik: Beranda, Masuk, Daftar ---------- */
.mt-public { min-height: 100vh; background: var(--surface-canvas); display: flex; flex-direction: column; }
.mt-public-nav { height: 64px; display: flex; align-items: center; gap: 16px; padding: 0 32px; background: var(--surface-panel); border-bottom: 1px solid var(--border-default); position: sticky; top: 0; z-index: 20; }
.mt-brand { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 700; font-size: 18px; color: var(--text-primary); }
.mt-brand-mark { width: 36px; height: 36px; border-radius: 10px; background: var(--primary); color: #FFFFFF; display: flex; align-items: center; justify-content: center; font-size: 18px; }
.mt-public-nav .mt-spacer { flex: 1; }
.mt-hero { padding: 72px 32px 56px; max-width: 1200px; margin: 0 auto; width: 100%; display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.mt-hero h1 { font-size: 44px; line-height: 52px; font-weight: 800; margin: 0 0 16px; letter-spacing: -.02em; }
.mt-hero h1 em { font-style: normal; color: var(--primary); }
.mt-hero p { font-size: 17px; line-height: 28px; color: var(--text-secondary); margin: 0 0 28px; }
.mt-hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }
.mt-hero-cta .btn-primary-custom, .mt-hero-cta .btn-outline-custom { height: 48px; padding: 0 22px; font-size: 15px; }
.mt-feature-grid { max-width: 1200px; margin: 0 auto; padding: 0 32px 64px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; width: 100%; }
.mt-feature { background: var(--surface-panel); border: 1px solid var(--border-default); border-radius: var(--radius-md); padding: 20px; box-shadow: var(--shadow-1); }
.mt-feature i { font-size: 22px; color: var(--primary); display: inline-flex; width: 44px; height: 44px; border-radius: 10px; background: var(--primary-soft); align-items: center; justify-content: center; margin-bottom: 12px; }
.mt-feature h3 { font-size: 16px; margin: 0 0 6px; }
.mt-feature p { margin: 0; color: var(--text-secondary); font-size: 14px; line-height: 22px; }
.mt-public-footer { margin-top: auto; background: var(--sidebar-bg); color: var(--sidebar-muted); padding: 24px 32px; font-size: 13px; display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; }
.mt-public-footer a { color: var(--sidebar-muted); }
.mt-public-footer a:hover { color: #FFFFFF; }
@media (max-width: 1023px) {
  .mt-hero { grid-template-columns: 1fr; padding: 40px 16px 32px; gap: 24px; }
  .mt-hero h1 { font-size: 32px; line-height: 40px; }
  .mt-feature-grid { grid-template-columns: 1fr; padding: 0 16px 40px; }
  .mt-public-nav { padding: 0 16px; }
  .mt-public-footer { padding: 20px 16px; }
}

/* Masuk: panel merek kiri + formulir kanan (desktop); formulir saja (HP) */
.mt-auth { min-height: 100vh; display: grid; grid-template-columns: 1fr 1fr; background: var(--surface-canvas); }
.mt-auth-brand { background: var(--sidebar-bg); color: var(--sidebar-text); padding: 48px; display: flex; flex-direction: column; justify-content: space-between; }
.mt-auth-brand h2 { font-size: 32px; line-height: 40px; margin: 0 0 12px; color: #FFFFFF; }
.mt-auth-brand p { color: var(--sidebar-muted); font-size: 15px; line-height: 24px; margin: 0; max-width: 420px; }
.mt-auth-brand ul { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 12px; }
.mt-auth-brand li { display: flex; gap: 10px; color: #CBD5E1; font-size: 14px; }
.mt-auth-brand li i { color: #4ADE80; }
.mt-auth-form { display: flex; align-items: center; justify-content: center; padding: 32px 24px; }
.mt-auth-box { width: 100%; max-width: 420px; background: var(--surface-panel); border: 1px solid var(--border-default); border-radius: var(--radius-lg); box-shadow: var(--shadow-2); padding: 32px; }
.mt-auth-box h1 { font-size: 24px; margin: 0 0 4px; }
.mt-auth-box .mt-sub { color: var(--text-secondary); font-size: 14px; margin: 0 0 24px; }
.mt-auth-links { display: flex; justify-content: space-between; gap: 8px; font-size: 13px; margin-top: 16px; }
.mt-auth-links a { color: var(--primary); font-weight: 500; }
.mt-owner-link { display: block; text-align: center; margin-top: 20px; font-size: 12px; color: var(--text-tertiary); }
@media (max-width: 1023px) {
  .mt-auth { grid-template-columns: 1fr; }
  .mt-auth-brand { display: none; }
  .mt-auth-form { padding: 24px 16px; align-items: flex-start; }
  .mt-auth-box { padding: 24px 20px; margin-top: 16px; }
}

/* Kartu perusahaan tersimpan di perangkat (login berikutnya) */
.mt-company-card { display: flex; align-items: center; gap: 12px; padding: 12px; border: 1px solid var(--border-default); border-radius: var(--radius-md); background: var(--surface-canvas); margin-bottom: 16px; }
.mt-company-logo { width: 44px; height: 44px; border-radius: 10px; flex-shrink: 0; overflow: hidden; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 15px; color: #FFFFFF; background: #047857; }
.mt-company-logo img { width: 100%; height: 100%; object-fit: cover; }
.mt-company-name { font-weight: 600; font-size: 14px; line-height: 20px; }
.mt-company-meta { display: flex; align-items: center; gap: 8px; margin-top: 2px; font-size: 12px; color: var(--text-tertiary); }
.mt-company-card .mt-switch-link { margin-left: auto; font-size: 12px; color: var(--primary); font-weight: 500; white-space: nowrap; }
/* Versi di sidebar navy */
.sidebar .mt-company-card { margin: 12px 12px 0; background: var(--sidebar-surface); border-color: rgba(255, 255, 255, .08); }
.sidebar .mt-company-name { color: var(--sidebar-text); }
.sidebar .mt-company-meta { color: var(--sidebar-muted); }

/* Langkah pendaftaran */
.mt-steps { display: flex; gap: 8px; margin-bottom: 24px; }
.mt-step { flex: 1; display: flex; flex-direction: column; gap: 6px; font-size: 12px; color: var(--text-tertiary); }
.mt-step::before { content: ''; height: 4px; border-radius: 9999px; background: var(--border-default); }
.mt-step.is-done::before, .mt-step.is-current::before { background: var(--primary); }
.mt-step.is-current { color: var(--text-primary); font-weight: 600; }

/* ---------- 5. Kartu paket & tarif ---------- */
.mt-plan-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; max-width: 880px; margin: 0 auto; }
.mt-plan { position: relative; background: var(--surface-panel); border: 1px solid var(--border-default); border-radius: var(--radius-lg); padding: 24px; box-shadow: var(--shadow-1); display: flex; flex-direction: column; }
.mt-plan--featured { border: 2px solid var(--primary); box-shadow: var(--shadow-2); }
.mt-plan-ribbon { position: absolute; top: -12px; left: 24px; background: var(--primary); color: #FFFFFF; font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: 3px 10px; border-radius: 9999px; }
.mt-plan h3 { font-size: 20px; margin: 0 0 4px; }
.mt-plan-price { font-family: var(--font-display); font-size: 30px; font-weight: 700; margin: 12px 0 4px; letter-spacing: -.02em; }
.mt-plan-price small { font-size: 14px; font-weight: 500; color: var(--text-tertiary); }
.mt-plan ul { list-style: none; padding: 0; margin: 16px 0 20px; display: grid; gap: 10px; font-size: 14px; }
.mt-plan li { display: flex; gap: 8px; align-items: flex-start; }
.mt-plan li i { color: var(--success); margin-top: 2px; }
.mt-plan li.is-limit i { color: var(--warning); }
.mt-plan .btn-primary-custom, .mt-plan .btn-outline-custom { margin-top: auto; height: 44px; }
.mt-tier-table td.mt-num, .mt-tier-table th.mt-num { text-align: right; font-variant-numeric: tabular-nums; }
.mt-tier-row.is-selected { background: var(--primary-soft); box-shadow: inset 3px 0 0 var(--primary); }
.mt-total { display: flex; justify-content: space-between; align-items: baseline; padding: 14px 16px; border-radius: var(--radius-md); background: var(--primary-soft); color: var(--text-primary); }
.mt-total strong { font-family: var(--font-display); font-size: 24px; color: var(--primary); }
.mt-total .mt-unique { font-family: var(--font-mono); color: var(--warning-text); }
@media (max-width: 767px) { .mt-plan-grid { grid-template-columns: 1fr; } }

/* ---------- 6. Metode pembayaran ---------- */
.mt-pay-list { display: grid; gap: 10px; }
.mt-pay { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid var(--border-default); border-radius: var(--radius-md); background: var(--surface-panel); }
.mt-pay-logo { width: 44px; height: 44px; flex-shrink: 0; border-radius: 10px; border: 1px solid var(--border-default); background: var(--surface-canvas); display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 800; color: var(--primary); }
.mt-pay-body { flex: 1; min-width: 0; }
.mt-pay-name { font-weight: 600; font-size: 14px; }
.mt-pay-number { font-family: var(--font-mono); font-size: 15px; font-weight: 600; letter-spacing: .04em; margin-top: 2px; }
.mt-pay-owner { font-size: 12px; color: var(--text-tertiary); }
.mt-pay.is-off { opacity: .55; }
.mt-pay-drag { color: var(--text-tertiary); cursor: grab; }
.mt-copy { height: 32px; padding: 0 10px; border-radius: var(--radius-sm); border: 1px solid var(--border-strong); background: var(--surface-panel); color: var(--text-primary); font-size: 12px; font-weight: 500; display: inline-flex; align-items: center; gap: 6px; flex-shrink: 0; }
.mt-copy:hover { background: var(--wireframe-guide); }
.mt-copy.is-copied { border-color: var(--success); color: var(--success-text); background: var(--success-bg); }
.mt-qris { text-align: center; padding: 16px; border: 1px dashed var(--border-strong); border-radius: var(--radius-md); background: var(--surface-canvas); }
.mt-qris img { width: 200px; max-width: 100%; aspect-ratio: 1; object-fit: contain; background: #FFFFFF; border-radius: var(--radius-sm); }

/* ---------- 7. Status langganan (lencana) ---------- */
.mt-status { display: inline-flex; align-items: center; gap: 6px; padding: 2px 10px; border-radius: 9999px; font-size: 11px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; white-space: nowrap; }
.mt-status::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.mt-status--aktif { background: var(--success-bg); color: var(--success-text); }
.mt-status--gratis { background: var(--wireframe-guide); color: var(--text-secondary); }
.mt-status--menunggu { background: var(--info-bg); color: var(--info-text); }
.mt-status--tenggang { background: var(--warning-bg); color: var(--warning-text); }
.mt-status--hanyalihat, .mt-status--ditolak { background: var(--error-bg); color: var(--error-text); }
.mt-status--nonaktif, .mt-status--dihapus { background: var(--wireframe-guide); color: var(--text-tertiary); }

/* ---------- 8. KPI (Dashboard Owner & Langganan) ---------- */
.mt-kpi-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; }
.mt-kpi { background: var(--surface-panel); border: 1px solid var(--border-default); border-radius: var(--radius-md); padding: 16px; box-shadow: var(--shadow-1); display: flex; flex-direction: column; gap: 6px; }
.mt-kpi-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; }
.mt-kpi-label { font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--text-tertiary); }
.mt-kpi-icon { width: 36px; height: 36px; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 17px; flex-shrink: 0; background: var(--primary-soft); color: var(--primary); }
.mt-kpi-value { font-family: var(--font-display); font-size: 32px; line-height: 36px; font-weight: 700; letter-spacing: -.02em; }
.mt-kpi-sub { font-size: 13px; color: var(--text-secondary); }
.mt-kpi-bar { height: 6px; border-radius: 9999px; background: var(--wireframe-guide); overflow: hidden; margin-top: 4px; }
.mt-kpi-bar > span { display: block; height: 100%; background: var(--primary); border-radius: 9999px; }
.mt-kpi--success .mt-kpi-icon { background: var(--success-bg); color: var(--success-text); } .mt-kpi--success .mt-kpi-bar > span { background: var(--success); }
.mt-kpi--warning .mt-kpi-icon { background: var(--warning-bg); color: var(--warning-text); } .mt-kpi--warning .mt-kpi-bar > span { background: var(--warning); }
.mt-kpi--danger .mt-kpi-icon { background: var(--error-bg); color: var(--error-text); } .mt-kpi--danger .mt-kpi-bar > span { background: var(--error); }
.mt-kpi--neutral .mt-kpi-icon { background: var(--wireframe-guide); color: var(--text-secondary); } .mt-kpi--neutral .mt-kpi-bar > span { background: var(--neutral-border); }
.mt-kpi--attention { border: 2px solid #F59E0B; }
.mt-kpi--attention .mt-kpi-label, .mt-kpi--attention .mt-kpi-value { color: var(--warning-text); }
a.mt-kpi:hover, button.mt-kpi:hover { box-shadow: var(--shadow-2); border-color: var(--border-strong); }
@media (max-width: 1279px) { .mt-kpi-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 767px) { .mt-kpi-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; } .mt-kpi-value { font-size: 26px; line-height: 30px; } .mt-kpi { padding: 12px; } }

/* Meter kapasitas karyawan: biru <80%, kuning 80–99%, merah 100% */
.mt-meter { height: 8px; border-radius: 9999px; background: var(--wireframe-guide); overflow: hidden; }
.mt-meter > span { display: block; height: 100%; border-radius: 9999px; background: var(--primary); }
.mt-meter.is-warn > span { background: #F59E0B; }
.mt-meter.is-full > span { background: var(--error); }

/* ---------- 9. Tata letak 2 kolom (konten + panel samping) ---------- */
.mt-split { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 20px; align-items: start; }
.mt-split--wide-aside { grid-template-columns: minmax(0, 1fr) 460px; }
@media (max-width: 1279px) { .mt-split, .mt-split--wide-aside { grid-template-columns: 1fr; } }

/* ---------- 10. Antrean verifikasi & bukti transfer ---------- */
.mt-queue { display: grid; gap: 10px; }
.mt-queue-item { text-align: left; width: 100%; background: var(--surface-panel); border: 1px solid var(--border-default); border-radius: var(--radius-md); padding: 14px 16px; box-shadow: var(--shadow-1); color: var(--text-primary); }
.mt-queue-item:hover { border-color: var(--border-strong); }
.mt-queue-item.is-active { border: 2px solid var(--primary); padding: 13px 15px; }
.mt-queue-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 8px; }
.mt-queue-amount { font-family: var(--font-display); font-weight: 700; font-size: 17px; color: var(--primary); }
.mt-queue-name { font-weight: 600; font-size: 15px; }
.mt-queue-meta { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 12px; font-size: 12px; color: var(--text-tertiary); margin-top: 8px; }
.mt-queue-meta b { display: block; color: var(--text-primary); font-weight: 500; font-size: 13px; }
.mt-age { font-size: 11px; font-weight: 600; padding: 2px 8px; border-radius: 9999px; background: var(--warning-bg); color: var(--warning-text); }
.mt-proof { border: 1px solid var(--border-default); border-radius: var(--radius-md); background: var(--surface-canvas); min-height: 280px; display: flex; align-items: center; justify-content: center; overflow: hidden; position: relative; }
.mt-proof img { max-width: 100%; max-height: 520px; object-fit: contain; }
.mt-proof-tools { position: absolute; top: 8px; right: 8px; display: flex; gap: 6px; }
.mt-proof-tools .btn-icon { background: var(--surface-panel); box-shadow: var(--shadow-1); }
.mt-match { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.mt-match .mt-expect { font-family: var(--font-mono); font-size: 18px; font-weight: 600; padding: 10px 12px; border-radius: var(--radius-sm); background: var(--wireframe-guide); }
.mt-match .field-input.is-ok { border-color: var(--success); box-shadow: 0 0 0 3px rgba(22, 163, 74, .15); }
.mt-match .field-input.is-short { border-color: var(--warning); box-shadow: 0 0 0 3px rgba(217, 119, 6, .15); }
.mt-verify-actions { display: flex; gap: 10px; justify-content: flex-end; flex-wrap: wrap; }
.mt-btn-success { background: #16A34A; color: #FFFFFF; border: 1px solid #16A34A; height: 44px; padding: 0 20px; border-radius: var(--radius-sm); font-weight: 600; display: inline-flex; align-items: center; gap: 8px; }
.mt-btn-success:hover { background: #15803D; }
.mt-btn-support { background: #C2410C; color: #FFFFFF; border: 1px solid #C2410C; height: 44px; padding: 0 20px; border-radius: var(--radius-sm); font-weight: 600; display: inline-flex; align-items: center; gap: 8px; }
.mt-btn-support:hover { background: #9A3412; }
@media (max-width: 767px) { .mt-match { grid-template-columns: 1fr; } .mt-verify-actions > * { flex: 1; } }

/* ---------- 11. Kuitansi A5 (juga dipakai untuk PDF) ---------- */
.mt-receipt { position: relative; max-width: 760px; margin: 0 auto; background: #FFFFFF; color: #0F172A; border: 1px solid #CBD5E1; border-radius: var(--radius-md); padding: 32px 36px; font-family: var(--font-ui); overflow: hidden; }
.mt-receipt::after { content: 'LUNAS'; position: absolute; top: 42%; left: 50%; transform: translate(-50%, -50%) rotate(-24deg); font-family: var(--font-display); font-size: 120px; font-weight: 800; color: rgba(37, 99, 235, .06); pointer-events: none; letter-spacing: .1em; }
.mt-receipt-head { display: flex; justify-content: space-between; gap: 16px; padding-bottom: 16px; border-bottom: 2px solid #0F172A; }
.mt-receipt-title { text-align: center; font-family: var(--font-display); font-weight: 700; font-size: 17px; letter-spacing: .04em; text-decoration: underline; text-underline-offset: 6px; margin: 22px 0; }
.mt-receipt-row { display: grid; grid-template-columns: 180px 1fr; gap: 12px; padding: 7px 0; font-size: 14px; }
.mt-receipt-row span:first-child { color: #475569; }
.mt-receipt-amount { display: inline-block; font-family: var(--font-mono); font-size: 24px; font-weight: 700; border: 2px solid #334155; border-radius: var(--radius-sm); padding: 10px 16px; background: #F8FAFC; }
.mt-receipt-foot { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; margin-top: 24px; padding-top: 16px; border-top: 1px dashed #CBD5E1; }
.mt-receipt-sign { text-align: right; font-size: 13px; }
.mt-receipt-sign b { display: block; margin-top: 36px; text-decoration: underline; }
.mt-receipt-note { font-size: 11px; color: #64748B; margin-top: 16px; }
@media (max-width: 640px) { .mt-receipt { padding: 20px 16px; } .mt-receipt-row { grid-template-columns: 1fr; gap: 2px; } .mt-receipt-head, .mt-receipt-foot { flex-direction: column; align-items: flex-start; } }

/* ---------- 12. Log akses dukungan & item daftar ---------- */
.mt-log { display: grid; gap: 10px; }
.mt-log-item { border: 1px solid var(--border-default); border-radius: var(--radius-md); padding: 12px 14px; background: var(--surface-panel); }
.mt-log-item.is-sensitive { background: var(--warning-bg); border-color: rgba(217, 119, 6, .35); }
.mt-log-top { display: flex; justify-content: space-between; gap: 8px; font-size: 12px; color: var(--text-tertiary); }
.mt-log-dur { font-family: var(--font-mono); font-weight: 600; color: var(--info-text); background: var(--info-bg); padding: 1px 8px; border-radius: 6px; }
.mt-log-title { font-weight: 600; margin: 4px 0 2px; }
.mt-log-reason { font-size: 13px; font-style: italic; color: var(--text-secondary); }
.mt-log-flags { display: flex; justify-content: space-between; margin-top: 8px; font-size: 12px; }
.mt-mask { font-family: var(--font-mono); letter-spacing: .06em; color: var(--text-tertiary); }

/* ---------- 13. Sakelar (toggle) ---------- */
.mt-switch { position: relative; display: inline-flex; width: 44px; height: 24px; flex-shrink: 0; }
.mt-switch input { opacity: 0; width: 0; height: 0; position: absolute; }
.mt-switch span { position: absolute; inset: 0; border-radius: 9999px; background: var(--border-strong); transition: background .15s ease; cursor: pointer; }
.mt-switch span::after { content: ''; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #FFFFFF; box-shadow: var(--shadow-1); transition: transform .15s ease; }
.mt-switch input:checked + span { background: var(--primary); }
.mt-switch input:checked + span::after { transform: translateX(20px); }
.mt-switch input:focus-visible + span { outline: 2px solid var(--primary); outline-offset: 2px; }
.mt-switch input:disabled + span { opacity: .5; cursor: not-allowed; }

/* ---------- 14. Kuota di sidebar Owner & label grup menu ---------- */
.mt-quota { margin: 12px 12px 4px; padding: 12px; border-radius: var(--radius-md); background: var(--sidebar-surface); border: 1px solid rgba(255, 255, 255, .06); display: grid; gap: 10px; }
.mt-quota-row { font-size: 12px; color: var(--sidebar-muted); }
.mt-quota-row div { display: flex; justify-content: space-between; margin-bottom: 4px; }
.mt-quota-row b { color: var(--sidebar-text); font-family: var(--font-mono); font-weight: 600; }
.mt-quota .mt-meter { height: 5px; background: rgba(255, 255, 255, .1); }
.mt-nav-group { font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: #64748B; padding: 14px 12px 6px; }

/* ---------- 15. Navigasi bawah Owner di HP ---------- */
.mt-bottom-nav { display: none; }
@media (max-width: 1023px) {
  .mt-bottom-nav { display: flex; position: sticky; bottom: 0; z-index: 30; background: var(--surface-panel); border-top: 1px solid var(--border-default); }
  .mt-bottom-nav a { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-height: 56px; font-size: 11px; color: var(--text-tertiary); position: relative; }
  .mt-bottom-nav a i { font-size: 20px; }
  .mt-bottom-nav a.active { color: var(--primary); font-weight: 600; }
  .mt-bottom-nav .mt-dot { position: absolute; top: 6px; left: calc(50% + 6px); min-width: 16px; height: 16px; border-radius: 9999px; background: var(--error); color: #FFFFFF; font-size: 10px; line-height: 16px; text-align: center; padding: 0 4px; }
}

/* ---------- 16. Halaman kebijakan (akordeon) ---------- */
.mt-legal { max-width: 860px; margin: 0 auto; padding: 32px 24px 64px; }
.mt-legal-tabs { display: flex; gap: 8px; margin: 16px 0 24px; }
.mt-acc { border: 1px solid var(--border-default); border-radius: var(--radius-md); background: var(--surface-panel); margin-bottom: 10px; overflow: hidden; }
.mt-acc summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 12px; padding: 14px 16px; font-weight: 600; }
.mt-acc summary::-webkit-details-marker { display: none; }
.mt-acc summary .mt-acc-no { font-family: var(--font-mono); font-size: 12px; color: var(--primary); background: var(--primary-soft); border-radius: 6px; padding: 2px 8px; }
.mt-acc summary::after { content: '\F282'; font-family: 'bootstrap-icons'; margin-left: auto; color: var(--text-tertiary); transition: transform .15s ease; }
.mt-acc[open] summary::after { transform: rotate(180deg); }
.mt-acc-body { padding: 0 16px 16px; color: var(--text-secondary); font-size: 14px; line-height: 22px; }
.mt-consent { position: sticky; bottom: 0; display: flex; gap: 12px; align-items: center; justify-content: space-between; flex-wrap: wrap; padding: 12px 16px; background: var(--surface-panel); border: 1px solid var(--border-default); border-radius: var(--radius-md); box-shadow: var(--shadow-2); }

/* ---------- 17. Utilitas kecil ---------- */
.mt-muted { color: var(--text-tertiary); }
.mt-num { font-variant-numeric: tabular-nums; }
.mt-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.mt-between { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.mt-stack { display: grid; gap: 16px; }
.mt-callout { display: flex; gap: 10px; padding: 12px 14px; border-radius: var(--radius-md); font-size: 13px; line-height: 20px; background: var(--info-bg); color: var(--info-text); }
.mt-callout--warn { background: var(--warning-bg); color: var(--warning-text); }
.mt-callout--danger { background: var(--error-bg); color: var(--error-text); }
.mt-callout--ok { background: var(--success-bg); color: var(--success-text); }
.mt-callout i { font-size: 16px; margin-top: 1px; }
/* =================== AKHIR KOMPONEN .mt-* =================== */

/* ---------- 18. Tambahan saat coding v2.0 ---------- */
.mt-root { min-height: 100vh; }
.mt-root.d-none { display: none !important; }
@keyframes mtBlink { 50% { opacity: .35; } }
.mt-tier-row { transition: background .12s ease; }
.mt-total .mt-copy { margin-left: 8px; }
#mtBannerHost:empty { display: none; }
#view-owner-shell .mt-nav-group { padding-left: 16px; }
@media (max-width: 1023px) { #view-owner-shell .content-area { padding-bottom: 72px; } }
.mt-auth-box .field-error { display: block; }
.mt-auth-box .field-error.d-none { display: none; }
/* Halaman utama "Administrasi" (01 Okt 2026) */
.mt-admin-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; }
.mt-admin-tile { position: relative; display: flex; align-items: center; gap: 14px; padding: 16px; background: var(--surface-panel); border: 1px solid var(--border-default); border-radius: var(--radius-md); box-shadow: var(--shadow-1); color: var(--text-primary); text-decoration: none; transition: box-shadow .15s ease, border-color .15s ease, transform .15s ease; }
.mt-admin-tile:hover { box-shadow: var(--shadow-2); border-color: var(--primary); transform: translateY(-1px); color: var(--text-primary); }
.mt-admin-tile:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
.mt-admin-ic { width: 44px; height: 44px; flex-shrink: 0; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 20px; background: var(--primary-soft); color: var(--primary); }
.mt-admin-txt { display: flex; flex-direction: column; min-width: 0; }
.mt-admin-txt b { font-family: var(--font-display); font-size: 15px; font-weight: 600; }
.mt-admin-txt small { font-size: 12.5px; color: var(--text-tertiary); line-height: 17px; margin-top: 2px; }
.mt-admin-tile .nav-badge { position: absolute; top: 10px; right: 10px; }
@media (max-width: 767px) {
  .mt-admin-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .mt-admin-tile { flex-direction: column; align-items: flex-start; gap: 10px; padding: 12px; }
  .mt-admin-txt small { display: none; }
}
.btn-outline-custom:disabled, .btn-ghost-custom:disabled, .btn-icon:disabled, .mt-btn-success:disabled, .mt-btn-support:disabled { opacity: .5; cursor: not-allowed; }
/* ── v2.0.3 (01 Okt 2026): tampilan ringkas khusus halaman Administrasi & 13 menunya ──
   Aktif hanya saat <body> berkelas .mt-ringkas (dipasang otomatis oleh navigateTo).
   Menu lain (Hitung Payroll, Headline News, Panduan, Pengaturan, Langganan, Identitas),
   Portal Owner, portal karyawan, dan halaman publik tidak terpengaruh. */
body.mt-ringkas .topbar-title { font-size: 17px; }
body.mt-ringkas #contentArea { padding: 18px 20px; }
/* Judul halaman, panel, kartu angka */
body.mt-ringkas #contentArea .page-header { margin-bottom: 12px; gap: 8px; }
body.mt-ringkas #contentArea .page-header h2 { font-size: 19px; }
body.mt-ringkas #contentArea .page-header-actions { gap: 6px; }
body.mt-ringkas #contentArea .card-panel { padding: 12px 14px; }
body.mt-ringkas #contentArea .card-panel-header { padding-bottom: 6px; margin-bottom: 8px; }
body.mt-ringkas #contentArea .card-panel-header h3 { font-size: 14px; }
body.mt-ringkas #contentArea .stat-card { padding: 10px 12px; }
body.mt-ringkas #contentArea .stat-card-label { font-size: 10.5px; margin-bottom: 3px; }
body.mt-ringkas #contentArea .stat-card-value { font-size: 20px; }
body.mt-ringkas #contentArea .stat-card-trend { font-size: 11px; }
body.mt-ringkas #contentArea .section-title { font-size: 14px; margin: 14px 0 8px; }
body.mt-ringkas #contentArea .section-title:first-child { margin-top: 0; }
body.mt-ringkas #contentArea .tabs-underline { gap: 16px; margin-bottom: 12px; }
body.mt-ringkas #contentArea .tabs-underline .tab-item { font-size: 13px; padding: 8px 2px; }
body.mt-ringkas #contentArea .toolbar { gap: 6px; padding: 8px 10px; }
body.mt-ringkas #contentArea table.data-table tbody td { padding: 7px 10px; }
body.mt-ringkas #contentArea .dropzone { padding: 14px; font-size: 12.5px; }
/* Tombol fitur */
body.mt-ringkas :is(#contentArea, #topbarFilters, #genericModal, #genericSlideover) :is(.btn-primary-custom, .btn-outline-custom, .btn-danger-custom, .btn-ghost-custom, .mt-btn-success, .mt-btn-support) {
  height: 32px; padding: 0 12px; font-size: 12.5px; gap: 5px;
}
body.mt-ringkas :is(#contentArea, #topbarFilters, #genericModal, #genericSlideover) :is(.btn-primary-custom, .btn-outline-custom, .btn-danger-custom, .btn-ghost-custom)[style*="height:36px"] { height: 32px !important; }
body.mt-ringkas :is(#contentArea, #topbarFilters, #genericModal, #genericSlideover) .btn-icon { width: 30px; height: 30px; font-size: 14px; }
/* Isian form */
body.mt-ringkas :is(#contentArea, #topbarFilters, #genericModal, #genericSlideover) .field-label { font-size: 12px; margin-bottom: 4px; }
body.mt-ringkas :is(#contentArea, #topbarFilters, #genericModal, #genericSlideover) :is(.field-input, .field-select) { height: 34px; font-size: 13px; padding: 0 10px; }
body.mt-ringkas :is(#contentArea, #topbarFilters, #genericModal, #genericSlideover) .field-textarea { font-size: 13px; padding: 8px 10px; }
body.mt-ringkas :is(#contentArea, #topbarFilters) .toolbar :is(.field-input, .field-select),
body.mt-ringkas #topbarFilters :is(.field-input, .field-select) { height: 32px; min-width: 140px; }
body.mt-ringkas :is(#contentArea, #topbarFilters, #genericModal, #genericSlideover) .field-select[style*="height:36px"] { height: 32px !important; }
/* Modal & slideover yang dibuka dari menu Administrasi */
body.mt-ringkas :is(#genericModal .modal-box-header, #genericSlideover .slideover-header) { padding: 14px 16px; }
body.mt-ringkas :is(#genericModal .modal-box-header, #genericSlideover .slideover-header) h3 { font-size: 15px; }
body.mt-ringkas :is(#genericModal .modal-box-body, #genericSlideover .slideover-body) { padding: 16px; font-size: 13px; }
body.mt-ringkas :is(#genericModal .modal-box-footer, #genericSlideover .slideover-footer) { padding: 10px 16px; }
body.mt-ringkas :is(#genericModal, #genericSlideover) .section-title { font-size: 14px; margin: 14px 0 8px; }
body.mt-ringkas :is(#genericModal, #genericSlideover) .section-title:first-child { margin-top: 0; }
/* Halaman Administrasi: kartu menu lebih rapat */
body.mt-ringkas .mt-admin-grid { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; }
body.mt-ringkas .mt-admin-tile { gap: 10px; padding: 11px 12px; }
body.mt-ringkas .mt-admin-ic { width: 36px; height: 36px; font-size: 17px; border-radius: 9px; }
body.mt-ringkas .mt-admin-txt b { font-size: 13.5px; }
body.mt-ringkas .mt-admin-txt small { font-size: 12px; line-height: 16px; margin-top: 1px; }
body.mt-ringkas .mt-admin-tile .nav-badge { top: 8px; right: 8px; }
/* v2.0.4: baris filter Absensi & Cuti (Bulan/Tahun/Cari + Absensi > 7% + Divisi) sejajar rapi */
#toolbarFilterAbsensi .field-group { margin-bottom: 0; }
#toolbarFilterAbsensi label.text-sm { height: 36px; }
body.mt-ringkas #toolbarFilterAbsensi label.text-sm { height: 32px; }
/* v2.1.0: tabel Absen Harian */
.ah-tabel th, .ah-tabel td { padding: 5px 6px; white-space: nowrap; }
.ah-tabel td.ah-sel { text-align: center; min-width: 32px; cursor: pointer; font-family: var(--font-mono); font-size: 11.5px; }
.ah-tabel td.ah-sel:hover { background: var(--primary-soft); }
.ah-tabel td.ah-mg { background: #9DC3E6; color: #0F172A; }
.ah-tabel td.ah-ubah { box-shadow: inset 0 0 0 2px var(--primary); }
.ah-tabel th.ah-min { color: var(--error); }
@media (max-width: 767px) {
  body.mt-ringkas #contentArea { padding: 14px 12px; }
  body.mt-ringkas .mt-admin-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  body.mt-ringkas .mt-admin-tile { flex-direction: row; align-items: center; gap: 8px; padding: 10px; }
  body.mt-ringkas .mt-admin-ic { width: 32px; height: 32px; font-size: 15px; }
  body.mt-ringkas .mt-admin-txt b { font-size: 12.5px; line-height: 16px; }
}
