/* =========================================================
   SHEET SYSTEM — FINAL CONSISTENT OVERRIDES
   ========================================================= */

/* All bottom-sheet overlays use the same backdrop behavior. */
body > .sheet-overlay {
  position: fixed !important;
  inset: 0 !important;
  z-index: 10050 !important;
  display: flex !important;
  align-items: flex-end !important;
  justify-content: center !important;
  background: rgba(0, 0, 0, 0.42) !important;
  padding: 0 !important;
}

body > .sheet-overlay.hidden {
  display: none !important;
}

/* One consistent base for all sheets. */
body > .sheet-overlay > .sheet {
  width: min(100%, 480px) !important;
  margin: 0 auto !important;
  background: var(--surface) !important;
  color: var(--ink) !important;
  border: 1px solid var(--line) !important;
  border-bottom: 0 !important;
  border-radius: 18px 18px 0 0 !important;
  box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.18) !important;
  overflow: hidden !important;
  box-sizing: border-box !important;
  font-family: "Plus Jakarta Sans", system-ui, sans-serif !important;
}

/* Action sheets: Member Action + Transaction Action. */
body > .sheet-overlay.sheet-action > .sheet {
  max-height: 58vh !important;
  height: auto !important;
  min-height: 0 !important;
  padding: 8px 16px calc(12px + env(safe-area-inset-bottom)) !important;
}

body > .sheet-overlay.sheet-action .sheet-header-action,
body > .sheet-overlay.sheet-action .sheet-header:not(.sheet-header-payment) {
  display: block !important;
  text-align: center !important;
  margin: 0 !important;
  padding: 2px 0 10px !important;
}

body > .sheet-overlay.sheet-action .sheet-handle {
  width: 32px !important;
  height: 3px !important;
  margin: 2px auto 8px !important;
  border-radius: 999px !important;
  background: var(--line) !important;
}

body > .sheet-overlay.sheet-action .sheet-title {
  margin: 0 !important;
  padding: 0 !important;
  text-align: center !important;
  font-family: "Plus Jakarta Sans", system-ui, sans-serif !important;
  font-size: 15px !important;
  line-height: 1.3 !important;
  font-weight: 800 !important;
  letter-spacing: -0.02em !important;
  color: var(--ink) !important;
}

body > .sheet-overlay.sheet-action .sheet-subtitle {
  margin: 3px 0 0 !important;
  padding: 0 !important;
  text-align: center !important;
  font-family: "Plus Jakarta Sans", system-ui, sans-serif !important;
  font-size: 11px !important;
  line-height: 1.4 !important;
  font-weight: 500 !important;
  color: var(--ink-soft) !important;
}

/* Keep action content spacing identical. */
body > .sheet-overlay.sheet-action .sheet-scroll {
  margin: 0 !important;
  padding: 0 0 calc(4px + env(safe-area-inset-bottom)) !important;
  overflow-y: auto !important;
}

body > .sheet-overlay.sheet-action .action-item {
  width: 100% !important;
  min-height: 46px !important;
  padding: 8px 10px !important;
  margin: 0 !important;
  border: 0 !important;
  border-radius: 10px !important;
  background: transparent !important;
  color: var(--ink) !important;
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  box-sizing: border-box !important;
  font-family: "Plus Jakarta Sans", system-ui, sans-serif !important;
}

body > .sheet-overlay.sheet-action .action-item .action-icon {
  width: 32px !important;
  height: 32px !important;
  flex: 0 0 32px !important;
  border-radius: 8px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  background: var(--surface-alt) !important;
  color: var(--ink-soft) !important;
}

body > .sheet-overlay.sheet-action .action-item .action-label {
  flex: 1 !important;
  font-size: 13px !important;
  line-height: 1.3 !important;
  font-weight: 700 !important;
  color: var(--ink) !important;
}

body > .sheet-overlay.sheet-action .btn-cancel {
  width: 100% !important;
  min-height: 42px !important;
  margin: 6px 0 0 !important;
  padding: 10px 0 !important;
  border: 1px solid var(--line) !important;
  border-radius: 10px !important;
  background: var(--surface-alt) !important;
  color: var(--ink-soft) !important;
  font-family: "Plus Jakarta Sans", system-ui, sans-serif !important;
  font-size: 13px !important;
  line-height: 1.3 !important;
  font-weight: 700 !important;
}

/* Payment/Member detail sheets: same typography, only taller. */
body > #shodPaymentDetailOverlay > .sheet,
body > #shodMemberDetailOverlay > .sheet {
  max-height: 78dvh !important;
  height: auto !important;
  min-height: 0 !important;
  padding: 8px 16px calc(12px + env(safe-area-inset-bottom)) !important;
}

body > #shodPaymentDetailOverlay .sheet-header-payment,
body > #shodMemberDetailOverlay .sheet-header-payment,
body > #shodPaymentDetailOverlay .sheet-header,
body > #shodMemberDetailOverlay .sheet-header {
  margin: 0 !important;
  padding: 2px 0 12px !important;
  text-align: center !important;
}

body > #shodPaymentDetailOverlay .sheet-handle,
body > #shodMemberDetailOverlay .sheet-handle {
  width: 32px !important;
  height: 3px !important;
  margin: 2px auto 9px !important;
  border-radius: 999px !important;
}

body > #shodPaymentDetailOverlay .sheet-title,
body > #shodMemberDetailOverlay .sheet-title {
  margin: 0 !important;
  font-family: "Plus Jakarta Sans", system-ui, sans-serif !important;
  font-size: 15px !important;
  line-height: 1.3 !important;
  font-weight: 800 !important;
  letter-spacing: -0.02em !important;
  color: var(--ink) !important;
}

body > #shodPaymentDetailOverlay .sheet-subtitle,
body > #shodMemberDetailOverlay .sheet-subtitle {
  margin: 3px 0 0 !important;
  font-family: "Plus Jakarta Sans", system-ui, sans-serif !important;
  font-size: 11px !important;
  line-height: 1.4 !important;
  color: var(--ink-soft) !important;
}

body > #shodPaymentDetailOverlay .sheet-scroll,
body > #shodMemberDetailOverlay .sheet-scroll {
  min-height: 0 !important;
  overflow-y: auto !important;
  padding-bottom: calc(8px + env(safe-area-inset-bottom)) !important;
}

@media (max-width: 480px) {
  body > .sheet-overlay > .sheet {
    width: 100vw !important;
    max-width: 100vw !important;
  }
}

@media (max-width: 380px) {
  body > .sheet-overlay.sheet-action > .sheet {
    max-height: 60vh !important;
  }
}

/* ============================================================
   SHODAQOH MEMBER DETAIL - STICKY PERIODE & FONT SERAGAM
   ============================================================ */

/* Container untuk scroll */
#shodMemberDetailOverlay .sheet-scroll {
  overflow-x: auto !important;
  -webkit-overflow-scrolling: touch !important;
}

/* Tabel wrapper */
#shodMemberDetailOverlay .overflow-x-auto {
  position: relative;
  overflow-x: auto;
}

/* Tabel */
#shodMemberDetailOverlay table {
  width: 100%;
  min-width: 900px;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 13px;
  table-layout: fixed;
}

/* ============================================================
   KOLOM PERIODE - STICKY
   ============================================================ */
#shodMemberDetailOverlay .shod-member-detail-period {
  position: sticky !important;
  left: 0 !important;
  z-index: 10 !important;
  background: var(--surface) !important;
  min-width: 110px !important;
  max-width: 130px !important;
  width: 12% !important;
  font-size: 13px !important;
  font-weight: 700;
  padding: 10px 8px !important;
  border-right: 2px solid var(--line);
  white-space: nowrap;
}

/* Header periode juga sticky */
#shodMemberDetailOverlay thead th:first-child {
  position: sticky !important;
  left: 0 !important;
  z-index: 20 !important;
  background: var(--surface) !important;
  min-width: 110px !important;
  max-width: 130px !important;
  width: 12% !important;
  padding: 10px 8px !important;
  border-right: 2px solid var(--line);
  border-bottom: 2px solid var(--line);
  font-size: 10px !important;
}

/* Shadow effect untuk sticky column */
#shodMemberDetailOverlay .shod-member-detail-period::after,
#shodMemberDetailOverlay thead th:first-child::after {
  content: "";
  position: absolute;
  right: -8px;
  top: 0;
  bottom: 0;
  width: 8px;
  background: linear-gradient(to right, rgba(0, 0, 0, 0.08), transparent);
  pointer-events: none;
}

[data-theme="dark"] #shodMemberDetailOverlay .shod-member-detail-period::after,
[data-theme="dark"] #shodMemberDetailOverlay thead th:first-child::after {
  background: linear-gradient(to right, rgba(255, 255, 255, 0.06), transparent);
}

/* Hover effect untuk sticky column */
#shodMemberDetailOverlay tbody tr:hover .shod-member-detail-period {
  background-color: var(--surface-alt) !important;
}

/* ============================================================
   KOLOM LAINNYA - FONT SERAGAM (tanpa monospace)
   ============================================================ */

/* Status */
#shodMemberDetailOverlay .shod-member-detail-status {
  padding: 10px 8px !important;
  text-align: center;
  font-size: 13px !important;
  min-width: 80px;
  max-width: 100px;
  width: 8% !important;
  white-space: nowrap;
}

#shodMemberDetailOverlay .shod-member-detail-status .status-pill {
  font-size: 10px !important;
  padding: 3px 12px !important;
  border-radius: 999px !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.04em !important;
}

/* ============================================================
   KOLOM IR - LEBAR DITAMBAH
   ============================================================ */
#shodMemberDetailOverlay .shod-member-detail-ir {
  padding: 10px 8px !important;
  font-size: 13px !important;
  font-weight: 600;
  text-align: right;
  min-width: 160px !important;
  max-width: 190px !important;
  width: 16% !important;
  white-space: nowrap;
}

#shodMemberDetailOverlay .shod-member-detail-ir .ir-value {
  font-weight: 700;
  color: var(--brand);
  font-size: 13px !important;
}

/* ============================================================
   IR SUSULAN TOOLTIP - FONT DIPERBESAR
   ============================================================ */
#shodMemberDetailOverlay .ir-susulan-tooltip {
  display: block;
  font-size: 9.5px !important; /* DIPERBESAR dari 8px */
  color: var(--gold);
  font-weight: 600;
  text-align: right;
  margin-top: 2px;
  letter-spacing: 0.3px;
  white-space: nowrap;
  line-height: 1.4;
}

/* ============================================================
   KOLOM UANG SAMBUNG - LEBAR DITAMBAH
   ============================================================ */
#shodMemberDetailOverlay .shod-member-detail-sambung {
  padding: 10px 8px !important;
  font-size: 13px !important;
  font-weight: 600;
  text-align: right;
  min-width: 120px !important;
  max-width: 140px !important;
  width: 11% !important;
  white-space: nowrap;
  color: var(--ink-soft);
}

/* ============================================================
   KOLOM JIMPITAN - LEBAR STANDAR
   ============================================================ */
#shodMemberDetailOverlay .shod-member-detail-jimpitan {
  padding: 10px 8px !important;
  font-size: 13px !important;
  font-weight: 600;
  text-align: right;
  min-width: 100px !important;
  max-width: 120px !important;
  width: 9% !important;
  white-space: nowrap;
  color: var(--ink-soft);
}

/* ============================================================
   KOLOM SIAR-SIAR - LEBAR STANDAR
   ============================================================ */
#shodMemberDetailOverlay .shod-member-detail-siar {
  padding: 10px 8px !important;
  font-size: 13px !important;
  font-weight: 600;
  text-align: right;
  min-width: 100px !important;
  max-width: 120px !important;
  width: 9% !important;
  white-space: nowrap;
  color: var(--ink-soft);
}

/* ============================================================
   KOLOM SERIBUAN - LEBAR STANDAR
   ============================================================ */
#shodMemberDetailOverlay .shod-member-detail-seribuan {
  padding: 10px 8px !important;
  font-size: 13px !important;
  font-weight: 600;
  text-align: right;
  min-width: 100px !important;
  max-width: 120px !important;
  width: 9% !important;
  white-space: nowrap;
  color: var(--ink-soft);
}

/* ============================================================
   KOLOM KAFAN - LEBAR STANDAR
   ============================================================ */
#shodMemberDetailOverlay .shod-member-detail-kafan {
  padding: 10px 8px !important;
  font-size: 13px !important;
  font-weight: 600;
  text-align: right;
  min-width: 100px !important;
  max-width: 120px !important;
  width: 9% !important;
  white-space: nowrap;
  color: var(--ink-soft);
}

/* ============================================================
   KOLOM MT - LEBAR DITAMBAH
   ============================================================ */
#shodMemberDetailOverlay .shod-member-detail-mt {
  padding: 10px 8px !important;
  font-size: 13px !important;
  font-weight: 600;
  text-align: right;
  min-width: 120px !important;
  max-width: 140px !important;
  width: 11% !important;
  white-space: nowrap;
  color: var(--ink-soft);
}

/* ============================================================
   KOLOM TOTAL - LEBAR DITAMBAH
   ============================================================ */
#shodMemberDetailOverlay .shod-member-detail-total {
  padding: 10px 8px !important;
  font-size: 13px !important;
  font-weight: 700;
  text-align: right;
  min-width: 130px !important;
  max-width: 150px !important;
  width: 12% !important;
  white-space: nowrap;
}

/* ============================================================
   HEADER TABEL
   ============================================================ */

#shodMemberDetailOverlay thead th:not(:first-child) {
  padding: 10px 8px !important;
  font-size: 10px !important;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--ink-faint);
  border-bottom: 2px solid var(--line);
  text-align: left;
  white-space: nowrap;
  background: var(--surface);
}

#shodMemberDetailOverlay thead th:nth-child(3),
#shodMemberDetailOverlay thead th:nth-child(4),
#shodMemberDetailOverlay thead th:nth-child(5),
#shodMemberDetailOverlay thead th:nth-child(6),
#shodMemberDetailOverlay thead th:nth-child(7),
#shodMemberDetailOverlay thead th:nth-child(8),
#shodMemberDetailOverlay thead th:nth-child(9),
#shodMemberDetailOverlay thead th:nth-child(10) {
  text-align: right;
}

#shodMemberDetailOverlay thead th:nth-child(2) {
  text-align: center;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 640px) {
  #shodMemberDetailOverlay table {
    min-width: 800px;
    font-size: 12px;
  }

  #shodMemberDetailOverlay .shod-member-detail-period {
    min-width: 90px !important;
    max-width: 110px !important;
    font-size: 12px !important;
    padding: 8px 6px !important;
  }

  #shodMemberDetailOverlay thead th:first-child {
    min-width: 90px !important;
    max-width: 110px !important;
    padding: 8px 6px !important;
  }

  #shodMemberDetailOverlay .shod-member-detail-ir {
    font-size: 12px !important;
    min-width: 140px !important;
    max-width: 160px !important;
    padding: 8px 6px !important;
  }

  #shodMemberDetailOverlay .shod-member-detail-ir .ir-value {
    font-size: 12px !important;
  }

  #shodMemberDetailOverlay .shod-member-detail-sambung {
    font-size: 12px !important;
    min-width: 100px !important;
    max-width: 120px !important;
    padding: 8px 6px !important;
  }

  #shodMemberDetailOverlay .shod-member-detail-jimpitan {
    font-size: 12px !important;
    min-width: 85px !important;
    max-width: 100px !important;
    padding: 8px 6px !important;
  }

  #shodMemberDetailOverlay .shod-member-detail-siar {
    font-size: 12px !important;
    min-width: 85px !important;
    max-width: 100px !important;
    padding: 8px 6px !important;
  }

  #shodMemberDetailOverlay .shod-member-detail-seribuan {
    font-size: 12px !important;
    min-width: 85px !important;
    max-width: 100px !important;
    padding: 8px 6px !important;
  }

  #shodMemberDetailOverlay .shod-member-detail-kafan {
    font-size: 12px !important;
    min-width: 85px !important;
    max-width: 100px !important;
    padding: 8px 6px !important;
  }

  #shodMemberDetailOverlay .shod-member-detail-mt {
    font-size: 12px !important;
    min-width: 100px !important;
    max-width: 120px !important;
    padding: 8px 6px !important;
  }

  #shodMemberDetailOverlay .shod-member-detail-total {
    font-size: 12px !important;
    min-width: 110px !important;
    max-width: 130px !important;
    padding: 8px 6px !important;
  }

  #shodMemberDetailOverlay .shod-member-detail-status {
    padding: 8px 6px !important;
    min-width: 70px;
  }

  #shodMemberDetailOverlay .shod-member-detail-status .status-pill {
    font-size: 9px !important;
    padding: 2px 10px !important;
  }

  #shodMemberDetailOverlay thead th:not(:first-child) {
    font-size: 9px !important;
    padding: 8px 6px !important;
  }

  #shodMemberDetailOverlay .ir-susulan-tooltip {
    font-size: 9px !important;
  }
}

@media (max-width: 480px) {
  #shodMemberDetailOverlay table {
    min-width: 720px;
    font-size: 11px;
  }

  #shodMemberDetailOverlay .shod-member-detail-period {
    min-width: 75px !important;
    max-width: 90px !important;
    font-size: 11px !important;
    padding: 6px 4px !important;
  }

  #shodMemberDetailOverlay thead th:first-child {
    min-width: 75px !important;
    max-width: 90px !important;
    padding: 6px 4px !important;
  }

  #shodMemberDetailOverlay .shod-member-detail-ir {
    font-size: 11px !important;
    min-width: 120px !important;
    max-width: 140px !important;
    padding: 6px 4px !important;
  }

  #shodMemberDetailOverlay .shod-member-detail-ir .ir-value {
    font-size: 11px !important;
  }

  #shodMemberDetailOverlay .shod-member-detail-sambung {
    font-size: 11px !important;
    min-width: 85px !important;
    max-width: 100px !important;
    padding: 6px 4px !important;
  }

  #shodMemberDetailOverlay .shod-member-detail-jimpitan {
    font-size: 11px !important;
    min-width: 75px !important;
    max-width: 85px !important;
    padding: 6px 4px !important;
  }

  #shodMemberDetailOverlay .shod-member-detail-siar {
    font-size: 11px !important;
    min-width: 75px !important;
    max-width: 85px !important;
    padding: 6px 4px !important;
  }

  #shodMemberDetailOverlay .shod-member-detail-seribuan {
    font-size: 11px !important;
    min-width: 75px !important;
    max-width: 85px !important;
    padding: 6px 4px !important;
  }

  #shodMemberDetailOverlay .shod-member-detail-kafan {
    font-size: 11px !important;
    min-width: 75px !important;
    max-width: 85px !important;
    padding: 6px 4px !important;
  }

  #shodMemberDetailOverlay .shod-member-detail-mt {
    font-size: 11px !important;
    min-width: 85px !important;
    max-width: 100px !important;
    padding: 6px 4px !important;
  }

  #shodMemberDetailOverlay .shod-member-detail-total {
    font-size: 11px !important;
    min-width: 90px !important;
    max-width: 110px !important;
    padding: 6px 4px !important;
  }

  #shodMemberDetailOverlay .shod-member-detail-status {
    padding: 6px 4px !important;
    min-width: 60px;
  }

  #shodMemberDetailOverlay .shod-member-detail-status .status-pill {
    font-size: 8px !important;
    padding: 2px 8px !important;
  }

  #shodMemberDetailOverlay thead th:not(:first-child) {
    font-size: 8px !important;
    padding: 6px 4px !important;
  }

  #shodMemberDetailOverlay .ir-susulan-tooltip {
    font-size: 8px !important;
  }
}

/* =========================================================
   MEMBER ACTION — FINAL COMPACT NORMALIZATION
   ========================================================= */
body > #shodMemberActionOverlay > .sheet {
  height: auto !important;
  max-height: none !important;
  min-height: 0 !important;
  padding: 6px 16px 6px !important;
  overflow: hidden !important;
}

body > #shodMemberActionOverlay .sheet-header {
  padding: 2px 0 8px !important;
  margin: 0 !important;
}

body > #shodMemberActionOverlay .sheet-handle {
  width: 32px !important;
  height: 3px !important;
  margin: 2px auto 7px !important;
}

body > #shodMemberActionOverlay .sheet-title {
  font-family: "Plus Jakarta Sans", system-ui, sans-serif !important;
  font-size: 15px !important;
  line-height: 1.25 !important;
  font-weight: 800 !important;
  letter-spacing: -0.02em !important;
  margin: 0 !important;
  padding: 0 !important;
  text-align: center !important;
}

body > #shodMemberActionOverlay .sheet-subtitle {
  font-family: "Plus Jakarta Sans", system-ui, sans-serif !important;
  font-size: 11px !important;
  line-height: 1.35 !important;
  font-weight: 500 !important;
  margin: 3px 0 0 !important;
  padding: 0 !important;
  text-align: center !important;
}

body > #shodMemberActionOverlay .sheet-scroll {
  flex: 0 0 auto !important;
  min-height: 0 !important;
  max-height: none !important;
  overflow: visible !important;
  padding: 0 !important;
  margin: 0 !important;
}

body > #shodMemberActionOverlay .member-action-list {
  width: 100% !important;
  margin: 0 !important;
  padding: 4px !important;
  border: 1px solid var(--line) !important;
  border-radius: 10px !important;
  background: var(--surface) !important;
  box-shadow: none !important;
  overflow: hidden !important;
}

body > #shodMemberActionOverlay .member-action-list .action-item {
  width: 100% !important;
  height: 42px !important;
  min-height: 42px !important;
  max-height: 42px !important;
  margin: 0 !important;
  padding: 5px 10px !important;
  border: 0 !important;
  border-radius: 8px !important;
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  box-sizing: border-box !important;
  background: transparent !important;
  color: var(--ink) !important;
  font-family: "Plus Jakarta Sans", system-ui, sans-serif !important;
  font-size: 13px !important;
  line-height: 1.2 !important;
  font-weight: 700 !important;
  text-align: left !important;
}

body
  > #shodMemberActionOverlay
  .member-action-list
  .action-item
  + .action-item {
  border-top: 1px solid var(--line) !important;
  border-radius: 0 !important;
}

body > #shodMemberActionOverlay .member-action-list .action-item:hover {
  background: var(--surface-alt) !important;
}

body > #shodMemberActionOverlay .member-action-list .action-item.danger {
  color: var(--neg) !important;
}

body > #shodMemberActionOverlay .member-action-list .action-item .icon-btn {
  width: 28px !important;
  height: 28px !important;
  min-width: 28px !important;
  max-width: 28px !important;
  min-height: 28px !important;
  max-height: 28px !important;
  flex: 0 0 28px !important;
  padding: 0 !important;
  margin: 0 !important;
  border: 0 !important;
  border-radius: 8px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  pointer-events: none !important;
  box-shadow: none !important;
}

body > #shodMemberActionOverlay .member-action-list .action-item .icon-btn svg {
  width: 13px !important;
  height: 13px !important;
  display: block !important;
}

body
  > #shodMemberActionOverlay
  .member-action-list
  .action-item
  > span:nth-child(2) {
  flex: 1 1 auto !important;
  min-width: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  font-family: "Plus Jakarta Sans", system-ui, sans-serif !important;
  font-size: 13px !important;
  line-height: 1.2 !important;
  font-weight: 700 !important;
  color: inherit !important;
}

body
  > #shodMemberActionOverlay
  .member-action-list
  .action-item
  > svg:last-child {
  width: 14px !important;
  height: 14px !important;
  flex: 0 0 14px !important;
  margin: 0 !important;
}

body > #shodMemberActionOverlay .btn-cancel {
  width: 100% !important;
  height: 40px !important;
  min-height: 40px !important;
  max-height: 40px !important;
  margin: 6px 0 0 !important;
  padding: 0 !important;
  border: 1px solid var(--line) !important;
  border-radius: 9px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  background: var(--surface-alt) !important;
  color: var(--ink-soft) !important;
  font-family: "Plus Jakarta Sans", system-ui, sans-serif !important;
  font-size: 13px !important;
  line-height: 1.2 !important;
  font-weight: 700 !important;
}

body > #shodMemberActionOverlay .btn-cancel:hover {
  background: var(--surface) !important;
  color: var(--ink) !important;
}

@media (max-width: 480px) {
  body > #shodMemberActionOverlay > .sheet {
    width: 100vw !important;
    max-width: 100vw !important;
    padding-left: 14px !important;
    padding-right: 14px !important;
    padding-bottom: 6px !important;
  }
}

/* =========================================================
   V3 — ACTION BUTTON GEOMETRY
   Member Action and Transaction Action use exactly the same
   button box model, spacing, typography and right chevron.
   ========================================================= */

/* Same content area for both action sheets. */
body > #shodMemberActionOverlay .sheet-scroll,
body > #txActionOverlay .sheet-scroll {
  margin: 0 !important;
  padding: 0 !important;
  overflow: visible !important;
  flex: 0 0 auto !important;
  min-height: 0 !important;
}

/* Same action list box. */
body > #shodMemberActionOverlay .member-action-list,
body > #txActionOverlay .action-list {
  width: 100% !important;
  margin: 0 !important;
  padding: 4px !important;
  border: 1px solid var(--line) !important;
  border-radius: 10px !important;
  background: var(--surface) !important;
  overflow: hidden !important;
  box-sizing: border-box !important;
}

/* EXACT same button geometry. */
body > #shodMemberActionOverlay .action-item,
body > #txActionOverlay .action-item,
body > #txActionOverlay .action-list > button {
  width: 100% !important;
  height: 44px !important;
  min-height: 44px !important;
  max-height: 44px !important;
  margin: 0 !important;
  padding: 6px 12px !important;
  border: 0 !important;
  border-radius: 8px !important;
  box-sizing: border-box !important;
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  font-family: "Plus Jakarta Sans", system-ui, sans-serif !important;
  font-size: 13px !important;
  line-height: 1.2 !important;
  font-weight: 700 !important;
  text-align: left !important;
  color: var(--ink) !important;
}

/* Equal vertical separators, no external margins. */
body > #shodMemberActionOverlay .action-item + .action-item,
body > #txActionOverlay .action-list > button + button {
  border-top: 1px solid var(--line) !important;
}

/* Equal icon box. */
body > #shodMemberActionOverlay .action-item .icon-btn,
body > #txActionOverlay .action-list > button .icon-btn {
  width: 28px !important;
  height: 28px !important;
  min-width: 28px !important;
  max-width: 28px !important;
  min-height: 28px !important;
  max-height: 28px !important;
  flex: 0 0 28px !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 8px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  box-shadow: none !important;
  pointer-events: none !important;
}

/* Equal icon glyph. */
body > #shodMemberActionOverlay .action-item .icon-btn svg,
body > #txActionOverlay .action-list > button .icon-btn svg {
  width: 13px !important;
  height: 13px !important;
  display: block !important;
}

/* Equal text column. */
body > #shodMemberActionOverlay .action-item > span:nth-child(2),
body > #txActionOverlay .action-list > button > span:nth-child(2) {
  flex: 1 1 auto !important;
  min-width: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  font-family: "Plus Jakarta Sans", system-ui, sans-serif !important;
  font-size: 13px !important;
  line-height: 1.2 !important;
  font-weight: 700 !important;
  color: inherit !important;
}

/* Member already has SVG chevrons; normalize them. */
body > #shodMemberActionOverlay .action-item > svg:last-child {
  width: 14px !important;
  height: 14px !important;
  min-width: 14px !important;
  max-width: 14px !important;
  flex: 0 0 14px !important;
  margin: 0 !important;
  display: block !important;
}

/* Transaction Action now gets the same chevron. */
body > #txActionOverlay .action-chevron {
  width: 14px !important;
  height: 14px !important;
  min-width: 14px !important;
  max-width: 14px !important;
  flex: 0 0 14px !important;
  margin: 0 !important;
  display: block !important;
}

/* Delete action keeps the same geometry but red icon/arrow. */
body > #shodMemberActionOverlay .action-item.danger,
body > #txActionOverlay #btnActionDelete {
  color: var(--neg) !important;
}

body > #shodMemberActionOverlay .action-item.danger > svg:last-child,
body > #txActionOverlay #btnActionDelete .action-chevron {
  color: var(--neg) !important;
}

/* Same cancel button geometry in both sheets. */
body > #shodMemberActionOverlay #btnMemberActionCancel,
body > #txActionOverlay #btnActionCancel {
  width: 100% !important;
  height: 40px !important;
  min-height: 40px !important;
  max-height: 40px !important;
  margin: 6px 0 0 !important;
  padding: 0 !important;
  border: 1px solid var(--line) !important;
  border-radius: 9px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  box-sizing: border-box !important;
  font-family: "Plus Jakarta Sans", system-ui, sans-serif !important;
  font-size: 13px !important;
  line-height: 1.2 !important;
  font-weight: 700 !important;
}

/* Remove the old card's outer geometry from Transaction Action. */
body > #txActionOverlay > .sheet > .card {
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

/* Keep the action sheet itself tight; no artificial bottom whitespace. */
body > #shodMemberActionOverlay > .sheet,
body > #txActionOverlay > .sheet {
  padding-bottom: 10px !important;
}

@media (max-width: 480px) {
  body > #shodMemberActionOverlay .action-item,
  body > #txActionOverlay .action-list > button {
    height: 44px !important;
    min-height: 44px !important;
    max-height: 44px !important;
    padding: 6px 12px !important;
    font-size: 13px !important;
  }

  body > #shodMemberActionOverlay #btnMemberActionCancel,
  body > #txActionOverlay #btnActionCancel {
    height: 40px !important;
    min-height: 40px !important;
    max-height: 40px !important;
    margin-top: 6px !important;
    padding: 0 !important;
    font-size: 13px !important;
  }
}

/* =========================================================
   SHEET KEYBOARD & VISUAL VIEWPORT OVERRIDES
   ========================================================= */
body > .sheet-overlay.sheet-keyboard-active {
  top: var(--sheet-vv-top, 0px) !important;
  height: var(--sheet-vv-height, 100vh) !important;
  bottom: auto !important;
  align-items: flex-end !important;
  transition: height 0.1s ease-out, top 0.1s ease-out !important;
}

body > .sheet-overlay.sheet-keyboard-active > .sheet {
  margin-bottom: 0 !important;
}

body > .sheet-overlay.sheet-keyboard-active .sheet-scroll {
  overflow-y: auto !important;
  scroll-behavior: smooth !important;
  -webkit-overflow-scrolling: touch !important;
  padding-bottom: 160px !important;
  scroll-padding-bottom: 160px !important;
}
