/* ================================
   Base
   ================================ */
*, *::before, *::after { box-sizing: border-box; }

/* ================================
   Form Controls
   ================================ */
.in {
  border: 1px solid #cbd5e1;
  border-radius: .5rem;
  padding: .5rem;
  width: 100%;
  background: #fff;
  font-size: .875rem;
}
.in:focus {
  outline: 2px solid #93c5fd;
  border-color: #3b82f6;
}

/* ================================
   Buttons
   ================================ */
.btn {
  background: #2563eb;
  color: #fff;
  border-radius: .5rem;
  padding: .5rem 1rem;
  font-size: .875rem;
  border: none;
  cursor: pointer;
}
.btn:hover:not(:disabled) { background: #1d4ed8; }
.btn:disabled { background: #94a3b8; cursor: not-allowed; }
.btn-ghost { background: #f1f5f9; color: #1e293b; }
.btn-ghost:hover:not(:disabled) { background: #e2e8f0; }

/* ================================
   Card
   ================================ */
.card {
  background: #fff;
  border-radius: .75rem;
  padding: 1rem;
  box-shadow: 0 1px 3px rgba(0,0,0,.13);
}

/* ================================
   Money Input (Rp prefix + tabular)
   ================================ */
.money-wrap { position: relative; }
.money-wrap::before {
  content: "Rp";
  position: absolute;
  left: .7rem;
  top: 50%;
  transform: translateY(-50%);
  color: #64748b;
  font-size: .8rem;
  font-weight: 600;
  pointer-events: none;
}
.money-wrap .in {
  padding-left: 2.2rem;
  text-align: right;
  font-variant-numeric: tabular-nums;
}

/* ================================
   Badge status servis
   ================================ */
.badge {
  display: inline-block;
  padding: .1rem .55rem;
  border-radius: 9999px;
  font-size: .7rem;
  font-weight: 600;
}

/* ================================
   Toast notifikasi
   ================================ */
.toast {
  position: fixed;
  bottom: 1rem;
  right: 1rem;
  background: #0f172a;
  color: #fff;
  padding: .75rem 1rem;
  border-radius: .5rem;
  box-shadow: 0 10px 25px rgba(0,0,0,.25);
  z-index: 100;
  opacity: 0;
  transform: translateY(10px);
  transition: all .25s;
  max-width: 80vw;
  font-size: .875rem;
}
.toast.show { opacity: 1; transform: translateY(0); }
.toast.err { background: #b91c1c; }
.toast.ok { background: #166534; }

/* ================================
   Print
   ================================ */
@media print {
  .no-print { display: none !important; }
}