/* kiosk-history.css — Hızlı Satış Geçmiş İşlemler paneli · Faz 0 · 16.07.2026
   Spec: docs/specs/2026-07-16-kiosk-gecmis-iptal-duzenleme-spec.md — dokunmatik: satır ≥72px, font ≥18px */
#kshi-overlay {
  position: fixed; inset: 0; background: rgba(15,15,20,.55); backdrop-filter: blur(2px);
  z-index: 9500; display: flex; align-items: stretch; justify-content: center;
}
.kshi-panel {
  width: 100%; max-width: 900px; margin: 0 auto;              /* masaüstünde taranabilir genişlik */
  background: var(--bg, #f3f4f6); display: flex; flex-direction: column; min-height: 0;
}
.kshi-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 16px; background: var(--surface, #fff); border-bottom: 1px solid var(--border, #e5e7eb);
}
.kshi-title { font-size: 20px; font-weight: 800; color: var(--text, #111); }
.kshi-btn {
  border: 1px solid var(--border, #d1d5db); background: var(--surface, #fff); color: var(--text, #111);
  border-radius: 12px; padding: 12px 18px; font-size: 16px; font-weight: 700; cursor: pointer;
  min-height: 52px; min-width: 56px;
}
.kshi-close { background: var(--bg-soft, #f9fafb); }
.kshi-back { margin: 10px 16px 0; }

#kshi-subhead { padding: 0 8px; }
.kshi-chips { display: flex; flex-wrap: wrap; gap: 8px; padding: 12px 8px 8px; }
.kshi-chip {
  border: 1px solid var(--border, #e5e7eb); background: var(--surface, #fff); color: var(--text-secondary, #555);
  border-radius: 22px; padding: 12px 18px; font-size: 15px; font-weight: 700; cursor: pointer; min-height: 48px;
}
.kshi-chip.active { background: var(--primary, #681620); border-color: var(--primary, #681620); color: #fff; }
.kshi-chip-adj { border-style: dashed; }

.kshi-body { flex: 1; overflow-y: auto; min-height: 0; padding: 4px 16px 24px; }
.kshi-empty, .kshi-err { text-align: center; padding: 40px 16px; color: var(--text-tertiary, #888); font-size: 17px; }
.kshi-err { color: var(--danger, #dc2626); }

.kshi-day {
  padding: 14px 4px 6px; font-size: 14px; font-weight: 800; color: var(--text-tertiary, #6b7280);
  text-transform: uppercase; letter-spacing: .4px;
}
.kshi-day-total { color: var(--text-secondary, #444); margin-left: 2px; }
.kshi-day-total.kshi-masked { cursor: pointer; letter-spacing: 2px; background: var(--bg-soft, #eee); padding: 2px 10px; border-radius: 8px; }
.kshi-day-adj { color: #b45309; font-weight: 700; text-transform: none; }

.kshi-row {
  display: flex; align-items: center; gap: 12px; min-height: 72px;
  background: var(--surface, #fff); border: 1px solid var(--border, #e5e7eb);
  border-radius: 14px; padding: 10px 14px; margin-bottom: 8px; cursor: pointer;
}
.kshi-row:active { background: var(--bg-soft, #f3f4f6); }
.kshi-row-cancel { opacity: .62; }
.kshi-row-warn { border-left: 6px solid #f59e0b; background: #fffbeb; }
.kshi-row-l { display: flex; flex-direction: column; align-items: center; min-width: 64px; }
.kshi-time { font-size: 22px; font-weight: 800; color: var(--text, #111); }
.kshi-by { font-size: 12px; color: var(--text-tertiary, #888); }
.kshi-row-m { flex: 1; min-width: 0; }
.kshi-item { font-size: 18px; font-weight: 600; color: var(--text, #111); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.kshi-extra { color: var(--text-tertiary, #888); font-size: 15px; margin-left: 6px; }
.kshi-sub { font-size: 14px; color: var(--text-secondary, #555); margin-top: 3px; }
.kshi-row-r { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.kshi-total { font-size: 22px; font-weight: 800; color: var(--text, #111); white-space: nowrap; }
.kshi-strike { text-decoration: line-through; color: var(--text-tertiary, #999); }
.kshi-badge { font-size: 12px; font-weight: 800; border-radius: 8px; padding: 3px 8px; white-space: nowrap; }
.kshi-badge-red { background: #fee2e2; color: #b91c1c; }
.kshi-badge-yellow { background: #fef3c7; color: #92400e; }
.kshi-refund { color: #b91c1c; font-weight: 700; }

.kshi-more { display: block; width: 100%; margin-top: 10px; min-height: 60px; font-size: 17px; }

/* ---- detay ---- */
.kshi-detail { background: var(--surface, #fff); border: 1px solid var(--border, #e5e7eb); border-radius: 16px; padding: 18px; margin-top: 12px; }
.kshi-ident { font-size: 19px; font-weight: 800; color: var(--text, #111); line-height: 1.5; }
.kshi-verify { font-size: 13px; font-weight: 600; color: var(--text-tertiary, #888); white-space: nowrap; }
.kshi-ok { color: var(--success, #16a34a); }
.kshi-warn-t { color: #b45309; }
.kshi-detail-badge { margin-top: 8px; }
.kshi-items { width: 100%; border-collapse: collapse; margin-top: 14px; }
.kshi-items td { border-bottom: 1px solid var(--border, #f0f0f0); padding: 10px 4px; font-size: 17px; color: var(--text, #111); }
.kshi-qty { text-align: right; font-weight: 800; white-space: nowrap; }
.kshi-sku { font-size: 12px; color: var(--text-tertiary, #999); margin-top: 2px; }
.kshi-line { padding: 8px 4px; font-size: 16px; color: var(--text-secondary, #444); }
.kshi-grand { display: flex; justify-content: space-between; padding: 14px 4px; font-size: 20px; font-weight: 800; color: var(--text, #111); }
.kshi-grand span { font-size: 28px; }
.kshi-refund-block {
  margin-top: 10px; padding: 14px; border-radius: 12px; background: #fee2e2; color: #b91c1c;
  font-size: 17px; font-weight: 800;
}
.kshi-refund-ok { background: #dcfce7; color: #166534; }
.kshi-note { font-size: 13px; font-weight: 600; color: #7f1d1d; margin-top: 4px; opacity: .8; }
.kshi-hist-title { margin-top: 18px; font-size: 13px; font-weight: 800; color: var(--text-tertiary, #888); text-transform: uppercase; letter-spacing: .5px; }
.kshi-hist-row { padding: 7px 2px; font-size: 14px; color: var(--text-secondary, #555); border-bottom: 1px dashed var(--border, #eee); }
.kshi-phase0 {
  margin-top: 18px; padding: 12px; border-radius: 12px; text-align: center;
  background: var(--bg-soft, #f3f4f6); color: var(--text-tertiary, #777); font-size: 14px; font-weight: 600;
}

@media (max-width: 700px) {
  .kshi-panel { max-width: 100%; }
  .kshi-item { font-size: 16px; }
}

/* ==== Faz 1-2: modallar + aksiyonlar + düzenleme bandı (16.07) ==== */
.kshi-modal-ov {
  position: fixed; inset: 0; background: rgba(15,15,20,.6); z-index: 9600;
  display: flex; align-items: center; justify-content: center; padding: 14px;
}
.kshi-modal {
  background: var(--surface, #fff); border-radius: 18px; width: 100%; max-width: 560px;
  max-height: 92vh; display: flex; flex-direction: column; overflow: hidden;
}
.kshi-modal-head { padding: 16px 20px; font-size: 20px; font-weight: 800; color: var(--text, #111); border-bottom: 1px solid var(--border, #eee); }
.kshi-modal-head-danger { color: #b91c1c; }
.kshi-modal-head-edit { color: #b45309; }
.kshi-modal-body { padding: 14px 20px; overflow-y: auto; min-height: 0; }
.kshi-modal-actions {
  display: flex; gap: 10px; padding: 14px 20px; border-top: 1px solid var(--border, #eee);
  position: sticky; bottom: 0; background: var(--surface, #fff);
}
.kshi-modal-actions .kshi-btn { flex: 1; min-height: 60px; font-size: 17px; }
.kshi-btn-danger { background: #dc2626; border-color: #dc2626; color: #fff; }
.kshi-btn-danger:disabled { opacity: .45; }
.kshi-btn-edit { background: #d97706; border-color: #d97706; color: #fff; }
.kshi-btn-edit:disabled { opacity: .45; }
.kshi-btn-warn { background: #f59e0b; border-color: #f59e0b; color: #fff; }
.kshi-btn-primary { background: var(--primary, #681620); border-color: var(--primary, #681620); color: #fff; }
.kshi-warnbox {
  margin: 10px 0; padding: 12px 14px; border-radius: 12px; background: #fef3c7; color: #78350f;
  font-size: 15.5px; line-height: 1.45;
}
.kshi-warn-orange { background: #ffedd5; color: #9a3412; font-weight: 700; }
.kshi-stock-warn { background: #fee2e2; color: #7f1d1d; }
.kshi-stock-warn.kshi-stock-soft { background: var(--bg-soft, #f3f4f6); color: var(--text-secondary, #555); }
.kshi-reason-chips { padding: 6px 0 2px; }
.kshi-reason-chips .kshi-chip.active { background: var(--primary, #681620); border-color: var(--primary, #681620); color: #fff; }
.kshi-other { width: 100%; margin-top: 8px; padding: 12px; font-size: 16px; border: 1px solid var(--border, #ddd); border-radius: 10px; background: var(--surface, #fff); color: var(--text, #111); }
.kshi-actions { display: flex; gap: 10px; margin-top: 16px; }
.kshi-actions .kshi-act { flex: 1; min-height: 64px; font-size: 18px; font-weight: 800; }
.kshi-center { text-align: center; margin-top: 8px; }
.kshi-refund-btn { display: block; width: 100%; margin-top: 10px; background: #16a34a; border-color: #16a34a; color: #fff; min-height: 56px; }
.kshi-ackbar {
  display: flex; align-items: center; gap: 12px; justify-content: space-between;
  margin: 10px 0; padding: 12px 16px; border-radius: 14px; background: #fee2e2; color: #7f1d1d;
  font-size: 16px;
}
.kshi-ack-btn { background: #b91c1c; border-color: #b91c1c; color: #fff; min-height: 48px; }
.kshi-diff-del { color: #b91c1c; font-weight: 700; }
.kshi-diff-add { color: #15803d; font-weight: 700; }
.kshi-diff-chg { color: #b45309; font-weight: 700; }

/* Düzenleme modu bandı (kiosk-page üstüne basılır) */
.ksk-editband {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  margin-bottom: 10px; padding: 12px 16px; border-radius: 14px;
  background: #d97706; color: #fff; font-size: 16px; font-weight: 800;
}
.ksk-editband button {
  border: 2px solid #fff; background: transparent; color: #fff; border-radius: 10px;
  padding: 10px 18px; font-size: 15px; font-weight: 800; cursor: pointer; min-height: 48px;
}
