/* DBS — gaya aplikasi. Tanpa build step: cukup file ini. */
:root {
  --bg: #F4F6F4; --surface: #FFFFFF; --line: #E3E7E4; --line-soft: #EEF1EF;
  --text: #14211B; --text-2: #33443B; --muted: #55665D;
  --green: #0F7A4F; --green-ink: #0B5E3C; --green-tint: #E3F2EA;
  --blue: #1F56A8; --blue-ink: #163F7D; --blue-tint: #E6EEFA; --blue-bar: #8FB3E8;
  --warn-bg: #FFF6E8; --warn-line: #F3D29C; --warn-ink: #6B3B00; --warn-chip: #FFF1DC; --warn-chip-ink: #8A4B00;
  --danger: #A33A1A; --danger-line: #E8C8BE;
  --accent: var(--green); --accent-ink: var(--green-ink); --accent-tint: var(--green-tint);
  --radius: 12px;
}
.theme-blue { --accent: var(--blue); --accent-ink: var(--blue-ink); --accent-tint: var(--blue-tint); }

* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--text); font: 15px/1.45 Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
a { color: var(--accent-ink); }
a:hover { color: var(--text); }
h1 { margin: 0; font-size: 26px; font-weight: 700; }
h2 { margin: 0; font-size: 17px; font-weight: 600; }
.muted { color: var(--muted); }
.num { text-align: right; font-variant-numeric: tabular-nums; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Kerangka: menu samping + isi (layar lebar). Di HP: bar atas, menu laci, tab bawah. */
.shell { display: flex; min-height: 100vh; }
.side { flex: 0 0 240px; background: var(--surface); border-right: 1px solid var(--line); padding: 20px 14px; display: flex; flex-direction: column; gap: 4px; }
.side-head { display: flex; align-items: center; justify-content: space-between; }
.side-close { display: none; }
.side-foot { margin-top: auto; }
.main { flex: 1 1 auto; min-width: 0; padding: 28px 32px 48px; }
.wrap { max-width: 1200px; margin: 0 auto; display: flex; flex-direction: column; gap: 20px; }
.topbar, .tabbar, .side-backdrop { display: none; }

@media (max-width: 800px) {
  body { padding-bottom: calc(68px + env(safe-area-inset-bottom)); }
  .topbar { display: flex; align-items: center; gap: 12px; position: sticky; top: 0; z-index: 30; background: var(--surface); border-bottom: 1px solid var(--line); padding: 8px 12px; padding-top: calc(8px + env(safe-area-inset-top)); }
  .topbar .brand { padding: 0; }
  .topbar-title { flex: 1; font-weight: 700; font-size: 17px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .topbar-menu { width: 44px; height: 44px; border: 0; background: none; border-radius: 10px; display: flex; align-items: center; justify-content: center; color: var(--text); cursor: pointer; }
  .side { position: fixed; z-index: 50; top: 0; bottom: 0; left: 0; width: min(300px, 86vw); transform: translateX(-102%); transition: transform .2s ease; overflow-y: auto; border-right: 1px solid var(--line); box-shadow: 0 0 40px rgba(0,0,0,.15); padding-top: calc(16px + env(safe-area-inset-top)); }
  .side.open { transform: none; }
  .side .brand { padding-bottom: 12px; }
  .side-close { display: flex; width: 44px; height: 44px; border: 0; background: none; align-items: center; justify-content: center; color: var(--text); cursor: pointer; }
  .side .nav { min-height: 50px; font-size: 16px; }
  .side-backdrop { display: block; position: fixed; inset: 0; z-index: 40; background: rgba(20, 33, 27, .4); }
  .side-backdrop[hidden] { display: none; }
  body.menu-open { overflow: hidden; }
  .main { padding: 16px 14px 28px; }
  .wrap { gap: 16px; }
  h1 { font-size: 22px; }
  .page-head > div > h1, .page-head h1 { display: none; } /* judul sudah tampil di bar atas */
  .page-head .sub { margin-top: 0; }
  .tabbar { display: flex; position: fixed; z-index: 30; left: 0; right: 0; bottom: 0; background: var(--surface); border-top: 1px solid var(--line); padding-bottom: env(safe-area-inset-bottom); }
  .tabbar a, .tabbar button { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; min-height: 62px; color: var(--muted); text-decoration: none; font-size: 12px; font-weight: 600; border: 0; background: none; font-family: inherit; cursor: pointer; }
  .tabbar a.on { color: var(--green-ink); }
  .tabbar a.on svg { stroke-width: 2.4; }
}
.brand { display: flex; align-items: center; gap: 10px; padding: 4px 10px 20px; text-decoration: none; color: var(--text); }
.brand .logo { width: 38px; height: 38px; border-radius: 10px; background: var(--green); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 13px; }
.brand b { display: block; font-size: 15px; }
.brand small { display: block; font-size: 12px; color: var(--muted); }
.group-label { font-size: 11px; font-weight: 600; letter-spacing: .06em; color: var(--muted); padding: 14px 12px 4px; }
.nav { display: flex; align-items: center; gap: 10px; padding: 10px 12px; min-height: 44px; border-radius: 8px; color: var(--text-2); text-decoration: none; font-size: 14px; font-weight: 500; }
.nav:hover { background: #EEF3F0; color: var(--text); }
.nav.on { background: var(--green-tint); color: var(--green-ink); font-weight: 600; }
.nav.on.blue { background: var(--blue-tint); color: var(--blue); }
.side form { margin-top: auto; }
.side .who { font-size: 13px; color: var(--muted); padding: 12px 12px 4px; }

/* Tombol & isian */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 16px; border-radius: 8px; font-family: inherit; font-size: 14px; font-weight: 600; line-height: 1; text-decoration: none; border: 1px solid transparent; cursor: pointer; background: var(--accent); color: #fff; white-space: nowrap; }
.btn:hover { filter: brightness(.94); color: #fff; }
.btn.ghost { background: var(--surface); color: var(--text-2); border-color: #CBD3CE; }
.btn.ghost:hover { background: #F2F5F3; color: var(--text); filter: none; }
.btn.outline { background: var(--surface); color: var(--accent); border-color: currentColor; }
.btn.danger { background: var(--surface); color: var(--danger); border-color: var(--danger-line); }
.btn.block { width: 100%; }
.btn.lg { min-height: 48px; font-size: 15px; }
.btn.icon { width: 44px; padding: 0; }
.field { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 500; color: var(--text-2); }
.input { min-height: 46px; width: 100%; border: 1px solid #CBD3CE; border-radius: 8px; padding: 0 12px; font-family: inherit; font-size: 16px; background: #fff; color: var(--text); }
textarea.input { padding: 10px 12px; min-height: 64px; resize: vertical; }
.input:focus, .btn:focus-visible, .nav:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.input.num { text-align: right; }
.req { color: var(--danger); font-weight: 600; }
.err { font-size: 13px; color: var(--danger); }
.hint { font-size: 12px; color: var(--muted); font-weight: 400; }

/* Kartu & tata letak */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.card.pad { padding: 20px; }
.card-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 16px 16px 12px; }
.page-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.page-head .sub { font-size: 14px; color: var(--muted); margin-top: 4px; }
.row { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end; }
.grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(var(--min, 220px), 1fr)); }
.split { display: flex; flex-wrap: wrap; gap: 20px; align-items: flex-start; }
.split > .grow { flex: 999 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.split > .aside { flex: 1 1 300px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
@media (min-width: 1100px) { .split > .aside { position: sticky; top: 16px; } }

.kpi { padding: 18px 20px; display: flex; flex-direction: column; gap: 6px; }
.kpi .label { font-size: 13px; color: var(--muted); font-weight: 500; }
.kpi .value { font-size: 24px; font-weight: 700; font-variant-numeric: tabular-nums; }
.kpi.sm .value { font-size: 20px; }
.kpi .foot { font-size: 13px; color: var(--muted); }
.c-green { color: var(--green-ink); }
.c-blue { color: var(--blue); }
.c-accent { color: var(--accent-ink); }

.alert { display: flex; gap: 12px; align-items: center; border-radius: 10px; padding: 12px 16px; font-size: 14px; }
.alert.warn { background: var(--warn-bg); border: 1px solid var(--warn-line); color: var(--warn-ink); }
.alert.ok { background: var(--green-tint); border: 1px solid #B7DCC8; color: var(--green-ink); }
.alert.bad { background: #FCEDE8; border: 1px solid var(--danger-line); color: var(--danger); }
.chip { display: inline-block; font-size: 12px; font-weight: 600; padding: 3px 8px; border-radius: 999px; white-space: nowrap; }
.chip.warn { background: var(--warn-chip); color: var(--warn-chip-ink); }
.chip.ok { background: var(--green-tint); color: var(--green-ink); }
.chip.off { background: #EEF1EF; color: var(--muted); }

/* Tabel */
.table-box { overflow-x: auto; }
.tbl { width: 100%; border-collapse: collapse; font-size: 14px; }
.tbl th { text-align: left; font-size: 12px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; padding: 10px 16px; border-bottom: 1px solid var(--line); background: #FAFBFA; white-space: nowrap; }
.tbl td { padding: 12px 16px; border-bottom: 1px solid var(--line-soft); white-space: nowrap; vertical-align: middle; }
.tbl td.wrap-cell { white-space: normal; min-width: 180px; color: var(--text-2); }
.tbl tbody tr:hover td { background: #F7FAF8; }
.tbl tfoot td { font-weight: 700; border-bottom: 0; }
.tbl .num { text-align: right; }
.empty { padding: 32px 16px; text-align: center; color: var(--muted); }
.pager { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 16px; font-size: 14px; color: var(--muted); }
.pager .links { display: flex; gap: 8px; }

/* Grafik batang harian */
.chart { overflow-x: auto; }
.chart .bars { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(28px, 1fr); gap: 6px; align-items: end; height: 240px; border-bottom: 1px solid var(--line); }
.chart .day { display: flex; align-items: flex-end; justify-content: center; gap: 3px; height: 100%; }
.chart .bar { width: 40%; max-width: 22px; border-radius: 4px 4px 0 0; }
.chart .bar.s { background: var(--green); }
.chart .bar.b { background: var(--blue-bar); }
.chart .labels { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(28px, 1fr); gap: 6px; padding-top: 8px; font-size: 11px; color: var(--muted); text-align: center; }
.legend { display: flex; gap: 16px; font-size: 13px; color: var(--text-2); }
.legend i { display: inline-block; width: 12px; height: 12px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }

/* Form nota */
.line { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; align-items: end; padding: 14px 20px; border-top: 1px solid var(--line-soft); }
.line .name { display: flex; flex-direction: column; gap: 2px; min-height: 44px; justify-content: center; }
.line .name b { font-size: 15px; }
.line .name .low { color: var(--danger); }
.line .sub { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 44px; font-weight: 700; }
.picker { padding: 14px 20px 18px; border-top: 1px solid var(--line-soft); background: #FAFBFA; display: flex; flex-direction: column; gap: 10px; }
.picks { display: flex; flex-wrap: wrap; gap: 8px; }
.pick { min-height: 40px; padding: 0 14px; border-radius: 999px; border: 1px dashed #9DB5A8; background: #fff; color: var(--accent-ink); font-family: inherit; font-size: 14px; font-weight: 500; cursor: pointer; }
.theme-blue .pick { border-color: #9FB4D6; }
.pick:hover { background: var(--accent-tint); }
.sum-row { display: flex; justify-content: space-between; font-size: 14px; color: var(--text-2); }
.sum-row b { font-variant-numeric: tabular-nums; }
.sum-total { display: flex; justify-content: space-between; align-items: baseline; border-top: 1px solid var(--line-soft); padding-top: 14px; }
.sum-total span:last-child { font-size: 24px; font-weight: 700; color: var(--accent-ink); font-variant-numeric: tabular-nums; }
.seg { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid #CBD3CE; border-radius: 8px; overflow: hidden; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg label { min-height: 44px; display: flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 600; cursor: pointer; color: var(--text-2); background: #fff; }
.seg input:checked + label { background: var(--accent); color: #fff; }
.seg input:focus-visible + label { outline: 2px solid var(--accent); outline-offset: -2px; }
.due-box { display: flex; justify-content: space-between; align-items: center; gap: 12px; font-size: 14px; background: var(--warn-bg); border-radius: 8px; padding: 10px 12px; color: var(--warn-ink); }
.due-box b, .sum-row b { white-space: nowrap; }
.neg { color: var(--danger); }
[hidden] { display: none !important; }

dialog { border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; width: min(420px, 92vw); max-height: none; overflow: visible; }
dialog::backdrop { background: rgba(20, 33, 27, .35); }

/* Karyawan masuk di form operasional: kolom Nama | Bayaran */
.emp-head, .line.emp-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(120px, 200px); gap: 12px; align-items: center; }
.emp-head { padding: 10px 20px; border-top: 1px solid var(--line-soft); background: #FAFBFA; font-size: 12px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
@media (max-width: 800px) { .emp-head { padding: 10px 16px; } .emp-head, .line.emp-row { grid-template-columns: minmax(0, 1fr) 130px; } }

/* Absen cepat di Ringkasan */
.absen { display: flex; flex-direction: column; gap: 16px; padding: 22px 24px; border-radius: 16px; border: 1.5px solid; }
.absen.is-day { background: #FFF8E6; border-color: #F2D489; --shift: #8A5A00; --shift-bg: #FDE7A8; }
.absen.is-night { background: #EEF1FA; border-color: #B9C3E3; --shift: #2D3B73; --shift-bg: #D6DCF2; }
.absen-head { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.absen-badge { width: 60px; height: 60px; border-radius: 16px; background: var(--shift-bg); color: var(--shift); display: flex; align-items: center; justify-content: center; flex: none; }
.absen-title { display: flex; flex-direction: column; gap: 2px; flex: 1 1 200px; min-width: 0; }
.absen-kicker { font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--shift); }
.absen-title h2 { font-size: 30px; line-height: 1.1; font-weight: 800; color: var(--text); }
.absen-date { font-size: 15px; color: var(--text-2); font-weight: 500; }
.absen-stats { display: flex; gap: 8px; }
.absen-count { display: flex; flex-direction: column; align-items: center; justify-content: center; min-width: 96px; padding: 8px 14px; border-radius: 14px; background: #fff; border: 1px solid var(--line); }
.absen-count span { font-size: 30px; font-weight: 800; line-height: 1; color: var(--green-ink); font-variant-numeric: tabular-nums; }
.absen-count.is-out span { color: #2D3B73; }
.absen-count small { font-size: 12px; font-weight: 600; color: var(--muted); margin-top: 4px; }
.absen-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; }
.absen-switch { display: inline-flex; background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 3px; }
.absen-switch a { min-height: 38px; padding: 0 16px; display: inline-flex; align-items: center; border-radius: 999px; font-size: 14px; font-weight: 600; color: var(--text-2); text-decoration: none; }
.absen-switch a.on { background: var(--shift); color: #fff; }
.absen-help { font-size: 13px; color: var(--text-2); flex: 1 1 200px; }
.absen-link { font-size: 14px; font-weight: 600; color: var(--shift); display: inline-flex; align-items: center; min-height: 38px; }
.absen-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px; }
.absen-form { margin: 0; }
.absen-card { background: #fff; border: 1.5px solid #CBD3CE; border-radius: 14px; padding: 12px 14px; display: flex; flex-direction: column; gap: 10px; transition: border-color .15s, background .15s; }
.absen-who { display: flex; flex-direction: column; gap: 2px; }
.absen-who b { font-size: 17px; }
.absen-time { font-size: 13px; color: var(--muted); font-weight: 500; }
.absen-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; }
.act { flex: 1 1 auto; min-height: 48px; border-radius: 10px; border: 0; font-family: inherit; font-size: 16px; font-weight: 700; cursor: pointer; }
.act-in { background: var(--green); color: #fff; }
.act-out { background: #2D3B73; color: #fff; }
.act:hover { filter: brightness(.94); }
.act:focus-visible, .act-undo:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; }
.act-done { flex: 1 1 auto; min-height: 44px; display: inline-flex; align-items: center; font-weight: 700; color: #2D3B73; }
.act-undo { background: none; border: 0; padding: 0 2px; min-height: 36px; font-family: inherit; font-size: 13px; color: var(--muted); text-decoration: underline; cursor: pointer; }
.absen-card .act-out, .absen-card .act-done, .absen-card .act-undo { display: none; }
.absen-card.state-masuk { border-color: var(--green); background: #F1FAF5; }
.absen-card.state-masuk .act-in { display: none; }
.absen-card.state-masuk .act-out, .absen-card.state-masuk .undo-in { display: inline-flex; align-items: center; justify-content: center; }
.absen-card.state-masuk .absen-time { color: var(--green-ink); font-weight: 600; }
.absen-card.state-pulang { border-color: #B9C3E3; background: #F3F5FB; }
.absen-card.state-pulang .act-in { display: none; }
.absen-card.state-pulang .act-done, .absen-card.state-pulang .undo-out { display: inline-flex; }
.absen-card.state-pulang .absen-time { color: #2D3B73; font-weight: 600; }
.absen-card[aria-busy="true"] { opacity: .6; pointer-events: none; }
.att-row { padding: 1px 0; }
/* Riwayat absensi: tabel kecil Nama | Masuk | Pulang di dalam satu baris shift */
.tbl td.att-cell { white-space: normal; min-width: 280px; }
.att-grid { display: grid; grid-template-columns: minmax(0, 1fr) 64px 64px; column-gap: 12px; font-size: 14px; }
.att-gh, .att-gr { display: contents; }
.att-gh span { font-size: 12px; font-weight: 600; color: var(--muted); padding-bottom: 4px; border-bottom: 1px solid var(--line); }
.att-gr > * { padding: 5px 0; border-bottom: 1px solid var(--line-soft); }
.att-gr:last-child > * { border-bottom: 0; }
.att-gh span:not(:first-child), .att-gr > *:not(:first-child) { text-align: right; font-variant-numeric: tabular-nums; }
.att-gr b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.att-open { color: var(--green-ink); font-weight: 600; }

/* Login */
.login { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 24px; }
.login .card { width: min(400px, 100%); padding: 28px; display: flex; flex-direction: column; gap: 16px; }

/* Cetak nota */
@media print {
  .side, .no-print { display: none !important; }
  .main { padding: 0; }
  body { background: #fff; }
  .card { border: 0; }
}

/* ---------- HP: tabel jadi kartu, filter terlipat, tombol simpan menempel ---------- */
details.filters > summary { list-style: none; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px; border: 1px solid #CBD3CE; border-radius: 8px; background: var(--surface); font-weight: 600; font-size: 14px; cursor: pointer; color: var(--text-2); }
details.filters > summary::-webkit-details-marker { display: none; }
details.filters[open] > summary { margin-bottom: 12px; }
@media (min-width: 801px) { details.filters > summary { display: none; } }

@media (max-width: 640px) {
  .tbl.cards thead { display: none; }
  .tbl.cards, .tbl.cards tbody, .tbl.cards tfoot { display: block; }
  .tbl.cards tr { display: block; padding: 12px 14px; border-bottom: 1px solid var(--line); }
  .tbl.cards td { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 3px 0; border: 0; white-space: normal; text-align: right; }
  .tbl.cards td::before { content: attr(data-label); font-size: 13px; color: var(--muted); font-weight: 500; text-align: left; flex: none; }
  .tbl.cards td[data-label=""]::before { content: none; }
  .tbl.cards td.card-title { font-size: 16px; font-weight: 700; text-align: left; padding-bottom: 4px; }
  .tbl.cards td.card-title::before { content: none; }
  .tbl.cards td.card-action { justify-content: flex-end; }
  .tbl.cards td.card-action a { min-height: 40px; }
  .tbl.cards td.wrap-cell { min-width: 0; color: var(--text-2); }
  .tbl.cards td.att-cell { display: block; min-width: 0; text-align: left; padding: 8px 0 4px; }
  .att-grid { font-size: 15px; grid-template-columns: minmax(0, 1fr) 70px 70px; }
  .tbl.cards tbody tr:hover td { background: none; }
  .tbl.cards td.empty { display: block; text-align: center; }
  .tbl.cards tfoot tr { background: #FAFBFA; }
  .tbl.cards .hide-sm { display: none; }
  .tbl.cards tr:has(> td:first-child:not(.card-title):not([data-label])) > td:first-child { font-weight: 600; text-align: left; }

  .grid { gap: 10px; }
  .kpi { padding: 14px 16px; }
  .kpi .value { font-size: 20px; }
  .grid.kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid.kpis .kpi .foot { display: none; }

  .row > .btn, .row > .field { flex: 1 1 100%; }
  .page-head > .row, .page-head > .btn { width: 100%; }
  .page-head > .row > .btn, .page-head > .btn { flex: 1 1 0; }
}

.save-bar { display: flex; flex-direction: column; gap: 10px; }
.save-total { display: none; }
.save-total small { font-size: 12px; color: var(--muted); font-weight: 500; }
.save-total b { font-size: 18px; font-variant-numeric: tabular-nums; white-space: nowrap; }

/* Form: di HP tombol simpan selalu terlihat di bawah layar */
@media (max-width: 800px) {
  .save-bar { position: fixed; left: 0; right: 0; bottom: calc(62px + env(safe-area-inset-bottom)); z-index: 25; background: var(--surface); border-top: 1px solid var(--line); padding: 10px 14px; display: flex; flex-direction: row; align-items: center; gap: 12px; box-shadow: 0 -6px 16px rgba(0,0,0,.08); }
  .save-bar .btn { width: auto; flex: 1 1 auto; min-height: 50px; font-size: 16px; }
  .save-bar .hide-sm { display: none; }
  .save-total { display: flex; flex-direction: column; line-height: 1.2; }
  .main:has(.save-bar) { padding-bottom: 96px; }
  .split > .aside { position: static; }
  .line { padding: 14px 16px; }
  .absen { padding: 16px; }
  .absen-title h2 { font-size: 26px; }
  .absen-badge { width: 52px; height: 52px; }
  .absen-list { grid-template-columns: 1fr; }
  .absen-stats { width: 100%; }
  .absen-stats .absen-count { flex: 1; }
}

/* Aksi cepat di Beranda */
.quick { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.quick a { display: flex; align-items: center; gap: 12px; min-height: 72px; padding: 14px 16px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); text-decoration: none; color: var(--text); font-weight: 700; font-size: 16px; }
.quick a:hover { border-color: var(--green); color: var(--text); }
.quick .qi { width: 44px; height: 44px; border-radius: 12px; display: flex; align-items: center; justify-content: center; flex: none; }
.quick small { display: block; font-weight: 500; font-size: 13px; color: var(--muted); margin-top: 2px; }
@media (max-width: 640px) { .quick { grid-template-columns: repeat(2, minmax(0, 1fr)); } .quick a { flex-direction: column; align-items: flex-start; min-height: 100px; } }

.flash { font-size: 15px; font-weight: 600; }
