/* =========================================================
   GERAK - tema bank bjb (biru & emas)
   ========================================================= */
@font-face {
  font-family: 'Plus Jakarta Sans';
  src: url('../vendor/fonts/plus-jakarta-sans-latin-wght-normal.woff2') format('woff2');
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}

:root {
  --bjb-blue: #005baa;
  --bjb-blue-2: #0a74d1;
  --bjb-navy: #00305f;
  --bjb-gold: #f6a500;
  --bjb-gold-2: #ffc94d;
  --bg: #eef3f9;
  --card: #ffffff;
  --ink: #12243a;
  --muted: #6b7c93;
  --line: #e3eaf3;
  --wa: #1fa855;
  --radius: 18px;
  --shadow: 0 6px 24px rgba(0, 48, 95, .08);
  --shadow-sm: 0 2px 8px rgba(0, 48, 95, .07);
  --sat: env(safe-area-inset-top, 0px);
  --sab: env(safe-area-inset-bottom, 0px);

  --bs-primary: #005baa;
  --bs-primary-rgb: 0, 91, 170;
  --bs-link-color: #005baa;
  --bs-body-font-family: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --bs-body-color: var(--ink);
  --bs-body-bg: var(--bg);
  --bs-border-radius: 12px;
}

* { -webkit-tap-highlight-color: transparent; }
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--bs-body-font-family);
  background: var(--bg);
  color: var(--ink);
  font-size: 15px;
  overscroll-behavior-y: none;
}
a { text-decoration: none; }
.text-clamp-2 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ls-wide { letter-spacing: .35em; font-weight: 700; }

/* ---------- Form ---------- */
.form-control, .form-select {
  border: 1.5px solid var(--line);
  border-radius: 12px;
  padding: .72rem .9rem;
  font-size: 16px; /* cegah zoom iOS */
  background-color: #fbfdff;
  min-height: 48px;
}
textarea.form-control { min-height: 110px; }
.form-control:focus, .form-select:focus {
  border-color: var(--bjb-blue-2);
  box-shadow: 0 0 0 .22rem rgba(10, 116, 209, .14);
  background: #fff;
}
.form-label { font-weight: 600; font-size: .86rem; color: #2a3e57; margin-bottom: .35rem; }
.invalid-msg { color: #d6293e; font-size: .8rem; margin-top: .3rem; min-height: 0; }
.invalid-msg:empty { display: none; }
input[type=date], input[type=time], input[type=month] { -webkit-appearance: none; appearance: none; text-align: left; }

/* ---------- Tombol ---------- */
.btn { border-radius: 14px; font-weight: 600; }
.btn-bjb {
  background: linear-gradient(135deg, var(--bjb-blue-2), var(--bjb-blue) 55%, var(--bjb-navy));
  color: #fff; border: 0;
  box-shadow: 0 8px 20px rgba(0, 91, 170, .28);
}
.btn-bjb:hover, .btn-bjb:focus, .btn-bjb:active { color: #fff; filter: brightness(1.06); }
.btn-bjb:disabled { opacity: .6; }
.btn-gold { background: linear-gradient(135deg, var(--bjb-gold-2), var(--bjb-gold)); color: #4a3000; border: 0; }
.btn-outline-bjb { border: 1.5px solid var(--bjb-blue); color: var(--bjb-blue); background: #fff; }
.btn-outline-bjb:hover, .btn-outline-bjb:active { background: var(--bjb-blue); color: #fff; }
.btn-wa { background: linear-gradient(135deg, #2bd16d, var(--wa)); color: #fff; border: 0; box-shadow: 0 8px 20px rgba(31, 168, 85, .3); }
.btn-wa:hover, .btn-wa:active, .btn-wa:focus { color: #fff; filter: brightness(1.05); }
.btn-wa-ghost { background: #e8f8ee; color: var(--wa); border-radius: 12px; }
.btn-lg { padding: .85rem 1.2rem; font-size: 1.02rem; }

.card-soft { border: 0; border-radius: var(--radius); box-shadow: var(--shadow); }

/* ---------- Brand ---------- */
.brand-mark {
  width: 58px; height: 58px; border-radius: 18px;
  display: grid; place-items: center; font-size: 30px; color: var(--bjb-navy);
  background: linear-gradient(135deg, var(--bjb-gold-2), var(--bjb-gold));
  box-shadow: 0 10px 24px rgba(246, 165, 0, .4), inset 0 -3px 0 rgba(0,0,0,.08);
}
.brand-mark.sm { width: 40px; height: 40px; font-size: 22px; border-radius: 12px; }
.brand-mark.lg { width: 76px; height: 76px; font-size: 40px; border-radius: 24px; margin: 0 auto 10px; }
.brand-mini {
  width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--bjb-gold-2), var(--bjb-gold)); color: var(--bjb-navy); font-size: 20px;
  flex: none;
}

/* ---------- Installer ---------- */
.install-body { background: linear-gradient(160deg, var(--bjb-blue-2), var(--bjb-navy)); min-height: 100vh; }

/* ---------- Login ---------- */
.login-body { background: var(--bjb-navy); min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; }
.login-hero {
  position: relative; overflow: hidden; flex: 0 0 auto;
  padding: calc(var(--sat) + 56px) 24px 70px; text-align: center; color: #fff;
  background: radial-gradient(120% 90% at 80% 0%, #1c8bf0 0%, var(--bjb-blue) 45%, var(--bjb-navy) 100%);
}
.login-orb { position: absolute; border-radius: 50%; }
.login-orb.o1 { width: 300px; height: 300px; background: radial-gradient(circle, rgba(120,195,255,.45), rgba(120,195,255,0) 68%); right: -100px; top: -90px; }
.login-orb.o2 { width: 200px; height: 200px; background: radial-gradient(circle, rgba(255,201,77,.28), rgba(255,201,77,0) 70%); left: -60px; bottom: -50px; }
.login-brand { position: relative; }
.login-brand h1 { font-weight: 800; letter-spacing: .28em; margin: 6px 0 4px; font-size: 2rem; padding-left: .28em; }
.login-brand p { opacity: .85; margin: 0; font-size: .92rem; line-height: 1.5; }
.login-sheet {
  flex: 1; background: var(--bg); margin-top: -34px; border-radius: 30px 30px 0 0; position: relative;
  padding: 28px 24px calc(28px + var(--sab)); box-shadow: 0 -12px 30px rgba(0,0,0,.18);
}
.login-sheet form { max-width: 420px; margin: 0 auto; }
.field-icon { position: relative; }
.field-icon > i.bi { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: var(--muted); font-size: 1.15rem; pointer-events: none; }
.field-icon .form-control { padding-left: 46px; background: #fff; }
.pw-toggle { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); border: 0; background: none; color: var(--muted); font-size: 1.2rem; padding: 8px; }
@media (min-width: 768px) {
  .login-body { align-items: center; justify-content: center; background: linear-gradient(135deg, var(--bjb-navy), var(--bjb-blue)); }
  .login-hero { background: none; width: 420px; padding-bottom: 0; }
  .login-sheet { flex: none; width: 420px; margin: 0; border-radius: 26px; }
}

/* ---------- Shell operator (mobile-first) ---------- */
.op-body { background: var(--bg); }
.app-shell { max-width: 520px; margin: 0 auto; min-height: 100vh; min-height: 100dvh; background: var(--bg); position: relative; }
@media (min-width: 560px) {
  .op-body { background: #dfe8f3; }
  .app-shell { box-shadow: 0 0 60px rgba(0, 48, 95, .18); }
}
.app-bar {
  position: sticky; top: 0; z-index: 30; color: #fff;
  background: linear-gradient(135deg, var(--bjb-blue-2), var(--bjb-blue) 50%, var(--bjb-navy));
  padding-top: var(--sat);
}
.app-bar-inner { display: flex; align-items: center; gap: 12px; padding: 12px 16px; min-height: 60px; }
.app-bar-btn { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; color: #fff; background: rgba(255,255,255,.16); font-size: 1.1rem; flex: none; }
.app-bar-title { min-width: 0; flex: 1; }
.app-bar-title .t { font-weight: 800; font-size: 1.1rem; line-height: 1.15; }
.app-bar-title .s { font-size: .78rem; opacity: .8; }
.app-bar-tall { position: relative; z-index: 1; border-radius: 0 0 28px 28px; padding-bottom: 54px; margin-bottom: -40px; }
.app-bar-tall::after {
  content: ''; position: absolute; right: -40px; top: -30px; width: 190px; height: 190px; border-radius: 50%;
  background: radial-gradient(circle, rgba(120,195,255,.4), rgba(120,195,255,0) 70%); pointer-events: none;
}
.hero-greet { padding: 2px 20px 6px; position: relative; z-index: 1; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chips span { background: rgba(255,255,255,.16); border-radius: 20px; padding: 3px 11px; font-size: .76rem; font-weight: 600; }
.chips i { margin-right: 3px; }
.app-main { padding: 16px 16px calc(96px + var(--sab)); position: relative; z-index: 2; }
.no-tabs .app-main { padding-bottom: calc(150px + var(--sab)); }

/* ---------- Tab bar ---------- */
.tab-bar {
  position: fixed; left: 50%; transform: translateX(-50%); bottom: 0; z-index: 40;
  width: 100%; max-width: 520px; display: flex; justify-content: space-around; align-items: flex-end;
  background: rgba(255,255,255,.96); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-top: 1px solid var(--line); padding: 8px 6px calc(8px + var(--sab));
  box-shadow: 0 -8px 24px rgba(0,48,95,.08); border-radius: 22px 22px 0 0;
}
.tab-item { flex: 1; text-align: center; color: #8696ab; font-size: .68rem; font-weight: 600; padding: 2px 0; }
.tab-item .ic { display: block; font-size: 1.4rem; line-height: 1.2; }
.tab-item.active { color: var(--bjb-blue); }
.tab-item.active .ic { transform: translateY(-1px); }
.tab-item .lb { display: block; }
.tab-fab { position: relative; }
.tab-fab .ic {
  width: 56px; height: 56px; margin: -30px auto 2px; border-radius: 50%; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--bjb-gold-2), var(--bjb-gold)); color: var(--bjb-navy); font-size: 1.7rem;
  box-shadow: 0 10px 22px rgba(246,165,0,.5); border: 4px solid #fff;
}
.tab-fab { color: var(--bjb-navy); }

/* ---------- Beranda ---------- */
.stat-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; position: relative; z-index: 2; }
.stat-card {
  border-radius: 18px; padding: 12px 12px 10px; color: #fff; position: relative; overflow: hidden; box-shadow: var(--shadow);
  display: block;
}
.stat-card .ic { position: absolute; right: -6px; top: -6px; font-size: 3rem; opacity: .16; }
.stat-card .n { font-size: 2rem; font-weight: 800; line-height: 1.05; }
.stat-card .l { font-size: .72rem; font-weight: 600; opacity: .92; }
.stat-card.s1 { background: linear-gradient(140deg, #0a74d1, #005baa); }
.stat-card.s2 { background: linear-gradient(140deg, #14a3a3, #0b7a8c); }
.stat-card.s3 { background: linear-gradient(140deg, #f6a500, #e07b00); }
.streak {
  margin-top: 12px; background: #fff7e0; color: #7a5200; border-radius: 14px; padding: 10px 14px; font-size: .85rem;
  border: 1px solid #ffe4a1;
}
.streak i { color: #f08a00; }
.sec-head { display: flex; justify-content: space-between; align-items: center; margin: 22px 2px 10px; }
.sec-head h2 { font-size: 1.02rem; font-weight: 800; margin: 0; }
.empty-state { text-align: center; padding: 34px 18px; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.empty-state .ill {
  width: 78px; height: 78px; border-radius: 26px; margin: 0 auto 12px; display: grid; place-items: center; font-size: 2.2rem;
  background: linear-gradient(135deg, #e5f1fd, #cfe5fb); color: var(--bjb-blue);
}
.empty-state h3 { font-size: 1.05rem; font-weight: 800; }
.empty-state p { color: var(--muted); font-size: .88rem; }

.timeline { position: relative; }
.tl-item { display: flex; gap: 10px; align-items: stretch; color: inherit; margin-bottom: 10px; position: relative; }
.tl-time { width: 44px; flex: none; font-weight: 800; font-size: .82rem; color: var(--bjb-blue); padding-top: 12px; text-align: right; }
.tl-dot { width: 12px; flex: none; position: relative; }
.tl-dot::before { content: ''; position: absolute; left: 50%; top: 16px; width: 12px; height: 12px; margin-left: -6px; border-radius: 50%; background: var(--bjb-gold); border: 3px solid #fff; box-shadow: 0 0 0 2px var(--bjb-gold); z-index: 1; }
.tl-dot::after { content: ''; position: absolute; left: 50%; top: 26px; bottom: -14px; width: 2px; margin-left: -1px; background: var(--line); }
.tl-item:last-child .tl-dot::after { display: none; }
.tl-card { flex: 1; min-width: 0; background: #fff; border-radius: 16px; padding: 11px 13px; box-shadow: var(--shadow-sm); }
.badge-jenis { display: inline-block; background: #e4f0fc; color: var(--bjb-blue); font-weight: 700; font-size: .72rem; padding: 3px 10px; border-radius: 20px; }
.badge-jenis.lg { font-size: .85rem; padding: 5px 14px; }
.bar-row { margin-bottom: 11px; }
.bar-row:last-child { margin-bottom: 0; }
.bar { height: 8px; background: #edf2f8; border-radius: 6px; overflow: hidden; margin-top: 4px; }
.bar span { display: block; height: 100%; border-radius: 6px; background: linear-gradient(90deg, var(--bjb-blue), #4aa8f5); }

/* ---------- Form kegiatan ---------- */
.form-card { background: #fff; border-radius: var(--radius); padding: 16px; margin-bottom: 14px; box-shadow: var(--shadow-sm); }
.jenis-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.jenis-opt { margin: 0; cursor: pointer; }
.jenis-opt input { position: absolute; opacity: 0; pointer-events: none; }
.jo-body {
  display: flex; align-items: center; gap: 9px; padding: 11px 11px; border: 1.5px solid var(--line); border-radius: 14px;
  font-size: .82rem; font-weight: 600; line-height: 1.2; min-height: 54px; background: #fbfdff; transition: all .15s;
}
.jo-body i { font-size: 1.25rem; color: var(--bjb-blue); flex: none; }
.jenis-opt input:checked + .jo-body {
  border-color: var(--bjb-blue); background: linear-gradient(135deg, #e6f2fe, #d6eafd); color: var(--bjb-navy);
  box-shadow: 0 0 0 3px rgba(0,91,170,.12);
}
.jenis-opt input:focus-visible + .jo-body { outline: 2px solid var(--bjb-gold); }
.photo-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.photo-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 12px; }
.photo-grid:empty { display: none; }
.ph { position: relative; aspect-ratio: 1; border-radius: 14px; overflow: hidden; background: #e8eef6; display: block; }
.ph img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ph-x { position: absolute; top: 5px; right: 5px; width: 26px; height: 26px; border-radius: 50%; border: 0; background: rgba(0,0,0,.6); color: #fff; font-size: .7rem; display: grid; place-items: center; }
.save-bar {
  position: fixed; left: 50%; transform: translateX(-50%); bottom: 0; width: 100%; max-width: 520px; z-index: 40;
  padding: 12px 16px calc(12px + var(--sab)); background: rgba(255,255,255,.96); backdrop-filter: blur(14px);
  border-top: 1px solid var(--line);
}

/* ---------- Riwayat ---------- */
.segmented { display: flex; background: #dde7f3; border-radius: 14px; padding: 4px; }
.segmented .seg { flex: 1; text-align: center; padding: 8px 4px; border-radius: 11px; font-weight: 700; font-size: .85rem; color: #526a88; }
.segmented .seg.active { background: #fff; color: var(--bjb-blue); box-shadow: var(--shadow-sm); }
.filter-row { display: grid; grid-template-columns: 150px 1fr; gap: 8px; }
.search-box { position: relative; }
.search-box i { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); color: var(--muted); }
.search-box .form-control { padding-left: 36px; }
.day-head { display: flex; justify-content: space-between; align-items: center; margin: 16px 2px 8px; font-size: .9rem; }
.list-cards { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-sm); overflow: hidden; }
.act-row { display: flex; gap: 12px; align-items: center; padding: 12px 14px; color: inherit; border-bottom: 1px solid var(--line); }
.act-row:last-child { border-bottom: 0; }
.act-row:active { background: #f3f8fd; }
.act-row .time { font-weight: 800; color: var(--bjb-blue); font-size: .85rem; width: 42px; flex: none; }
.act-row .body { flex: 1; min-width: 0; }
.ph-mini { position: relative; width: 48px; height: 48px; flex: none; border-radius: 10px; overflow: hidden; }
.ph-mini img { width: 100%; height: 100%; object-fit: cover; }
.ph-mini span { position: absolute; inset: 0; background: rgba(0,0,0,.45); color: #fff; font-weight: 700; font-size: .8rem; display: grid; place-items: center; }

/* ---------- Detail ---------- */
.detail-card { background: #fff; border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow-sm); }
.detail-card .when { color: var(--muted); font-size: .85rem; margin: 10px 0 14px; }
.kv dt { font-size: .74rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); font-weight: 700; margin-top: 12px; }
.kv dd { margin: 2px 0 0; font-weight: 600; }
.kv dd.pre { white-space: pre-wrap; font-weight: 500; }
.dt { font-size: .74rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); font-weight: 700; margin: 16px 0 8px; }

/* ---------- Profil ---------- */
.profile-card {
  background: #fff; border-radius: var(--radius); padding: 24px 18px 18px; text-align: center; box-shadow: var(--shadow-sm);
  background-image: linear-gradient(180deg, #e5f1fd 0, #fff 90px);
}
.profile-card h2 { font-size: 1.2rem; font-weight: 800; margin: 10px 0 2px; }
.avatar {
  width: 36px; height: 36px; border-radius: 50%; display: inline-grid; place-items: center; font-weight: 800; font-size: .8rem;
  background: linear-gradient(135deg, var(--bjb-blue-2), var(--bjb-navy)); color: #fff;
}
.avatar.xl { width: 78px; height: 78px; font-size: 1.6rem; box-shadow: 0 8px 20px rgba(0,91,170,.3); border: 4px solid #fff; }
.badge-user { display: inline-block; margin-top: 8px; background: var(--bjb-navy); color: var(--bjb-gold-2); font-weight: 800; letter-spacing: .25em; padding: 4px 6px 4px 14px; border-radius: 10px; font-size: .85rem; }
.mini-stats { display: flex; margin-top: 16px; border-top: 1px solid var(--line); padding-top: 14px; }
.mini-stats div { flex: 1; display: flex; flex-direction: column; }
.mini-stats b { font-size: 1.4rem; color: var(--bjb-blue); }
.mini-stats span { font-size: .75rem; color: var(--muted); }
.info-row { display: flex; gap: 14px; align-items: center; padding: 13px 16px; border-bottom: 1px solid var(--line); }
.info-row:last-child { border-bottom: 0; }
.info-row > i { font-size: 1.3rem; color: var(--bjb-blue); }
.info-row small { display: block; color: var(--muted); font-size: .72rem; }
.menu-row { display: flex; align-items: center; gap: 14px; padding: 15px 16px; color: inherit; border-bottom: 1px solid var(--line); font-weight: 600; text-align: left; }
.menu-row:last-child { border-bottom: 0; }
.menu-row span { flex: 1; }
.menu-row > i:first-child { font-size: 1.25rem; color: var(--bjb-blue); }
.menu-row.text-danger > i:first-child { color: #d6293e; }
.menu-row > i:last-child { color: #b0bccb; font-size: .9rem; }

/* ---------- Caption & kolase ---------- */
.date-nav { display: grid; grid-template-columns: 46px 1fr 46px; gap: 8px; margin-bottom: 4px; }
.date-nav .btn { display: grid; place-items: center; background: #fff; box-shadow: var(--shadow-sm); }
.date-nav .btn.disabled { opacity: .4; }
.saved-banner { display: flex; gap: 12px; align-items: center; background: linear-gradient(135deg, #e6f9ee, #d3f3e1); color: #0d6b3a; border-radius: 16px; padding: 13px 15px; margin: 12px 0 0; animation: pop .45s ease; }
.saved-banner > i { font-size: 1.8rem; color: var(--wa); }
@keyframes pop { from { transform: scale(.94); opacity: 0; } to { transform: none; opacity: 1; } }
.collage-box { position: relative; background: #fff; border-radius: var(--radius); padding: 8px; box-shadow: var(--shadow-sm); min-height: 120px; }
.collage-box canvas { width: 100%; height: auto; display: block; border-radius: 12px; }
.collage-loading { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(255,255,255,.85); border-radius: var(--radius); }
.collage-thumbs { display: flex; gap: 8px; overflow-x: auto; padding: 10px 2px 2px; }
.collage-thumbs .ct { position: relative; flex: none; width: 54px; height: 54px; border: 0; padding: 0; border-radius: 12px; overflow: hidden; opacity: .45; }
.collage-thumbs .ct.on { opacity: 1; box-shadow: 0 0 0 2px var(--bjb-blue); }
.collage-thumbs img { width: 100%; height: 100%; object-fit: cover; }
.collage-thumbs .ct i { position: absolute; right: 2px; bottom: 2px; font-size: .7rem; background: var(--bjb-blue); color: #fff; border-radius: 50%; width: 17px; height: 17px; display: none; place-items: center; }
.collage-thumbs .ct.on i { display: grid; }
.no-photo { background: #fff; border: 1.5px dashed #bcd0e6; border-radius: 14px; color: var(--muted); text-align: center; padding: 18px; font-size: .85rem; }
.wa-bubble { background: #e7ddd0 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='40'%3E%3Ccircle cx='4' cy='4' r='1.3' fill='%23d6c9b8'/%3E%3C/svg%3E"); border-radius: var(--radius); padding: 14px; }
.wa-text {
  width: 100%; border: 0; resize: vertical; background: #dcf8c6; border-radius: 14px 14px 4px 14px; padding: 12px 14px;
  font-size: 14px; line-height: 1.5; color: #1a2b1a; box-shadow: 0 1px 2px rgba(0,0,0,.12); min-height: 240px; font-family: inherit;
}
.wa-text:focus { outline: 2px solid var(--wa); }
.share-bar { padding: 4px 0 4px; }
.share-bar .btn small { font-size: .7rem; }
.share-bar .col-4 .btn { line-height: 1.2; padding: .5rem .2rem; }

/* =========================================================
   ADMIN (desktop)
   ========================================================= */
.admin-body { background: #f1f5fa; }
.adm-wrap { display: flex; min-height: 100vh; }
.adm-side {
  width: 250px; flex: none; background: linear-gradient(180deg, var(--bjb-navy), #00234a); color: #fff;
  position: fixed; top: 0; bottom: 0; left: 0; display: flex; flex-direction: column; z-index: 50; transition: transform .25s;
}
.adm-brand { display: flex; gap: 12px; align-items: center; padding: 22px 20px; border-bottom: 1px solid rgba(255,255,255,.1); }
.adm-nav { padding: 16px 12px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.adm-nav a, .adm-side-foot a { display: flex; gap: 12px; align-items: center; padding: 11px 14px; border-radius: 12px; color: rgba(255,255,255,.78); font-weight: 600; font-size: .92rem; }
.adm-nav a i, .adm-side-foot a i { font-size: 1.15rem; }
.adm-nav a:hover, .adm-side-foot a:hover { background: rgba(255,255,255,.09); color: #fff; }
.adm-nav a.active { background: linear-gradient(135deg, var(--bjb-gold-2), var(--bjb-gold)); color: #3a2600; box-shadow: 0 6px 16px rgba(246,165,0,.35); }
.adm-side-foot { padding: 12px; border-top: 1px solid rgba(255,255,255,.1); }
.adm-main { flex: 1; margin-left: 250px; min-width: 0; }
.adm-top { position: sticky; top: 0; z-index: 20; background: rgba(255,255,255,.92); backdrop-filter: blur(10px); display: flex; align-items: center; padding: 12px 28px; border-bottom: 1px solid var(--line); min-height: 68px; }
.adm-title { font-size: 1.35rem; font-weight: 800; margin: 0; }
.adm-user { display: flex; gap: 10px; align-items: center; padding-left: 14px; border-left: 1px solid var(--line); font-size: .85rem; }
.adm-content { padding: 26px 28px 60px; }
@media (max-width: 991.98px) {
  .adm-side { transform: translateX(-100%); }
  .adm-side.open { transform: none; box-shadow: 0 0 40px rgba(0,0,0,.4); }
  .adm-main { margin-left: 0; }
  .adm-top, .adm-content { padding-left: 16px; padding-right: 16px; }
}

.kpi-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 16px; margin-bottom: 22px; }
.kpi { border-radius: 20px; padding: 18px 20px; color: #fff; position: relative; overflow: hidden; box-shadow: var(--shadow); }
.kpi .ic { position: absolute; right: 14px; top: 12px; font-size: 3.4rem; opacity: .18; }
.kpi .n { font-size: 2.3rem; font-weight: 800; line-height: 1.1; }
.kpi .l { font-weight: 600; opacity: .92; }
.kpi .sub { font-size: .78rem; opacity: .8; margin-top: 4px; }
.kpi.k1 { background: linear-gradient(135deg, #0a74d1, #005baa); }
.kpi.k2 { background: linear-gradient(135deg, #14a3a3, #0b7a8c); }
.kpi.k3 { background: linear-gradient(135deg, #f6a500, #e07b00); }
.kpi.k4 { background: linear-gradient(135deg, #6f4ad9, #4b2db0); }

.panel { background: #fff; border-radius: 20px; box-shadow: var(--shadow-sm); margin-bottom: 22px; border: 1px solid #edf2f8; }
.panel-h { padding: 16px 22px; border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.panel-h h2 { font-size: 1.02rem; font-weight: 800; margin: 0; }
.panel-b { padding: 20px 22px; }
.tbl { width: 100%; font-size: .87rem; border-collapse: separate; border-spacing: 0; }
.tbl th { background: #f4f8fc; color: #3c5373; font-size: .74rem; text-transform: uppercase; letter-spacing: .04em; padding: 11px 14px; white-space: nowrap; border-bottom: 1px solid var(--line); position: sticky; top: 0; }
.tbl td { padding: 11px 14px; border-bottom: 1px solid #f0f4f9; vertical-align: top; }
.tbl tbody tr:hover td { background: #f8fbfe; }
.tbl .num { text-align: right; font-variant-numeric: tabular-nums; }
.tbl tfoot td { font-weight: 800; background: #f4f8fc; }
.tbl-wrap { overflow-x: auto; }
.pill { display: inline-block; padding: 2px 10px; border-radius: 20px; font-size: .74rem; font-weight: 700; }
.pill-ok { background: #e1f6ea; color: #0d7a3f; }
.pill-off { background: #ffe9ec; color: #c2273a; }
.pill-blue { background: #e4f0fc; color: var(--bjb-blue); }
.pill-gold { background: #fff0cc; color: #8a5a00; }
.filter-bar { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; align-items: end; }
.tabs-lite { display: flex; gap: 6px; flex-wrap: wrap; }
.tabs-lite a { padding: 8px 16px; border-radius: 12px; font-weight: 700; font-size: .88rem; color: #4a6283; background: #eaf0f8; }
.tabs-lite a.active { background: var(--bjb-blue); color: #fff; box-shadow: 0 6px 14px rgba(0,91,170,.25); }
.thumb-sm { width: 44px; height: 44px; border-radius: 9px; object-fit: cover; margin: 0 4px 4px 0; cursor: zoom-in; }
.wa-preview { background: #e7ddd0; border-radius: 16px; padding: 18px; }
.wa-preview pre { background: #dcf8c6; border-radius: 14px 14px 4px 14px; padding: 14px 16px; margin: 0; white-space: pre-wrap; font-family: inherit; font-size: .9rem; color: #1a2b1a; box-shadow: 0 1px 2px rgba(0,0,0,.12); }
.ph-code code { cursor: pointer; background: #eaf2fc; color: var(--bjb-blue); padding: 2px 8px; border-radius: 8px; font-weight: 700; margin: 0 4px 6px 0; display: inline-block; }
.table-actions .btn { padding: .25rem .6rem; font-size: .8rem; border-radius: 10px; }
.chart-box { position: relative; height: 290px; }
.rank-row { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-bottom: 1px solid #f0f4f9; }
.rank-row:last-child { border-bottom: 0; }
.rank-no { width: 26px; height: 26px; border-radius: 8px; background: #eaf2fc; color: var(--bjb-blue); font-weight: 800; font-size: .8rem; display: grid; place-items: center; flex: none; }
.rank-row:nth-child(1) .rank-no { background: var(--bjb-gold); color: #3a2600; }
@media print { .adm-side, .adm-top, .no-print { display: none !important; } .adm-main { margin: 0; } }

/* =========================================================
   Tambahan v1.1
   ========================================================= */
.min-w-0 { min-width: 0; }
.flex-none { flex: none; }
.app-bar-tools { display: flex; gap: 8px; flex: none; margin-left: auto; }
.app-bar-btn.bell { position: relative; }
.bell-badge {
  position: absolute; top: -5px; right: -5px; min-width: 19px; height: 19px; padding: 0 5px; border-radius: 10px;
  background: #ff3b4f; color: #fff; font-size: .68rem; font-weight: 800; display: grid; place-items: center;
  border: 2px solid var(--bjb-blue); animation: pulse 1.8s infinite;
}
@keyframes pulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.14); } }
.hint-pill { background: #e4f0fc; color: #0b4a85; border-radius: 12px; padding: 9px 13px; font-size: .82rem; margin-bottom: 4px; }
.hint-pill a { font-weight: 700; }

/* pilih kegiatan (Laporan) */
.pick-row { cursor: pointer; margin: 0; position: relative; }
.pick-row input { position: absolute; opacity: 0; pointer-events: none; }
.pick-row .chk {
  width: 24px; height: 24px; flex: none; border-radius: 8px; border: 2px solid #b9c8db; display: grid; place-items: center;
  color: #fff; font-size: .9rem; background: #fff; transition: all .15s;
}
.pick-row .chk i { opacity: 0; }
.pick-row input:checked ~ .chk { background: var(--wa); border-color: var(--wa); }
.pick-row input:checked ~ .chk i { opacity: 1; }
.pick-row:has(input:checked) { background: #effaf3; }
.pick-row.dim, .day-head.dim { opacity: .38; }
.pick-bar {
  position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(82px + var(--sab)); z-index: 45;
  width: calc(100% - 28px); max-width: 492px; display: flex; justify-content: space-between; align-items: center; gap: 10px;
  background: var(--bjb-navy); color: #fff; border-radius: 18px; padding: 10px 12px 10px 16px; box-shadow: 0 12px 30px rgba(0,30,70,.4);
}
.pick-bar .text-muted { color: rgba(255,255,255,.65) !important; }

/* pesan */
.msg-row { display: flex; gap: 12px; align-items: center; padding: 14px 16px; border-bottom: 1px solid var(--line); color: inherit; position: relative; }
.msg-row:last-child { border-bottom: 0; }
.msg-row.unread { background: #f1f8ff; }
.msg-row.unread b { color: var(--bjb-navy); }
.msg-ic { width: 42px; height: 42px; border-radius: 14px; flex: none; display: grid; place-items: center; background: #e4f0fc; color: var(--bjb-blue); font-size: 1.2rem; }
.msg-row.unread .msg-ic { background: linear-gradient(135deg, var(--bjb-gold-2), var(--bjb-gold)); color: #4a3000; }
.dot-new { width: 11px; height: 11px; border-radius: 50%; background: #ff3b4f; flex: none; }
.msg-body { white-space: normal; line-height: 1.65; font-size: .95rem; }

/* admin: toolbar format WA, emoji, tombol cepat, broadcast */
.fmt-toolbar { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; padding: 8px; background: #f4f8fc; border-radius: 14px; border: 1px solid var(--line); }
.fmt-toolbar .btn { min-width: 40px; border: 1px solid var(--line); background: #fff; }
.emoji-grid { width: 330px; display: none; grid-template-columns: repeat(8, 1fr); gap: 2px; }
.emoji-grid.show { display: grid; }
.emoji-grid button { border: 0; background: none; font-size: 1.35rem; padding: 4px; border-radius: 8px; line-height: 1.2; }
.emoji-grid button:hover { background: #eaf2fc; }
.qbtn { display: inline-flex; align-items: center; gap: 6px; padding: 7px 15px; border-radius: 12px; font-weight: 700; font-size: .82rem; color: #fff; box-shadow: 0 4px 10px rgba(0,0,0,.12); transition: transform .12s; }
.qbtn:hover { transform: translateY(-2px); color: #fff; }
.q-hari { background: linear-gradient(135deg, #0a74d1, #005baa); }
.q-minggu { background: linear-gradient(135deg, #14a3a3, #0b7a8c); }
.q-bulan { background: linear-gradient(135deg, #f6a500, #e07b00); }
.q-lalu { background: linear-gradient(135deg, #8c5ce6, #6f4ad9); }
.q-tahun { background: linear-gradient(135deg, #e0457b, #c2255c); }
.bc-item { padding: 16px 22px; border-bottom: 1px solid var(--line); }
.bc-item:last-child { border-bottom: 0; }
.wa-preview pre code { background: rgba(0,0,0,.08); padding: 1px 5px; border-radius: 5px; font-family: ui-monospace, Menlo, monospace; }

/* v1.2 aksi di daftar */
.tl-link { display: block; color: inherit; }
.row-actions { display: flex; gap: 8px; margin-top: 10px; padding-top: 10px; border-top: 1px dashed var(--line); }
.row-actions .btn { flex: 1; font-size: .8rem; padding: .35rem .5rem; }
.act-row.has-actions { padding: 0; align-items: stretch; }
.act-row.has-actions .act-main { flex: 1; min-width: 0; display: flex; gap: 12px; align-items: center; padding: 12px 6px 12px 14px; color: inherit; }
.row-icons { display: flex; flex-direction: column; gap: 6px; justify-content: center; padding: 8px 12px 8px 4px; }
.row-icons .btn { width: 38px; height: 34px; padding: 0; display: grid; place-items: center; border-radius: 10px; }
.msg-wrap { display: flex; align-items: stretch; }
.msg-wrap .msg-row { flex: 1; min-width: 0; }
.msg-wrap form { display: flex; }
.msg-del { border: 0; background: transparent; color: #c2273a; padding: 0 14px; font-size: 1.05rem; }

/* v1.2 logo */
.login-logo { width: 150px; max-width: 48vw; height: auto; display: block; margin: 0 auto 12px; filter: drop-shadow(0 6px 18px rgba(0,0,0,.25)); }
.login-by { opacity: .85; margin: 0; font-size: .9rem; }
.app-logo { height: 38px; width: auto; display: block; }
.app-bar-title a { display: inline-block; }
.adm-logo img { width: 150px; height: auto; display: block; margin-bottom: 4px; }
@media (min-width: 768px) { .login-logo { width: 170px; } }
.adm-logo img { width: 170px; }
@media (min-width: 768px) { .login-orb { display: none; } .login-hero { padding-top: 0; padding-bottom: 22px; } }
.adm-brand { justify-content: center; padding: 26px 20px 20px; }
.adm-logo img { width: 128px; margin: 0 auto; }
.login-hero { padding-bottom: 30px; }

/* v1.3 tombol cepat: status terpilih */
.qbtn { border: 2px solid transparent; }
.qbtn.off { opacity: .45; filter: saturate(.6); box-shadow: none; }
.qbtn.off:hover { opacity: .85; filter: none; }
.qbtn.on { transform: translateY(-2px) scale(1.04); border-color: #fff; box-shadow: 0 0 0 3px rgba(0,91,170,.35), 0 8px 18px rgba(0,0,0,.22); }

/* v1.3 status input */
.ring { --p: 0; width: 112px; height: 112px; border-radius: 50%; background: conic-gradient(#12b886 calc(var(--p) * 1%), #e7eef7 0); display: grid; place-items: center; flex: none; }
.ring > div { width: 86px; height: 86px; border-radius: 50%; background: #fff; display: grid; place-items: center; text-align: center; line-height: 1.05; }
.ring b { font-size: 1.55rem; color: #0b7a5a; }
.ring small { font-size: .66rem; color: #6b7c93; font-weight: 600; }
.kpi.k5 { background: linear-gradient(135deg, #12b886, #0b8a67); }
.kpi.k6 { background: linear-gradient(135deg, #f0506e, #c2255c); }
.seg3 { display: inline-flex; background: #eef3f9; border-radius: 12px; padding: 4px; gap: 2px; }
.seg3 a { padding: 6px 14px; border-radius: 9px; font-weight: 700; font-size: .82rem; color: #3c5373; }
.seg3 a.on { background: #fff; box-shadow: 0 2px 6px rgba(0,0,0,.1); color: var(--bjb-blue); }
.two { display: grid; grid-template-columns: 1.15fr 1fr; gap: 20px; align-items: start; }
.two.one { grid-template-columns: 1fr; }
@media (max-width: 1100px) { .two { grid-template-columns: 1fr; } }
.hd-g { border-left: 5px solid #12b886; }
.hd-r { border-left: 5px solid #f0506e; }
.remind-head { background: linear-gradient(135deg, #0a74d1, #00305f); color: #fff; border: 0; }
.filter-bar > .d-flex { align-self: end; }
.tbl .pill { white-space: nowrap; }

/* v1.4 pengingat otomatis */
.chipv { display: inline-block; border: 0; background: #fff0cc; color: #8a5a00; border-radius: 8px; padding: 2px 8px; font-family: ui-monospace, Menlo, monospace; font-size: .8rem; font-weight: 700; margin-right: 6px; cursor: pointer; }
.chipv:hover { background: #ffe3a3; }
.bubble { background: #eef6ff; border: 1px solid #cfe3fb; border-radius: 14px; padding: 12px 14px; font-size: .88rem; white-space: pre-line; }
.cronbox { background: #0f1b2d; color: #9fe3b5; border-radius: 12px; padding: 12px 14px; font-family: ui-monospace, Menlo, monospace; font-size: .78rem; word-break: break-all; }

/* v1.5 carousel peringatan beranda */
.rem-car { position: relative; margin: 16px 0 6px; }
.rem-track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; border-radius: 20px; }
.rem-track::-webkit-scrollbar { display: none; }
.rem-car .slide { flex: 0 0 100%; scroll-snap-align: start; border-radius: 20px; padding: 16px 40px 16px 16px; display: flex; gap: 14px; color: #fff; box-shadow: 0 10px 24px rgba(0,0,0,.18); min-height: 122px; }
.rem-car .s-red { background: linear-gradient(135deg, #f0506e, #c2255c); }
.rem-car .s-blue { background: linear-gradient(135deg, #0a74d1, #00305f); }
.rem-car .ico { width: 46px; height: 46px; border-radius: 14px; background: rgba(255,255,255,.2); display: grid; place-items: center; font-size: 1.4rem; flex: none; }
.rem-car .s-red .ico { animation: remRing 2.2s ease-in-out infinite; }
@keyframes remRing { 0%, 100% { transform: rotate(0); } 10% { transform: rotate(14deg); } 20% { transform: rotate(-12deg); } 30% { transform: rotate(8deg); } 40% { transform: rotate(0); } }
.rem-car .tt { font-weight: 800; font-size: 1.02rem; line-height: 1.2; }
.rem-car .ds { font-size: .8rem; opacity: .92; margin-top: 3px; }
.rem-car .dots { display: flex; justify-content: center; gap: 6px; margin-top: 8px; }
.rem-car .dots span { width: 7px; height: 7px; border-radius: 50%; background: #b8c6d9; transition: all .2s; }
.rem-car .dots span.on { width: 20px; border-radius: 6px; background: var(--bjb-blue); }
.rem-x { position: absolute; top: 8px; right: 8px; z-index: 3; width: 28px; height: 28px; border: 0; border-radius: 50%; background: rgba(255,255,255,.22); color: #fff; font-size: .8rem; display: grid; place-items: center; }
@media (prefers-reduced-motion: reduce) { .rem-car .s-red .ico { animation: none; } }
