/* Karir Jobaloka — gaya dasar tanpa proses build. Warna mengikuti desain UI/UX. */
:root {
  --ink: #13213C;
  --muted: #4A5568;
  --line: #E3E7EE;
  --line-soft: #EEF0F4;
  --bg: #F6F7F9;
  --card: #FFFFFF;
  --primary: #0B6E4F;
  --primary-dark: #08533B;
  --primary-soft: #E7F3EE;
  --deep: #0B3B2E;
  --accent: #F2A541;
  --danger: #B91C1C;
  --radius: 14px;
}

* { box-sizing: border-box; }
body { min-height: 100vh; display: flex; flex-direction: column; margin: 0; font-family: 'Plus Jakarta Sans', system-ui, sans-serif; color: var(--ink); background: var(--bg); line-height: 1.5; }
a { color: var(--primary); }
a:hover { color: var(--primary-dark); }
img { max-width: 100%; }
h1, h2, h3 { line-height: 1.2; margin: 0; }
h1 { font-size: clamp(26px, 3.4vw, 34px); font-weight: 800; }
h2 { font-size: 20px; font-weight: 800; }
h3 { font-size: 16px; font-weight: 700; }
p { margin: 0; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
/* Panel (halaman bermenu samping): isi memakai seluruh lebar layar seperti aplikasi kantor, supaya tabel tidak terpotong. */
.container-fluid { max-width: 1920px; padding: 0 24px; }
.table-compact th { padding: 8px 6px; }
.table-compact td { padding: 10px 6px; vertical-align: middle; }
.table-compact input, .table-compact select { width: 100%; min-width: 0; padding: 8px 10px; }
.table-compact .check { white-space: normal; }
.stack { display: flex; flex-direction: column; gap: 16px; }
.stack-sm { display: flex; flex-direction: column; gap: 8px; }
.row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.between { justify-content: space-between; }
.grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.grid-2 { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.tiny { font-size: 13px; }
.bold { font-weight: 700; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Isi halaman mengisi sisa tinggi layar agar footer selalu di bawah. */
body > main, body > .page { flex: 1 0 auto; width: 100%; }

/* Header */
.site-header { background: var(--card); border-bottom: 1px solid var(--line); }
.site-header .container { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; padding-top: 12px; padding-bottom: 12px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 20px; color: var(--ink); text-decoration: none; }
.brand img { width: 36px; height: 36px; }
.nav { display: flex; flex-wrap: wrap; gap: 4px 22px; flex: 1 1 auto; font-weight: 600; font-size: 15px; }
.nav a { color: var(--ink); text-decoration: none; padding: 10px 0; }
.nav a:hover { color: var(--primary); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 18px; border-radius: 10px; border: 1px solid transparent; font: inherit; font-weight: 700; font-size: 15px; text-decoration: none; cursor: pointer; background: var(--primary); color: #fff; }
.btn:hover { background: var(--primary-dark); color: #fff; }
.btn-outline { background: #fff; color: var(--ink); border-color: #CBD2DC; }
.btn-outline:hover { background: var(--bg); color: var(--ink); }
.btn-dark { background: var(--ink); }
.btn-dark:hover { background: #0a1426; }
.btn-accent { background: var(--accent); color: var(--ink); }
.btn-accent:hover { background: #e0932c; color: var(--ink); }
.btn-danger { background: #fff; color: var(--danger); border-color: var(--danger); }
.btn-danger:hover { background: #FEF2F2; color: var(--danger); }
.btn-sm { min-height: 36px; padding: 0 12px; font-size: 13px; }
.btn-link { background: none; border: 0; color: var(--primary); padding: 0; min-height: 0; font-weight: 700; cursor: pointer; font: inherit; }
.btn-block { width: 100%; }

/* Cards & badges */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.card-lg { border-radius: 20px; padding: 28px; }
.badge { display: inline-block; padding: 4px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; background: #F1F3F6; color: #374151; white-space: nowrap; }
.badge-green { background: #DCFCE7; color: #14532D; }
.badge-blue { background: #DBEAFE; color: #1E3A8A; }
.badge-amber { background: #FEF3C7; color: #92400E; }
.badge-navy { background: #13213C; color: #FFFFFF; }
.badge-red { background: #FEE2E2; color: #991B1B; }
.chip { display: inline-block; padding: 6px 10px; border-radius: 8px; background: #F1F3F6; color: #374151; font-size: 13px; font-weight: 600; }
.logo-tile { width: 48px; height: 48px; flex: 0 0 48px; border-radius: 12px; background: var(--primary); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 800; overflow: hidden; }
.logo-tile img { width: 100%; height: 100%; object-fit: cover; }
.avatar { width: 40px; height: 40px; flex: 0 0 40px; border-radius: 999px; background: var(--primary-soft); color: var(--primary); display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 14px; }

/* Forms */
label { font-weight: 600; font-size: 14px; }
.field { display: flex; flex-direction: column; gap: 6px; }
input[type=text], input[type=email], input[type=password], input[type=tel], input[type=url], input[type=number], input[type=date], input[type=time], input[type=datetime-local], input[type=search], select, textarea {
  font: inherit; font-size: 15px; color: var(--ink); background: #fff; border: 1px solid #CBD2DC; border-radius: 10px; padding: 11px 13px; min-height: 46px; width: 100%;
}
textarea { min-height: 110px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--primary); outline-offset: 1px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 500; font-size: 15px; }
.check input { width: 18px; height: 18px; margin-top: 3px; accent-color: var(--primary); }
.error { color: var(--danger); font-size: 13px; font-weight: 600; }
.hint { color: var(--muted); font-size: 13px; font-weight: 400; }
fieldset { border: 0; margin: 0; padding: 0; }
legend { font-weight: 700; font-size: 15px; padding-bottom: 8px; }

/* Alerts */
.alert { padding: 12px 16px; border-radius: 12px; font-weight: 600; font-size: 14px; }
.alert-success { background: #DCFCE7; color: #14532D; }
.alert-error { background: #FEE2E2; color: #991B1B; }
.alert-info { background: #DBEAFE; color: #1E3A8A; }

/* Tables */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 15px; }
th { text-align: left; font-size: 13px; color: var(--muted); font-weight: 700; padding: 10px 12px; border-bottom: 1px solid var(--line); }
td { padding: 14px 12px; border-bottom: 1px solid var(--line-soft); vertical-align: top; }

/* Hero */
.hero { background: var(--deep); color: #fff; }
.hero .container { padding-top: 64px; padding-bottom: 72px; display: flex; flex-direction: column; gap: 24px; }
.hero .eyebrow { font-size: 14px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #9FE0C4; }
.hero h1 { font-size: clamp(32px, 5vw, 52px); max-width: 760px; }
.hero p.lead { font-size: 18px; color: #D5EDE3; max-width: 620px; }
.search-box { background: #fff; border-radius: 16px; padding: 10px; display: flex; flex-wrap: wrap; gap: 10px; max-width: 900px; }
.search-box input { border: 0; background: var(--bg); flex: 1 1 220px; }
.search-box .btn { min-height: 52px; padding: 0 28px; }

/* Layout with sidebar */
.page { padding-top: 28px; padding-bottom: 64px; }
.with-sidebar { display: flex; flex-wrap: wrap; gap: 24px; align-items: flex-start; }
.sidebar { flex: 1 1 220px; max-width: 100%; background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 10px; display: flex; flex-direction: column; gap: 2px; }
.sidebar a { min-height: 44px; padding: 0 14px; border-radius: 10px; color: var(--ink); font-weight: 600; text-decoration: none; display: flex; align-items: center; gap: 8px; }
.sidebar a:hover { background: var(--bg); }
.sidebar a.active { background: var(--primary-soft); color: var(--primary-dark); font-weight: 700; }
.sidebar .label { font-size: 12px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; padding: 12px 14px 4px; }
.content { flex: 999 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }

/* Job card */
.job-card { display: flex; flex-direction: column; gap: 12px; }
.job-card .title { font-weight: 700; font-size: 17px; color: var(--ink); text-decoration: none; }
.job-card .title:hover { color: var(--primary); }
.job-card .foot { display: flex; justify-content: space-between; gap: 12px; border-top: 1px solid var(--line-soft); padding-top: 12px; }
.salary { font-weight: 700; color: var(--primary); }

/* Board */
.board { display: grid; grid-template-columns: repeat(4, minmax(240px, 1fr)); gap: 14px; min-width: 1000px; }
.board-col { background: #EEF0F4; border-radius: 16px; padding: 12px; display: flex; flex-direction: column; gap: 10px; min-height: 300px; }

/* Stats */
.stat { display: flex; flex-direction: column; gap: 4px; }
.stat .value { font-size: 28px; font-weight: 800; }

/* Toggle switch for modules */
.switch { position: relative; display: inline-block; width: 52px; height: 30px; flex: 0 0 52px; }
.switch input { opacity: 0; width: 0; height: 0; }
.switch span { position: absolute; inset: 0; background: #CBD2DC; border-radius: 999px; transition: .2s; cursor: pointer; }
.switch span::before { content: ""; position: absolute; width: 24px; height: 24px; left: 3px; top: 3px; background: #fff; border-radius: 50%; transition: .2s; }
.switch input:checked + span { background: var(--primary); }
.switch input:checked + span::before { transform: translateX(22px); }
.switch input:focus-visible + span { outline: 2px solid var(--primary); outline-offset: 2px; }

/* Footer */
.site-footer { background: #fff; border-top: 1px solid var(--line); margin-top: 40px; }
.site-footer { font-size: 15px; color: var(--muted); }
.site-footer a { color: var(--muted); text-decoration: none; }
.site-footer a:hover { color: var(--primary); text-decoration: underline; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 28px 32px; padding-top: 40px; padding-bottom: 28px; }
.footer-col { display: flex; flex-direction: column; gap: 4px; }
.footer-col h2 { font-size: 16px; font-weight: 800; color: var(--ink); margin: 0 0 8px; }
.footer-col a { min-height: 32px; display: flex; align-items: center; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; padding-top: 20px; padding-bottom: 28px; border-top: 1px solid var(--line); font-size: 14px; }

/* Pagination */
.pagination { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; list-style: none; padding: 0; margin: 8px 0 0; }
.pagination a, .pagination span { min-width: 44px; height: 44px; padding: 0 12px; border-radius: 10px; border: 1px solid #CBD2DC; display: flex; align-items: center; justify-content: center; text-decoration: none; color: var(--ink); background: #fff; }
.pagination .current span { background: var(--ink); color: #fff; border-color: var(--ink); }
.pagination .disabled span { color: #9CA3AF; }

details summary { cursor: pointer; font-weight: 700; }
.progress { height: 8px; border-radius: 999px; background: var(--line); }
.progress > div { height: 8px; border-radius: 999px; background: var(--primary); }
.prose { line-height: 1.7; color: #374151; white-space: pre-line; }
.legal { line-height: 1.7; color: #374151; }
.legal h1, .legal h2 { color: var(--ink); }
.legal h2 { font-size: 18px; margin-top: 8px; }
.legal ul { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 6px; }
.tabs { display: flex; gap: 4px; padding: 4px; background: var(--bg); border-radius: 12px; }
.tabs a { flex: 1; min-height: 44px; display: flex; align-items: center; justify-content: center; border-radius: 9px; font-weight: 700; font-size: 15px; color: var(--muted); text-decoration: none; }
.tabs a.active { background: #fff; color: var(--ink); box-shadow: 0 1px 3px rgba(19, 33, 60, .12); }

/* Identitas akun di header */
.account-chip { display: flex; flex-direction: column; gap: 2px; line-height: 1.3; text-decoration: none; color: var(--ink); padding: 4px 8px; border-radius: 10px; max-width: 340px; min-width: 0; }
.account-chip:hover { background: #F1F3F6; }
.bell { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 10px; color: var(--ink); }
.bell:hover { background: #F1F3F6; }
.bell-count { position: absolute; top: 4px; right: 2px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: #B91C1C; color: #FFFFFF; font-size: 11px; font-weight: 700; line-height: 18px; text-align: center; }
.notification { display: flex; flex-direction: column; gap: 4px; padding: 12px 14px; border-radius: 10px; text-decoration: none; color: var(--ink); }
.notification:hover { background: #F1F3F6; }
.notification.unread { background: #E7F3EE; font-weight: 600; }
.account-chip > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.account-name { display: flex; align-items: center; gap: 8px; min-width: 0; }
.account-name .bold { overflow: hidden; text-overflow: ellipsis; }

/* Daftar pasangan label-nilai (faktur, akun) */
.pay-info { display: grid; grid-template-columns: max-content 1fr; gap: 8px 20px; margin: 0; font-size: 15px; }
.pay-info dt { color: var(--muted); }
.pay-info dd { margin: 0; overflow-wrap: anywhere; }

/* Popup masuk/daftar untuk tamu */
[data-auth-gate] { cursor: pointer; }
.auth-gate { border: 0; border-radius: 20px; padding: 32px 28px 28px; width: min(420px, calc(100vw - 32px)); box-sizing: border-box; text-align: center; color: var(--ink); box-shadow: 0 24px 60px rgba(19,33,60,.25); }
.auth-gate::backdrop { background: rgba(19,33,60,.55); }
.auth-gate h2 { font-size: 22px; margin: 14px 0 8px; }
.auth-gate p { margin: 0 0 20px; line-height: 1.6; }
.auth-gate-close { position: absolute; top: 10px; right: 10px; margin: 0; }
.auth-gate-close button { width: 44px; height: 44px; border: 0; background: transparent; font-size: 26px; line-height: 1; color: var(--muted); cursor: pointer; border-radius: 10px; }
.auth-gate-close button:hover { background: #F1F3F6; }
.contact-list { display: grid; grid-template-columns: 120px 1fr; gap: 10px 16px; margin: 0; }
.contact-list dt { font-weight: 700; }
.contact-list dd { margin: 0; overflow-wrap: anywhere; }
.btn-google { gap: 10px; }
.divider { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 13px; }
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.lang-switch { display: inline-flex; border: 1px solid #CBD2DC; border-radius: 10px; overflow: hidden; }
.lang-switch a { min-width: 44px; min-height: 40px; display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 700; color: var(--muted); text-decoration: none; }
.lang-switch a[aria-current="true"] { background: var(--ink); color: #fff; }

/* Header: menu akun (inisial + dropdown) dan menu lipat di layar sempit */
.header-menu { display: contents; }
.header-tools { display: flex; align-items: center; gap: 12px; }
.nav a.current { color: var(--primary); box-shadow: inset 0 -2px 0 var(--primary); }
.for-employers { font-weight: 700; color: var(--ink); text-decoration: none; padding: 10px 4px; }
.for-employers:hover { color: var(--primary); }
.header-actions { display: flex; align-items: center; gap: 6px; order: 3; }
.menu-btn { display: none; width: 44px; height: 44px; align-items: center; justify-content: center; border: 1px solid #CBD2DC; border-radius: 10px; background: #fff; color: var(--ink); cursor: pointer; }
.account-menu { position: relative; }
.account-menu summary { list-style: none; display: flex; align-items: center; gap: 4px; min-height: 44px; padding: 0 6px; border-radius: 10px; cursor: pointer; color: var(--ink); }
.account-menu summary::-webkit-details-marker { display: none; }
.account-menu summary:hover { background: #F1F3F6; }
.account-menu[open] .chevron { transform: rotate(180deg); }
.avatar { width: 34px; height: 34px; border-radius: 8px; background: #DCE7F7; color: #13213C; display: inline-flex; align-items: center; justify-content: center; font-weight: 800; font-size: 15px; flex: none; }
.avatar-lg { width: 44px; height: 44px; font-size: 18px; border-radius: 10px; }
.account-dropdown { position: absolute; right: 0; top: calc(100% + 8px); z-index: 50; width: 300px; max-width: calc(100vw - 32px); background: #fff; border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 16px 40px rgba(19,33,60,.16); padding: 8px; display: flex; flex-direction: column; }
.account-head { display: flex; align-items: center; gap: 10px; padding: 10px; border-radius: 10px; text-decoration: none; color: var(--ink); }
.account-head:hover { background: #F1F3F6; }
.account-head .account-chip { padding: 0; max-width: 220px; }
.account-links { display: flex; flex-direction: column; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin: 6px 0; padding: 6px 0; }
.account-links a { min-height: 42px; padding: 0 12px; display: flex; align-items: center; border-radius: 10px; color: var(--ink); font-weight: 500; text-decoration: none; }
.account-links a:hover { background: #F1F3F6; }
.account-links a.active { color: var(--primary-dark); font-weight: 700; }
.account-links .label { font-size: 11px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; padding: 10px 12px 2px; }
.account-logout { width: 100%; min-height: 44px; text-align: left; padding: 0 12px; border: 0; background: none; border-radius: 10px; font: inherit; font-weight: 600; color: var(--ink); cursor: pointer; }
.account-logout:hover { background: #F1F3F6; }
@media (max-width: 760px) {
  .site-header .container { gap: 0 8px; }
  .site-header .nav, .header-tools { display: none; }
  .header-actions { margin-left: auto; order: 0; }
  .menu-btn { display: inline-flex; }
  .header-menu { display: none; order: 5; flex-direction: column; align-items: stretch; gap: 14px; width: 100%; padding: 12px 0 4px; border-top: 1px solid var(--line); margin-top: 12px; }
  .header-menu.open, .header-menu.open .header-tools { display: flex; }
  .header-menu.open .nav { display: flex; flex-direction: column; gap: 0; }
  .header-menu .nav a { padding: 12px 0; border-bottom: 1px solid var(--line); box-shadow: none; }
  .header-tools { flex-direction: column; align-items: stretch; }
  .header-tools .lang-switch { align-self: flex-start; }
  .header-tools .btn { width: 100%; }
  .for-employers { text-align: center; }
  .account-menu .chevron { display: none; }
  .account-dropdown { position: fixed; top: 64px; right: 16px; }
}

.job-detail { flex-direction: row-reverse; }

/* Kotak cari besar (beranda pencari kerja dan halaman cari) */
.search-band { background: var(--deep); }
.search-band .container { padding-top: 28px; padding-bottom: 28px; }
.search-band-form { display: flex; flex-wrap: wrap; gap: 12px; }
.search-field { display: flex; align-items: center; gap: 10px; background: #fff; border-radius: 12px; padding: 0 16px; color: var(--muted); flex: 1 1 200px; min-height: 52px; }
.search-field-q { flex: 3 1 300px; }
.search-field input { border: 0; padding: 0; min-height: 52px; background: transparent; box-shadow: none; outline: none; flex: 1; min-width: 0; font-size: 16px; }
.search-field:focus-within { box-shadow: 0 0 0 3px #9FE0C4; }
.search-band-btn { min-height: 52px; padding: 0 36px; font-size: 16px; }
.section-title { font-size: 22px; }
.saved-card { display: flex; flex-direction: column; gap: 4px; text-decoration: none; color: var(--ink); border: 1px solid var(--line); }
.saved-card:hover { border-color: var(--primary); }
.filter-panel summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; min-height: 28px; }
.filter-panel summary::-webkit-details-marker { display: none; }
.filter-panel summary::after { content: "▾"; color: var(--muted); }
.filter-panel[open] summary::after { content: "▴"; }
@media (max-width: 760px) {
  .search-band .container { padding-top: 16px; padding-bottom: 16px; }
  .search-band-form { gap: 8px; }
  .search-band-btn { width: 100%; }
  /* Menu dashboard jadi deretan tab yang bisa digeser, bukan daftar setinggi layar. */
  .sidebar { flex-direction: row; overflow-x: auto; padding: 6px; gap: 4px; flex-basis: 100%; scrollbar-width: none; }
  .sidebar .label { display: none; }
  .sidebar a { white-space: nowrap; flex: none; min-height: 40px; }
  /* Detail lowongan: judul dulu, lalu tombol lamar, lalu isi. */
  .job-detail { flex-direction: column; }
  .job-detail > aside, .job-detail > article { display: contents; }
  .job-detail .job-head { order: 1; }
  .job-detail .apply-card { order: 2; }
  .job-detail > article > * { order: 3; }
  .job-detail .scam-card { order: 4; }
  .job-detail .job-head, .job-detail .apply-card, .job-detail .scam-card, .job-detail > article > * { width: 100%; }
}
.nav-dashboard { font-weight: 700 !important; }
.account-links .nav-dashboard { gap: 10px; }
.account-go { margin-left: auto; font-size: 22px; color: var(--muted); }
.account-links a { justify-content: space-between; }
.mobile-only { display: none !important; }
@media (max-width: 760px) { .header-menu .nav a.mobile-only { display: block !important; } }

/* Web Absensi Jobaloka: warna biru sendiri supaya beda dari Karir (hijau) dan Jobaloka induk (navy). */
.att-site {
  --primary: #1D5FD1;
  --primary-dark: #164AA6;
  --primary-soft: #E6EEFB;
  --deep: #0F2F6B;
  --bg: #EFF3FA;
  --line: #DCE3EF;
}
.att-site .site-header { background: var(--deep); border-bottom: 0; }
.att-site .brand { color: #fff; }
.att-site .brand-sub { color: #A9C2EE; }
.att-site .account-menu summary { color: #fff; }
.att-site .account-menu summary:hover { background: rgba(255, 255, 255, .12); }
.att-site .site-header .avatar { background: #fff; color: var(--deep); }
.att-site .account-dropdown .avatar { background: var(--primary-soft); color: var(--primary-dark); }
.att-site .site-header .btn-outline { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .5); }
.att-site .site-header .btn:not(.btn-outline) { background: #fff; color: var(--deep); }
.att-hero { background: linear-gradient(180deg, var(--deep) 0%, #1A4AA0 100%); color: #fff; }
.att-hero .muted { color: #D3E0F7; }
.att-hero .btn-outline { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .55); }
.att-hero .badge { background: rgba(255, 255, 255, .15); color: #fff; }
.att-hero .btn:not(.btn-outline) { background: #fff; color: var(--deep); }
.brand-sub { font-weight: 600; color: var(--muted); margin-left: -4px; }
.att-site .site-header .container { justify-content: space-between; }
.att-site .header-actions { display: flex; align-items: center; gap: 8px; margin-left: auto; }
/* Footer web Absensi memakai gaya footer Karir (.site-footer) dengan warna biru Absensi. */
.att-site .att-footer .brand { color: var(--ink); }
.att-site .card .brand { color: var(--ink); }
.att-site .card .brand-sub { color: var(--muted); }
.att-hero { padding: 64px 0 56px; margin-bottom: 32px; }
.att-hero h1 { font-size: clamp(30px, 5vw, 46px); line-height: 1.15; max-width: 720px; }
.att-hero p { font-size: 18px; max-width: 620px; }
.att-features { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); padding-bottom: 24px; }
/* Menu dropdown di web Absensi (mengikuti prototipe) */
.nav-group { display: flex; flex-direction: column; gap: 2px; }
.nav-group summary { list-style: none; min-height: 36px; padding: 0 14px; border-radius: 10px; font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; display: flex; align-items: center; gap: 8px; cursor: pointer; color: var(--muted); }
.nav-group summary::-webkit-details-marker { display: none; }
.nav-group summary > span:first-child { flex: 1; }
.nav-group summary::after { content: ""; margin-left: 4px; width: 7px; height: 7px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); transition: transform .15s; }
.nav-group[open] summary::after { transform: rotate(-135deg); }
.nav-group[open] summary .nav-count { display: none; }
.nav-group summary:hover { background: var(--bg); }
.nav-group > a { min-height: 42px; }
.nav-count { margin-left: auto; background: #C2410C; color: #fff; border-radius: 99px; font-size: 11px; font-weight: 800; min-width: 20px; height: 20px; display: inline-flex; align-items: center; justify-content: center; padding: 0 6px; letter-spacing: 0; }
.nav-org { display: flex; gap: 10px; align-items: center; padding: 6px 8px 12px; margin-bottom: 4px; border-bottom: 1px solid var(--line); }
.nav-org-logo { width: 36px; height: 36px; flex: none; border-radius: 10px; background: var(--primary); color: #fff; font-weight: 800; font-size: 13px; display: flex; align-items: center; justify-content: center; }
.nav-org-text { display: flex; flex-direction: column; min-width: 0; line-height: 1.3; }
.nav-org-text b { font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nav-org-text span { font-size: 12px; color: var(--muted); }
.nav-soon { min-height: 42px; padding: 0 14px; display: flex; align-items: center; gap: 8px; color: var(--muted); font-weight: 600; cursor: default; }
.nav-soon .badge { margin-left: auto; font-size: 10px; padding: 2px 6px; background: var(--line); color: var(--muted); }
/* Menu Absensi: lebar tetap dan huruf sedikit lebih kecil supaya label panjang tidak terpotong dua baris. */
.att-site .sidebar { flex: 0 0 256px; }
.att-site .sidebar a { min-height: 38px; font-size: 14.5px; line-height: 1.3; padding: 6px 12px; }
.att-site .nav-group summary { padding: 0 12px; }
.att-site .nav-org-text b { white-space: normal; }
@media (max-width: 760px) {
  .att-site .sidebar { flex: 1 1 100%; }
  /* Di HP menu Absensi tetap bersusun ke bawah supaya dropdown bisa dibuka. */
  .att-site .sidebar { flex-direction: column; overflow: visible; padding: 8px; gap: 2px; }
  .att-site .sidebar a { white-space: normal; }
}

/* Cetak (faktur, slip, laporan): hanya isi halaman, tanpa header, menu samping, footer, dan tombol. */
@media print {
  @page { margin: 14mm; }
  body { background: #fff !important; }
  .site-header, .site-footer, .sidebar, .no-print, .alert, .skip-link { display: none !important; }
  .page, .container { padding: 0 !important; margin: 0 !important; max-width: none !important; }
  .with-sidebar { display: block; }
  .content { max-width: none; }
  .content > .card, .invoice-doc { border: 0 !important; box-shadow: none !important; padding: 0 !important; }
  .card .card { border: 1px solid var(--line); }
  a { color: inherit; text-decoration: none; }
}
.invoice-doc .brand { color: var(--ink); }
.invoice-doc > .row:first-child { padding-bottom: 14px; border-bottom: 2px solid var(--primary); }
/* Penggajian Absensi: slip gaji dan langkah draft → validasi → terbit */
.payslip { display: flex; flex-direction: column; gap: 6px; font-size: 14px; }
.payslip-head { display: flex; flex-direction: column; gap: 2px; margin-bottom: 4px; }
.payslip-sec { font-size: 12px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); margin-top: 8px; }
.payslip-line { display: flex; justify-content: space-between; gap: 12px; }
.payslip-line .num, .payslip-total .num { white-space: nowrap; font-variant-numeric: tabular-nums; }
.payslip-line.minus .num { color: #B42318; }
.payslip-total { display: flex; justify-content: space-between; gap: 12px; border-top: 1px solid var(--line); padding-top: 10px; margin-top: 6px; font-weight: 800; font-size: 16px; }
.payroll-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.payroll-steps > div { border-top: 4px solid var(--line); padding-top: 8px; display: flex; flex-direction: column; gap: 2px; }
.payroll-steps > div.done { border-color: var(--primary, #1D5FD1); }
.pay-comp.inactive { opacity: .6; }
td.num { font-variant-numeric: tabular-nums; white-space: nowrap; }
@media (max-width: 640px) { .payroll-steps { grid-template-columns: 1fr; } }

.att-site .site-header .bell { color: #fff; }
.att-site .site-header .bell:hover { background: rgba(255, 255, 255, .12); }

/* Popup form (tambah/ubah) di web Presensi */
.modal { border: 0; border-radius: 16px; padding: 0; width: min(560px, calc(100vw - 24px)); max-height: calc(100vh - 32px); box-shadow: 0 24px 60px rgba(15, 23, 42, .25); color: var(--ink); background: #fff; }
.modal-wide { width: min(860px, calc(100vw - 24px)); }
.modal::backdrop { background: rgba(15, 23, 42, .45); }
.modal-head { position: sticky; top: 0; z-index: 1; background: #fff; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.modal-head h2 { font-size: 18px; margin: 0; }
.modal-x { border: 0; background: transparent; font-size: 28px; line-height: 1; width: 40px; height: 40px; border-radius: 10px; cursor: pointer; color: var(--muted); }
.modal-x:hover { background: var(--bg); color: var(--ink); }
.modal-body { padding: 20px; }
.modal-frame { width: 100%; height: min(74vh, 760px); border: 0; display: block; }
.modal-page .modal-frame-wrap { padding: 0; }
body.att-modal { background: #fff; }
body.att-modal .modal-page-content { padding: 20px; display: flex; flex-direction: column; gap: 16px; }
body.att-modal .modal-page-content > .card { border: 0; padding: 0; box-shadow: none; }
body.att-modal .modal-page-content > h1:first-child { display: none; }
.list-actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }

/* Kepala menu samping Presensi: logo, nama perusahaan (maks. 2 baris), dan peran. */
.att-site .nav-org { gap: 10px; padding: 8px 8px 14px; margin-bottom: 6px; align-items: center; }
.att-site .nav-org-logo { width: 40px; height: 40px; border-radius: 10px; object-fit: cover; font-size: 14px; letter-spacing: .02em; }
.att-site .nav-org-text { gap: 3px; }
.att-site .nav-org-text b { font-size: 14px; font-weight: 800; line-height: 1.25; white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.att-site .nav-org-role { align-self: flex-start; font-size: 11.5px !important; font-weight: 700; color: var(--primary-dark) !important; background: var(--primary-soft); padding: 2px 8px; border-radius: 999px; }
.att-site .nav-group summary { min-height: 34px; font-size: 11px; letter-spacing: .07em; margin-top: 4px; }
.att-site .nav-group summary::after { width: 6px; height: 6px; }
.att-site .sidebar a { font-weight: 600; color: #26324A; }
.att-site .sidebar a.active { color: var(--primary-dark); font-weight: 700; }

/* HP: huruf dan jarak lebih kecil supaya panel rapi, dan tabel tampil sebagai daftar kartu (lihat partials/table-stack). */
@media (max-width: 640px) {
  .container, .container-fluid { padding: 0 14px; }
  h1 { font-size: 24px; }
  h2 { font-size: 18px; }
  .card { padding: 14px; }
  .btn { min-height: 40px; padding: 0 14px; font-size: 14px; }
  .btn-sm { min-height: 32px; padding: 0 10px; font-size: 12.5px; }
  .sidebar a { font-size: 14px; min-height: 36px; padding: 0 10px; }
  .stat .value { font-size: 22px; }
  table { font-size: 14px; }
}
/* HP & tablet tegak: tabel jadi daftar kartu. */
@media (max-width: 900px) {
  .table-wrap:has(> table.tbl-stack) { overflow-x: visible; }
  table.tbl-stack, .tbl-stack tbody, .tbl-stack tfoot, .tbl-stack tr, .tbl-stack td { display: block; width: 100%; }
  .tbl-stack thead { display: none; }
  .tbl-stack tr { padding: 10px 0; border-bottom: 1px solid var(--line); }
  .tbl-stack tr:last-child { border-bottom: 0; }
  .tbl-stack td { display: grid; grid-template-columns: minmax(84px, min(36%, 160px)) 1fr; gap: 2px 10px; align-items: start; padding: 3px 0; border: 0; text-align: left !important; white-space: normal; min-width: 0; }
  .tbl-stack td > * { min-width: 0; }
  .tbl-stack td > .badge, .tbl-stack td > .btn, .tbl-stack td > a { justify-self: start; }
  .tbl-stack td::before { content: attr(data-label); color: var(--muted); font-size: 12px; font-weight: 700; padding-top: 2px; }
  .tbl-stack td.stack-title, .tbl-stack td.stack-full, .tbl-stack td[data-label=""] { display: block; }
  .tbl-stack td.stack-title::before, .tbl-stack td.stack-full::before, .tbl-stack td[data-label=""]::before { content: none; }
  .tbl-stack td.stack-title { font-size: 15px; font-weight: 700; padding-bottom: 6px; }
  .tbl-stack td.stack-full { padding-top: 8px; }
  .tbl-stack td.stack-full .row { gap: 6px; }
  .tbl-stack td input, .tbl-stack td select { min-width: 0; width: 100%; }
}

/* Bar atas dan menu samping tetap di tempat; hanya isi halaman yang bergulir. --hdr = tinggi header (diisi oleh partials/table-stack). */
.site-header { position: sticky; top: 0; z-index: 60; }
html { scroll-padding-top: calc(var(--hdr, 68px) + 8px); }
@media (min-width: 761px) {
  .with-sidebar > .sidebar { position: sticky; top: calc(var(--hdr, 68px) + 16px); max-height: calc(100vh - var(--hdr, 68px) - 32px); overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; }
}
@media (max-width: 760px) {
  .header-menu.open { max-height: calc(100dvh - var(--hdr, 64px)); overflow-y: auto; }
}
@media print { .site-header { position: static; } }
/* Menu Karir yang memakai kelompok dropdown: di HP tetap bersusun ke bawah (seperti Presensi), bukan deretan tab. */
@media (max-width: 760px) {
  .sidebar:has(> .nav-group) { flex-direction: column; overflow: visible; padding: 8px; gap: 2px; }
  .sidebar:has(> .nav-group) a { white-space: normal; }
}
/* Tablet & laptop: menu samping selalu di sebelah isi (tidak turun ke atas isi). */
@media (min-width: 761px) {
  .with-sidebar { flex-wrap: nowrap; }
  .with-sidebar > .content { flex: 1 1 0; }
  .with-sidebar > .sidebar { flex: 0 0 240px; }
  .att-site .with-sidebar > .sidebar { flex: 0 0 256px; }
}
@media (min-width: 761px) and (max-width: 1100px) {
  .with-sidebar { gap: 16px; }
  .with-sidebar > .sidebar, .att-site .with-sidebar > .sidebar { flex: 0 0 200px; }
  .container-fluid { padding: 0 16px; }
}
/* Sorotan mitra Layanan karir (Kretya Consultant). */
.partner-card { display: flex; gap: 16px; align-items: center; border: 2px solid var(--accent, #F2A541); background: linear-gradient(120deg, #FFF8EC 0%, #fff 70%); }
.partner-logo { flex: 0 0 72px; width: 72px; height: 72px; border-radius: 14px; object-fit: cover; }
.partner-mark { flex: 0 0 56px; width: 56px; height: 56px; border-radius: 14px; background: var(--deep, #0B3D2E); color: #F2A541; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 26px; }
.partner-eyebrow { color: #B46A00; text-transform: uppercase; letter-spacing: .06em; margin: 0; }
