:root { --navy: #1F3864; --bs-primary: #1F3864; --bs-primary-rgb: 31, 56, 100; }
body { background: #f3f5f9; font-size: 15px; }
body.with-nav { padding-bottom: 84px; }
@media (min-width: 992px) { body.with-nav { padding-bottom: 24px; } }

.btn-primary { --bs-btn-bg: #1F3864; --bs-btn-border-color: #1F3864; --bs-btn-hover-bg: #172b4d; --bs-btn-hover-border-color: #172b4d;
  --bs-btn-active-bg: #142645; --bs-btn-disabled-bg: #1F3864; --bs-btn-disabled-border-color: #1F3864; }
.btn-outline-primary { --bs-btn-color: #1F3864; --bs-btn-border-color: #1F3864; --bs-btn-hover-bg: #1F3864; --bs-btn-hover-border-color: #1F3864;
  --bs-btn-active-bg: #1F3864; --bs-btn-active-border-color: #1F3864; }
.progress-bar { background-color: #1F3864; }
.text-bg-primary { background-color: #1F3864 !important; }

.app-navbar { background: var(--navy); }
.app-navbar .nav-link { color: rgba(255,255,255,.75); }
.app-navbar .nav-link.active, .app-navbar .nav-link:hover { color: #fff; }

.card { border: 0; box-shadow: 0 1px 3px rgba(16,24,40,.08); border-radius: 12px; }
.card-header { border-bottom: 1px solid #eef0f4; }
.stat .label { font-size: 12px; color: #6c757d; text-transform: uppercase; letter-spacing: .03em; }
.stat .value { font-size: 1.35rem; font-weight: 700; }
.target-card { background: linear-gradient(135deg, #1F3864, #2f5597); color: #fff; }

.form-narrow { max-width: 720px; }
.jenis-grid { display: flex; flex-wrap: wrap; gap: 6px; }
.jenis-grid .btn { flex: 1 1 auto; }

/* navigasi bawah (HP) */
.bottom-nav { position: fixed; left: 0; right: 0; bottom: 0; z-index: 1030; background: #fff; display: flex;
  justify-content: space-around; align-items: center; height: 64px; padding-bottom: env(safe-area-inset-bottom);
  box-shadow: 0 -2px 10px rgba(0,0,0,.08); }
.bottom-nav a { flex: 1; text-align: center; color: #6c757d; text-decoration: none; font-size: 11px; line-height: 1.1; }
.bottom-nav a i { font-size: 21px; display: block; }
.bottom-nav a.active { color: var(--navy); font-weight: 600; }
.bottom-nav a.tambah { flex: 0 0 56px; height: 56px; border-radius: 50%; background: var(--navy); color: #fff;
  display: flex; align-items: center; justify-content: center; margin-top: -26px; box-shadow: 0 4px 12px rgba(31,56,100,.4); }
.bottom-nav a.tambah i { font-size: 26px; }

.upload-box { border: 2px dashed #c9d2e3; border-radius: 10px; padding: 12px; background: #fafbfd; }
.pick-list { display: flex; flex-wrap: wrap; gap: 6px; }
.pick-item { position: relative; width: 64px; height: 64px; }
.pick-item img { width: 64px; height: 64px; object-fit: cover; border-radius: 6px; }
.pick-pdf { display: flex; width: 64px; height: 64px; align-items: center; justify-content: center; background: #fdecea; color: #b42318; border-radius: 6px; font-weight: 700; }
.pick-del { position: absolute; top: -6px; right: -6px; width: 22px; height: 22px; border-radius: 50%; border: 0; background: #dc3545;
  color: #fff; font-size: 15px; line-height: 20px; padding: 0; box-shadow: 0 1px 3px rgba(0,0,0,.3); }

.galeri { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 10px; }
.galeri-besar { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.galeri-item img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 8px; background: #e9ecef; }
.galeri-item .pdf { display: flex; flex-direction: column; align-items: center; justify-content: center; aspect-ratio: 1;
  border-radius: 8px; background: #fdecea; color: #b42318; text-decoration: none; font-size: 11px; padding: 6px; text-align: center; overflow: hidden; }
.galeri-item .pdf i { font-size: 32px; }

.menu-tabs { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 4px; }
.menu-tabs .btn { white-space: nowrap; }
.rab-row { display: flex; gap: 12px; align-items: center; }
.rab-input { flex: 0 0 110px; }
.foto-btn { flex: 0 0 auto; white-space: nowrap; }
.rab-edit input.form-control-sm { min-width: 70px; }
.rab-edit td:first-child input { min-width: 220px; }
.simpan-sticky { position: sticky; bottom: 72px; padding: 10px 0; z-index: 5; }
@media (min-width: 992px) { .simpan-sticky { bottom: 0; } }

.bku-table td, .bku-table th { font-size: 13px; }
.login-wrap { max-width: 380px; margin: 8vh auto 0; }
.filter-bar .form-select, .filter-bar .form-control { font-size: 14px; }
