/* ---------- bilah status mode offline (KASMIRI) ---------- */
.off-bar {
  position: fixed;
  z-index: 80;
  left: 50%;
  transform: translateX(-50%);
  bottom: calc(env(safe-area-inset-bottom, 0px) + 78px);
  width: calc(100% - 24px);
  max-width: 540px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 14px;
  background: #0b1220;
  color: #fff;
  box-shadow: var(--bayang-2);
  font-size: 12.5px;
  line-height: 1.35;
  animation: off-muncul .22s ease-out;
}
@keyframes off-muncul {
  from { opacity: 0; transform: translate(-50%, 8px); }
  to { opacity: 1; transform: translate(-50%, 0); }
}
.off-bar.luring { background: #7c2d12; }
.off-bar.sinkron { background: #125402; }

.off-dot {
  width: 9px;
  height: 9px;
  flex: none;
  border-radius: 50%;
  background: #f59e0b;
  box-shadow: 0 0 0 4px rgba(245, 158, 11, .18);
}
.off-bar.sinkron .off-dot { background: #4ade80; box-shadow: 0 0 0 4px rgba(74, 222, 128, .18); animation: off-denyut 1.1s infinite; }
.off-bar.luring .off-dot { background: #fdba74; box-shadow: 0 0 0 4px rgba(253, 186, 116, .2); }
@keyframes off-denyut {
  0%, 100% { opacity: 1; }
  50% { opacity: .35; }
}

.off-teks { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.off-teks b { font-size: 12.5px; font-weight: 700; letter-spacing: -.01em; }
.off-teks span { color: rgba(255, 255, 255, .72); font-size: 11.5px; }

.off-tombol {
  flex: none;
  padding: 7px 13px;
  border-radius: 999px;
  background: #f59e0b;
  color: #231400;
  font-size: 12px;
  font-weight: 700;
  transition: transform .12s ease, filter .12s ease;
}
.off-tombol:active { transform: scale(.96); }
.off-tombol.putih { background: rgba(255, 255, 255, .16); color: #fff; }

/* daftar transaksi offline di dalam sheet */
.off-sub {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--redup);
  margin: 14px 0 6px;
}
.off-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 0;
  border-top: 1px solid var(--garis-2);
}
.off-item:first-of-type { border-top: 0; }

@media (min-width: 980px) {
  .off-bar {
    left: auto;
    right: 18px;
    bottom: 18px;
    transform: none;
    width: auto;
    max-width: 420px;
    animation: off-muncul-desktop .22s ease-out;
  }
  @keyframes off-muncul-desktop {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
  }
}
@media print {
  .off-bar { display: none !important; }
}
