
/* ── Utility ───────────────────────────────── */
.cart-hidden        { display: none; }
.cart-section-block { padding: 16px 0; border-bottom: 1px solid #e5e7eb; }

/* ── Diskon inputs ─────────────────────────── */
.input-diskon-persen  { width: 60px; }
.input-diskon-nominal { width: 100px; }

/* ── Kembalian & Sisa Tagihan ──────────────── */
.text-kembalian    { color: #10b981; }
.text-sisa-tagihan { font-weight: 600; color: #f59e0b; }

.cart-sisa-tagihan-row {
  border-top: 1px solid #e5e7eb;
  margin-top: 10px;
  padding-top: 10px;
}

/* ── Quick Cash ────────────────────────────── */
.quick-cash-group {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 8px 0;
}

.quick-cash {
  flex: 1;
  min-width: 60px;
  padding: 6px 4px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid #e2e8f0;
  background: #f8fafc;
  color: #475569;
}
.quick-cash.is-reset {
  background: #fff1f2;
  border-color: #fda4af;
  color: #e11d48;
}
.quick-cash.is-pas {
  background: #f0fdf4;
  border-color: #86efac;
  color: #16a34a;
}

/* ── QRIS ──────────────────────────────────── */
.cart-payment-section { margin-top: 15px; }

.qris-code-box {
  text-align: center;
  padding: 15px;
  background: #f9fafb;
  border-radius: 10px;
  min-height: 250px;
}
.qris-hint {
  font-size: 12px;
  color: #6b7280;
  text-align: center;
  margin-top: 10px;
}

/* ── Transfer ──────────────────────────────── */
.transfer-info-box {
  background: #f9fafb;
  border-radius: 10px;
  padding: 15px;
}
.transfer-info-title {
  margin: 0 0 10px 0;
  font-size: 14px;
}
.transfer-info-body {
  font-size: 13px;
  line-height: 1.8;
}
.btn-copy-rekening {
  margin-top: 10px;
  width: 100%;
  padding: 8px;
  background: #e5e7eb;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}

/* ── Payment Warning ───────────────────────── */
.payment-warning {
  margin-top: 10px;
  padding: 8px;
  background: #fef3c7;
  border-radius: 5px;
  font-size: 12px;
  color: #92400e;
  text-align: center;
}

/* ── Edit Item Modal ───────────────────────── */
.edit-item-modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 2000;
  align-items: center;
  justify-content: center;
}


/* ── Modal Fullscreen ────────────────── */
.edit-item-modal.is-open { 
  display: flex; 
  justify-content: center; 
  align-items: center; 
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.5); /* overlay */
  z-index: 9999;
}

.edit-item-modal-content {
  background: white;
  border-radius: 0;        /* biar full tanpa sudut */
  width: 100%;             /* penuh */
  height: 100%;            /* penuh */
  padding: 20px;
  box-shadow: none;        /* hilangkan bayangan */
  overflow-y: auto;        /* scroll kalau konten panjang */
  box-sizing: border-box;
}

/* Header & Actions sticky agar tetap terlihat */
.edit-item-modal-header {
  position: sticky;
  top: 0;
  background: #fff;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid #eee;
}

.edit-item-modal-actions {
  position: sticky;
  bottom: 0;
  background: #fff;
  display: flex;
  gap: 12px;
  margin-top: 20px;
  padding-top: 10px;
  border-top: 1px solid #eee;
}


/* ── Modal Fullscreen ────────────────── */
.edit-item-modal.is-open { 
  display: flex; 
  justify-content: center; 
  align-items: center; 
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.5); /* overlay */
  z-index: 9999;
}

.edit-item-modal-content {
  background: white;
  border-radius: 0;        /* biar full tanpa sudut */
  width: 100%;             /* penuh */
  height: 100%;            /* penuh */
  padding: 20px;
  box-shadow: none;        /* hilangkan bayangan */
  overflow-y: auto;        /* scroll kalau konten panjang */
  box-sizing: border-box;
}

/* Header sticky */
.edit-item-modal-header {
  position: sticky;
  top: 0;
  background: #fff;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid #eee;
  z-index: 10;
}

/* Actions sticky di bawah */
.edit-item-modal-actions {
  position: sticky;
  bottom: 0;
  background: #fff;
  display: flex;
  gap: 12px;
  margin-top: 20px;
  padding: 12px 0;
  border-top: 1px solid #eee;
  z-index: 10;
}

.btn-save-edit {
  flex: 1;
  background: #3b82f6;
  color: white;
  border: none;
  padding: 12px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
}

.btn-cancel-edit {
  flex: 1;
  background: #e5e7eb;
  border: none;
  padding: 12px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
}
