/* Super Sunday V2 User Panel — white theme override.
   V1 geometry/keyboard/layout remains authoritative. Only neutral colors are changed. */
html,body,body:has(.user-entry-screen),body:has(.user-entry-screen) main,.user-entry-screen{background:#fff!important;color:#111827!important}
.user-entry-screen .bulk-delete-form,.user-entry-screen .entry-table-shell,.user-entry-screen .entry-purchase-table,.user-entry-screen .entry-purchase-table tbody,.user-entry-screen .entry-purchase-table td,.user-entry-screen .entry-bottom-bar,.user-entry-screen .entry-form{background:#fff!important;color:#111827!important}
.user-entry-screen .entry-table-shell{border-color:#d1d5db!important}
.user-entry-screen .entry-purchase-table th{background:#f1f5f9!important;color:#111827!important;border-color:#cbd5e1!important}
.user-entry-screen .entry-purchase-table td{border-color:#e5e7eb!important}
.user-entry-screen .entry-purchase-table .select-col{border-right-color:#cbd5e1!important}
.user-entry-screen .entry-purchase-table .empty-row td{color:#4b5563!important}
.user-entry-screen .entry-bottom-bar{border-color:#d1d5db!important;box-shadow:0 -5px 16px rgba(15,23,42,.10)!important}
.user-entry-screen .entry-bottom-bar label,.user-entry-screen .entry-field-label{color:#111827!important}
.user-entry-screen .entry-bottom-bar input,.user-entry-screen .entry-search{background:#fff!important;color:#111827!important;border-color:#9ca3af!important}
.user-entry-screen .entry-bottom-bar input::placeholder,.user-entry-screen .entry-search::placeholder{color:#6b7280!important}
.user-side-menu{background:#fff!important;color:#111827!important;border-color:#d1d5db!important}
.user-side-menu .user-menu-profile,.user-side-menu .user-menu-profile-details,.user-side-menu .user-menu-wallet-item,.user-side-menu .user-menu-links{background:#fff!important;color:#111827!important}
.user-side-menu .user-menu-profile-details,.user-side-menu .user-menu-wallet-item{border-color:#e5e7eb!important}
.user-side-menu .user-menu-balance-label,.user-side-menu .user-menu-identity span{color:#4b5563!important}
.user-side-menu .user-menu-identity strong,.user-side-menu .user-menu-balance:not(.upline-negative):not(.upline-positive):not(.upline-zero){color:#111827!important}
.sms-palti-dialog,.sms-palti-content,.sms-tab-panel,.sms-palti-header{background:#fff!important;color:#111827!important}
.sms-palti-header{border-color:#e5e7eb!important}.sms-palti-header h2,.sms-palti-header p,.sms-tab-panel label{color:#111827!important}
.sms-palti-input-left,.sms-tab-panel input,.sms-tab-panel textarea,.sms-tab-panel select{background:#fff!important;color:#111827!important;border-color:#9ca3af!important}
.sms-parser-preview table,.palti-preview table,.file-scheme-preview table{background:#fff!important;color:#111827!important}
.sms-parser-preview td,.palti-preview td,.file-scheme-preview td{background:#fff!important;color:#111827!important;border-color:#e5e7eb!important}
.sms-parser-preview th,.palti-preview th,.file-scheme-preview th{background:#f1f5f9!important;color:#111827!important}
.user-entry-screen .upline-positive,.user-side-menu .upline-positive{color:#15803d!important}.user-entry-screen .upline-negative,.user-side-menu .upline-negative{color:#dc2626!important}.user-entry-screen .upline-zero,.user-side-menu .upline-zero{color:#475569!important}
.no-active-draw{background:#fff!important;color:#111827!important;border-color:#94a3b8!important}

/* Minimal V2-global conflict correction: do not force this V1 table to 600px. */
.user-entry-screen .entry-purchase-table{min-width:0!important;max-width:100%!important}

/* Requested subtle row separation only; no geometry change. */
.user-entry-screen .entry-purchase-table tbody td{border-bottom:1px solid rgba(0,0,0,.22)!important}

/* SMS modal cleanup: no empty black summary strip; compact blue purchase action. */
.sms-parser-summary[hidden]{display:none!important}
.sms-parser-summary{background:#fff!important;color:#111827!important;border:1px solid #e5e7eb!important;border-radius:8px!important}
.sms-parser-actions{margin-top:4px!important;align-items:center!important}
.sms-parser-purchase{background:#2563eb!important;color:#fff!important;border-color:#2563eb!important;box-shadow:0 2px 7px rgba(37,99,235,.24)!important}
.sms-parser-purchase:hover{background:#1d4ed8!important;border-color:#1d4ed8!important}


/* SMS paste-first keyboard control and compact preview totals. */
.sms-data-label-row{display:flex!important;align-items:center!important;justify-content:space-between!important;gap:10px!important;margin-bottom:6px!important;font-size:16px!important;font-weight:700!important;color:#111827!important}
.sms-keyboard-btn{width:36px!important;min-width:36px!important;max-width:36px!important;height:32px!important;min-height:32px!important;padding:0!important;border-radius:8px!important;background:#e2e8f0!important;color:#334155!important;border:1px solid #cbd5e1!important;font-size:19px!important;line-height:1!important;text-align:center!important;box-shadow:none!important}
.sms-keyboard-btn.is-active{background:#2563eb!important;color:#fff!important;border-color:#2563eb!important}
.sms-parser-preview th{vertical-align:middle!important;text-align:center!important}
.sms-parser-preview th .sms-head-main{display:block!important;font-size:14px!important;font-weight:900!important;line-height:1.05!important}
.sms-parser-preview th small{display:block!important;margin-top:2px!important;font-size:10px!important;font-weight:700!important;color:#475569!important;line-height:1.05!important}

/* SMS textarea: compact, stable height inside the SMS modal scroll area. */
#sms-entry-text{
  resize:vertical!important;
  min-height:112px!important;
  height:112px!important;
  max-height:150px!important;
  overflow:auto!important;
  touch-action:manipulation!important;
}

/* Keep SMS purchase controls clear of Android/iOS bottom navigation safe area. */
.sms-parser-actions{
  padding-bottom:max(14px, env(safe-area-inset-bottom))!important;
  margin-bottom:max(8px, env(safe-area-inset-bottom))!important;
}
.sms-parser-purchase{
  position:relative!important;
  bottom:6px!important;
}
@media(max-width:650px){
  .sms-parser-actions{
    padding-bottom:max(18px, env(safe-area-inset-bottom))!important;
    margin-bottom:max(10px, env(safe-area-inset-bottom))!important;
  }
  .sms-parser-purchase{bottom:8px!important}
}


/* SMS preview sticky header + refined purchase-button safe spacing. */
.sms-parser-preview{
  position:relative!important;
  max-height:360px!important;
  overflow-y:auto!important;
  overflow-x:auto!important;
  -webkit-overflow-scrolling:touch!important;
}
.sms-parser-preview thead th{
  position:sticky!important;
  top:0!important;
  z-index:6!important;
  background:#f1f5f9!important;
  box-shadow:0 1px 0 rgba(0,0,0,.16)!important;
}
.sms-parser-actions{
  padding-bottom:max(8px, env(safe-area-inset-bottom))!important;
  margin-bottom:max(4px, env(safe-area-inset-bottom))!important;
}
.sms-parser-purchase{
  bottom:2px!important;
}
@media(max-width:650px){
  .sms-parser-actions{
    padding-bottom:max(10px, env(safe-area-inset-bottom))!important;
    margin-bottom:max(5px, env(safe-area-inset-bottom))!important;
  }
  .sms-parser-purchase{bottom:3px!important}
}


/* Palti auto-preview: strong readable labels, no empty summary strip, SMS-style totals. */
.palti-panel-left .palti-label{color:#000!important;font-weight:900!important;font-size:15px!important}
.palti-panel-left .palti-label select,.palti-panel-left .palti-label textarea{color:#000!important;font-weight:700!important}
.palti-summary[hidden],.palti-summary{display:none!important}
.palti-preview{position:relative!important;max-height:360px!important;overflow-y:auto!important;overflow-x:auto!important;-webkit-overflow-scrolling:touch!important}
.palti-preview thead th{position:sticky!important;top:0!important;z-index:6!important;background:#f1f5f9!important;color:#111827!important;text-align:center!important;box-shadow:0 1px 0 rgba(0,0,0,.16)!important}
.palti-preview th .palti-head-main{display:block!important;font-size:14px!important;font-weight:900!important;line-height:1.05!important}
.palti-preview th small{display:block!important;margin-top:2px!important;font-size:10px!important;font-weight:700!important;color:#475569!important;line-height:1.05!important}
.palti-actions{margin-top:4px!important}


/* Palti numeric-keyboard helper: insert + without switching keyboard layouts. */
.palti-label-row{display:flex!important;align-items:center!important;justify-content:space-between!important;gap:10px!important;margin:0 0 6px!important}
.palti-label-text{color:#000!important;font-weight:900!important;font-size:15px!important}
.palti-plus-btn{width:38px!important;min-width:38px!important;max-width:38px!important;height:34px!important;min-height:34px!important;padding:0!important;border-radius:9px!important;background:#2563eb!important;color:#fff!important;border:1px solid #2563eb!important;font-size:22px!important;font-weight:900!important;line-height:1!important;box-shadow:0 2px 6px rgba(37,99,235,.22)!important}
.palti-plus-btn:active{transform:scale(.96)!important}


/* Custom Palti keypad: browser keyboard suppressed; + is part of keypad. */
.palti-keypad{display:grid!important;grid-template-columns:repeat(3,1fr)!important;gap:7px!important;margin:8px 0 10px!important;padding:8px!important;background:#f8fafc!important;border:1px solid #dbe3ec!important;border-radius:12px!important}
.palti-keypad button{height:44px!important;min-height:44px!important;padding:0!important;border-radius:10px!important;background:#fff!important;color:#111827!important;border:1px solid #cbd5e1!important;font-size:20px!important;font-weight:800!important;box-shadow:0 1px 3px rgba(15,23,42,.08)!important}
.palti-keypad button:active{background:#e2e8f0!important;transform:scale(.98)!important}
.palti-keypad .palti-key-plus{background:#2563eb!important;color:#fff!important;border-color:#2563eb!important;font-size:25px!important}
.palti-keypad .palti-key-back{background:#e2e8f0!important;color:#111827!important;font-size:21px!important}
.palti-plus-btn{display:none!important}

/* Green purchase success popup for SMS/Palti. */
.purchase-success-toast[hidden]{display:none!important}
.purchase-success-toast{position:fixed!important;top:max(14px,env(safe-area-inset-top))!important;left:50%!important;transform:translateX(-50%) translateY(-8px)!important;z-index:100500!important;min-width:min(320px,88vw)!important;max-width:90vw!important;padding:12px 16px!important;border-radius:12px!important;background:#16a34a!important;color:#fff!important;font-size:14px!important;font-weight:900!important;text-align:center!important;box-shadow:0 10px 28px rgba(22,163,74,.28)!important;opacity:0;transition:opacity .16s ease,transform .16s ease!important}
.purchase-success-toast.is-showing{opacity:1!important;transform:translateX(-50%) translateY(0)!important}


/* Palti keypad polish: centered bold glass/3D keys + separator key. */
.palti-keypad{
  grid-template-columns:repeat(3,minmax(0,1fr))!important;
  gap:9px!important;
  padding:10px!important;
  background:linear-gradient(180deg,rgba(248,250,252,.96),rgba(241,245,249,.96))!important;
  border:1px solid rgba(148,163,184,.35)!important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.95),0 8px 22px rgba(15,23,42,.08)!important;
}
.palti-keypad button{
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  text-align:center!important;
  height:48px!important;
  min-height:48px!important;
  padding:0!important;
  border-radius:13px!important;
  background:linear-gradient(180deg,rgba(255,255,255,.98),rgba(241,245,249,.92))!important;
  color:#0f172a!important;
  border:1px solid rgba(148,163,184,.45)!important;
  font-size:21px!important;
  font-weight:900!important;
  line-height:1!important;
  text-shadow:0 1px 0 #fff!important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,1),inset 0 -1px 0 rgba(148,163,184,.16),0 5px 10px rgba(15,23,42,.10)!important;
  backdrop-filter:blur(8px)!important;
  -webkit-backdrop-filter:blur(8px)!important;
}
.palti-keypad button:active{
  transform:translateY(1px) scale(.985)!important;
  box-shadow:inset 0 2px 4px rgba(15,23,42,.10),0 2px 5px rgba(15,23,42,.08)!important;
}
.palti-keypad .palti-key-plus{
  background:linear-gradient(180deg,#3b82f6,#2563eb)!important;
  color:#fff!important;
  border-color:#2563eb!important;
  text-shadow:none!important;
  font-size:25px!important;
}
.palti-keypad .palti-key-separator{
  font-size:26px!important;
  font-weight:900!important;
}
.palti-keypad .palti-key-back{
  background:linear-gradient(180deg,#f8fafc,#e2e8f0)!important;
  color:#111827!important;
  font-size:22px!important;
}
.palti-keypad .palti-key-back-wide{
  grid-column:1 / -1!important;
}


/* File Scheme cleanup: hidden summary must never render as a black strip. */
.file-scheme-summary[hidden]{display:none!important}
.file-scheme-summary{background:#fff!important;color:#111827!important;border:1px solid #e5e7eb!important}


/* Compact entry data columns with deliberate empty right-side column. */
.user-entry-screen .entry-purchase-table.compact-entry-columns{
  width:100%!important;
  table-layout:fixed!important;
}
.user-entry-screen .entry-purchase-table.compact-entry-columns .select-col{
  width:30px!important;
  min-width:30px!important;
  max-width:30px!important;
}
.user-entry-screen .entry-purchase-table.compact-entry-columns .entry-col-nm,
.user-entry-screen .entry-purchase-table.compact-entry-columns .entry-col-first,
.user-entry-screen .entry-purchase-table.compact-entry-columns .entry-col-second{
  width:16%!important;
  min-width:0!important;
  max-width:none!important;
}
.user-entry-screen .entry-purchase-table.compact-entry-columns .entry-col-empty{
  width:auto!important;
  background:#fff!important;
  border-left:1px solid rgba(0,0,0,.10)!important;
}
.user-entry-screen .entry-purchase-table.compact-entry-columns tbody .entry-col-empty{
  color:transparent!important;
}

/* Rebalance compact entry columns: wider select + slightly wider NM/1st/2nd, keep right-side empty space. */
.user-entry-screen .entry-purchase-table.compact-entry-columns .select-col{
  width:42px!important;
  min-width:42px!important;
  max-width:42px!important;
}
.user-entry-screen .entry-purchase-table.compact-entry-columns .entry-col-nm,
.user-entry-screen .entry-purchase-table.compact-entry-columns .entry-col-first,
.user-entry-screen .entry-purchase-table.compact-entry-columns .entry-col-second{
  width:20%!important;
  min-width:0!important;
  max-width:none!important;
}

/* User header readability: bold identity, draw title/countdown, black search text. */
.user-entry-screen #user-name-display,
.user-entry-screen #user-username-display{
  font-weight:900!important;
  color:#111827!important;
}
.user-entry-screen #active-draw-display{
  font-weight:900!important;
  color:#111827!important;
}
.user-entry-screen #draw-countdown{
  font-weight:900!important;
}
.user-entry-screen #entry-search{
  color:#000!important;
  font-weight:700!important;
}
.user-entry-screen #entry-search::placeholder{
  color:#000!important;
  opacity:1!important;
  font-weight:700!important;
}

/* User header emphasis: roughly double-size key values while preserving mobile fit. */
.user-entry-screen #user-name-display,
.user-entry-screen #user-username-display{
  font-size:clamp(20px,5vw,26px)!important;
  line-height:1.08!important;
  font-weight:900!important;
}
.user-entry-screen #active-draw-display{
  font-size:clamp(20px,4.8vw,26px)!important;
  line-height:1.05!important;
  font-weight:900!important;
}
.user-entry-screen #draw-countdown{
  font-size:clamp(20px,4.8vw,26px)!important;
  line-height:1!important;
  font-weight:900!important;
}


/* Balanced user header sizing: target ~20px, not oversized. */
.user-entry-screen #user-name-display,
.user-entry-screen #user-username-display{
  font-size:20px!important;
  line-height:1.1!important;
  font-weight:900!important;
  color:#111827!important;
}
.user-entry-screen #active-draw-display{
  font-size:20px!important;
  line-height:1.1!important;
  font-weight:900!important;
  color:#111827!important;
}
.user-entry-screen #draw-countdown{
  font-size:20px!important;
  line-height:1!important;
  font-weight:900!important;
}

/* Final balanced header sizing: ~1.5x original. */
.user-entry-screen #user-name-display,
.user-entry-screen #user-username-display{
  font-size:15px!important;
  line-height:1.1!important;
  font-weight:900!important;
  color:#fff!important;
}
.user-entry-screen #active-draw-display{
  font-size:15px!important;
  line-height:1.1!important;
  font-weight:900!important;
  color:#111827!important;
}
.user-entry-screen #draw-countdown{
  font-size:15px!important;
  line-height:1!important;
  font-weight:900!important;
}

/* Active/selected draw is green on the closed select; dropdown choices remain black. */
.user-entry-screen #active-draw-display{
  color:#15803d!important;
  font-weight:900!important;
}
.user-entry-screen #active-draw-display option{
  color:#111827!important;
  background:#fff!important;
  font-weight:700!important;
}

/* Saved Sheet button + modal. */
.user-entry-screen .purchase-toolbar-left{display:flex!important;align-items:center!important;gap:8px!important}
.user-entry-screen .save-sheet-btn{min-width:72px!important;height:38px!important;padding:0 14px!important;border:1px solid #7c3aed!important;border-radius:9px!important;background:linear-gradient(135deg,#2563eb,#9333ea)!important;color:#fff!important;font-size:13px!important;font-weight:900!important;box-shadow:0 3px 8px rgba(79,70,229,.24)!important}
.save-sheet-modal[hidden]{display:none!important}.save-sheet-modal{position:fixed!important;inset:0!important;z-index:100300!important;display:flex!important;align-items:center!important;justify-content:center!important;padding:18px!important}.save-sheet-backdrop{position:absolute!important;inset:0!important;background:rgba(15,23,42,.58)!important;backdrop-filter:blur(3px)!important;-webkit-backdrop-filter:blur(3px)!important}.save-sheet-dialog{position:relative!important;width:min(440px,94vw)!important;border-radius:18px!important;overflow:hidden!important;background:#17233f!important;color:#fff!important;box-shadow:0 20px 60px rgba(15,23,42,.42)!important;border:1px solid rgba(255,255,255,.18)!important}.save-sheet-header{display:flex!important;align-items:center!important;justify-content:space-between!important;padding:18px 20px!important;border-bottom:1px solid rgba(255,255,255,.38)!important}.save-sheet-header h2{margin:0!important;font-size:22px!important;color:#fff!important;font-weight:900!important}.save-sheet-close{width:42px!important;height:42px!important;border:0!important;border-radius:10px!important;background:rgba(255,255,255,.10)!important;color:#fff!important;font-size:31px!important;font-weight:900!important;line-height:1!important}.save-sheet-body{padding:18px 20px 20px!important}.save-sheet-name-label{display:block!important;color:#fff!important;font-size:15px!important;font-weight:900!important}.save-sheet-name-label input{display:block!important;width:100%!important;height:50px!important;margin-top:8px!important;padding:0 12px!important;border:2px solid rgba(255,255,255,.55)!important;border-radius:10px!important;background:#fff!important;color:#111827!important;font-size:17px!important;font-weight:800!important;box-sizing:border-box!important}.save-sheet-summary{display:grid!important;grid-template-columns:repeat(3,1fr)!important;gap:7px!important;margin-top:13px!important}.save-sheet-summary span{padding:8px 6px!important;border-radius:9px!important;background:rgba(255,255,255,.08)!important;text-align:center!important;font-size:11px!important;color:#cbd5e1!important}.save-sheet-summary b{display:block!important;margin-top:2px!important;color:#fff!important;font-size:15px!important}.save-sheet-actions{display:grid!important;grid-template-columns:1fr 1.25fr!important;gap:12px!important;margin-top:16px!important;padding-top:16px!important;border-top:1px solid rgba(255,255,255,.35)!important}.save-sheet-actions button{height:48px!important;border:0!important;border-radius:10px!important;color:#fff!important;font-size:15px!important;font-weight:900!important}.save-sheet-pdf-btn{background:linear-gradient(135deg,#6366f1,#a855f7)!important}.save-sheet-confirm-btn{background:linear-gradient(135deg,#2563eb,#9333ea)!important}.save-sheet-error{margin-top:10px!important;padding:9px 10px!important;border-radius:8px!important;background:#b91c1c!important;color:#fff!important;font-weight:800!important;font-size:12px!important}
@media(max-width:420px){.user-entry-screen .purchase-toolbar-left{gap:5px!important}.user-entry-screen .save-sheet-btn{min-width:62px!important;padding:0 10px!important}.save-sheet-dialog{width:94vw!important}.save-sheet-summary{gap:4px!important}}

/* Save Sheet modal stays fully above mobile keyboard. */
.save-sheet-modal{
  top:var(--save-top,0px)!important;
  bottom:auto!important;
  height:var(--save-vh,100dvh)!important;
  min-height:0!important;
  align-items:center!important;
  overflow:auto!important;
  padding:10px 14px!important;
  box-sizing:border-box!important;
}
.save-sheet-dialog{
  max-height:calc(var(--save-vh,100dvh) - 20px)!important;
  overflow:auto!important;
  overscroll-behavior:contain!important;
}
.save-sheet-modal.keyboard-open{
  align-items:flex-start!important;
  padding-top:6px!important;
  padding-bottom:6px!important;
}
.save-sheet-modal.keyboard-open .save-sheet-dialog{
  width:min(440px,96vw)!important;
  max-height:calc(var(--save-vh,100dvh) - 12px)!important;
}
.save-sheet-modal.keyboard-open .save-sheet-header{
  padding:12px 16px!important;
}
.save-sheet-modal.keyboard-open .save-sheet-header h2{
  font-size:18px!important;
}
.save-sheet-modal.keyboard-open .save-sheet-close{
  width:36px!important;
  height:36px!important;
  font-size:26px!important;
}
.save-sheet-modal.keyboard-open .save-sheet-body{
  padding:12px 16px 14px!important;
}
.save-sheet-modal.keyboard-open .save-sheet-name-label input{
  height:44px!important;
  margin-top:5px!important;
}
.save-sheet-modal.keyboard-open .save-sheet-summary{
  margin-top:8px!important;
}
.save-sheet-modal.keyboard-open .save-sheet-summary span{
  padding:5px 4px!important;
}
.save-sheet-modal.keyboard-open .save-sheet-actions{
  margin-top:9px!important;
  padding-top:9px!important;
}
.save-sheet-modal.keyboard-open .save-sheet-actions button{
  height:42px!important;
}

/* Save Sheet keyboard position: keep dialog bottom just above keyboard with a small gap. */
.save-sheet-modal.keyboard-open{
  display:flex!important;
  align-items:flex-end!important;
  justify-content:center!important;
  padding-top:6px!important;
  padding-left:14px!important;
  padding-right:14px!important;
  padding-bottom:8px!important;
  overflow:hidden!important;
}
.save-sheet-modal.keyboard-open .save-sheet-dialog{
  margin:0!important;
  max-height:calc(var(--save-vh,100dvh) - 14px)!important;
  overflow:auto!important;
  transform:none!important;
}

/* All Total live summary in right-side header. */
.user-entry-screen .entry-purchase-table.compact-entry-columns .entry-all-total{
  color:#111827!important;
  text-align:center!important;
  vertical-align:middle!important;
  padding:4px 5px!important;
  background:#f8fafc!important;
}
.user-entry-screen .entry-all-total .all-total-title{
  display:block!important;
  font-size:13px!important;
  font-weight:900!important;
  line-height:1.05!important;
}
.user-entry-screen .entry-all-total small{
  display:flex!important;
  flex-direction:column!important;
  gap:1px!important;
  margin-top:3px!important;
  font-size:9px!important;
  line-height:1.05!important;
  color:#475569!important;
}
.user-entry-screen .entry-all-total small span{white-space:nowrap!important}
.user-entry-screen .entry-all-total b{
  color:#111827!important;
  font-size:10px!important;
  font-weight:900!important;
}


/* All Total is one cumulative saved-sheet grand total for the selected draw. */
.user-entry-screen .entry-all-total #entry-all-total-value{
  display:block!important;
  margin-top:5px!important;
  color:#111827!important;
  font-size:15px!important;
  line-height:1!important;
  font-weight:900!important;
  white-space:nowrap!important;
}

/* ISOLATED V2 USER DRAWER — intentionally independent from legacy user-menu cascade */
.v2-user-drawer{
  position:fixed!important;inset:0 auto 0 0!important;z-index:10050!important;
  width:52vw!important;max-width:230px!important;min-width:180px!important;
  height:100dvh!important;box-sizing:border-box!important;
  padding:10px 9px 16px!important;background:#fff!important;color:#111827!important;
  display:flex!important;flex-direction:column!important;align-items:stretch!important;
  overflow-y:auto!important;transform:translateX(-104%)!important;transition:transform .2s ease!important;
  box-shadow:10px 0 28px rgba(15,23,42,.22)!important;
}
.v2-user-drawer.is-open{transform:translateX(0)!important}
.v2-user-drawer .v2-drawer-close{
  position:absolute!important;top:9px!important;left:9px!important;z-index:5!important;
  width:32px!important;height:31px!important;padding:0!important;border:1px solid #d1d5db!important;
  border-radius:8px!important;background:linear-gradient(145deg,#fff,#e2e8f0)!important;
  display:flex!important;flex-direction:column!important;align-items:center!important;justify-content:center!important;gap:3px!important;
  box-shadow:0 4px 10px rgba(15,23,42,.14)!important;
}
.v2-user-drawer .v2-drawer-close span{display:block!important;width:17px!important;height:2px!important;border-radius:99px!important;background:#334155!important}
.v2-user-drawer .v2-user-meta{
  margin:0 0 4px!important;padding:1px 2px 2px 40px!important;min-height:34px!important;
  display:flex!important;flex-direction:column!important;align-items:flex-end!important;justify-content:flex-start!important;gap:2px!important;
  font-size:9px!important;line-height:1.15!important;color:#475569!important;white-space:nowrap!important;visibility:visible!important;opacity:1!important;
}
.v2-user-drawer .v2-user-meta strong{font-size:11px!important;line-height:1!important;color:#111827!important;font-weight:900!important}
.v2-user-drawer .v2-user-profile{display:block!important;margin:0!important;padding:0!important;background:#fff!important}
.v2-user-drawer .v2-user-logo{
  width:66px!important;height:66px!important;margin:2px auto 8px!important;border:4px solid #f8fafc!important;border-radius:50%!important;
  display:grid!important;place-items:center!important;background:radial-gradient(circle at 35% 30%,#172554,#020617 70%)!important;
  color:#facc15!important;font-size:25px!important;font-weight:900!important;letter-spacing:-2px!important;box-shadow:0 5px 13px rgba(0,0,0,.18)!important;
}
.v2-user-drawer .v2-user-wallet{
  display:grid!important;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr)!important;gap:4px!important;align-items:center!important;margin:0!important;padding:0!important;
}
.v2-user-drawer .v2-user-wallet:not(.has-return){grid-template-columns:1fr 1fr!important}
.v2-user-drawer .user-menu-wallet-balance{text-align:left!important}.v2-user-drawer .user-menu-wallet-upline{text-align:right!important}
.v2-user-drawer .user-menu-balance-label{font-size:7.5px!important;line-height:1.05!important;color:#64748b!important;white-space:normal!important;font-weight:800!important}
.v2-user-drawer .user-menu-balance{font-size:15px!important;line-height:1!important;margin-top:3px!important;font-weight:700!important}
.v2-user-drawer .wallet-return-btn{min-height:30px!important;padding:5px 8px!important;border-radius:8px!important;font-size:9px!important;line-height:1!important}
.v2-user-drawer .v2-user-nav{display:grid!important;gap:7px!important;padding:10px 0 0!important;margin:0!important;justify-items:center!important;background:#fff!important}
.v2-user-drawer .v2-user-nav .user-menu-btn{
  width:84%!important;min-height:32px!important;padding:7px 8px!important;margin:0!important;border:0!important;
  border-radius:12px 5px 12px 5px!important;display:flex!important;align-items:center!important;justify-content:center!important;
  text-align:center!important;color:#fff!important;font-size:11px!important;font-weight:900!important;line-height:1!important;
  box-shadow:0 4px 0 rgba(15,23,42,.18),0 7px 11px rgba(15,23,42,.12),inset 0 1px 0 rgba(255,255,255,.25)!important;
}
.v2-user-drawer .v2-user-nav .user-menu-btn>span{width:100%!important;text-align:center!important;display:block!important;color:#fff!important}
.v2-user-drawer .v2-user-nav .user-menu-btn::before,.v2-user-drawer .v2-user-nav .user-menu-btn::after{display:none!important}
.v2-user-drawer .user-menu-home{background:linear-gradient(135deg,#06b6d4,#2563eb)!important}
.v2-user-drawer .user-menu-reports{background:linear-gradient(135deg,#7c3aed,#ec4899)!important}
.v2-user-drawer .user-menu-book{background:linear-gradient(135deg,#10b981,#059669)!important}
.v2-user-drawer .user-menu-search{background:linear-gradient(135deg,#f59e0b,#f97316)!important}
.v2-user-drawer .user-menu-logout{background:linear-gradient(135deg,#fb7185,#e11d48)!important}
@media(max-width:420px){
 .v2-user-drawer{width:52vw!important;max-width:none!important;min-width:176px!important;padding:9px 7px 14px!important}
 .v2-user-drawer .v2-user-meta{font-size:8px!important;padding-left:38px!important}.v2-user-drawer .v2-user-meta strong{font-size:10px!important}
 .v2-user-drawer .v2-user-logo{width:62px!important;height:62px!important;font-size:23px!important;margin-bottom:7px!important}
 .v2-user-drawer .user-menu-balance{font-size:14px!important}.v2-user-drawer .wallet-return-btn{font-size:8.5px!important;padding:5px 7px!important}
 .v2-user-drawer .v2-user-nav{gap:6px!important;padding-top:8px!important}.v2-user-drawer .v2-user-nav .user-menu-btn{width:86%!important;min-height:30px!important;font-size:10.5px!important;padding:6px 7px!important}
}

/* Palti keypad bottom action row: half-width 3D Cut + Next Line buttons. */
.palti-keypad .palti-key-bottom-row{
  grid-column:1 / -1!important;
  display:grid!important;
  grid-template-columns:1fr 1fr!important;
  gap:9px!important;
}
.palti-keypad .palti-key-bottom-row button{
  width:100%!important;
  min-width:0!important;
  height:48px!important;
  min-height:48px!important;
  border-radius:13px!important;
  color:#fff!important;
  border:1px solid rgba(255,255,255,.28)!important;
  font-size:24px!important;
  font-weight:900!important;
  text-shadow:0 1px 1px rgba(0,0,0,.18)!important;
  box-shadow:0 5px 0 rgba(15,23,42,.20),0 9px 14px rgba(15,23,42,.14),inset 0 1px 0 rgba(255,255,255,.38)!important;
}
.palti-keypad .palti-key-bottom-row .palti-key-back{
  background:linear-gradient(145deg,#fb7185,#f43f5e 58%,#be123c)!important;
  border-color:#e11d48!important;
}
.palti-keypad .palti-key-bottom-row .palti-key-enter{
  background:linear-gradient(145deg,#22d3ee,#2563eb 58%,#4f46e5)!important;
  border-color:#2563eb!important;
}
.palti-keypad .palti-key-bottom-row button:active{
  transform:translateY(4px)!important;
  box-shadow:0 1px 0 rgba(15,23,42,.22),0 4px 8px rgba(15,23,42,.12),inset 0 1px 0 rgba(255,255,255,.28)!important;
}
.palti-keypad .palti-key-back-wide{grid-column:auto!important}

/* SMS V12 — SINGLE CANONICAL DUAL-LAYER EDITOR. */
.sms-dual-editor{
  position:relative!important;
  width:100%!important;
  height:310px!important;
  min-height:310px!important;
  max-height:310px!important;
  overflow:hidden!important;
  border:1px solid #94a3b8!important;
  border-radius:10px!important;
  box-sizing:border-box!important;
  background:#fff!important;
}
.sms-dual-editor .sms-highlight-viewport{
  position:absolute!important;
  inset:0!important;
  z-index:1!important;
  overflow:hidden!important;
  pointer-events:none!important;
  border-radius:inherit!important;
  background:#fff!important;
}
.sms-dual-editor .sms-highlight-layer{
  position:absolute!important;
  left:0!important;
  top:0!important;
  z-index:1!important;
  display:block!important;
  visibility:visible!important;
  opacity:1!important;
  margin:0!important;
  box-sizing:border-box!important;
  min-height:100%!important;
  height:auto!important;
  max-height:none!important;
  overflow:visible!important;
  white-space:pre-wrap!important;
  overflow-wrap:break-word!important;
  word-break:break-word!important;
  color:#000!important;
  -webkit-text-fill-color:#000!important;
  font-weight:900!important;
  background:#fff!important;
  pointer-events:none!important;
  transform-origin:0 0!important;
}
.sms-dual-editor .sms-highlight-layer .sms-highlight-error{
  display:inline!important;
  background:#ffeb3b!important;
  color:#b71c1c!important;
  -webkit-text-fill-color:#b71c1c!important;
  font-weight:900!important;
  border-radius:3px!important;
  padding:1px 3px!important;
  margin:-1px -3px!important;
  outline:2px solid #ef4444!important;
  box-decoration-break:clone!important;
  -webkit-box-decoration-break:clone!important;
}
.sms-dual-editor #sms-entry-text{
  position:absolute!important;
  inset:0!important;
  z-index:2!important;
  display:block!important;
  width:100%!important;
  height:100%!important;
  min-height:0!important;
  max-height:none!important;
  box-sizing:border-box!important;
  margin:0!important;
  padding:10px 12px 18px!important;
  border:0!important;
  outline:0!important;
  border-radius:inherit!important;
  resize:none!important;
  overflow-y:scroll!important;
  overflow-x:hidden!important;
  -webkit-overflow-scrolling:touch!important;
  touch-action:pan-y pinch-zoom!important;
  overscroll-behavior-y:contain!important;
  scrollbar-gutter:auto!important;
  background:#fff!important;
  color:#000!important;
  -webkit-text-fill-color:#000!important;
  font-weight:900!important;
  caret-color:#111827!important;
}
.sms-dual-editor.has-error{
  border-color:#ef4444!important;
  box-shadow:0 0 0 2px rgba(239,68,68,.12)!important;
}
.sms-dual-editor.has-error #sms-entry-text{
  background:transparent!important;
  color:transparent!important;
  -webkit-text-fill-color:transparent!important;
  text-shadow:none!important;
  caret-color:#111827!important;
}
.sms-dual-editor.has-error #sms-entry-text::selection{
  background:rgba(59,130,246,.18)!important;
  color:transparent!important;
  -webkit-text-fill-color:transparent!important;
}
.sms-parser-error{
  background:#fee2e2!important;
  color:#991b1b!important;
  border:1px solid #fca5a5!important;
  border-radius:8px!important;
  padding:9px 10px!important;
  font-weight:800!important;
  line-height:1.45!important;
}
.sms-parser-error b,.sms-error-token{
  background:#ffeb3b!important;
  color:#991b1b!important;
  border:1px solid #ef4444!important;
  border-radius:4px!important;
  padding:1px 5px!important;
  font-weight:900!important;
}
.sms-parser-preview .sms-error-preview-row td{
  background:#fee2e2!important;
  color:#991b1b!important;
  border-color:#fca5a5!important;
  font-weight:900!important;
}
@media(max-width:650px){
  .sms-dual-editor{height:310px!important;min-height:310px!important;max-height:310px!important}
}

/* SMS box readability: larger bold text, mirrored exactly for highlight alignment. */
.sms-dual-editor #sms-entry-text,
.sms-dual-editor .sms-highlight-layer{
  font-size:15px!important;
  line-height:1.45!important;
  font-weight:900!important;
}

/* SMS box readability: larger bold text, mirrored exactly for highlight alignment. */
.sms-dual-editor #sms-entry-text,
.sms-dual-editor .sms-highlight-layer{
  font-size:15px!important;
  line-height:1.45!important;
  font-weight:900!important;
}

/* SMS box readability: 1.5x text scale from previous 15px. */
.sms-dual-editor #sms-entry-text,
.sms-dual-editor .sms-highlight-layer{
  font-size:22.5px!important;
  line-height:1.45!important;
  font-weight:900!important;
}

/* User drawer buttons matched to Admin Draw Time Super Sunday / Daily proportions. */
.v2-user-drawer .v2-user-nav{
  gap:10px!important;
  padding-top:12px!important;
}
.v2-user-drawer .v2-user-nav .user-menu-btn{
  width:88%!important;
  min-height:44px!important;
  padding:11px 10px!important;
  margin:1px 0!important;
  border:0!important;
  border-radius:12px!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  text-align:center!important;
  font-size:14px!important;
  font-weight:900!important;
  line-height:1.05!important;
  letter-spacing:0!important;
  color:#fff!important;
  box-shadow:0 5px 0 rgba(15,23,42,.15),0 9px 16px rgba(15,23,42,.12),inset 0 1px 0 rgba(255,255,255,.22)!important;
  transform:none!important;
}
.v2-user-drawer .v2-user-nav .user-menu-btn>span{
  width:100%!important;
  display:block!important;
  text-align:center!important;
  color:#fff!important;
  font:inherit!important;
}
.v2-user-drawer .v2-user-nav .user-menu-btn:active{
  transform:translateY(3px)!important;
  box-shadow:0 2px 0 rgba(15,23,42,.15),0 5px 9px rgba(15,23,42,.10),inset 0 1px 0 rgba(255,255,255,.18)!important;
}
@media(max-width:420px){
  .v2-user-drawer .v2-user-nav{gap:9px!important;padding-top:11px!important}
  .v2-user-drawer .v2-user-nav .user-menu-btn{width:90%!important;min-height:42px!important;padding:10px 8px!important;font-size:13px!important;margin:1px 0!important}
}

/* Frozen quick navigation inside the blank All Total column. */
.user-entry-screen .entry-table-shell{
  position:relative!important;
}
.user-entry-screen .entry-quick-actions{
  position:sticky!important;
  top:52px!important;
  z-index:7!important;
  width:calc(40% - 42px)!important;
  min-width:96px!important;
  height:0!important;
  margin-left:auto!important;
  margin-right:0!important;
  display:flex!important;
  flex-direction:column!important;
  align-items:center!important;
  gap:9px!important;
  padding:7px 6px 0!important;
  pointer-events:none!important;
  overflow:visible!important;
}
.user-entry-screen .entry-quick-btn{
  pointer-events:auto!important;
  width:94%!important;
  min-height:38px!important;
  padding:8px 5px!important;
  margin:0!important;
  border:0!important;
  border-radius:12px!important;
  color:#fff!important;
  text-align:center!important;
  white-space:normal!important;
  font-size:11px!important;
  line-height:1.05!important;
  font-weight:900!important;
  text-shadow:0 1px 1px rgba(0,0,0,.18)!important;
  box-shadow:0 4px 0 rgba(15,23,42,.18),0 7px 12px rgba(15,23,42,.13),inset 0 1px 0 rgba(255,255,255,.28)!important;
}
.user-entry-screen .entry-quick-reports{
  background:linear-gradient(145deg,#a855f7,#7c3aed 68%,#6d28d9)!important;
}
.user-entry-screen .entry-quick-book{
  background:linear-gradient(145deg,#22c55e,#059669 68%,#047857)!important;
}
.user-entry-screen .entry-quick-payment{
  background:linear-gradient(145deg,#fbbf24,#f97316 68%,#ea580c)!important;
}
.user-entry-screen .entry-quick-btn:active{
  transform:translateY(3px)!important;
  box-shadow:0 1px 0 rgba(15,23,42,.18),0 4px 7px rgba(15,23,42,.10),inset 0 1px 0 rgba(255,255,255,.22)!important;
}
@media(max-width:420px){
  .user-entry-screen .entry-quick-actions{top:50px!important;width:calc(40% - 42px)!important;min-width:90px!important;gap:7px!important;padding:6px 4px 0!important}
  .user-entry-screen .entry-quick-btn{width:96%!important;min-height:34px!important;padding:7px 3px!important;font-size:9.5px!important;border-radius:10px!important}
}

/* Quick buttons: exactly one compact button centered inside each existing table row. */
.user-entry-screen .entry-quick-actions{
  top:44px!important;
  display:grid!important;
  grid-template-columns:1fr!important;
  grid-auto-rows:47px!important;
  gap:0!important;
  padding:0 5px!important;
  align-items:center!important;
}
.user-entry-screen .entry-quick-btn{
  width:94%!important;
  height:32px!important;
  min-height:32px!important;
  max-height:32px!important;
  align-self:center!important;
  justify-self:center!important;
  margin:0!important;
  padding:0 4px!important;
  border-radius:10px!important;
  font-size:13px!important;
  line-height:1!important;
  font-weight:950!important;
  white-space:nowrap!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
}
/* When the mobile keyboard compacts rows to 40px, keep the same one-button-per-row rule. */
.mobile-keyboard-open .user-entry-screen .entry-quick-actions{
  top:48px!important;
  grid-auto-rows:40px!important;
}
.mobile-keyboard-open .user-entry-screen .entry-quick-btn{
  height:29px!important;
  min-height:29px!important;
  max-height:29px!important;
  font-size:12px!important;
}
@media(max-width:420px){
  .user-entry-screen .entry-quick-actions{
    top:44px!important;
    grid-auto-rows:47px!important;
    gap:0!important;
    padding:0 4px!important;
  }
  .user-entry-screen .entry-quick-btn{
    width:94%!important;
    height:31px!important;
    min-height:31px!important;
    max-height:31px!important;
    padding:0 2px!important;
    font-size:12.5px!important;
    font-weight:950!important;
    border-radius:9px!important;
  }
  .mobile-keyboard-open .user-entry-screen .entry-quick-actions{
    top:48px!important;
    grid-auto-rows:40px!important;
  }
  .mobile-keyboard-open .user-entry-screen .entry-quick-btn{
    height:28px!important;
    min-height:28px!important;
    max-height:28px!important;
    font-size:11.5px!important;
  }
}

/* Quick buttons tighter in rows + outlined text; toolbar Delete matches Save and Save shifts right. */
.user-entry-screen .entry-quick-btn{
  width:88%!important;
  height:28px!important;
  min-height:28px!important;
  max-height:28px!important;
  padding:0 3px!important;
  border-radius:8px!important;
  font-size:12.5px!important;
  font-weight:950!important;
  text-shadow:
    -1px -1px 0 rgba(15,23,42,.34),
     1px -1px 0 rgba(15,23,42,.34),
    -1px  1px 0 rgba(15,23,42,.34),
     1px  1px 0 rgba(15,23,42,.34),
     0 1px 2px rgba(0,0,0,.24)!important;
}
.user-entry-screen .purchase-toolbar-left{
  display:grid!important;
  grid-template-columns:72px 72px!important;
  align-items:center!important;
  column-gap:14px!important;
}
.user-entry-screen .delete-selected-btn,
.user-entry-screen .save-sheet-btn{
  width:72px!important;
  min-width:72px!important;
  max-width:72px!important;
  height:38px!important;
  min-height:38px!important;
  max-height:38px!important;
  padding:0 8px!important;
  border-radius:9px!important;
  font-size:12px!important;
  font-weight:900!important;
}
.user-entry-screen .save-sheet-btn{
  transform:translateX(8px)!important;
}
@media(max-width:420px){
  .user-entry-screen .entry-quick-btn{
    width:86%!important;
    height:26px!important;
    min-height:26px!important;
    max-height:26px!important;
    font-size:11.5px!important;
    border-radius:7px!important;
  }
  .user-entry-screen .purchase-toolbar-left{
    grid-template-columns:66px 66px!important;
    column-gap:12px!important;
  }
  .user-entry-screen .delete-selected-btn,
  .user-entry-screen .save-sheet-btn{
    width:66px!important;
    min-width:66px!important;
    max-width:66px!important;
    height:34px!important;
    min-height:34px!important;
    max-height:34px!important;
    padding:0 6px!important;
    font-size:11px!important;
  }
  .user-entry-screen .save-sheet-btn{transform:translateX(6px)!important}
}
.mobile-keyboard-open .user-entry-screen .entry-quick-btn{
  height:25px!important;
  min-height:25px!important;
  max-height:25px!important;
  font-size:11px!important;
}

/* User menu text outline + persistent selectable panel themes. */
.v2-user-drawer .v2-user-nav .user-menu-btn>span{
  font-weight:950!important;
  text-shadow:
    -1px -1px 0 rgba(15,23,42,.38),
     1px -1px 0 rgba(15,23,42,.38),
    -1px  1px 0 rgba(15,23,42,.38),
     1px  1px 0 rgba(15,23,42,.38),
     0 2px 3px rgba(0,0,0,.24)!important;
}
.v2-user-drawer .user-menu-theme{
  background:linear-gradient(145deg,#64748b,#334155 68%,#1e293b)!important;
}
.v2-user-drawer .user-theme-picker{
  width:90%!important;
  margin:10px auto 2px!important;
  padding:10px!important;
  border:1px solid #cbd5e1!important;
  border-radius:12px!important;
  background:#f8fafc!important;
  box-shadow:0 6px 18px rgba(15,23,42,.14)!important;
}
.v2-user-drawer .user-theme-picker[hidden]{display:none!important}
.v2-user-drawer .user-theme-picker>strong{display:block!important;margin-bottom:8px!important;text-align:center!important;color:#111827!important;font-size:11px!important;font-weight:950!important}
.v2-user-drawer .user-theme-swatches{display:grid!important;grid-template-columns:1fr 1fr!important;gap:7px!important}
.v2-user-drawer .user-theme-swatches button{
  min-height:31px!important;padding:4px 5px!important;border:2px solid transparent!important;border-radius:8px!important;color:#fff!important;font-size:10px!important;font-weight:950!important;box-shadow:0 3px 0 rgba(15,23,42,.15)!important
}
.v2-user-drawer .user-theme-swatches button[data-user-theme="default"]{background:linear-gradient(135deg,#4f46e5,#7c3aed)!important}
.v2-user-drawer .user-theme-swatches button[data-user-theme="blue"]{background:linear-gradient(135deg,#0284c7,#2563eb)!important}
.v2-user-drawer .user-theme-swatches button[data-user-theme="green"]{background:linear-gradient(135deg,#059669,#15803d)!important}
.v2-user-drawer .user-theme-swatches button[data-user-theme="red"]{background:linear-gradient(135deg,#dc2626,#be123c)!important}
.v2-user-drawer .user-theme-swatches button[data-user-theme="brown"]{background:linear-gradient(135deg,#92400e,#78350f)!important}
.v2-user-drawer .user-theme-swatches button[data-user-theme="purple"]{background:linear-gradient(135deg,#9333ea,#6d28d9)!important}
.v2-user-drawer .user-theme-swatches button.is-active{border-color:#facc15!important;box-shadow:0 0 0 2px #111827,0 4px 0 rgba(15,23,42,.15)!important}

/* Theme affects the two main user-entry color panels without touching business logic. */
.user-theme-default .user-entry-screen .draw-selector-card{background:linear-gradient(90deg,#4f46e5,#7c3aed)!important}
.user-theme-default .user-entry-screen .purchase-toolbar{background:#0ea5e9!important}
.user-theme-blue .user-entry-screen .draw-selector-card{background:linear-gradient(90deg,#075985,#2563eb)!important}
.user-theme-blue .user-entry-screen .purchase-toolbar{background:linear-gradient(90deg,#0284c7,#2563eb)!important}
.user-theme-green .user-entry-screen .draw-selector-card{background:linear-gradient(90deg,#065f46,#15803d)!important}
.user-theme-green .user-entry-screen .purchase-toolbar{background:linear-gradient(90deg,#059669,#16a34a)!important}
.user-theme-red .user-entry-screen .draw-selector-card{background:linear-gradient(90deg,#991b1b,#e11d48)!important}
.user-theme-red .user-entry-screen .purchase-toolbar{background:linear-gradient(90deg,#dc2626,#f43f5e)!important}
.user-theme-brown .user-entry-screen .draw-selector-card{background:linear-gradient(90deg,#78350f,#a16207)!important}
.user-theme-brown .user-entry-screen .purchase-toolbar{background:linear-gradient(90deg,#92400e,#d97706)!important}
.user-theme-purple .user-entry-screen .draw-selector-card{background:linear-gradient(90deg,#581c87,#9333ea)!important}
.user-theme-purple .user-entry-screen .purchase-toolbar{background:linear-gradient(90deg,#7e22ce,#c026d3)!important}

/* More colorful Theme button + expanded light/pastel theme palette. */
.v2-user-drawer .user-menu-theme{
  background:linear-gradient(145deg,#fbbf24,#f97316 68%,#ea580c)!important;
}
.v2-user-drawer .user-theme-swatches button[data-user-theme="sky"]{background:linear-gradient(135deg,#7dd3fc,#38bdf8)!important;color:#0c4a6e!important}
.v2-user-drawer .user-theme-swatches button[data-user-theme="mint"]{background:linear-gradient(135deg,#a7f3d0,#6ee7b7)!important;color:#065f46!important}
.v2-user-drawer .user-theme-swatches button[data-user-theme="peach"]{background:linear-gradient(135deg,#fed7aa,#fdba74)!important;color:#9a3412!important}
.v2-user-drawer .user-theme-swatches button[data-user-theme="rose"]{background:linear-gradient(135deg,#fecdd3,#fda4af)!important;color:#9f1239!important}
.v2-user-drawer .user-theme-swatches button[data-user-theme="lavender"]{background:linear-gradient(135deg,#ddd6fe,#c4b5fd)!important;color:#5b21b6!important}
.v2-user-drawer .user-theme-swatches button[data-user-theme="aqua"]{background:linear-gradient(135deg,#a5f3fc,#67e8f9)!important;color:#155e75!important}
.v2-user-drawer .user-theme-swatches button[data-user-theme="lemon"]{background:linear-gradient(135deg,#fef9c3,#fde68a)!important;color:#854d0e!important}
.v2-user-drawer .user-theme-swatches button[data-user-theme="sand"]{background:linear-gradient(135deg,#fde68a,#f5d0a9)!important;color:#78350f!important}

.user-theme-sky .user-entry-screen .draw-selector-card{background:linear-gradient(90deg,#bae6fd,#7dd3fc)!important;color:#0c4a6e!important}
.user-theme-sky .user-entry-screen .purchase-toolbar{background:linear-gradient(90deg,#e0f2fe,#7dd3fc)!important}
.user-theme-mint .user-entry-screen .draw-selector-card{background:linear-gradient(90deg,#d1fae5,#86efac)!important;color:#065f46!important}
.user-theme-mint .user-entry-screen .purchase-toolbar{background:linear-gradient(90deg,#ecfdf5,#a7f3d0)!important}
.user-theme-peach .user-entry-screen .draw-selector-card{background:linear-gradient(90deg,#ffedd5,#fdba74)!important;color:#9a3412!important}
.user-theme-peach .user-entry-screen .purchase-toolbar{background:linear-gradient(90deg,#fff7ed,#fed7aa)!important}
.user-theme-rose .user-entry-screen .draw-selector-card{background:linear-gradient(90deg,#ffe4e6,#fda4af)!important;color:#9f1239!important}
.user-theme-rose .user-entry-screen .purchase-toolbar{background:linear-gradient(90deg,#fff1f2,#fecdd3)!important}
.user-theme-lavender .user-entry-screen .draw-selector-card{background:linear-gradient(90deg,#ede9fe,#c4b5fd)!important;color:#5b21b6!important}
.user-theme-lavender .user-entry-screen .purchase-toolbar{background:linear-gradient(90deg,#f5f3ff,#ddd6fe)!important}
.user-theme-aqua .user-entry-screen .draw-selector-card{background:linear-gradient(90deg,#cffafe,#67e8f9)!important;color:#155e75!important}
.user-theme-aqua .user-entry-screen .purchase-toolbar{background:linear-gradient(90deg,#ecfeff,#a5f3fc)!important}
.user-theme-lemon .user-entry-screen .draw-selector-card{background:linear-gradient(90deg,#fef9c3,#fde68a)!important;color:#854d0e!important}
.user-theme-lemon .user-entry-screen .purchase-toolbar{background:linear-gradient(90deg,#fefce8,#fef3c7)!important}
.user-theme-sand .user-entry-screen .draw-selector-card{background:linear-gradient(90deg,#fef3c7,#f5d0a9)!important;color:#78350f!important}
.user-theme-sand .user-entry-screen .purchase-toolbar{background:linear-gradient(90deg,#fffbeb,#fde68a)!important}

/* Theme text contrast + toolbar polish + quick-button vertical centering. */
/* Light themes: use dark readable text in the colored draw/header panel. */
.user-theme-sky .user-entry-screen .draw-profile-grid,
.user-theme-mint .user-entry-screen .draw-profile-grid,
.user-theme-peach .user-entry-screen .draw-profile-grid,
.user-theme-rose .user-entry-screen .draw-profile-grid,
.user-theme-lavender .user-entry-screen .draw-profile-grid,
.user-theme-aqua .user-entry-screen .draw-profile-grid,
.user-theme-lemon .user-entry-screen .draw-profile-grid,
.user-theme-sand .user-entry-screen .draw-profile-grid,
.user-theme-sky .user-entry-screen .draw-profile-grid b,
.user-theme-mint .user-entry-screen .draw-profile-grid b,
.user-theme-peach .user-entry-screen .draw-profile-grid b,
.user-theme-rose .user-entry-screen .draw-profile-grid b,
.user-theme-lavender .user-entry-screen .draw-profile-grid b,
.user-theme-aqua .user-entry-screen .draw-profile-grid b,
.user-theme-lemon .user-entry-screen .draw-profile-grid b,
.user-theme-sand .user-entry-screen .draw-profile-grid b,
.user-theme-sky .user-entry-screen #user-name-display,
.user-theme-mint .user-entry-screen #user-name-display,
.user-theme-peach .user-entry-screen #user-name-display,
.user-theme-rose .user-entry-screen #user-name-display,
.user-theme-lavender .user-entry-screen #user-name-display,
.user-theme-aqua .user-entry-screen #user-name-display,
.user-theme-lemon .user-entry-screen #user-name-display,
.user-theme-sand .user-entry-screen #user-name-display,
.user-theme-sky .user-entry-screen #user-username-display,
.user-theme-mint .user-entry-screen #user-username-display,
.user-theme-peach .user-entry-screen #user-username-display,
.user-theme-rose .user-entry-screen #user-username-display,
.user-theme-lavender .user-entry-screen #user-username-display,
.user-theme-aqua .user-entry-screen #user-username-display,
.user-theme-lemon .user-entry-screen #user-username-display,
.user-theme-sand .user-entry-screen #user-username-display{
  color:#111827!important;
  -webkit-text-fill-color:#111827!important;
  text-shadow:0 1px 0 rgba(255,255,255,.55)!important;
}
/* Dark themes keep profile text bright. */
.user-theme-default .user-entry-screen .draw-profile-grid,
.user-theme-blue .user-entry-screen .draw-profile-grid,
.user-theme-green .user-entry-screen .draw-profile-grid,
.user-theme-red .user-entry-screen .draw-profile-grid,
.user-theme-brown .user-entry-screen .draw-profile-grid,
.user-theme-purple .user-entry-screen .draw-profile-grid{
  color:#fff!important;
}
.user-entry-screen .save-sheet-btn{
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  text-align:center!important;
}
.user-entry-screen .save-sheet-btn>span{
  display:block!important;
  width:100%!important;
  text-align:center!important;
  font-weight:950!important;
  color:#fff!important;
  text-shadow:
    -1px -1px 0 rgba(38,20,80,.55),
     1px -1px 0 rgba(38,20,80,.55),
    -1px  1px 0 rgba(38,20,80,.55),
     1px  1px 0 rgba(38,20,80,.55),
     0 2px 2px rgba(0,0,0,.22)!important;
}
.user-entry-screen .delete-selected-btn{
  display:flex!important;
  flex-direction:column!important;
  align-items:center!important;
  justify-content:center!important;
  gap:0!important;
  text-align:center!important;
  line-height:1!important;
}
.user-entry-screen .delete-selected-btn .delete-label{
  display:block!important;
  font-size:11px!important;
  font-weight:900!important;
  line-height:1!important;
}
.user-entry-screen .delete-selected-btn .delete-count{
  display:block!important;
  margin-top:2px!important;
  font-size:10px!important;
  font-weight:950!important;
  line-height:1!important;
}
/* Nudge frozen quick buttons down within each existing row; do not alter row height. */
.user-entry-screen .entry-quick-actions{
  transform:translateY(4px)!important;
}
.mobile-keyboard-open .user-entry-screen .entry-quick-actions{
  transform:translateY(3px)!important;
}

/* Save button: stronger centered text with clean outline. */
.user-entry-screen .save-sheet-btn>span{
  font-size:14px!important;
  font-weight:950!important;
  letter-spacing:.1px!important;
  color:#fff!important;
  -webkit-text-fill-color:#fff!important;
  text-shadow:
    -1px -1px 0 #3b0764,
     1px -1px 0 #3b0764,
    -1px  1px 0 #3b0764,
     1px  1px 0 #3b0764,
     0 2px 2px rgba(0,0,0,.28)!important;
}
@media(max-width:420px){
  .user-entry-screen .save-sheet-btn>span{font-size:13px!important}
}

/* Dark / Night mode for the user panel. */
.v2-user-drawer .user-theme-swatches button[data-user-theme="dark"]{
  background:linear-gradient(135deg,#111827,#020617)!important;
  color:#f8fafc!important;
  border-color:#334155!important;
}
.user-theme-dark{
  background:#020617!important;
  color:#e5e7eb!important;
}
.user-theme-dark .user-entry-screen{
  background:#020617!important;
  color:#e5e7eb!important;
}
.user-theme-dark .user-entry-screen .draw-selector-card{
  background:linear-gradient(90deg,#0f172a,#111827 55%,#1e293b)!important;
  color:#f8fafc!important;
}
.user-theme-dark .user-entry-screen .draw-profile-grid,
.user-theme-dark .user-entry-screen .draw-profile-grid b,
.user-theme-dark .user-entry-screen #user-name-display,
.user-theme-dark .user-entry-screen #user-username-display{
  color:#f8fafc!important;
  -webkit-text-fill-color:#f8fafc!important;
  text-shadow:0 1px 1px rgba(0,0,0,.45)!important;
}
.user-theme-dark .user-entry-screen .purchase-toolbar{
  background:linear-gradient(90deg,#111827,#1f2937)!important;
  border-color:#334155!important;
}
.user-theme-dark .user-entry-screen .entry-table-shell,
.user-theme-dark .user-entry-screen .entry-purchase-table,
.user-theme-dark .user-entry-screen .entry-purchase-table th,
.user-theme-dark .user-entry-screen .entry-purchase-table td{
  background:#0f172a!important;
  color:#f1f5f9!important;
  border-color:#334155!important;
}
.user-theme-dark .user-entry-screen .entry-purchase-table thead th{
  background:#111827!important;
  color:#f8fafc!important;
}
.user-theme-dark .user-entry-screen input,
.user-theme-dark .user-entry-screen select,
.user-theme-dark .user-entry-screen textarea{
  background:#111827!important;
  color:#f8fafc!important;
  -webkit-text-fill-color:#f8fafc!important;
  border-color:#475569!important;
}
.user-theme-dark .user-entry-screen input::placeholder,
.user-theme-dark .user-entry-screen textarea::placeholder{
  color:#94a3b8!important;
  opacity:1!important;
}
.user-theme-dark .user-entry-screen .entry-input-row,
.user-theme-dark .user-entry-screen .entry-all-total,
.user-theme-dark .user-entry-screen .entry-col-empty{
  background:#0f172a!important;
  color:#f8fafc!important;
}
.user-theme-dark .v2-user-drawer{
  background:#0f172a!important;
  color:#f8fafc!important;
}
.user-theme-dark .v2-user-drawer .user-theme-picker{
  background:#111827!important;
  border-color:#334155!important;
}
.user-theme-dark .v2-user-drawer .user-theme-picker>strong{
  color:#f8fafc!important;
}

/* Dark mode wallet labels/value stickers: strong readable contrast. */
.user-theme-dark .user-entry-screen .draw-profile-right span,
.user-theme-dark .user-entry-screen .draw-profile-right span>b{
  color:#f8fafc!important;
  -webkit-text-fill-color:#f8fafc!important;
  text-shadow:0 1px 2px rgba(0,0,0,.55)!important;
}
.user-theme-dark .user-entry-screen .draw-value-sticker{
  background:#1e293b!important;
  border:1px solid #64748b!important;
  box-shadow:0 2px 8px rgba(0,0,0,.42),inset 0 1px 0 rgba(255,255,255,.08)!important;
}
.user-theme-dark .user-entry-screen .balance-sticker,
.user-theme-dark .user-entry-screen #user-balance-display{
  color:#67e8f9!important;
  -webkit-text-fill-color:#67e8f9!important;
  font-weight:950!important;
  text-shadow:0 0 4px rgba(34,211,238,.24)!important;
}
.user-theme-dark .user-entry-screen .upline-positive,
.user-theme-dark .user-entry-screen #user-upline-display.upline-positive{
  color:#86efac!important;
  -webkit-text-fill-color:#86efac!important;
  font-weight:950!important;
  text-shadow:0 0 4px rgba(34,197,94,.22)!important;
}
.user-theme-dark .user-entry-screen .upline-zero,
.user-theme-dark .user-entry-screen #user-upline-display.upline-zero{
  color:#e2e8f0!important;
  -webkit-text-fill-color:#e2e8f0!important;
  font-weight:950!important;
}
.user-theme-dark .user-entry-screen .upline-negative,
.user-theme-dark .user-entry-screen #user-upline-display.upline-negative{
  color:#fca5a5!important;
  -webkit-text-fill-color:#fca5a5!important;
  font-weight:950!important;
}

/* Dark mode wallet stickers: strong contrast for Balance / Upline labels and values. */
.user-theme-dark .user-entry-screen .draw-profile-right span,
.user-theme-dark .user-entry-screen .draw-profile-right span>b,
.user-theme-dark .user-entry-screen .draw-profile-right span:first-child,
.user-theme-dark .user-entry-screen .draw-profile-right span:last-child{
  color:#f8fafc!important;
  -webkit-text-fill-color:#f8fafc!important;
  text-shadow:0 1px 2px rgba(0,0,0,.55)!important;
}
.user-theme-dark .user-entry-screen .draw-value-sticker,
.user-theme-dark .user-entry-screen .balance-sticker,
.user-theme-dark .user-entry-screen #user-balance-display,
.user-theme-dark .user-entry-screen #user-upline-display{
  background:#1e293b!important;
  border:1px solid #64748b!important;
  box-shadow:0 2px 7px rgba(0,0,0,.42),inset 0 1px 0 rgba(255,255,255,.05)!important;
  opacity:1!important;
}
.user-theme-dark .user-entry-screen .balance-sticker,
.user-theme-dark .user-entry-screen #user-balance-display{
  color:#67e8f9!important;
  -webkit-text-fill-color:#67e8f9!important;
  font-weight:950!important;
  text-shadow:0 1px 2px rgba(0,0,0,.55)!important;
}
.user-theme-dark .user-entry-screen .upline-positive,
.user-theme-dark .user-entry-screen #user-upline-display.upline-positive{
  color:#86efac!important;
  -webkit-text-fill-color:#86efac!important;
  font-weight:950!important;
  text-shadow:0 1px 2px rgba(0,0,0,.55)!important;
}
.user-theme-dark .user-entry-screen .upline-zero,
.user-theme-dark .user-entry-screen #user-upline-display.upline-zero{
  color:#e2e8f0!important;
  -webkit-text-fill-color:#e2e8f0!important;
  font-weight:950!important;
}
.user-theme-dark .user-entry-screen .upline-negative,
.user-theme-dark .user-entry-screen #user-upline-display.upline-negative{
  color:#fca5a5!important;
  -webkit-text-fill-color:#fca5a5!important;
  font-weight:950!important;
}

/* Dark mode wallet/header contrast: Balance + Upline labels and value stickers. */
.user-theme-dark .user-entry-screen .draw-profile-right span,
.user-theme-dark .user-entry-screen .draw-profile-right span>b,
.user-theme-dark .user-entry-screen .draw-profile-left span,
.user-theme-dark .user-entry-screen .draw-profile-left span>b{
  color:#f8fafc!important;
  -webkit-text-fill-color:#f8fafc!important;
  font-weight:900!important;
  text-shadow:0 1px 2px rgba(0,0,0,.55)!important;
}
.user-theme-dark .user-entry-screen .draw-value-sticker{
  background:#1e293b!important;
  border:1px solid #64748b!important;
  box-shadow:0 2px 7px rgba(0,0,0,.45),inset 0 1px 0 rgba(255,255,255,.06)!important;
  color:#f8fafc!important;
  -webkit-text-fill-color:#f8fafc!important;
  font-weight:950!important;
}
.user-theme-dark .user-entry-screen .balance-sticker{
  background:#172033!important;
  color:#67e8f9!important;
  -webkit-text-fill-color:#67e8f9!important;
  border-color:#0891b2!important;
}
.user-theme-dark .user-entry-screen .upline-positive{
  background:#13291f!important;
  color:#86efac!important;
  -webkit-text-fill-color:#86efac!important;
  border-color:#16a34a!important;
  font-weight:950!important;
}
.user-theme-dark .user-entry-screen .upline-negative{
  background:#341b1b!important;
  color:#fca5a5!important;
  -webkit-text-fill-color:#fca5a5!important;
  border-color:#dc2626!important;
  font-weight:950!important;
}
.user-theme-dark .user-entry-screen .upline-zero{
  background:#1e293b!important;
  color:#e2e8f0!important;
  -webkit-text-fill-color:#e2e8f0!important;
  border-color:#64748b!important;
  font-weight:950!important;
}

/* Dark mode wallet contrast: Balance/Upline labels and value stickers. */
.user-theme-dark .user-entry-screen .draw-profile-right,
.user-theme-dark .user-entry-screen .draw-profile-right span,
.user-theme-dark .user-entry-screen .draw-profile-right span>b,
.user-theme-dark .user-entry-screen .draw-profile-right span:first-child,
.user-theme-dark .user-entry-screen .draw-profile-right span:last-child{
  color:#f8fafc!important;
  -webkit-text-fill-color:#f8fafc!important;
  text-shadow:0 1px 2px rgba(0,0,0,.65)!important;
  font-weight:900!important;
}
.user-theme-dark .user-entry-screen .draw-value-sticker,
.user-theme-dark .user-entry-screen .balance-sticker,
.user-theme-dark .user-entry-screen #user-balance-display,
.user-theme-dark .user-entry-screen #user-upline-display{
  background:#1e293b!important;
  border:1px solid #64748b!important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.08),0 2px 7px rgba(0,0,0,.45)!important;
  color:#f8fafc!important;
  -webkit-text-fill-color:#f8fafc!important;
  font-weight:950!important;
  text-shadow:none!important;
  opacity:1!important;
}
.user-theme-dark .user-entry-screen #user-balance-display{
  color:#67e8f9!important;
  -webkit-text-fill-color:#67e8f9!important;
}
.user-theme-dark .user-entry-screen #user-upline-display.upline-positive,
.user-theme-dark .user-entry-screen #user-upline-display:not(.upline-negative):not(.upline-zero){
  color:#86efac!important;
  -webkit-text-fill-color:#86efac!important;
}
.user-theme-dark .user-entry-screen #user-upline-display.upline-negative{
  color:#fca5a5!important;
  -webkit-text-fill-color:#fca5a5!important;
}
.user-theme-dark .user-entry-screen #user-upline-display.upline-zero{
  color:#e2e8f0!important;
  -webkit-text-fill-color:#e2e8f0!important;
}

/* User ACTIVE entries -> SMS clipboard copy button beside Save */
.user-entry-screen .copy-active-sms-btn{min-width:66px!important;height:38px!important;padding:0 12px!important;border:1px solid #0f766e!important;border-radius:9px!important;background:linear-gradient(135deg,#14b8a6,#0f766e)!important;color:#fff!important;font-size:13px!important;font-weight:900!important;box-shadow:0 3px 8px rgba(15,118,110,.24)!important}
.user-entry-screen .copy-active-sms-btn>span{color:#fff!important;font-weight:950!important;text-shadow:0 1px 1px rgba(0,0,0,.25)!important}
@media(max-width:420px){.user-entry-screen .copy-active-sms-btn{min-width:58px!important;padding:0 8px!important;font-size:12px!important}}

/* Compact Delete + Save + Copy on one line */
.user-entry-screen .purchase-toolbar-left{
  display:flex!important;
  align-items:center!important;
  flex-wrap:nowrap!important;
  gap:4px!important;
  min-width:0!important;
  white-space:nowrap!important;
}
.user-entry-screen .purchase-toolbar-left .delete-selected-btn,
.user-entry-screen .save-sheet-btn,
.user-entry-screen .copy-active-sms-btn{
  width:58px!important;
  min-width:58px!important;
  max-width:58px!important;
  height:32px!important;
  min-height:32px!important;
  padding:0 5px!important;
  border-radius:8px!important;
  font-size:11px!important;
  line-height:1!important;
  flex:0 0 58px!important;
}
.user-entry-screen .purchase-toolbar-left .delete-selected-btn{margin:0!important}
.user-entry-screen .save-sheet-btn{margin:0!important}
.user-entry-screen .copy-active-sms-btn{margin:0!important}
@media(max-width:420px){
 .user-entry-screen .purchase-toolbar-left{gap:3px!important}
 .user-entry-screen .purchase-toolbar-left .delete-selected-btn,
 .user-entry-screen .save-sheet-btn,
 .user-entry-screen .copy-active-sms-btn{
   width:52px!important;min-width:52px!important;max-width:52px!important;flex-basis:52px!important;height:30px!important;min-height:30px!important;font-size:10px!important;padding:0 3px!important
 }
}

/* Refine Delete / Save / Copy spacing and Copy text centering/outline */
.user-entry-screen .purchase-toolbar-left{
  gap:8px!important;
}
.user-entry-screen .purchase-toolbar-left .delete-selected-btn,
.user-entry-screen .save-sheet-btn{
  margin:0!important;
}
.user-entry-screen .copy-active-sms-btn{
  margin-left:10px!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  text-align:center!important;
}
.user-entry-screen .copy-active-sms-btn>span{
  display:flex!important;
  width:100%!important;
  height:100%!important;
  align-items:center!important;
  justify-content:center!important;
  text-align:center!important;
  line-height:1!important;
  color:#fff!important;
  -webkit-text-stroke:.35px rgba(0,0,0,.72)!important;
  text-shadow:-1px 0 rgba(0,0,0,.55),0 1px rgba(0,0,0,.55),1px 0 rgba(0,0,0,.55),0 -1px rgba(0,0,0,.55)!important;
}
@media(max-width:420px){
 .user-entry-screen .purchase-toolbar-left{gap:6px!important}
 .user-entry-screen .copy-active-sms-btn{margin-left:8px!important}
}

/* SMS modal v7 white-theme final overrides. */
.sms-panel-left .sms-top-help{
  font-size:8px!important;
  font-weight:400!important;
  line-height:1.4!important;
  color:#000!important;
  opacity:1!important;
  direction:rtl!important;
  text-align:right!important;
}
#sms-entry-text{
  min-height:112px!important;
  height:112px!important;
  max-height:150px!important;
  overflow:auto!important;
}

/* Desktop/laptop User Entry bold readability only; mobile unchanged */
@media (min-width:651px){
  .user-entry-screen #id_number,
  .user-entry-screen #id_first_amount,
  .user-entry-screen #id_second_amount{font-weight:900!important}
  .user-entry-screen .entry-field-label,
  .user-entry-screen .entry-purchase-table th,
  .user-entry-screen .entry-purchase-table td,
  .user-entry-screen .entry-head-main,
  .user-entry-screen .entry-head-total,
  .user-entry-screen .entry-quick-btn,
  .user-entry-screen .entry-buy-btn,
  .user-entry-screen .entry-sms-btn{font-weight:800!important}
}


