/* =====================================================================
   e-Humas SMK Negeri 1 Martapura — Tema
   ===================================================================== */
:root {
  --eh-primary: #0e5a8a;
  --eh-primary-rgb: 14, 90, 138;
  --eh-primary-dark: #0a4166;
  --eh-accent: #f2a900;
  --eh-teal: #0ea5a4;
  --eh-side-1: #0a2238;
  --eh-side-2: #0d3352;
  --eh-bg: #f3f6fa;
  --eh-card: #ffffff;
  --eh-border: #e6ebf2;
  --eh-text: #1d2b3a;
  --eh-muted: #6b7a8c;
  --eh-radius: 14px;
  --eh-shadow: 0 1px 2px rgba(16, 37, 61, .04), 0 4px 18px rgba(16, 37, 61, .06);
  --bs-primary: var(--eh-primary);
  --bs-primary-rgb: var(--eh-primary-rgb);
  --bs-link-color: var(--eh-primary);
  --bs-link-color-rgb: var(--eh-primary-rgb);
  --bs-body-font-family: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --bs-body-bg: var(--eh-bg);
  --bs-body-color: var(--eh-text);
  --bs-border-color: var(--eh-border);
}
[data-bs-theme="dark"] {
  --eh-bg: #0f1722;
  --eh-card: #162231;
  --eh-border: #243447;
  --eh-text: #e3e9f1;
  --eh-muted: #93a3b6;
  --eh-primary: #3d9be0;
  --eh-primary-rgb: 61, 155, 224;
  --bs-body-bg: var(--eh-bg);
  --bs-body-color: var(--eh-text);
  --bs-border-color: var(--eh-border);
  --eh-shadow: 0 1px 2px rgba(0,0,0,.3);
}
html, body { font-family: var(--bs-body-font-family); }
body { background: var(--eh-bg); color: var(--eh-text); font-size: .925rem; -webkit-font-smoothing: antialiased; }
a { text-decoration: none; }
.min-w-0 { min-width: 0; }
.text-muted { color: var(--eh-muted) !important; }
.fw-800 { font-weight: 800; }

/* ---------- Header ---------- */
.app-header { background: rgba(255,255,255,.88); backdrop-filter: saturate(160%) blur(10px); border-bottom: 1px solid var(--eh-border); min-height: 62px; }
[data-bs-theme="dark"] .app-header { background: rgba(22,34,49,.9); }
.ta-pill { display: inline-flex; gap: .4rem; align-items: center; font-size: .78rem; font-weight: 600; color: var(--eh-primary); background: rgba(var(--eh-primary-rgb), .08); padding: .35rem .75rem; border-radius: 50px; }
.notif-dot { position: absolute; top: 2px; right: 0; background: #ef4444; color: #fff; font-size: .62rem; font-weight: 700; min-width: 17px; height: 17px; border-radius: 9px; display: grid; place-items: center; padding: 0 4px; border: 2px solid #fff; }
.notif-menu { min-width: 300px; border-radius: 12px; border: 1px solid var(--eh-border); box-shadow: var(--eh-shadow); }
.notif-ic { width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center; background: rgba(var(--eh-primary-rgb), .1); color: var(--eh-primary); flex-shrink: 0; }
.mobile-brand { display: flex; align-items: center; gap: .55rem; color: var(--eh-text); }
.mobile-brand img { width: 34px; height: 34px; object-fit: contain; }
.mobile-brand span { display: flex; flex-direction: column; line-height: 1.1; }
.mobile-brand b { font-size: .98rem; color: var(--eh-primary); }
.mobile-brand small { font-size: .68rem; color: var(--eh-muted); }
.dropdown-menu { border-radius: 12px; border-color: var(--eh-border); }
.dropdown-item { border-radius: 8px; margin: 0 .35rem; width: calc(100% - .7rem); }

/* ---------- Sidebar ---------- */
/* Sidebar selalu setinggi layar; menu yang panjang di-scroll di dalam sidebar (perbaikan menu "bocor" ke bawah) */
.app-sidebar { background: linear-gradient(180deg, var(--eh-side-1) 0%, var(--eh-side-2) 100%) !important; display: flex !important; flex-direction: column; height: 100vh; height: 100dvh; max-height: 100dvh; overflow: hidden; }
@media (min-width: 992px) {
  body .app-wrapper { overflow: visible !important; }
  body .app-wrapper > .app-sidebar { position: sticky !important; top: 0 !important; align-self: start; height: 100vh !important; max-height: 100vh !important; }
}
body .app-sidebar > .sidebar-wrapper { height: auto !important; max-height: none !important; }
.sidebar-brand { flex-shrink: 0; border-bottom: 1px solid rgba(255,255,255,.07) !important; height: 58px; display: flex; align-items: center; }
.sidebar-brand .brand-link { display: flex; align-items: center; gap: .6rem; padding: 0 .9rem; width: 100%; }
.sidebar-brand .brand-image { width: 34px; height: 34px; object-fit: contain; background: #fff; border-radius: 9px; padding: 3px; margin: 0 !important; max-height: none; box-shadow: none !important; float: none; opacity: 1; }
.sidebar-brand .brand-text { display: flex; flex-direction: column; line-height: 1.15; color: #fff; }
.sidebar-brand .brand-text b { font-size: 1rem; letter-spacing: .2px; }
.sidebar-brand .brand-text small { font-size: .66rem; color: rgba(255,255,255,.6); font-weight: 500; }
.sidebar-wrapper { flex: 1 1 auto; min-height: 0; overflow-y: auto !important; overflow-x: hidden; overscroll-behavior: contain; padding: 0 0 1rem; scrollbar-width: thin; scrollbar-color: rgba(255,255,255,.18) transparent; }
.sidebar-wrapper::-webkit-scrollbar { width: 6px; } .sidebar-wrapper::-webkit-scrollbar-thumb { background: rgba(255,255,255,.18); border-radius: 6px; }
.sidebar-user { display: flex; align-items: center; gap: .6rem; margin: .6rem .6rem .2rem; padding: .5rem .6rem; border-radius: 10px; background: rgba(255,255,255,.06); color: #fff; font-size: .8rem; line-height: 1.25; }
.sidebar-user .avatar { width: 34px !important; height: 34px !important; font-size: .8rem !important; }
.role-chip { display: inline-block; font-size: .62rem; font-weight: 700; letter-spacing: .3px; text-transform: uppercase; color: var(--eh-accent); }
.sidebar-menu { margin: 0; padding: 0 0 .5rem; }
.sidebar-menu .nav-item { margin: 0; }
.sidebar-menu .nav-header { font-size: .62rem !important; font-weight: 700; letter-spacing: .9px; text-transform: uppercase; color: rgba(255,255,255,.4) !important; padding: .7rem 1.1rem .2rem !important; margin: 0 !important; line-height: 1.4; }
.sidebar-menu .nav-link { display: flex !important; align-items: center; gap: .6rem; color: rgba(255,255,255,.75) !important; border-radius: 8px !important; margin: 1px .55rem !important; padding: .38rem .65rem !important; min-height: 34px; font-size: .835rem; font-weight: 500; line-height: 1.25; transition: background .15s, color .15s; width: auto !important; }
.sidebar-menu .nav-link .nav-icon { width: 1.15rem; min-width: 1.15rem; margin: 0 !important; font-size: .98rem; text-align: center; line-height: 1; }
.sidebar-menu .nav-link p { display: flex !important; align-items: center; flex: 1; min-width: 0; margin: 0 !important; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sidebar-menu .nav-link:hover { background: rgba(255,255,255,.07) !important; color: #fff !important; }
.sidebar-menu .nav-link.active { background: linear-gradient(90deg, rgba(242,169,0,.22), rgba(242,169,0,.06)) !important; color: #fff !important; box-shadow: inset 3px 0 0 var(--eh-accent) !important; }
.sidebar-menu .nav-link.active .nav-icon { color: var(--eh-accent); }
.nav-badge { margin-left: auto; font-size: .62rem; border-radius: 20px; padding: .25em .55em; line-height: 1; flex-shrink: 0; }

/* ---------- Konten ---------- */
.app-main { background: var(--eh-bg); }
.app-content-header { padding: 1.1rem .5rem .6rem; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.page-title { color: var(--eh-text); font-size: 1.3rem; line-height: 1.25; font-weight: 800; margin: 0; letter-spacing: -.3px; }
.page-sub { color: var(--eh-muted); font-size: .86rem; margin-top: .15rem; }
.page-actions { display: flex; gap: .5rem; flex-wrap: wrap; align-items: center; }
.app-content { padding: 0 .5rem 1.75rem; }
.app-content > .container-fluid > .card + .card { margin-top: 1rem; }
.app-footer { background: var(--eh-card); border-top: 1px solid var(--eh-border); }

.card { border: 1px solid var(--eh-border); border-radius: var(--eh-radius); box-shadow: var(--eh-shadow); background: var(--eh-card); }
.card-header { background: transparent; border-bottom: 1px solid var(--eh-border); padding: .75rem 1rem; min-height: 52px; display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; }
.card-header::after { display: none; }
.card-title { color: var(--eh-text); font-weight: 700; font-size: .95rem; margin: 0; line-height: 1.3; }
.card-header .card-tools { margin-left: auto; display: flex; gap: .4rem; align-items: center; flex-wrap: wrap; }
.card-body { padding: 1rem; }
.card-footer { background: transparent; border-top: 1px solid var(--eh-border); padding: .65rem 1rem; }

/* Kartu statistik */
.stat { position: relative; overflow: hidden; padding: .9rem 1rem; min-height: 84px; display: flex; flex-direction: row; gap: .9rem; align-items: center; height: 100%; }
.stat .ic { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; font-size: 1.25rem; flex-shrink: 0; }
.stat .num { font-size: 1.45rem; font-weight: 800; line-height: 1.1; letter-spacing: -.5px; }
.stat .lbl { font-size: .78rem; color: var(--eh-muted); font-weight: 600; }
.stat .sub { font-size: .72rem; color: var(--eh-muted); }
.stat a.stretched-link::after { z-index: 1; }
.ic-primary { background: rgba(var(--eh-primary-rgb), .1); color: var(--eh-primary); }
.ic-teal { background: rgba(14,165,164,.12); color: #0d9488; }
.ic-amber { background: rgba(245,158,11,.14); color: #d97706; }
.ic-rose { background: rgba(244,63,94,.12); color: #e11d48; }
.ic-violet { background: rgba(124,58,237,.12); color: #7c3aed; }
.ic-green { background: rgba(16,185,129,.13); color: #059669; }
.ic-slate { background: rgba(100,116,139,.12); color: #475569; }

/* Hero / sambutan */
.hero { border: 0; color: #fff; background: radial-gradient(1200px 300px at 100% 0%, rgba(242,169,0,.28), transparent 60%), linear-gradient(120deg, #0a2b47 0%, #0e5a8a 60%, #0f7a9a 100%); border-radius: 18px; padding: 1.4rem 1.5rem; position: relative; overflow: hidden; }
.hero::after { content: ""; position: absolute; right: -60px; bottom: -80px; width: 260px; height: 260px; border-radius: 50%; border: 36px solid rgba(255,255,255,.06); }
.hero h2 { color: #fff; font-weight: 800; font-size: 1.35rem; margin: 0 0 .2rem; }
.hero p { color: rgba(255,255,255,.8); margin: 0; font-size: .9rem; }
.hero .chip { display: inline-flex; gap: .35rem; align-items: center; background: rgba(255,255,255,.14); padding: .3rem .7rem; border-radius: 30px; font-size: .75rem; font-weight: 600; margin: .6rem .35rem 0 0; }

/* Badge lembut */
.badge { font-weight: 600; border-radius: 6px; padding: .35em .6em; }
.badge-soft-success { background: rgba(16,185,129,.13); color: #047857; }
.badge-soft-warning { background: rgba(245,158,11,.16); color: #b45309; }
.badge-soft-danger { background: rgba(239,68,68,.13); color: #b91c1c; }
.badge-soft-info { background: rgba(14,165,233,.13); color: #0369a1; }
.badge-soft-primary { background: rgba(var(--eh-primary-rgb), .12); color: var(--eh-primary); }
.badge-soft-secondary { background: rgba(100,116,139,.13); color: #475569; }
[data-bs-theme="dark"] .badge-soft-success { color: #34d399; } [data-bs-theme="dark"] .badge-soft-warning { color: #fbbf24; }
[data-bs-theme="dark"] .badge-soft-danger { color: #f87171; } [data-bs-theme="dark"] .badge-soft-info { color: #38bdf8; } [data-bs-theme="dark"] .badge-soft-secondary { color: #cbd5e1; }

/* Tombol */
.btn { border-radius: 10px; font-weight: 600; font-size: .86rem; padding: .5rem .95rem; }
.btn-sm { border-radius: 8px; font-size: .78rem; padding: .32rem .65rem; }
.btn-primary { --bs-btn-bg: var(--eh-primary); --bs-btn-border-color: var(--eh-primary); --bs-btn-hover-bg: var(--eh-primary-dark); --bs-btn-hover-border-color: var(--eh-primary-dark); --bs-btn-active-bg: var(--eh-primary-dark); }
.btn-outline-primary { --bs-btn-color: var(--eh-primary); --bs-btn-border-color: var(--eh-primary); --bs-btn-hover-bg: var(--eh-primary); --bs-btn-hover-border-color: var(--eh-primary); }
.btn-accent { background: var(--eh-accent); color: #2b1d00; border: 0; } .btn-accent:hover { background: #dc9a00; color: #2b1d00; }
.btn-icon { width: 32px; height: 32px; padding: 0; display: inline-grid; place-items: center; border-radius: 8px; font-size: .9rem; border: 0; }
.btn-soft-primary { background: rgba(var(--eh-primary-rgb), .1); color: var(--eh-primary); } .btn-soft-primary:hover { background: var(--eh-primary); color: #fff; }
.btn-soft-danger { background: rgba(239,68,68,.1); color: #dc2626; } .btn-soft-danger:hover { background: #dc2626; color: #fff; }
.btn-soft-success { background: rgba(16,185,129,.12); color: #059669; } .btn-soft-success:hover { background: #059669; color: #fff; }
.btn-soft-warning { background: rgba(245,158,11,.14); color: #b45309; } .btn-soft-warning:hover { background: #d97706; color: #fff; }
.btn-soft-secondary { background: rgba(100,116,139,.12); color: #475569; } .btn-soft-secondary:hover { background: #475569; color: #fff; }
.aksi { display: inline-flex; gap: .3rem; flex-wrap: nowrap; }

/* Form */
.form-control, .form-select { border-radius: 10px; border-color: var(--eh-border); font-size: .9rem; padding: .55rem .8rem; }
.form-control:focus, .form-select:focus { border-color: rgba(var(--eh-primary-rgb), .6); box-shadow: 0 0 0 .2rem rgba(var(--eh-primary-rgb), .12); }
.form-label { font-weight: 600; font-size: .82rem; margin-bottom: .3rem; }
.form-text { font-size: .75rem; }
.input-group-text { border-radius: 10px; border-color: var(--eh-border); background: rgba(var(--eh-primary-rgb), .04); }
.ts-control { border-radius: 10px !important; padding: .5rem .8rem !important; border-color: var(--eh-border) !important; }
.form-select-sm { border-radius: 8px; padding-top: .3rem; padding-bottom: .3rem; font-size: .8rem; }
.req::after { content: " *"; color: #dc2626; }

/* Tabel */
.table { --bs-table-bg: transparent; margin-bottom: 0; font-size: .87rem; }
.table > thead th { font-size: .7rem; vertical-align: middle; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; color: var(--eh-muted); background: rgba(var(--eh-primary-rgb), .035); border-bottom: 1px solid var(--eh-border); white-space: nowrap; padding: .7rem .75rem; }
.table > tbody td { padding: .6rem .75rem; vertical-align: middle; border-color: var(--eh-border); }
.table-hover > tbody > tr:hover > * { --bs-table-bg-state: rgba(var(--eh-primary-rgb), .03); }
.cell-user { display: flex; align-items: center; gap: .6rem; min-width: 180px; }
.cell-user .t { font-weight: 600; line-height: 1.2; }
.cell-user .s { font-size: .75rem; color: var(--eh-muted); }
.filter-bar { display: flex; gap: .5rem; flex-wrap: wrap; align-items: center; }
.filter-bar .form-control, .filter-bar .form-select { max-width: 220px; }
.search-box { position: relative; } .search-box i { position: absolute; left: .7rem; top: 50%; transform: translateY(-50%); color: var(--eh-muted); }
.search-box input { padding-left: 2rem; }

/* Avatar */
.avatar { border-radius: 50%; object-fit: cover; flex-shrink: 0; display: inline-grid; place-items: center; font-weight: 700; }

/* Empty state */
.empty-state { text-align: center; padding: 2.5rem 1rem; color: var(--eh-muted); }
.empty-state .empty-icon { width: 76px; height: 76px; margin: 0 auto .8rem; border-radius: 50%; display: grid; place-items: center; font-size: 2rem; background: rgba(var(--eh-primary-rgb), .08); color: var(--eh-primary); }

/* Alert */
.alert { border-radius: 12px; border: 0; font-size: .88rem; }
.alert-success { background: #e7f8f1; color: #065f46; } .alert-danger { background: #fdecec; color: #991b1b; }
.alert-warning { background: #fff6e0; color: #92400e; } .alert-info { background: #e6f3fb; color: #075985; }

/* Timeline */
.timeline-list { list-style: none; padding: 0; margin: 0; position: relative; }
.timeline-list li { position: relative; padding: 0 0 1rem 1.6rem; }
.timeline-list li::before { content: ""; position: absolute; left: 6px; top: 6px; bottom: -6px; width: 2px; background: var(--eh-border); }
.timeline-list li:last-child::before { display: none; }
.timeline-list li .dot { position: absolute; left: 0; top: 3px; width: 14px; height: 14px; border-radius: 50%; background: var(--eh-card); border: 3px solid var(--eh-primary); }
.timeline-list li.done .dot { background: var(--eh-primary); }
.timeline-list li.wait .dot { border-color: #cbd5e1; }

/* Stepper alur */
.flow { display: flex; gap: .5rem; overflow-x: auto; padding-bottom: .3rem; }
.flow .st { flex: 1 0 120px; text-align: center; position: relative; }
.flow .st .b { width: 40px; height: 40px; border-radius: 50%; margin: 0 auto .35rem; display: grid; place-items: center; background: #e9eef5; color: #64748b; font-size: 1.05rem; position: relative; z-index: 1; }
.flow .st.done .b { background: var(--eh-primary); color: #fff; }
.flow .st.now .b { background: var(--eh-accent); color: #2b1d00; box-shadow: 0 0 0 5px rgba(242,169,0,.2); }
.flow .st::after { content: ""; position: absolute; top: 20px; left: calc(50% + 22px); right: calc(-50% + 22px); height: 2px; background: #e2e8f0; }
.flow .st:last-child::after { display: none; }
.flow .st.done::after { background: var(--eh-primary); }
.flow .st small { font-size: .72rem; font-weight: 600; color: var(--eh-muted); display: block; line-height: 1.2; }

/* Absensi */
.clock-card { text-align: center; padding: 1.4rem 1rem; background: linear-gradient(160deg, #0a2b47, #0e5a8a); color: #fff; border: 0; }
.clock-card .time { font-size: 2.8rem; font-weight: 800; letter-spacing: 1px; line-height: 1; font-variant-numeric: tabular-nums; }
.clock-card .date { color: rgba(255,255,255,.75); font-size: .85rem; }
.absen-btn { width: 150px; height: 150px; border-radius: 50%; border: 0; font-weight: 800; color: #fff; font-size: 1rem; display: inline-flex; flex-direction: column; align-items: center; justify-content: center; gap: .25rem; box-shadow: 0 12px 30px rgba(0,0,0,.25), inset 0 -6px 0 rgba(0,0,0,.12); transition: transform .15s; }
.absen-btn i { font-size: 2.4rem; }
.absen-btn:active { transform: scale(.96); }
.absen-btn.masuk { background: radial-gradient(circle at 30% 30%, #34d399, #059669); }
.absen-btn.pulang { background: radial-gradient(circle at 30% 30%, #fbbf24, #d97706); }
.absen-btn:disabled { background: #94a3b8; box-shadow: none; }
.cam-wrap { position: relative; border-radius: 14px; overflow: hidden; background: #000; aspect-ratio: 3/4; max-width: 260px; margin: 0 auto; }
.cam-wrap video, .cam-wrap img { width: 100%; height: 100%; object-fit: cover; transform: scaleX(-1); }
.cam-wrap img { transform: none; }
.mini-map { height: 220px; border-radius: 12px; border: 1px solid var(--eh-border); z-index: 0; }
.loc-status { font-size: .8rem; }
.att-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: .5rem; }
.att-grid div { text-align: center; padding: .6rem .3rem; border-radius: 12px; background: rgba(var(--eh-primary-rgb), .05); }
.att-grid b { display: block; font-size: 1.25rem; font-weight: 800; }
.att-grid span { font-size: .7rem; color: var(--eh-muted); font-weight: 600; }
.cal { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.cal .h { font-size: .68rem; font-weight: 700; text-align: center; color: var(--eh-muted); }
.cal .d { aspect-ratio: 1; border-radius: 8px; display: grid; place-items: center; font-size: .78rem; font-weight: 600; background: rgba(100,116,139,.06); }
.cal .d.H { background: #10b981; color: #fff; } .cal .d.I { background: #0ea5e9; color: #fff; } .cal .d.S { background: #f59e0b; color: #fff; }
.cal .d.A, .cal .d.X { background: #ef4444; color: #fff; } .cal .d.L { background: transparent; color: #cbd5e1; } .cal .d.today { outline: 2px solid var(--eh-accent); }

/* Jurnal card */
.jr-item { display: flex; gap: .9rem; padding: .95rem 0; border-bottom: 1px dashed var(--eh-border); }
.jr-item:last-child { border-bottom: 0; }
.jr-date { width: 54px; flex-shrink: 0; text-align: center; border-radius: 12px; background: rgba(var(--eh-primary-rgb), .07); padding: .4rem 0; height: fit-content; }
.jr-date b { display: block; font-size: 1.3rem; line-height: 1; color: var(--eh-primary); }
.jr-date span { font-size: .66rem; font-weight: 700; text-transform: uppercase; color: var(--eh-muted); }
.jr-photo { width: 76px; height: 76px; border-radius: 10px; object-fit: cover; }
.note { font-size: .8rem; border-radius: 10px; padding: .45rem .7rem; background: rgba(var(--eh-primary-rgb), .05); margin-top: .4rem; }

/* Daftar ringkas */
.list-clean { list-style: none; margin: 0; padding: 0; }
.list-clean > li { display: flex; gap: .75rem; align-items: center; padding: .7rem 0; border-bottom: 1px solid var(--eh-border); }
.list-clean > li:last-child { border-bottom: 0; }
.kv { display: grid; grid-template-columns: 150px 1fr; gap: .45rem .8rem; font-size: .88rem; }
.kv dt { color: var(--eh-muted); font-weight: 600; } .kv dd { margin: 0; font-weight: 500; }
.progress { border-radius: 20px; height: 8px; background: rgba(100,116,139,.12); }
.nilai-input { max-width: 90px; text-align: center; font-weight: 700; }
.score-ring { width: 110px; height: 110px; border-radius: 50%; display: grid; place-items: center; margin: 0 auto; background: conic-gradient(var(--eh-teal) calc(var(--v) * 1%), rgba(100,116,139,.15) 0); }
.score-ring span { width: 86px; height: 86px; border-radius: 50%; background: var(--eh-card); display: grid; place-items: center; font-size: 1.6rem; font-weight: 800; }

.nav-pills-soft .nav-link { border-radius: 10px; color: var(--eh-muted); font-weight: 600; font-size: .85rem; padding: .45rem .9rem; }
.nav-pills-soft .nav-link.active { background: rgba(var(--eh-primary-rgb), .1); color: var(--eh-primary); }
.nav-scroll { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
.modal-content { border-radius: 16px; border: 0; }
.modal-header { border-bottom: 1px solid var(--eh-border); }
.confirm-ic { width: 56px; height: 56px; border-radius: 50%; background: #fdecec; color: #dc2626; font-size: 1.6rem; display: grid; place-items: center; }
.mou-file { display: inline-flex; align-items: center; gap: .3rem; font-size: .78rem; }
.ann { border-left: 3px solid var(--eh-primary); padding: .6rem .8rem; background: rgba(var(--eh-primary-rgb), .04); border-radius: 0 10px 10px 0; margin-bottom: .6rem; }
.ann.penting { border-color: #ef4444; background: rgba(239,68,68,.05); }
.leaflet-container { font-family: inherit; }

/* ---------- Menu bawah mobile ---------- */
.bottom-nav { position: fixed; bottom: 0; left: 0; right: 0; z-index: 1035; display: flex; justify-content: space-around; align-items: flex-end; background: var(--eh-card); border-top: 1px solid var(--eh-border); padding: .35rem .25rem calc(.35rem + env(safe-area-inset-bottom)); box-shadow: 0 -6px 24px rgba(16,37,61,.08); }
.bottom-nav a { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 1px; color: var(--eh-muted); font-size: .66rem; font-weight: 600; }
.bottom-nav a .ic { position: relative; font-size: 1.25rem; line-height: 1.2; }
.bottom-nav a .ic em { position: absolute; top: -3px; right: -10px; font-style: normal; background: #ef4444; color: #fff; font-size: .58rem; border-radius: 8px; min-width: 15px; height: 15px; display: grid; place-items: center; padding: 0 3px; }
.bottom-nav a.active { color: var(--eh-primary); }
.bottom-nav a.fab .ic { width: 52px; height: 52px; margin-top: -24px; border-radius: 50%; display: grid; place-items: center; color: #fff; background: linear-gradient(135deg, var(--eh-primary), #0f7a9a); box-shadow: 0 8px 18px rgba(var(--eh-primary-rgb), .4); border: 4px solid var(--eh-card); font-size: 1.35rem; }

@media (max-width: 991.98px) {
  .app-main { padding-bottom: 78px; }
  .app-content-header { padding: 1rem .25rem .25rem; }
  .app-content { padding: .4rem .25rem 1.5rem; }
  .page-title { font-size: 1.2rem; }
  .card-body { padding: .95rem; }
  .kv { grid-template-columns: 120px 1fr; }
}
@media (max-width: 575.98px) {
  .page-actions { width: 100%; }
  .page-actions > .btn, .page-actions > a { flex: 1; }
  .filter-bar .form-control, .filter-bar .form-select, .filter-bar form { max-width: 100%; flex: 1 1 140px; }
  .hero { padding: 1.15rem; border-radius: 16px; }
  .stat { padding: .85rem; gap: .65rem; } .stat .ic { width: 42px; height: 42px; font-size: 1.15rem; border-radius: 12px; } .stat .num { font-size: 1.3rem; }
  /* Tabel responsif menjadi kartu */
  .table-cards thead { display: none; }
  .table-cards, .table-cards tbody, .table-cards tr, .table-cards td { display: block; width: 100%; }
  .table-cards tr { border: 1px solid var(--eh-border); border-radius: 12px; margin: .6rem 0; padding: .45rem .7rem; background: var(--eh-card); }
  .table-cards td { border: 0 !important; padding: .28rem 0 !important; display: flex; justify-content: space-between; gap: .8rem; text-align: right; }
  .table-cards td::before { content: attr(data-label); font-weight: 600; color: var(--eh-muted); font-size: .76rem; text-align: left; flex-shrink: 0; }
  .table-cards td.td-main { display: block; text-align: left; border-bottom: 1px dashed var(--eh-border) !important; padding-bottom: .5rem !important; margin-bottom: .2rem; }
  .table-cards td.td-main::before { display: none; }
  .table-cards td.text-muted:first-child { display: none; }
  .table-cards td:not(.td-main) .cell-user { justify-content: flex-end; min-width: 0; }
  .table-responsive:has(.table-cards) { overflow: visible; }
  .absen-btn { width: 136px; height: 136px; }
}

/* Cetak */
@media print { .app-header, .app-sidebar, .bottom-nav, .page-actions, .app-footer, .no-print { display: none !important; } .app-main { margin: 0 !important; } }
