* {
  box-sizing: border-box;
}

:root {
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.4;
  font-weight: 400;
  color: #111827;
  background: #f3f4f6;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;

  --bg: #f3f4f6;
  --card: #ffffff;
  --text: #111827;
  --muted: #6b7280;
  --border: #d1d5db;
  --green: #16a34a;
  --green-dark: #15803d;
  --green-soft: #dcfce7;
  --blue: #2563eb;
  --blue-dark: #1d4ed8;
  --red: #ef4444;
  --red-dark: #dc2626;
  --dark: #111827;
  --dark-hover: #1f2937;
  --thead: #111827;
}

html,
body,
#root {
  margin: 0;
  height: 100%;
  min-height: 100%;
  background: var(--bg);
  color: var(--text);
}

body {
  min-width: 320px;
}

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

input,
select {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px 12px;
  background: #fff;
  color: var(--text);
  outline: none;
}

input:focus,
select:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.screen {
  height: 100vh;
  min-height: 100vh;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  overflow: hidden;
}

.center {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 16px;
}

.center .card {
  max-width: 420px;
  width: 100%;
  text-align: center;
}

/* top bar */
.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex: 0 0 auto;
}

.topbar-green {
  background: var(--green-soft);
  border: 1px solid #86efac;
  border-radius: 16px;
  padding: 10px 12px;
  flex-wrap: wrap;
}

.topbar-right-only {
  justify-content: space-between;
  align-items: flex-start;
}

.topbar-right {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-left: auto;
  justify-content: flex-end;
}

.badge {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 8px 12px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
  font-weight: 700;
}

.badge.soft {
  background: #f0fdf4;
  border-color: #86efac;
  color: #166534;
}

.top-mini-btn {
  min-width: 110px;
  height: 40px;
  border: none;
  border-radius: 10px;
  padding: 0 14px;
  color: #fff;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
}

.top-mini-dark {
  background: var(--dark);
}

.top-mini-dark:hover {
  background: var(--dark-hover);
}

.top-mini-blue {
  background: var(--blue);
}

.top-mini-blue:hover {
  background: var(--blue-dark);
}

.top-mini-green {
  background: var(--green);
}

.top-mini-green:hover {
  background: var(--green-dark);
}

.system-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.system-title {
  font-size: 20px;
  font-weight: 800;
  color: #166534;
  line-height: 1.15;
}

.system-subline {
  font-size: 13px;
  font-weight: 700;
  color: #166534;
  line-height: 1.2;
}

/* cards */
.card {
  background: var(--card);
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  padding: 16px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.05);
  min-width: 0;
}

.card h2 {
  margin: 0 0 14px;
  font-size: 22px;
}

/* lotteries */
.lottery-area {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
  flex: 0 0 auto;
  background: #e0f2fe;
  border: 1px solid #7dd3fc;
  border-radius: 14px;
  padding: 10px 12px;
}

.lottery-area-title {
  font-size: 14px;
  font-weight: 800;
  color: #374151;
  padding-left: 2px;
}

.lottery-strip-wrap {
  overflow-x: auto;
  overflow-y: hidden;
  padding-bottom: 6px;
}

.lottery-strip-wrap::-webkit-scrollbar {
  height: 10px;
}

.lottery-strip-wrap::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 999px;
}

.lottery-strip-wrap::-webkit-scrollbar-track {
  background: #e5e7eb;
  border-radius: 999px;
}

.lottery-strip {
  display: flex;
  flex-wrap: nowrap;
  gap: 10px;
  width: max-content;
  min-width: 100%;
}

.lottery-btn {
  flex: 0 0 170px;
  min-width: 170px;
  max-width: 170px;
  min-height: 68px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #fff;
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 4px;
  transition: 0.15s ease;
}

.lottery-btn:hover {
  transform: translateY(-1px);
  border-color: #9ca3af;
}

.lottery-btn.active {
  background: var(--green);
  border-color: var(--green);
}

.lottery-name {
  font-size: 13px;
  font-weight: 700;
  line-height: 1.15;
  color: #111827;
  text-align: left;
}

.lottery-close {
  font-size: 12px;
  color: var(--muted);
  font-weight: 700;
  text-align: left;
}

.lottery-btn.active .lottery-name,
.lottery-btn.active .lottery-close {
  color: #fff;
}

/* layout */
.layout.layout-3cols {
  flex: 1 1 auto;
  min-height: 0;
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr) 260px;
  gap: 16px;
  align-items: stretch;
  overflow: hidden;
}

.left-panel,
.center-panel,
.actions-panel {
  min-width: 0;
  min-height: 0;
}

.left-panel {
  overflow-y: auto;
  overflow-x: hidden;
}

.center-panel {
  display: flex;
  min-height: 0;
  overflow: hidden;
}

.actions-panel {
  align-self: start;
  min-height: 0;
}

.side-actions-card {
  width: 100%;
  min-height: 260px;
}

/* form */
.capture-card {
  display: flex;
  flex-direction: column;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 12px;
}

.field label {
  font-size: 13px;
  font-weight: 700;
  color: #374151;
}

.field input {
  border: 2px solid #22c55e;
  border-radius: 8px;
  outline: none;
  transition: all 0.2s ease;
}

.field input:focus {
  border-color: #00ff88;
  box-shadow: 0 0 6px rgba(0, 255, 136, 0.6);
}

.button-row {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.button-row-1 {
  grid-template-columns: 1fr;
}

.button-row-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.button-row-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.btn {
  width: 100%;
  min-width: 0;
  height: 44px;
  border: none;
  border-radius: 10px;
  padding: 0 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  font-size: 14px;
  font-weight: 700;
}

/* Botones dentro de tablas (compactos) */
table .btn {
  width: auto;
  height: 32px;
  padding: 4px 10px;
  font-size: 12px;
  display: inline-flex;
}

.btn-sell {
  background: var(--green);
  color: #fff;
}

.btn-sell:hover {
  background: var(--green-dark);
}

.btn-save {
  background: var(--blue);
  color: #fff;
}

.btn-save:hover {
  background: var(--blue-dark);
}

.btn-quick {
  background: #eab308;
  color: #111827;
}

.btn-quick:hover {
  background: #ca8a04;
}

.btn-copy {
  background: #f59e0b;
  color: white;
}

.btn-primary {
  background: #2563eb;
  color: white;
}

.btn-copy:hover {
  background: #1d4ed8;
}

.btn-dark {
  background: #6b7280;
  color: #fff;
}

.btn-dark:hover {
  background: #4b5563;
}

.btn-clear {
  background: var(--red);
  color: #fff;
}

.btn-clear:hover {
  background: var(--red-dark);
}

.btn-reportes {
  background: var(--blue);
  color: #fff;
}

.btn-reportes:hover {
  background: var(--blue-dark);
}

.btn-resultados {
  background: var(--green);
  color: #fff;
}

.btn-resultados:hover {
  background: var(--green-dark);
}

.btn-perfil {
  background: #7c3aed;
  color: #fff;
}

.btn-perfil:hover {
  background: #6d28d9;
}

.btn-cancel {
  background: #ef4444;
  color: #fff;
}

.btn-cancel:hover {
  background: #dc2626;
}

.btn-pay {
  background: #f97316;
  color: #fff;
}

.btn-pay:hover {
  background: #ea580c;
}

.btn-cancel:active,
.btn-pay:active {
  transform: scale(0.97);
}

.message-box {
  margin-top: 14px;
  min-height: 50px;
  border-radius: 12px;
  border: 1px dashed var(--border);
  background: #f9fafb;
  padding: 12px 14px;
  color: #374151;
  display: flex;
  align-items: center;
}

.extra-actions-card {
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  background: #f9fafb;
  padding: 12px;
}

.extra-actions-title {
  font-size: 14px;
  font-weight: 800;
  color: #374151;
  margin-bottom: 10px;
}

/* ticket actual */
.ticket-card {
  width: 100%;
  height: 410px;
  min-height: 410px;
  max-height: 410px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.table-wrap.ticket-scroll {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overflow-x: auto;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  background: #fff;
}

.table-wrap.ticket-scroll::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

.table-wrap.ticket-scroll::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 999px;
}

.table-wrap.ticket-scroll::-webkit-scrollbar-track {
  background: #e5e7eb;
  border-radius: 999px;
}

.table-wrap.ticket-scroll table {
  width: 100%;
  min-width: 680px;
  border-collapse: collapse;
}

.ticket-footer {
  flex: 0 0 auto;
  display: flex;
  justify-content: flex-end;
  gap: 14px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid #e5e7eb;
  font-weight: 700;
  color: #111827;
  background: #fff;
  flex-wrap: wrap;
}

table {
  border-collapse: collapse;
}

thead th {
  position: sticky;
  top: 0;
  z-index: 2;
  background: var(--thead);
  color: #fff;
  text-align: left;
  padding: 12px 10px;
  font-size: 13px;
  white-space: nowrap;
}

tbody td {
  border-top: 1px solid #e5e7eb;
  padding: 11px 10px;
  font-size: 14px;
  vertical-align: middle;
}

tbody tr:hover {
  background: #f9fafb;
}

.empty-cell {
  text-align: center;
  color: var(--muted);
  padding: 24px 10px;
}

.actions-cell {
  width: 52px;
  text-align: center;
}

.danger-icon {
  background: transparent;
  border: none;
  color: #dc2626;
  font-size: 18px;
  line-height: 1;
  padding: 4px 6px;
}

.danger-icon:hover {
  background: #fee2e2;
  border-radius: 8px;
}

.ticket-footer {
  flex: 0 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 14px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid #e5e7eb;
  font-weight: 700;
  color: #111827;
  background: #fff;
}

/* ticket impreso */
.ticket-print {
  width: 320px;
  margin: 0 auto;
  padding: 10px;
  background: #fff;
  color: #111;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 13px;
}

.ticket-print-header {
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.ticket-print-title {
  font-size: 18px;
  font-weight: bold;
  text-align: center;
}

.ticket-print-divider {
  border-top: 1px solid #000;
  margin: 8px 0;
}

.ticket-print-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.ticket-print-group-title {
  text-align: center;
  font-size: 16px !important;
  font-weight: 900 !important;
  letter-spacing: 0.8px;
  margin: 5px 0 3px 0;
}

.ticket-print-table-header {
  font-weight: 900;
}

.ticket-col-jugada {
  display: block;
  width: 100%;
  text-align: left;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ticket-col-tipo,
.ticket-col-clase {
  display: block;
  width: 100%;
  text-align: center;
  white-space: nowrap;
  font-weight: 700;
}

.ticket-col-monto {
  display: block;
  width: 100%;
  text-align: right;
  white-space: nowrap;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.ticket-print-plays {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.ticket-print-subtotal,
.ticket-print-total {
  font-size: 15px;
  font-weight: bold;
  text-align: right;
}

.ticket-print-footer-messages {
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-weight: 700;
  margin-top: 12px;
}

.ticket-print-barcode {
  text-align: center;
  overflow: hidden;
}

.ticket-print-barcode text {
  text-anchor: middle;
}

.ticket-print-barcode svg {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
}

.ticket-print-no-barcode {
  font-weight: 700;
  font-size: 12px;
  color: #374151;
}

.print-root {
  display: none;
}

/* cancel */
.cancel-list {
  display: grid;
  gap: 12px;
}

.cancel-card {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  border: 1px solid #fecaca;
  background: #fff;
  border-radius: 14px;
  padding: 14px;
}

.cancel-main {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.cancel-ticket-number {
  font-size: 18px;
  font-weight: 900;
  color: #991b1b;
}

.cancel-ticket-meta {
  font-size: 13px;
  color: #374151;
  font-weight: 600;
}

.cancel-x-btn {
  width: 42px;
  height: 42px;
  border: none;
  border-radius: 10px;
  background: #ef4444;
  color: #fff;
  font-size: 18px;
  font-weight: 900;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.cancel-x-btn:hover {
  background: #dc2626;
}

/* payment */
.payment-warning {
  margin-top: 8px;
  padding: 10px 12px;
  border-radius: 10px;
  background: #fef3c7;
  color: #92400e;
  font-weight: 700;
  border: 1px solid #fcd34d;
}

.payment-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  border: 1px solid #fed7aa;
  background: #fff7ed;
  border-radius: 14px;
  padding: 14px;
}

.payment-ticket-number {
  font-size: 20px;
  font-weight: 900;
  color: #9a3412;
}

.payment-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid #fdba74;
  padding-bottom: 6px;
}

.payment-row span {
  color: #7c2d12;
  font-weight: 700;
}

.payment-row strong {
  color: #111827;
}

/* modals */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.60);
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  overflow-y: auto;
}

.modal {
  background: #ffffff;
  border-radius: 16px;
  padding: 22px;
  width: min(760px, 96vw);
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 24px 70px rgba(15, 23, 42, 0.35);
  position: relative;
  z-index: 100000;
}

.modal-lg {
  width: min(980px, 96vw);
  max-height: 90vh;
  overflow-y: auto;
}

.modal h3 {
  margin: 0 0 12px;
  font-size: 22px;
}

.modal p {
  margin: 0 0 12px;
  color: #374151;
}

.modal.modal-lg h3,
.modal.modal-lg .field,
.modal.modal-lg .button-row {
  flex: 0 0 auto;
}

.result-box {
  margin-top: 14px;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  background: #f8fafc;
  padding: 12px;
  flex: 1 1 auto;
  min-height: 0;
  max-height: 60vh;
  overflow-y: auto;
  overflow-x: auto;
}

.result-box::-webkit-scrollbar {
  width: 10px;
}

.result-box::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 999px;
}

.result-box::-webkit-scrollbar-track {
  background: #e5e7eb;
  border-radius: 999px;
}

.empty-results {
  color: #6b7280;
  font-weight: 600;
}

.results-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
  align-content: start;
}

.result-card {
  border: 1px solid #dbeafe;
  background: #ffffff;
  border-radius: 14px;
  padding: 14px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.05);
}

.result-card-header {
  margin-bottom: 8px;
}

.result-draw {
  font-size: 18px;
  font-weight: 900;
  color: #0f172a;
  line-height: 1.25;
}

.result-date {
  font-size: 12px;
  color: #6b7280;
  margin-bottom: 12px;
}

.result-numbers {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 12px;
}

.result-number-box {
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  border-radius: 12px;
  padding: 10px 8px;
  text-align: center;
}

.result-label {
  display: block;
  font-size: 12px;
  font-weight: 800;
  color: #475569;
  margin-bottom: 6px;
}

.result-number-box strong {
  display: block;
  font-size: 26px;
  font-weight: 900;
  color: #1d4ed8;
  line-height: 1.1;
}

.pick34-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 12px;
}

.pick34-box {
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  border-radius: 12px;
  padding: 10px 8px;
  text-align: center;
}

.pick34-label {
  display: block;
  font-size: 12px;
  font-weight: 800;
  color: #475569;
  margin-bottom: 6px;
}

.pick34-box strong {
  display: block;
  font-size: 20px;
  font-weight: 900;
  color: #0f172a;
  line-height: 1.1;
}

.result-status-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 6px;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}

.status-pill.ok {
  background: #dcfce7;
  color: #166534;
}

.status-pill.warn {
  background: #fef3c7;
  color: #92400e;
}

.status-pill.neutral {
  background: #e5e7eb;
  color: #374151;
}

.result-box pre {
  margin: 0;
  white-space: pre-wrap;
  word-break: break-word;
  font-size: 13px;
  color: #0f172a;
}

@media (max-width: 1200px) {
  .screen {
    height: auto;
    min-height: 100vh;
    overflow: visible;
  }

  .layout.layout-3cols {
    grid-template-columns: 1fr;
    overflow: visible;
  }

  .center-panel,
  .ticket-card {
    overflow: visible;
  }

  .ticket-scroll {
    max-height: 420px;
  }

  .actions-panel {
    order: 3;
  }
}

@media (max-width: 768px) {
  .screen {
    padding: 10px;
  }

  .topbar-green {
    align-items: stretch;
  }

  .topbar-right {
    width: 100%;
  }

  .top-mini-btn {
    width: 100%;
  }

  .button-row-3,
  .button-row-2 {
    grid-template-columns: 1fr;
  }

  .lottery-btn {
    flex: 0 0 150px;
    min-width: 150px;
    max-width: 150px;
  }

  .modal-lg {
    max-width: 100%;
    max-height: 92vh;
  }

  .result-box {
    max-height: 55vh;
  }

  table,
  .ticket-scroll table {
    min-width: 620px;
  }
}


@media (max-width: 900px) {
  .admin-grid {
    grid-template-columns: 1fr;
  }
}
/* Fix solo para Admin: permitir scroll vertical */
.admin-grid {
  flex: 1 1 auto;
  min-height: 0;
}

.screen:has(.admin-grid) {
  height: auto;
  min-height: 100vh;
  overflow-y: auto;
  overflow-x: hidden;
}

.btn-liquidaciones {
  background: #0f9d8a;
  color: #fff;
}

.settlements-layout {
  display: grid;
  gap: 16px;
}

.settlements-filters-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
}

.settlement-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.settlement-actions .btn {
  padding: 8px 10px;
  font-size: 13px;
}

.settlement-summary-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px 16px;
  margin-bottom: 16px;
}

.settlement-section-title {
  margin-top: 18px;
  margin-bottom: 10px;
}

.btn-liquidaciones {
  background: #0f9d8a;
  color: #fff;
}

@media (max-width: 1100px) {
  .settlements-filters-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .settlement-summary-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 700px) {
  .settlements-filters-grid {
    grid-template-columns: 1fr;
  }
}

.screen.screen-settlements {
  height: auto;
  min-height: 100vh;
  overflow-y: auto;
  overflow-x: hidden;
}

.screen.screen-settlements .settlements-layout {
  flex: 1 1 auto;
  min-height: 0;
  display: grid;
  gap: 16px;
  align-items: start;
}

.screen.screen-settlements .card {
  min-height: auto;
}

.screen.screen-settlements .result-box {
  max-height: none;
}

.screen.screen-settlements .table-wrap {
  overflow-x: auto;
  overflow-y: visible;
}

.btn-comisiones {
  background: #0f9d8a;
  color: #fff;
}

.btn-comisiones:hover {
  background: #0b7f71;
}

.btn-orange {
  background-color: #f97316; /* naranja bonito */
  color: #fff;
  border: none;
}

.btn-orange:hover {
  background-color: #ea580c;
}

.capture-row {
  display: grid;
  grid-template-columns: 1.35fr 0.9fr 0.75fr;
  gap: 10px;
  align-items: end;
  width: 100%;
}

.capture-field {
  display: flex;
  flex-direction: column;
}

.capture-field label {
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 4px;
}

.bet-input.compact,
.amount-input.compact,
.available-input {
  height: 36px;
  border: 1px solid #cfd4dc;
  border-radius: 8px;
  padding: 0 10px;
  font-size: 14px;
  width: 100%;
  box-sizing: border-box;
}

.bet-field {
  min-width: 0;
}

.available-field {
  min-width: 120px;
}

.amount-field {
  min-width: 90px;
}

.bet-input.compact {
  max-width: 100%;
}

.amount-input.compact {
  text-align: right;
}

.available-input {
  background: #f7f8fa;
  text-align: right;
  font-weight: 700;
}

.available-input.input-error {
  border-color: #d9534f;
  color: #b02a37;
}

.available-error {
  margin-top: 6px;
  font-size: 12px;
  color: #b02a37;
}

.capture-row {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr 0.60fr;
  gap: 8px;
}


.admin-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 16px;
  align-items: start;
  flex: 1 1 auto;
  min-height: 0;
}

.admin-col {
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 0;
}


.result-box {
  margin-top: 14px;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  background: #f8fafc;
  padding: 12px;
  flex: 1 1 auto;
  min-height: 0;
  max-height: 60vh;
  overflow-y: auto;
  overflow-x: auto;
}

.screen:has(.admin-grid) {
  height: auto;
  min-height: 100vh;
  overflow-y: auto;
  overflow-x: hidden;
}

.banks-list-card {
  margin-top: 0;
  align-self: start;
  min-width: 0;
  overflow: hidden;
}

.banks-table-wrap {
  margin-top: 14px;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  background: #f8fafc;
  padding: 12px;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  max-height: 320px;
  overflow-x: auto;
  overflow-y: auto;
}

.banks-table-wrap table {
  width: 1400px;
  min-width: 1400px;
  border-collapse: collapse;
}

.banks-table-wrap th,
.banks-table-wrap td {
  white-space: nowrap;
}

.banks-table-wrap thead th {
  position: static;
  top: auto;
  z-index: auto;
  background: var(--thead);
}

.banks-table-wrap th,
.banks-table-wrap td {
  white-space: nowrap;
}

@media (max-width: 900px) {
  .admin-grid {
    grid-template-columns: 1fr;
  }
}

.profile-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.profile-tab {
  width: auto;
  min-width: 120px;
  height: 38px;
  border: none;
  border-radius: 10px;
  padding: 0 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #6b7280;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.profile-tab.active {
  background: #16a34a;
}

.table-input {
  width: 180px;
  max-width: 100%;
  height: 36px;
  border: 1px solid #d1d5db;
  border-radius: 10px;
  padding: 0 10px;
  font-size: 14px;
}

.btn-table {
  width: auto !important;
  min-width: 0 !important;
  height: 32px !important;
  padding: 4px 10px !important;
  font-size: 12px !important;
}

.form-row {
  display: grid;
  gap: 6px;
  margin-bottom: 12px;
}

.card {
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 10px;
}

.admin-table {
  border-collapse: collapse;
}

.admin-table th,
.admin-table td {
  border: 1px solid #ddd;
  padding: 8px;
  text-align: left;
  vertical-align: top;
}

.admin-menu-btn {
  width: 100%;
  margin-bottom: 8px;
  padding: 10px 12px;
  border: 0;
  border-radius: 8px;
  cursor: pointer;
}

.admin-menu-btn.active {
  font-weight: 700;
}

.btn-lotteries {
  width: 100%;
  margin-top: 14px;
  background: #16a34a;
  color: #fff;
  border: 0;
  border-radius: 10px;
  padding: 12px 14px;
  font-weight: 700;
  cursor: pointer;
}

.btn-lotteries:hover {
  opacity: 0.95;
}


.panel-title-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.panel-title-row h3 {
  margin: 0;
}

.panel-subtitle {
  font-size: 18px;
  font-weight: 700;
  margin: 16px 0 10px;
}

.compact-form {
  margin-bottom: 10px;
}

.compact-grid {
  display: grid;
  gap: 12px;
}

.compact-grid-2 {
  grid-template-columns: 1fr 1fr;
}

.compact-grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

.form-row-actions {
  display: flex;
  flex-direction: column;
  justify-content: end;
}

.inline-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.table-shell {
  border: 1px solid #d7dbe3;
  border-radius: 12px;
  overflow: auto;
  background: #fff;
}

.table-shell-tall {
  max-height: 420px;
}

.selected-row td {
  background: #e8f7eb;
}

.table-actions {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.mini-action-btn {
  border: 0;
  border-radius: 8px;
  padding: 7px 10px;
  cursor: pointer;
  background: #e9eef5;
  font-weight: 600;
}

.mini-action-btn.danger {
  background: #ffdede;
  color: #9f1d1d;
}

.muted-text {
  color: #667085;
  font-size: 13px;
}

.chips-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.playtype-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid #d7dbe3;
  border-radius: 999px;
  padding: 6px 10px;
  background: #f8fafc;
}

.schedule-box {
  display: grid;
  gap: 8px;
}

.schedule-row {
  display: grid;
  grid-template-columns: 80px 120px 120px 100px;
  gap: 8px;
  align-items: center;
}

.schedule-day {
  font-weight: 600;
}

.checkbox-line {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.btn-lotteries {
  background: #16a34a;
  color: #fff;
}

.btn-save {
  background: #16a34a;
  color: #fff;
}

@media (max-width: 1200px) {
  .lotteries-two-panels {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .compact-grid-2,
  .compact-grid-3,
  .schedule-row {
    grid-template-columns: 1fr;
  }
}

/* =========================
   LOTTERIES ADMIN PAGE
   ========================= */

.lotteries-page {
  min-height: 100vh;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  background: var(--bg);
}

.lotteries-page-topbar {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  background: var(--green-soft);
  border: 1px solid #86efac;
  border-radius: 16px;
  padding: 14px 16px;
}

.lotteries-page-topbar h1 {
  margin: 0 0 4px;
  font-size: 28px;
  line-height: 1.15;
  color: #166534;
}

.lotteries-page-subtitle {
  color: #166534;
  font-size: 14px;
  font-weight: 700;
}

.lotteries-page-actions {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
}

.lotteries-page-grid {
  display: grid;
  grid-template-columns: minmax(380px, 0.95fr) minmax(680px, 1.45fr);
  gap: 18px;
  align-items: start;
}

.lotteries-page-panel {
  padding: 18px;
  min-width: 0;
}

.lotteries-page-panel h2 {
  margin: 0;
  font-size: 22px;
}

.table-shell-tall {
  max-height: 560px;
}

.admin-table {
  width: 100%;
  min-width: 760px;
}

.admin-table th {
  position: sticky;
  top: 0;
  z-index: 2;
  background: var(--thead);
  color: #fff;
}

.admin-table td,
.admin-table th {
  white-space: nowrap;
}

.compact-form {
  margin-bottom: 12px;
}

.compact-grid {
  display: grid;
  gap: 12px;
}

.compact-grid-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.compact-grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.form-row-actions {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.inline-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.panel-title-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}

.panel-subtitle {
  font-size: 18px;
  font-weight: 800;
  margin: 16px 0 10px;
  color: #111827;
}

.table-shell {
  border: 1px solid #d7dbe3;
  border-radius: 12px;
  overflow: auto;
  background: #fff;
}

.selected-row td {
  background: #e8f7eb;
}

.table-actions {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.mini-action-btn {
  border: 0;
  border-radius: 8px;
  padding: 7px 10px;
  cursor: pointer;
  background: #e9eef5;
  font-weight: 700;
  color: #111827;
}

.mini-action-btn:hover {
  background: #dbe4ee;
}

.mini-action-btn.danger {
  background: #ffdede;
  color: #9f1d1d;
}

.chips-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.playtype-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid #d7dbe3;
  border-radius: 999px;
  padding: 6px 10px;
  background: #f8fafc;
}

.schedule-box {
  display: grid;
  gap: 8px;
}

.schedule-row {
  display: grid;
  grid-template-columns: 90px 140px 140px 110px;
  gap: 10px;
  align-items: center;
}

.schedule-day {
  font-weight: 700;
}

.checkbox-line {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

@media (max-width: 1280px) {
  .lotteries-page-grid {
    grid-template-columns: 1fr 1.15fr;
  }
}

@media (max-width: 1080px) {
  .lotteries-page-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .lotteries-page {
    padding: 12px;
  }

  .lotteries-page-topbar {
    flex-direction: column;
    align-items: stretch;
  }

  .lotteries-page-actions {
    width: 100%;
  }

  .lotteries-page-actions .btn {
    width: 100%;
  }

  .compact-grid-2,
  .compact-grid-3,
  .schedule-row {
    grid-template-columns: 1fr;
  }
}

.group-lotteries-box {
  border: 1px solid #d7dbe3;
  border-radius: 14px;
  background: #f8fafc;
  padding: 12px;
}

.group-lotteries-box-header {
  font-size: 13px;
  font-weight: 700;
  color: #475569;
  margin-bottom: 10px;
}
.group-lotteries-box .chips-wrap {
  gap: 10px;
}

.group-lotteries-box .playtype-chip {
  background: #fff;
}

/* Checkboxes normales: no heredar estilos de inputs de texto */
input[type="checkbox"] {
  width: auto;
  padding: 0;
  border: none;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  outline: none;
  accent-color: #16a34a;
}

/* En chips de loterías y jugadas */
.playtype-chip input[type="checkbox"],
.group-lotteries-box input[type="checkbox"],
.checkbox-line input[type="checkbox"] {
  width: 16px;
  height: 16px;
  min-width: 16px;
  min-height: 16px;
  margin: 0;
  padding: 0;
  flex: 0 0 auto;
  cursor: pointer;
}

.playtype-chip {
  cursor: pointer;
}

.playtype-chip span {
  user-select: none;
}

.playtype-chip-button {
  border: 1px solid #d7dbe3;
  background: #fff;
  color: #111827;
  min-height: 40px;
  padding: 8px 12px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  cursor: pointer;
  width: auto;
}

.playtype-chip-button:hover {
  background: #f0fdf4;
  border-color: #86efac;
}

.playtype-chip-button.selected {
  background: #dcfce7;
  border-color: #16a34a;
  color: #166534;
}

.chip-check {
  width: 18px;
  min-width: 18px;
  height: 18px;
  border: 1px solid #cbd5e1;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 900;
  background: #fff;
  color: #16a34a;
}

.playtype-chip-button.selected .chip-check {
  border-color: #16a34a;
  background: #fff;
}

.lottery-chip-btn {
  appearance: none;
  border: 1px solid #d7dbe3;
  background: #fff;
  color: #111827;
  min-height: 42px;
  padding: 8px 14px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  cursor: pointer;
  width: auto;
  transition: all 0.15s ease;
}

.lottery-chip-btn:hover {
  background: #f0fdf4;
  border-color: #86efac;
}

.lottery-chip-btn.is-selected,
.lottery-chip-btn[data-selected='true'] {
  background: #dcfce7 !important;
  border-color: #16a34a !important;
  color: #166534 !important;
}

.lottery-chip-btn .chip-check {
  width: 18px;
  min-width: 18px;
  height: 18px;
  border: 1px solid #cbd5e1;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 900;
  background: #fff;
  color: transparent;
}

.lottery-chip-btn.is-selected .chip-check,
.lottery-chip-btn[data-selected='true'] .chip-check {
  background: #16a34a;
  border-color: #16a34a;
  color: #fff;
}

.lottery-box {
  border: 1px solid #d7dbe3;
  border-radius: 16px;
  padding: 14px 16px;
  background: #f3f5f8;
}

.lottery-chip-container {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.lottery-chip {
  border: 1px solid #cfd6df;
  border-radius: 999px;
  background: #fff;
  padding: 10px 16px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  font-weight: 600;
  font-size: 15px;
  transition: all 0.15s ease;
}

.lottery-chip:hover {
  border-color: #31a24c;
}

.lottery-chip.active {
  background: #e8f7eb;
  border-color: #31a24c;
  color: #1d6f34;
}

.lottery-chip-check {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  border: 1px solid #cfd6df;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  background: #fff;
}

.lottery-chip.active .lottery-chip-check {
  background: #21a54a;
  border-color: #21a54a;
  color: #fff;
}

.helper-text {
  color: #4b5563;
  font-size: 14px;
}

/* =========================
   TICKET PRINT CLEAN FINAL
   ========================= */

.ticket-print {
  width: 72mm !important;
  max-width: 72mm !important;
  margin: 0 auto !important;
  padding: 1mm 2.5mm !important;
  font-family: Arial, sans-serif;
  color: #000;
  background: #fff;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.15;
  text-align: center;
}
.ticket-print-80mm,
.ticket-print-none {
  width: 76mm;
  max-width: 76mm;
}

.ticket-print-58mm {
  width: 58mm;
  max-width: 58mm;
}

.ticket-print-normal {
  width: 100%;
  max-width: 720px;
}

.ticket-print-size-small {
  font-size: 11px;
}

.ticket-print-size-medium {
  font-size: 13px;
}

.ticket-print-size-large {
  font-size: 16px;
}

.ticket-print-header {
  text-align: center;
  line-height: 1.18;
}

.ticket-print-title {
  font-size: 1.3em;
  font-weight: 900;
  text-transform: uppercase;
  margin-bottom: 3px;
}

.ticket-print-divider {
  border-top: 1px dashed #000 !important;
  margin: 3px 0 !important;
}

.ticket-print-group {
  margin-top: 4px;
}

.ticket-print-group-title {
  text-align: center;
  font-size: 13px;
  font-weight: 900;
  margin: 3px 0;
  padding: 2px 0;
  border: none !important;
}

.ticket-print-table-header,
.ticket-print-play-row {
  display: grid !important;
  grid-template-columns: 37% 33% 30% !important;
  column-gap: 0 !important;
  align-items: center !important;
  line-height: 1.15 !important;
}

.ticket-col-jugada {
  text-align: left !important;
  padding-left: 0 !important;
  font-weight: 900 !important;
}

.ticket-col-tipo {
  text-align: center !important;
  font-weight: 800 !important;
}

.ticket-col-monto {
  text-align: right !important;
  padding-right: 1mm !important;
  font-weight: 900 !important;
}

.ticket-print-subtotal,
.ticket-print-total {
  text-align: right;
  font-size: 15px;
  font-weight: 900;
  margin-top: 2px !important;
  padding-top: 0 !important;
}

.ticket-print-footer-messages {
  text-align: center;
  font-size: 11px;
  font-weight: 800;
  margin-top: 5px;
  line-height: 1.1;
  white-space: pre-wrap;
}

.ticket-print-barcode {
  text-align: center;
  margin-top: 5px;
  overflow: hidden;
}

.ticket-print-barcode svg {
  max-width: 70mm;
  height: 38px;
}

.ticket-print-no-barcode {
  font-weight: 800;
  font-size: 11px;
}

@media print {
  @page {
    size: 76mm auto;
    margin: 0;
  }

  html,
  body,
  #root {
    width: 80mm !important;
    min-width: 80mm !important;
    max-width: 80mm !important;
    height: auto !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    background: #fff !important;
    overflow: hidden !important;
  }

  body * {
    visibility: hidden !important;
  }

  .print-root,
  .print-root * {
    visibility: visible !important;
  }

  .print-root {
    display: block !important;
    position: absolute !important;
    left: 0 !important;
    top: 0 !important;
    width: 80mm !important;
    max-width: 80mm !important;
    height: auto !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    background: #fff !important;
    overflow: hidden !important;
    z-index: 999999 !important;
  }

  .ticket-print {
  width: 72mm !important;
  max-width: 72mm !important;
  margin: 0 auto !important;
  padding: 1mm 2.5mm !important;
  font-size: 13px !important;
  line-height: 1.12 !important;
}

  .ticket-print * {
    page-break-inside: avoid !important;
    break-inside: avoid !important;
  }

  .ticket-print-table-header,
  .ticket-print-play-row {
    display: grid !important;
    grid-template-columns: 38% 34% 28% !important;
    column-gap: 2px !important;
    line-height: 1.1 !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  .ticket-print-group {
    margin-top: 3px !important;
  }

  .ticket-print-group-title {
    font-size: 12px !important;
    font-weight: 900 !important;
    margin: 2px 0 !important;
    padding: 1px 0 !important;
  }

  .ticket-print-divider {
    margin: 2px 0 !important;
  }

  .ticket-print-subtotal,
  .ticket-print-total {
    margin-top: 2px !important;
  }

  .ticket-print-footer-messages {
    margin-top: 3px !important;
    font-size: 10px !important;
    line-height: 1.05 !important;
  }

  .ticket-print-barcode {
    margin-top: 4px !important;
  }

  .ticket-print-barcode svg {
    max-width: 80mm !important;
    height: 36px !important;
    max-height: 36px !important;
  }
}

.ticket-print {
  page-break-after: avoid !important;
  page-break-inside: avoid !important;
  break-inside: avoid !important;
}

.ticket-print-group-title {
  text-align: center;
  font-size: 16px !important;
  font-weight: 900 !important;
  letter-spacing: 0.8px;
  margin: 5px 0 3px 0;
}

.ticket-print-play-row {
  display: flex;
  justify-content: space-between;
  gap: 2px;
}

.btn-results {
  background: #2563eb !important;
  color: #fff !important;
  border: none !important;
}

.btn-results:hover {
  background: #1d4ed8 !important;
}

.pick34-box strong {
  color: #1d4ed8;
  font-size: 22px;
  font-weight: 900;
}

.pick34-box strong {
  color: #1d4ed8;
  font-size: 22px;
  font-weight: 900;
}

.ticket-winning-row {
  background: #dcfce7 !important;
  color: #166534;
  font-weight: 800;
}

.ticket-winning-row td {
  border-bottom: 1px solid #bbf7d0;
}

.ticket-winning-prize {
  color: #008a22 !important;
  font-weight: 900;
}

.ticket-winning-row:hover {
  background: #bbf7d0 !important;
}

.ticket-status-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 82px;
  padding: 4px 10px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 13px;
  border: 1px solid transparent;
}

.ticket-status-pill.status-winner {
  background: #dcfce7;
  color: #166534;
  border-color: #86efac;
}

.ticket-status-pill.status-paid {
  background: #dbeafe;
  color: #1d4ed8;
  border-color: #93c5fd;
}

.ticket-status-pill.status-pending {
  background: #fef9c3;
  color: #854d0e;
  border-color: #fde68a;
}

.ticket-status-pill.status-loser {
  background: #fee2e2;
  color: #991b1b;
  border-color: #fecaca;
}

.ticket-status-pill.status-cancelled {
  background: #e5e7eb;
  color: #374151;
  border-color: #d1d5db;
}



.group-admin-menu {
  margin: 18px 0;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 18px;
  padding: 16px;
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.08);
}

.admin-shell {
  padding: 24px;
}

.group-logout-btn {
  width: auto !important;
  min-width: 120px;
  height: 44px;
  padding: 0 22px;
  border-radius: 12px;
  font-weight: 800;
  align-self: center;
}

.admin-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.group-admin-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.group-admin-grid .btn {
  width: 100%;
  min-height: 58px;
  font-size: 16px;
  font-weight: 800;
  border-radius: 14px;
  white-space: normal;
  line-height: 1.15;
  box-shadow: 0 6px 14px rgba(15, 23, 42, 0.12);
}

.group-dashboard {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.group-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid #e5e7eb;
}

.group-section-header h2 {
  margin: 0;
  font-size: 26px;
  font-weight: 900;
  color: #111827;
}

.group-section-header p {
  margin: 4px 0 0;
  color: #6b7280;
  font-size: 15px;
}

.group-summary-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.group-summary-card {
  background: linear-gradient(180deg, #ffffff, #f8fafc);
  border: 1px solid #e5e7eb;
  border-radius: 18px;
  padding: 20px;
  min-height: 120px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.08);
}

.group-summary-card span {
  display: block;
  color: #475569;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.group-summary-card strong {
  display: block;
  margin-top: 12px;
  color: #0f172a;
  font-size: 34px;
  font-weight: 950;
  line-height: 1;
}

.btn-danger {
  background: #dc2626;
  color: #fff;
  border: none;
}

.btn-danger:hover {
  background: #b91c1c;
}

@media (max-width: 1100px) {
  .group-admin-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .group-summary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .group-admin-grid,
  .group-summary-grid {
    grid-template-columns: 1fr;
  }

  .group-admin-grid .btn {
    min-height: 52px;
    font-size: 15px;
  }

  .group-summary-card strong {
    font-size: 30px;
  }
}

.group-results-section {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.group-results-filters {
  display: grid;
  grid-template-columns: 180px 180px minmax(240px, 1fr) 180px;
  gap: 14px;
  align-items: end;
}

.group-results-action .btn {
  width: 100%;
  min-height: 44px;
  border-radius: 12px;
  font-weight: 800;
}

.group-results-section .results-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 320px));
  gap: 14px;
  justify-content: start;
  align-items: start;
}

.group-results-section .result-card {
  width: 100%;
  max-width: 320px;
}

.group-results-section .result-numbers {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.group-results-section .pick34-row {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.group-reports-section {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.group-report-filters {
  display: grid;
  grid-template-columns: 180px 180px minmax(240px, 1fr) 180px;
  gap: 14px;
  align-items: end;
}

.group-report-action .btn {
  width: 100%;
  min-height: 44px;
  border-radius: 12px;
  font-weight: 800;
}

.group-report-summary-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.group-report-table-wrap {
  margin-top: 6px;
}

.group-report-table-wrap table th,
.group-report-table-wrap table td {
  white-space: nowrap;
}

@media (max-width: 1100px) {
  .group-report-summary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .group-report-filters {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) {
  .group-report-summary-grid,
  .group-report-filters {
    grid-template-columns: 1fr;
  }
}



@media (max-width: 900px) {
  .group-results-filters {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) {
  .group-results-filters {
    grid-template-columns: 1fr;
  }
}

.group-reports-section {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.group-report-filters {
  display: grid;
  grid-template-columns: 180px 180px minmax(240px, 1fr) 180px;
  gap: 14px;
  align-items: end;
}

.group-report-action .btn {
  width: 100%;
  min-height: 44px;
  border-radius: 12px;
  font-weight: 800;
}

.group-report-summary-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.group-report-table-wrap {
  margin-top: 6px;
}

.group-report-table-wrap table th,
.group-report-table-wrap table td {
  white-space: nowrap;
}

.group-audit-section {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.group-audit-filters {
  display: grid;
  grid-template-columns: 170px 170px minmax(220px, 1fr) 190px 170px;
  gap: 14px;
  align-items: end;
}

.group-audit-action .btn {
  width: 100%;
  min-height: 44px;
  border-radius: 12px;
  font-weight: 800;
}

.group-audit-table-wrap {
  margin-top: 6px;
  overflow-x: auto;
}

.group-audit-table-wrap table th,
.group-audit-table-wrap table td {
  white-space: nowrap;
}

@media (max-width: 1100px) {
  .group-report-summary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

.group-audit-actions {
  display: flex;
  gap: 6px;
  align-items: center;
  flex-wrap: nowrap;
}

.btn-mini {
  min-height: 34px !important;
  padding: 6px 10px !important;
  font-size: 13px !important;
  border-radius: 9px !important;
  font-weight: 800 !important;
  white-space: nowrap;
}

.group-audit-actions .btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

  .group-report-filters {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) {
  .group-report-summary-grid,
  .group-report-filters {
    grid-template-columns: 1fr;
  }
}

.group-ticket-detail {
  background: #f8fafc;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 12px 14px;
  margin-bottom: 14px;
}

.group-ticket-detail p {
  margin: 4px 0;
}

.group-ticket-totals {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  margin: 16px 0;
  padding: 12px 14px;
  background: #f8fafc;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  font-size: 18px;
}

.group-print-ticket-holder {
  display: none;
}

@media print {
  body * {
    visibility: hidden !important;
  }

  .group-print-ticket-holder,
  .group-print-ticket-holder * {
    visibility: visible !important;
  }

  .group-print-ticket-holder {
    display: block !important;
    position: absolute !important;
    left: 0 !important;
    top: 0 !important;
    width: 80mm !important;
    background: #fff !important;
    padding: 0 !important;
    margin: 0 !important;
  }
}

.group-ticket-modal {
  max-height: 86vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.group-ticket-modal .group-ticket-detail {
  flex: 0 0 auto;
}

.group-ticket-plays-wrap {
  flex: 1 1 auto;
  max-height: 340px;
  overflow-y: auto;
  overflow-x: auto;
  margin-bottom: 12px;
}

.group-ticket-totals {
  flex: 0 0 auto;
}

.group-ticket-modal-actions {
  flex: 0 0 auto;
  position: sticky;
  bottom: 0;
  background: #ffffff;
  padding-top: 10px;
  margin-top: 8px;
}

.group-dashboard-new {
  background: #f1f5f9;
  border-radius: 16px;
  padding: 0;
  overflow: hidden;
}

.group-dashboard-title {
  background: #ffffff;
  color: #6b7280;
  font-size: 24px;
  font-weight: 900;
  padding: 22px 26px;
  border-bottom: 1px solid #e5e7eb;
  letter-spacing: 0.02em;
}

.group-dashboard-kpis {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  padding: 26px;
}

.group-kpi-card {
  min-height: 150px;
  border-radius: 0;
  color: #ffffff;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 12px;
  text-align: center;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.12);
}

.group-kpi-card strong {
  font-size: 44px;
  font-weight: 400;
  line-height: 1;
}

.group-kpi-card span {
  font-size: 16px;
  font-weight: 700;
  text-transform: uppercase;
}

.group-kpi-yellow {
  background: #fde36b;
  color: #1f2937;
}

.group-kpi-blue {
  background: #2d9be8;
}

.group-kpi-orange {
  background: #f7a566;
}

.group-kpi-green {
  background: #29b765;
}

.group-dashboard-body {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(360px, 1fr);
  gap: 20px;
  padding: 0 26px 26px;
}

.group-dashboard-chart-panel,
.group-dashboard-lottery-panel {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  padding: 28px 30px;
  min-height: 420px;
}

.group-dashboard-chart-panel h3,
.group-dashboard-lottery-panel h3 {
  margin: 0 0 24px;
  font-size: 18px;
  font-weight: 900;
  color: #111827;
}

.group-week-chart {
  height: 310px;
  border-left: 3px solid #555;
  border-bottom: 3px solid #555;
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  align-items: end;
  gap: 24px;
  padding: 20px 18px 0;
  background-image:
    linear-gradient(to top, rgba(0,0,0,0.12) 1px, transparent 1px);
  background-size: 100% 52px;
}

.group-week-bar-wrap {
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: end;
  align-items: center;
  gap: 8px;
}

.group-week-bars {
  height: 250px;
  width: 54px;
  display: flex;
  align-items: end;
  gap: 3px;
}

.group-week-bar {
  display: block;
  width: 25px;
  border: 2px solid;
}

.group-week-bar.venta {
  background: rgba(45, 155, 232, 0.42);
  border-color: #2093e7;
}

.group-week-bar.neto {
  background: rgba(41, 183, 101, 0.62);
  border-color: #16a34a;
}

.group-week-bar-wrap small {
  font-weight: 800;
  color: #374151;
}

.group-chart-legend {
  margin-top: 16px;
  display: flex;
  gap: 18px;
  justify-content: flex-end;
  color: #6b7280;
  font-weight: 700;
}

.group-chart-legend b {
  display: inline-block;
  width: 14px;
  height: 14px;
  margin-right: 5px;
  vertical-align: middle;
}

.legend-blue {
  background: #2d9be8;
}

.legend-green {
  background: #29b765;
}

.group-lottery-table-wrap {
  max-height: 360px;
  overflow-y: auto;
  border: 1px solid #d1d5db;
}

.group-lottery-table {
  width: 100%;
  border-collapse: collapse;
}

.group-lottery-table th {
  background: #333333;
  color: #ffffff;
  padding: 14px 12px;
  text-align: left;
  font-size: 15px;
}

.group-lottery-table td {
  border-bottom: 1px solid #d1d5db;
  border-right: 1px solid #d1d5db;
  padding: 13px 12px;
  font-size: 15px;
}

.group-lottery-table td:nth-child(2),
.group-lottery-table td:nth-child(3),
.group-lottery-table th:nth-child(2),
.group-lottery-table th:nth-child(3) {
  text-align: right;
}

@media (max-width: 1200px) {
  .group-dashboard-kpis {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .group-dashboard-body {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 700px) {
  .group-dashboard-kpis {
    grid-template-columns: 1fr;
  }

  .group-kpi-card strong {
    font-size: 36px;
  }

  .group-dashboard-chart-panel,
  .group-dashboard-lottery-panel {
    padding: 20px;
  }

.group-week-bar.neto.negative {
  background: rgba(220, 38, 38, 0.58);
  border-color: #dc2626;
}

  .group-week-chart {
    gap: 10px;
    overflow-x: auto;
  }
}

.group-controls-section {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.group-controls-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(360px, 0.7fr);
  gap: 18px;
}

.group-control-panel {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 10px 20px rgba(15, 23, 42, 0.06);
}

.group-control-panel-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 16px;
}

.group-control-panel-header h3 {
  margin: 0;
  font-size: 22px;
  font-weight: 900;
  color: #111827;
}

.group-control-panel-header p {
  margin: 4px 0 0;
  color: #64748b;
  font-weight: 600;
}

.group-control-form {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.group-control-form .btn {
  width: 100%;
  min-height: 46px;
  border-radius: 12px;
  font-weight: 900;
  margin-top: 4px;
}

.group-control-table-wrap {
  overflow-x: auto;
}

.group-control-table-wrap table th,
.group-control-table-wrap table td {
  white-space: nowrap;
}

@media (max-width: 1100px) {
  .group-controls-grid {
    grid-template-columns: 1fr;
  }
}

.group-ticket-modal {
  max-height: 88vh;
  overflow-y: auto;
  padding-bottom: 24px;
}


.group-ticket-modal .group-control-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px 18px;
  padding-right: 6px;
}

.group-ticket-modal .field {
  min-width: 0;
}

.group-ticket-modal .field textarea {
  min-height: 90px;
  resize: vertical;
}

.group-ticket-modal .modal-actions {
  background: #ffffff;
  padding-top: 16px;
  margin-top: 20px;
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  border-top: 1px solid #e5e7eb;
}

@media (max-width: 800px) {
  .group-ticket-modal .group-control-form {
    grid-template-columns: 1fr;
  }
}
.group-portal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
}

.group-header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
  max-width: 760px;
}

.group-header-btn {
  border: 0;
  border-radius: 10px;
  padding: 10px 16px;
  min-width: 120px;
  max-width: 160px;
  font-weight: 800;
  font-size: 14px;
  cursor: pointer;
  color: #ffffff;
  white-space: nowrap;
}

.group-header-btn-language {
  background: #2563eb;
}

.group-header-btn-pos {
  background: #16a34a;
}

.group-header-btn-exit {
  background: #6b7280;
}

.group-time-pill {
  border: 1px solid #86efac;
  background: #dcfce7;
  color: #166534;
  font-weight: 800;
  font-size: 14px;
  border-radius: 10px;
  padding: 10px 14px;
  min-width: 145px;
  max-width: 160px;
  text-align: center;
  white-space: nowrap;
}

@media (max-width: 900px) {
  .group-portal-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .group-header-actions {
    justify-content: flex-start;
    max-width: 100%;
  }
}


/* MOBILE POS OLD CSS DISABLED - backup saved before cleanup */

/* =========================================================
   POS MOBILE CLEAN - Android/APK friendly
   ========================================================= */

@media (max-width: 768px) {
  .screen {
    height: auto;
    min-height: 100vh;
    padding: 8px;
    gap: 8px;
    overflow-x: hidden;
    overflow-y: auto;
    background: #f1f5f9;
  }

  .topbar-green {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 8px;
    border-radius: 14px;
  }

  .system-info {
    width: 100%;
    padding: 8px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.65);
  }

  .system-title {
    font-size: 17px;
    line-height: 1.1;
    font-weight: 900;
  }

  .system-subline {
    font-size: 11px;
    line-height: 1.25;
  }

  .system-subline:nth-of-type(2),
  .system-subline:nth-of-type(3),
  .system-subline:nth-of-type(4) {
    display: none;
  }

  .topbar-right {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
    margin-left: 0;
  }

  .badge.soft,
  .top-mini-btn {
    width: 100%;
    min-height: 36px;
    font-size: 11px;
    border-radius: 10px;
    justify-content: center;
    text-align: center;
  }

  .lottery-area {
    padding: 8px;
    border-radius: 14px;
  }

  .lottery-area-title {
    font-size: 13px;
    font-weight: 900;
  }

  .lottery-strip-wrap {
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .lottery-strip {
    gap: 8px;
  }

  .lottery-btn {
    flex: 0 0 138px;
    min-width: 138px;
    max-width: 138px;
    min-height: 58px;
    padding: 8px;
    border-radius: 12px;
  }

  .lottery-name {
    font-size: 12px;
    font-weight: 900;
  }

  .lottery-close {
    font-size: 10px;
    font-weight: 800;
  }

  .layout.layout-3cols {
    display: flex;
    flex-direction: column;
    gap: 8px;
    overflow: visible;
    min-height: auto;
  }

  .left-panel,
  .center-panel,
  .actions-panel {
    width: 100%;
    min-height: auto;
    overflow: visible;
  }

  .left-panel {
    order: 1;
  }

  .center-panel {
    order: 2;
    display: block;
  }

  .actions-panel {
    order: 3;
  }

  .card {
    border-radius: 14px;
    padding: 8px;
  }

  .card h2 {
    font-size: 16px;
    margin-bottom: 8px;
  }

  .capture-row {
    grid-template-columns: 1.25fr 0.75fr 0.55fr;
    gap: 6px;
    align-items: end;
  }

  .capture-field label {
    font-size: 11px;
    font-weight: 900;
  }

  .capture-field input,
  .capture-field select {
    height: 38px;
    min-height: 38px;
    font-size: 14px;
    padding: 6px 8px;
    border-radius: 10px;
  }

  .capture-field.available-field input {
    font-size: 12px;
  }

  .button-row-2,
  .button-row-3 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 7px;
  }

  .btn {
    min-height: 42px;
    height: 42px;
    font-size: 12px;
    font-weight: 900;
    border-radius: 10px;
    padding: 6px 8px;
  }

  .btn-sell,
  .btn-save {
    min-height: 46px;
    height: 46px;
    font-size: 14px;
  }

  .ticket-card {
    height: auto;
    min-height: 285px;
    max-height: none;
  }

  .table-wrap.ticket-scroll {
    max-height: 245px;
    overflow-x: auto;
    overflow-y: auto;
  }

  .table-wrap.ticket-scroll table {
    min-width: 430px;
  }

  .table-wrap.ticket-scroll th,
  .table-wrap.ticket-scroll td {
    padding: 6px 5px;
    font-size: 11px;
  }

  .ticket-footer {
    position: sticky;
    bottom: 0;
    background: #ffffff;
    z-index: 5;
    padding-top: 8px;
    font-size: 12px;
  }

  .side-actions-card {
    min-height: auto;
  }

  .extra-actions-title {
    font-size: 13px;
    margin-bottom: 6px;
  }

  .modal {
    width: calc(100vw - 20px);
    max-width: calc(100vw - 20px);
    max-height: calc(100vh - 20px);
    overflow-y: auto;
    border-radius: 14px;
  }
}

@media (max-width: 420px) {
  .topbar-right {
    grid-template-columns: 1fr 1fr;
  }

  .lottery-btn {
    flex-basis: 132px;
    min-width: 132px;
    max-width: 132px;
  }

  .capture-row {
    grid-template-columns: 1.2fr 0.75fr 0.55fr;
  }

  .btn {
    font-size: 11px;
  }
}

/* =========================================================
   POS MOBILE BUTTON ALIGN FIX
   ========================================================= */

@media (max-width: 768px) {
  /* Header: idioma, balance, salir, hora bien alineados */
  .topbar-right {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 6px !important;
    width: 100% !important;
    align-items: stretch !important;
  }

  .topbar-right > * {
    width: 100% !important;
    min-width: 0 !important;
    height: 36px !important;
    min-height: 36px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    margin: 0 !important;
  }

  /* Botones principales del POS */
  .left-panel .button-row-2,
  .left-panel .button-row-3 {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 7px !important;
    width: 100% !important;
  }

  .left-panel .button-row-2 > *,
  .left-panel .button-row-3 > * {
    width: 100% !important;
    min-width: 0 !important;
    margin: 0 !important;
  }

  /* Si una fila tiene un solo botón, que ocupe todo el ancho */
  .left-panel .button-row-2 > *:only-child,
  .left-panel .button-row-3 > *:only-child {
    grid-column: 1 / -1 !important;
  }

  /* Botones de acciones abajo: Reportes, Resultados, Anular, Pagar, Perfil */
  .actions-panel .button-row-2,
  .actions-panel .button-row-3 {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 7px !important;
    width: 100% !important;
  }

  .actions-panel .button-row-2 > *,
  .actions-panel .button-row-3 > * {
    width: 100% !important;
    min-width: 0 !important;
    margin: 0 !important;
  }

  .actions-panel .button-row-2 > *:only-child,
  .actions-panel .button-row-3 > *:only-child {
    grid-column: 1 / -1 !important;
  }
}

@media (max-width: 420px) {
  .topbar-right {
    grid-template-columns: 1fr 1fr !important;
  }

  .left-panel .button-row-2,
  .left-panel .button-row-3,
  .actions-panel .button-row-2,
  .actions-panel .button-row-3 {
    grid-template-columns: 1fr 1fr !important;
  }
}

/* =========================================================
   POS MAIN BUTTONS GRID
   ========================================================= */

.pos-main-buttons {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  width: 100%;
}

.pos-main-buttons > .btn {
  width: 100%;
  min-width: 0;
  margin: 0;
}

@media (max-width: 768px) {
  .pos-main-buttons {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 7px !important;
  }

  .pos-main-buttons > .btn {
    width: 100% !important;
    min-width: 0 !important;
  }
}

/* =========================================================
   POS MOBILE HEADER SHOW USER AND BANK
   ========================================================= */

@media (max-width: 768px) {
  .topbar-green .system-info .system-subline {
    display: block !important;
    font-size: 11px !important;
    line-height: 1.25 !important;
    font-weight: 700 !important;
    color: #0f172a !important;
  }

  .topbar-green .system-info .system-title {
    display: block !important;
    margin-bottom: 3px !important;
  }
}

/* =========================================================
   POS MOBILE CAPTURE LAYOUT ONLY
   Solo afecta celulares / APK
   ========================================================= */

@media (max-width: 768px) {
  .left-panel .capture-row {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 7px !important;
    align-items: end !important;
  }

  .left-panel .capture-field.bet-field {
    grid-column: 1 / -1 !important;
  }

  .left-panel .capture-field.available-field {
    grid-column: 1 / 2 !important;
  }

  .left-panel .capture-field.amount-field {
    grid-column: 2 / 3 !important;
  }

  .left-panel .capture-field label {
    font-size: 11px !important;
    font-weight: 900 !important;
    margin-bottom: 3px !important;
  }

  .left-panel .bet-input.compact {
    height: 44px !important;
    min-height: 44px !important;
    font-size: 16px !important;
    font-weight: 800 !important;
    border-radius: 12px !important;
    padding: 8px 10px !important;
  }

  .left-panel .amount-input.compact,
  .left-panel .available-input {
    height: 40px !important;
    min-height: 40px !important;
    font-size: 15px !important;
    font-weight: 800 !important;
    border-radius: 12px !important;
    padding: 8px 10px !important;
    text-align: right !important;
  }

  .left-panel .available-input {
    background: #f8fafc !important;
    color: #0f172a !important;
  }

  .left-panel .amount-input.compact {
    background: #ffffff !important;
  }

  .left-panel .message-box {
    min-height: 38px !important;
    padding: 9px 10px !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    border-radius: 12px !important;
  }
}

@media (max-width: 420px) {
  .left-panel .bet-input.compact {
    height: 46px !important;
    font-size: 17px !important;
  }

  .left-panel .amount-input.compact,
  .left-panel .available-input {
    height: 42px !important;
    font-size: 15px !important;
  }
}

/* =========================================================
   POS MOBILE STICKY ACTIONS
   Solo celulares / APK
   ========================================================= */

@media (max-width: 768px) {
  .left-panel .pos-main-buttons {
    position: sticky !important;
    bottom: 8px !important;
    z-index: 40 !important;
    background: rgba(241, 245, 249, 0.96) !important;
    border: 1px solid #dbeafe !important;
    border-radius: 14px !important;
    padding: 8px !important;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.16) !important;
    backdrop-filter: blur(6px);
  }

  .left-panel .pos-main-buttons .btn {
    height: 42px !important;
    min-height: 42px !important;
  }

  .left-panel .pos-main-buttons .btn-sell,
  .left-panel .pos-main-buttons .btn-save {
    height: 45px !important;
    min-height: 45px !important;
  }
}

/* =========================================================
   POS MOBILE STICKY ACTIONS OFF
   Quita barra grande pegada en móvil
   ========================================================= */

@media (max-width: 768px) {
  .left-panel .pos-main-buttons {
    position: static !important;
    bottom: auto !important;
    z-index: auto !important;
    background: transparent !important;
    border: none !important;
    border-radius: 0 !important;
    padding: 0 !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
  }
}

/* =========================================================
   POS MOBILE ACTIONS REORDER
   Celular: arriba solo Vender/Compartir/Copiar
   ========================================================= */

.mobile-secondary-actions {
  display: none;
}

@media (max-width: 768px) {
  .pos-main-buttons {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 6px !important;
  }

  .pos-main-buttons .pos-secondary-action {
    display: none !important;
  }

  .pos-main-buttons .pos-primary-action {
    display: flex !important;
    width: 100% !important;
    min-width: 0 !important;
    height: 42px !important;
    min-height: 42px !important;
    font-size: 11px !important;
    padding: 6px 4px !important;
  }

  .mobile-secondary-actions {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 6px !important;
    margin-bottom: 8px !important;
  }

  .mobile-secondary-actions .btn {
    width: 100% !important;
    min-width: 0 !important;
    height: 40px !important;
    min-height: 40px !important;
    font-size: 11px !important;
    padding: 6px 4px !important;
  }

  .actions-panel .extra-actions-title {
    display: none !important;
  }
}

/* =========================================================
   POS MOBILE SECONDARY ACTIONS 3 COLUMNS FIX
   Quick-Pick / Ligar / Limpiar en una sola línea
   ========================================================= */

@media (max-width: 768px) {
  .actions-panel .mobile-secondary-actions {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 6px !important;
    width: 100% !important;
    margin-bottom: 8px !important;
  }

  .actions-panel .mobile-secondary-actions > button {
    width: 100% !important;
    min-width: 0 !important;
    margin: 0 !important;
    height: 40px !important;
    min-height: 40px !important;
    font-size: 10.5px !important;
    padding: 5px 3px !important;
    white-space: nowrap !important;
  }
}

@media (max-width: 420px) {
  .actions-panel .mobile-secondary-actions {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }

  .actions-panel .mobile-secondary-actions > button {
    font-size: 10px !important;
    padding-left: 2px !important;
    padding-right: 2px !important;
  }
}

/* =========================================================
   POS MOBILE SYMBOL BAR
   Solo celulares / APK
   ========================================================= */

.mobile-symbol-bar {
  display: none;
}

@media (max-width: 768px) {
  .mobile-symbol-bar {
    display: grid !important;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 5px;
    margin-top: 6px;
  }

  .mobile-symbol-bar button {
    height: 32px;
    min-height: 32px;
    border: 1px solid #cbd5e1;
    border-radius: 9px;
    background: #ffffff;
    color: #0f172a;
    font-size: 14px;
    font-weight: 900;
    cursor: pointer;
    padding: 0;
  }

  .mobile-symbol-bar button:active {
    transform: scale(0.97);
    background: #e0f2fe;
  }
}

/* =========================================================
   POS MOBILE SYMBOL BAR COLORS
   Botones rápidos más visibles
   ========================================================= */

@media (max-width: 768px) {
  .mobile-symbol-bar button {
    border: none !important;
    color: #ffffff !important;
    font-size: 15px !important;
    font-weight: 900 !important;
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.18) !important;
  }

  .mobile-symbol-bar .symbol-plus {
    background: #16a34a !important;
  }

  .mobile-symbol-bar .symbol-minus {
    background: #2563eb !important;
  }

  .mobile-symbol-bar .symbol-dot {
    background: #7c3aed !important;
  }

  .mobile-symbol-bar .symbol-x {
    background: #f97316 !important;
  }

  .mobile-symbol-bar .symbol-clear-command {
    background: #dc2626 !important;
  }

  .mobile-symbol-bar button:active {
    transform: scale(0.95) !important;
    filter: brightness(0.92) !important;
  }
}

/* =========================================================
   POS LOGIN BACKGROUND
   Solo Login POS
   ========================================================= */

.login-pos-bg {
  position: relative;
  min-height: 100vh;
  background:
    radial-gradient(circle at center 28%, rgba(37, 99, 235, 0.28), transparent 36%),
    linear-gradient(180deg, #020617 0%, #071642 46%, #020617 100%);
  overflow: hidden;
}

.login-pos-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url('/branding/therock-lightning-logo.png');
  background-repeat: no-repeat;
  background-position: center 12%;
  background-size: min(520px, 86vw);
  opacity: 0.95;
  filter: drop-shadow(0 0 26px rgba(37, 99, 235, 0.65));
  pointer-events: none;
}

.login-pos-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 18% 18%, rgba(59, 130, 246, 0.22), transparent 30%),
    radial-gradient(circle at 82% 24%, rgba(245, 158, 11, 0.14), transparent 32%),
    linear-gradient(to bottom, rgba(2, 6, 23, 0.12), rgba(2, 6, 23, 0.72));
  pointer-events: none;
}

.login-pos-card {
  position: relative;
  z-index: 1;
  background: rgba(255, 255, 255, 0.92) !important;
  border: 1px solid rgba(255, 255, 255, 0.55) !important;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.35) !important;
  backdrop-filter: blur(8px);
}

.login-pos-card h2 {
  text-align: center;
  font-weight: 900;
  color: #e5f0ff;
  text-shadow: 0 0 12px rgba(59, 130, 246, 0.6);
}

@media (max-width: 768px) {
    .login-pos-bg {
    padding: 18px !important;
    align-items: center !important;
    justify-content: flex-start !important;
  }

  .login-pos-bg::after {
    background-position: center 7%;
    background-size: min(330px, 84vw);
  }
  
    .login-pos-card {
    width: min(92vw, 380px) !important;
    border-radius: 18px !important;
    padding: 18px !important;
    margin-top: min(300px, 34vh) !important;
  }

  .login-pos-card .field label {
    font-weight: 900;
  }

  .login-pos-card input,
  .login-pos-card select {
    height: 44px;
    font-size: 16px;
    border-radius: 12px;
  }

  .login-pos-card .btn {
    height: 46px;
    min-height: 46px;
    font-size: 15px;
    font-weight: 900;
  }
}

/* =========================================================
   PWA / APK BASE BACKGROUND FIX
   Evita pantalla negra al abrir instalada
   ========================================================= */

html,
body,
#root {
  min-height: 100%;
  background: #f1f5f9;
}

@media (display-mode: standalone) {
  html,
  body,
  #root {
    min-height: 100vh;
    background: #f1f5f9 !important;
  }

  body {
    margin: 0;
    overflow-x: hidden;
  }
}

/* =========================================================
   POS APK DOWNLOAD BUTTON
   ========================================================= */

.top-mini-apk {
  background: #22c55e !important;
  color: #ffffff !important;
  border: none !important;
  font-weight: 900 !important;
}

.top-mini-apk:hover {
  background: #16a34a !important;
}

@media (max-width: 768px) {
  .top-mini-apk {
    font-size: 11px !important;
    min-height: 36px !important;
  }
}

/* =========================================================
   POS APK BUTTON COMPACT MOBILE
   ========================================================= */

@media (max-width: 768px) {
  .top-mini-apk {
    min-height: 34px !important;
    height: 34px !important;
    font-size: 10.5px !important;
    padding: 4px 6px !important;
    border-radius: 10px !important;
  }
}

/* =========================================================
   POS APK BUTTON SMALL FINAL
   ========================================================= */

@media (max-width: 768px) {
  .topbar-right .top-mini-apk {
    height: 30px !important;
    min-height: 30px !important;
    max-height: 30px !important;
    font-size: 10px !important;
    padding: 3px 6px !important;
    border-radius: 9px !important;
    line-height: 1 !important;
  }
}

.ticket-print-two-columns {
  font-family: Arial, sans-serif;
}

.ticket-print-two-columns .ticket-print-group-title {
  font-weight: 900;
  text-align: center;
  font-size: 15px;
  text-transform: uppercase;
  margin: 3px 0;
}

.ticket-print-two-columns .ticket-print-two-col-header,
.ticket-print-two-columns .ticket-print-two-col-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 8px;
  width: 100%;
}

.ticket-print-two-columns .ticket-print-two-col-header {
  font-weight: 900;
  font-size: 12px;
  margin: 2px 0;
}

.ticket-print-two-columns .ticket-print-two-col-cell {
  display: grid;
  grid-template-columns: 1fr auto;
  column-gap: 4px;
  align-items: baseline;
  min-width: 0;
  text-align: left;
}

.ticket-print-two-columns .ticket-print-two-col-jugada {
  font-weight: 900;
  font-size: 13px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: clip;
  text-align: left;
  justify-self: start;
}

.ticket-print-two-columns .ticket-print-two-col-monto {
  font-weight: 900;
  font-size: 13px;
  white-space: nowrap;
  text-align: right;
}

.ticket-print-two-columns .ticket-print-total {
  text-align: right;
  font-size: 15px;
  font-weight: 900;
  margin-top: 3px;
}

.ticket-print-two-columns .ticket-print-reprint {
  text-align: center;
  color: red;
  font-weight: 900;
  font-size: 14px;
  margin: 2px 0;
}

.ticket-print-two-columns .ticket-print-footer-message {
  margin-top: 6px;
  padding-top: 4px;
  border-top: 1px dashed #000;
  font-size: 12px;
  line-height: 1.15;
  font-weight: 800;
  text-align: center;
  white-space: pre-line;
}

.ticket-print-58mm.ticket-print-two-columns .ticket-print-two-col-header,
.ticket-print-58mm.ticket-print-two-columns .ticket-print-two-col-row {
  column-gap: 5px;
}

.ticket-print-58mm.ticket-print-two-columns .ticket-print-two-col-jugada,
.ticket-print-58mm.ticket-print-two-columns .ticket-print-two-col-monto {
  font-size: 12px;
}

.ticket-print-58mm.ticket-print-two-columns .ticket-print-group-title {
  font-size: 14px;
}

.ticket-print-80mm.ticket-print-two-columns .ticket-print-two-col-jugada,
.ticket-print-80mm.ticket-print-two-columns .ticket-print-two-col-monto {
  font-size: 14px;
}

.ticket-print-80mm.ticket-print-two-columns .ticket-print-group-title {
  font-size: 16px;
}

.ticket-print-two-columns .ticket-print-two-col-header .ticket-print-two-col-cell span:first-child {
  text-align: left;
  justify-self: start;
}

.ticket-print-two-columns .ticket-print-two-col-header .ticket-print-two-col-cell span:last-child {
  text-align: right;
  justify-self: end;
}

.profile-printer-box {
  display: grid;
  gap: 8px;
}

.profile-printer-box h4 {
  margin: 0 0 4px;
  font-size: 16px;
  font-weight: 900;
}

.profile-printer-box label {
  display: grid;
  gap: 4px;
  font-weight: 700;
  font-size: 13px;
}

.profile-printer-box select,
.profile-printer-box input {
  width: 100%;
  min-height: 38px;
  border-radius: 8px;
  border: 1px solid #d1d5db;
  padding: 8px 10px;
  font-size: 14px;
}

.printer-device-list {
  display: grid;
  gap: 6px;
  margin-top: 8px;
  max-height: 140px;
  overflow-y: auto;
}

.printer-device-btn {
  border: 1px solid #d1d5db;
  background: #ffffff;
  border-radius: 8px;
  padding: 9px 10px;
  font-weight: 800;
  text-align: left;
}
.profile-tab-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 10px;
}

.profile-tab-row .btn {
  width: 100%;
  min-height: 44px;
  padding: 8px 6px;
  font-size: 12px;
  border-radius: 10px;
}

/* Modal Perfil / Impresora POS móvil */
.profile-modal,
.pos-profile-modal {
  position: fixed !important;
  inset: 0 !important;
  z-index: 99999 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 16px !important;
  background: rgba(15, 23, 42, 0.45) !important;
}

.profile-modal .modal-card,
.pos-profile-modal .modal-card,
.profile-card {
  width: min(94vw, 430px) !important;
  max-height: 88vh !important;
  overflow-y: auto !important;
  background: #ffffff !important;
  border-radius: 16px !important;
  padding: 16px !important;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.35) !important;
  position: relative !important;
  z-index: 100000 !important;
}

.profile-tab-row {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr) !important;
  gap: 8px !important;
  margin-bottom: 14px !important;
}

.profile-tab-row .btn {
  width: 100% !important;
  min-height: 44px !important;
  padding: 8px 6px !important;
  font-size: 11px !important;
  line-height: 1.1 !important;
  border-radius: 10px !important;
  font-weight: 800 !important;
}

.profile-printer-box {
  display: grid !important;
  gap: 10px !important;
}

.profile-printer-box h4 {
  margin: 0 0 4px !important;
  font-size: 17px !important;
  font-weight: 900 !important;
  text-align: center !important;
}

.profile-printer-box label {
  display: grid !important;
  gap: 5px !important;
  font-weight: 800 !important;
  font-size: 13px !important;
}

.profile-printer-box select,
.profile-printer-box input {
  width: 100% !important;
  min-height: 42px !important;
  border-radius: 10px !important;
  border: 1px solid #d1d5db !important;
  padding: 9px 10px !important;
  font-size: 15px !important;
  background: #ffffff !important;
}

.profile-printer-actions {
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  gap: 8px !important;
  margin-top: 6px !important;
}

.profile-printer-actions .btn {
  min-height: 44px !important;
  font-size: 13px !important;
  font-weight: 900 !important;
  border-radius: 10px !important;
}

.profile-printer-close-row {
  display: grid !important;
  grid-template-columns: 1fr !important;
  margin-top: 8px !important;
}

.profile-printer-close-row .btn {
  min-height: 44px !important;
  font-size: 13px !important;
  font-weight: 900 !important;
  border-radius: 10px !important;
}

.printer-device-list {
  display: grid !important;
  gap: 7px !important;
  margin-top: 8px !important;
  max-height: 150px !important;
  overflow-y: auto !important;
}

.printer-device-btn {
  border: 1px solid #d1d5db !important;
  background: #ffffff !important;
  border-radius: 10px !important;
  padding: 10px !important;
  font-weight: 900 !important;
  text-align: left !important;
  font-size: 14px !important;
}

.printer-small-message {
  margin-top: 8px !important;
  padding: 9px 10px !important;
  border-radius: 10px !important;
  background: #f8fafc !important;
  border: 1px solid #e5e7eb !important;
  color: #334155 !important;
  font-size: 12px !important;
  line-height: 1.25 !important;
  font-weight: 700 !important;
}

.profile-modal {
  position: fixed !important;
  inset: 0 !important;
  z-index: 99999 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 16px !important;
  background: rgba(15, 23, 42, 0.45) !important;
}

.profile-card {
  width: min(94vw, 430px) !important;
  max-height: 88vh !important;
  overflow-y: auto !important;
  background: #ffffff !important;
  border-radius: 16px !important;
  padding: 16px !important;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.35) !important;
  position: relative !important;
  z-index: 100000 !important;
}

.profile-card h3 {
  margin: 0 0 12px !important;
  font-size: 22px !important;
  font-weight: 900 !important;
}

.profile-tab-row {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr) !important;
  gap: 8px !important;
  margin-bottom: 14px !important;
}

.profile-tab-row .btn {
  width: 100% !important;
  min-height: 44px !important;
  padding: 8px 6px !important;
  font-size: 11px !important;
  line-height: 1.1 !important;
  border-radius: 10px !important;
  font-weight: 800 !important;
}

.profile-printer-box {
  display: grid !important;
  gap: 10px !important;
}

.profile-printer-box h4 {
  margin: 0 0 4px !important;
  font-size: 17px !important;
  font-weight: 900 !important;
  text-align: center !important;
}

.profile-printer-box label {
  display: grid !important;
  gap: 5px !important;
  font-weight: 800 !important;
  font-size: 13px !important;
}

.profile-printer-box select,
.profile-printer-box input {
  width: 100% !important;
  min-height: 42px !important;
  border-radius: 10px !important;
  border: 1px solid #d1d5db !important;
  padding: 9px 10px !important;
  font-size: 15px !important;
  background: #ffffff !important;
}

.profile-printer-actions {
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  gap: 8px !important;
  margin-top: 6px !important;
}

.profile-printer-actions .btn,
.profile-printer-close-row .btn {
  min-height: 44px !important;
  font-size: 13px !important;
  font-weight: 900 !important;
  border-radius: 10px !important;
}

.profile-printer-close-row {
  display: grid !important;
  grid-template-columns: 1fr !important;
  margin-top: 8px !important;
}

.printer-device-list {
  display: grid !important;
  gap: 7px !important;
  margin-top: 8px !important;
  max-height: 150px !important;
  overflow-y: auto !important;
}

.printer-device-btn {
  border: 1px solid #d1d5db !important;
  background: #ffffff !important;
  border-radius: 10px !important;
  padding: 10px !important;
  font-weight: 900 !important;
  text-align: left !important;
  font-size: 14px !important;
}

.printer-small-message {
  margin-top: 8px !important;
  padding: 9px 10px !important;
  border-radius: 10px !important;
  background: #f8fafc !important;
  border: 1px solid #e5e7eb !important;
  color: #334155 !important;
  font-size: 12px !important;
  line-height: 1.25 !important;
  font-weight: 700 !important;
}

/* Captura de ticket para compartir como imagen */
.share-ticket-capture-wrap {
  position: fixed;
  left: 0;
  top: 0;
  width: 320px;
  background: #ffffff;
  z-index: 999999;
  pointer-events: none;
  opacity: 0.01;
}

.share-ticket-capture {
  background: #ffffff;
  color: #000000;
  padding: 8px;
  width: 300px;
}

.share-ticket-capture {
  background: #ffffff;
  color: #000000;
  padding: 8px;
  width: 300px;
}

.share-ticket-capture .ticket-print {
  background: #ffffff !important;
  color: #000000 !important;
  box-shadow: none !important;
}

/* Mensajes internos - botones compactos */
.internal-message-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}

.internal-message-actions .btn {
  width: auto !important;
  min-width: 115px;
  padding: 8px 12px;
}

@media (max-width: 640px) {
  .internal-message-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .internal-message-actions .btn {
    width: 100% !important;
    min-width: 0;
  }
}


/* POS - indicador de mensajes no leídos */
.top-mini-messages-unread {
  background: #f97316 !important;
  color: #ffffff !important;
  border-color: #ea580c !important;
  box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.22);
  animation: posMessagePulse 1.4s ease-in-out infinite;
}

@keyframes posMessagePulse {
  0%, 100% {
    transform: translateY(0);
    box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.20);
  }
  50% {
    transform: translateY(-1px);
    box-shadow: 0 0 0 5px rgba(249, 115, 22, 0.30);
  }
}

/* Contact / legal info button */
.contact-info-btn {
  border: 1px solid rgba(37, 99, 235, 0.35);
  background: linear-gradient(135deg, #2563eb, #16a34a);
  color: #ffffff;
  font-weight: 900;
  border-radius: 10px;
  padding: 8px 12px;
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(37, 99, 235, 0.22);
  white-space: nowrap;
}

.contact-info-btn:hover {
  filter: brightness(1.05);
}

.contact-info-pos {
  min-height: 34px;
  font-size: 12px;
}

.contact-info-group {
  min-height: 38px;
}

.contact-info-card {
  width: min(92vw, 430px);
  background: #ffffff;
  border-radius: 16px;
  padding: 18px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.35);
  color: #0f172a;
}

.contact-info-body {
  font-size: 15px;
  line-height: 1.5;
}

.contact-email {
  color: #2563eb;
  font-size: 16px;
}

.contact-legal {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid #e5e7eb;
  color: #475569;
  font-size: 13px;
  font-weight: 700;
}

@media (max-width: 640px) {
  .contact-info-btn {
    padding: 7px 9px;
    font-size: 11px;
  }
}

/* Contact modal fixed overlay for APK / mobile */
.contact-info-backdrop-fixed {
  position: fixed !important;
  inset: 0 !important;
  z-index: 2147483000 !important;
  background: rgba(15, 23, 42, 0.72) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 16px !important;
  box-sizing: border-box !important;
  pointer-events: auto !important;
  -webkit-user-select: none;
  user-select: none;
}

.contact-info-card-fixed {
  width: min(92vw, 440px) !important;
  max-height: 86vh !important;
  overflow-y: auto !important;
  background: #ffffff !important;
  color: #0f172a !important;
  border-radius: 18px !important;
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.45) !important;
  padding: 18px !important;
  position: relative !important;
  z-index: 2147483001 !important;
}

.contact-info-header-fixed {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 12px !important;
  border-bottom: 1px solid #e5e7eb !important;
  padding-bottom: 10px !important;
  margin-bottom: 12px !important;
}

.contact-info-header-fixed h3 {
  margin: 0 !important;
  font-size: 20px !important;
  font-weight: 900 !important;
}

.contact-info-close-x {
  width: 38px !important;
  height: 38px !important;
  border: 0 !important;
  border-radius: 10px !important;
  background: #ef4444 !important;
  color: #ffffff !important;
  font-size: 26px !important;
  font-weight: 900 !important;
  line-height: 1 !important;
  cursor: pointer !important;
}

.contact-info-body-fixed {
  font-size: 15px !important;
  line-height: 1.5 !important;
}

.contact-email-fixed {
  font-size: 16px !important;
  font-weight: 900 !important;
  color: #2563eb !important;
  word-break: break-word !important;
  -webkit-user-select: text;
  user-select: text;
}

.contact-legal-fixed {
  margin-top: 14px !important;
  padding-top: 12px !important;
  border-top: 1px solid #e5e7eb !important;
  color: #475569 !important;
  font-size: 13px !important;
  font-weight: 800 !important;
}

.contact-info-close-bottom {
  width: 100% !important;
  margin-top: 16px !important;
  border: 0 !important;
  border-radius: 12px !important;
  padding: 12px 14px !important;
  background: #111827 !important;
  color: #ffffff !important;
  font-weight: 900 !important;
  cursor: pointer !important;
}

@media (max-width: 640px) {
  .contact-info-backdrop-fixed {
    align-items: flex-start !important;
    padding-top: 70px !important;
  }

  .contact-info-card-fixed {
    width: 94vw !important;
    max-height: 78vh !important;
  }
}

/* TheRock Lightning branding - POS */
.pos-brand-info {
  min-width: 0;
}

.pos-brand-header {
  display: flex;
  align-items: center;
  gap: 10px;
}

.pos-brand-logo {
  width: 64px;
  height: 64px;
  object-fit: contain;
  border-radius: 16px;
  flex: 0 0 auto;
  filter: drop-shadow(0 0 12px rgba(37, 99, 235, 0.65));
}

.pos-brand-text {
  min-width: 0;
}

.pos-brand-subtitle {
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.55px;
  color: #2563eb;
  text-transform: uppercase;
  line-height: 1.1;
  margin-top: 1px;
  margin-bottom: 3px;
}

@media (max-width: 640px) {
  .pos-brand-header {
    gap: 8px;
  }

  .pos-brand-logo {
    width: 56px;
    height: 56px;
    border-radius: 14px;
  }

  .pos-brand-subtitle {
    font-size: 9px;
    letter-spacing: 0.35px;
  }
}

/* =========================================================
   TheRock Lightning Login - Global portals
   Aplica a /pos, /admin, /group, /supervisor
   ========================================================= */

.login-pos-bg {
  position: relative !important;
  min-height: 100vh !important;
  display: flex !important;
  align-items: flex-end !important;
  justify-content: center !important;
  padding: 22px !important;
  overflow: hidden !important;
  background:
    linear-gradient(to bottom, rgba(2, 6, 23, 0.02) 0%, rgba(2, 6, 23, 0.50) 50%, rgba(2, 6, 23, 0.96) 100%),
    radial-gradient(circle at center 20%, rgba(37, 99, 235, 0.38), transparent 34%),
    linear-gradient(180deg, #020617 0%, #071642 48%, #020617 100%) !important;
}

.login-pos-bg::before {
  content: '' !important;
  position: absolute !important;
  inset: 0 !important;
  background-image: url('/branding/therock-lightning-logo.png') !important;
  background-repeat: no-repeat !important;
  background-position: center 5% !important;
  background-size: min(520px, 88vw) !important;
  opacity: 1 !important;
  filter: drop-shadow(0 0 28px rgba(37, 99, 235, 0.75)) !important;
  pointer-events: none !important;
}

.login-pos-bg::after {
  display: none !important;
}

.login-pos-card {
  position: relative !important;
  z-index: 5 !important;
  width: min(420px, 92vw) !important;
  margin: 0 auto 34px auto !important;
  background: rgba(2, 6, 23, 0.88) !important;
  border: 1px solid rgba(96, 165, 250, 0.55) !important;
  border-radius: 22px !important;
  box-shadow:
    0 22px 60px rgba(0, 0, 0, 0.66),
    0 0 32px rgba(37, 99, 235, 0.40) !important;
  color: #e5f0ff !important;
  backdrop-filter: blur(12px) !important;
}

.login-pos-card h2 {
  color: #e5f0ff !important;
  text-align: center !important;
  font-weight: 900 !important;
  text-shadow: 0 0 14px rgba(59, 130, 246, 0.75) !important;
  margin-bottom: 14px !important;
}

.login-pos-card label {
  color: #dbeafe !important;
  font-weight: 900 !important;
}

.login-pos-card input,
.login-pos-card select {
  background: rgba(15, 23, 42, 0.92) !important;
  color: #ffffff !important;
  border: 1px solid rgba(96, 165, 250, 0.50) !important;
  border-radius: 13px !important;
}

.login-pos-card input::placeholder {
  color: rgba(226, 232, 240, 0.70) !important;
}

.login-pos-card .btn {
  border-radius: 14px !important;
  font-weight: 900 !important;
  min-height: 46px !important;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.32) !important;
}

@media (max-width: 768px) {
  .login-pos-bg {
    align-items: flex-end !important;
    justify-content: center !important;
    padding: 16px !important;
  }

  .login-pos-bg::before {
    background-position: center 5% !important;
    background-size: min(350px, 88vw) !important;
  }

  .login-pos-card {
    width: min(92vw, 380px) !important;
    margin-bottom: 26px !important;
    padding: 18px !important;
  }
}

@media (max-height: 720px) {
  .login-pos-bg::before {
    background-size: min(300px, 78vw) !important;
    background-position: center 3% !important;
  }

  .login-pos-card {
    margin-bottom: 14px !important;
  }
}

/* TheRock Lightning Login final adjustment */
.login-pos-bg {
  align-items: flex-end !important;
  justify-content: center !important;
  padding: 14px 16px !important;
}

.login-pos-bg::before {
  background-image: url('/branding/therock-lightning-logo-login.webp') !important;
  background-position: center 2% !important;
  background-size: min(430px, 82vw) !important;
}

.login-pos-card {
  margin-bottom: 10px !important;
  width: min(390px, 92vw) !important;
  padding: 16px !important;
}

@media (max-width: 768px) {
  .login-pos-bg {
    padding: 12px !important;
  }

  .login-pos-bg::before {
    background-position: center 3% !important;
    background-size: min(295px, 78vw) !important;
  }

  .login-pos-card {
    margin-bottom: 8px !important;
    width: min(92vw, 360px) !important;
    padding: 14px !important;
  }

  .login-pos-card h2 {
    font-size: 18px !important;
    margin-bottom: 8px !important;
  }

  .login-pos-card input,
  .login-pos-card select {
    height: 42px !important;
  }

  .login-pos-card .btn {
    height: 42px !important;
    min-height: 42px !important;
  }
}

/* =========================================================
   TheRock Lightning Login - Ajuste final logo arriba / login abajo
   ========================================================= */

.login-pos-bg {
  align-items: flex-end !important;
  justify-content: center !important;
  padding: 18px !important;
  background:
    radial-gradient(circle at center 18%, rgba(37, 99, 235, 0.30), transparent 36%),
    linear-gradient(180deg, #020617 0%, #071642 46%, #020617 100%) !important;
}

.login-pos-bg::before {
  background-image: url('/branding/therock-lightning-logo-login.webp') !important;
  background-repeat: no-repeat !important;
  background-position: center 4% !important;
  background-size: min(420px, 78vw) !important;
  opacity: 1 !important;
  filter: drop-shadow(0 0 30px rgba(37, 99, 235, 0.70)) !important;
}

.login-pos-card {
  margin-bottom: 42px !important;
  width: min(380px, 90vw) !important;
  padding: 18px !important;
  background: rgba(2, 6, 23, 0.90) !important;
  border: 1px solid rgba(96, 165, 250, 0.58) !important;
  border-radius: 22px !important;
}

@media (max-width: 768px) {
  .login-pos-bg::before {
    background-position: center 4% !important;
    background-size: min(310px, 82vw) !important;
  }

  .login-pos-card {
    margin-bottom: 34px !important;
    width: min(92vw, 360px) !important;
    padding: 16px !important;
  }
}

@media (max-height: 720px) {
  .login-pos-bg::before {
    background-position: center 2% !important;
    background-size: min(270px, 76vw) !important;
  }

  .login-pos-card {
    margin-bottom: 16px !important;
    padding: 14px !important;
  }
}

/* =========================================================
   TheRock Lightning Login - pantalla única estilo app
   ========================================================= */

.login-pos-bg {
  min-height: 100vh !important;
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  flex-direction: column !important;
  padding: 72px 18px 24px !important;
  background:
    radial-gradient(circle at center 28%, rgba(37, 99, 235, 0.28), transparent 35%),
    linear-gradient(180deg, #020617 0%, #071642 42%, #020617 100%) !important;
  overflow: hidden !important;
}

.login-pos-bg::before {
  content: '' !important;
  position: relative !important;
  display: block !important;
  width: min(430px, 86vw) !important;
  height: min(310px, 55vw) !important;
  inset: auto !important;
  background-image: url('/branding/therock-lightning-logo-login.webp') !important;
  background-repeat: no-repeat !important;
  background-position: center center !important;
  background-size: contain !important;
  opacity: 1 !important;
  filter: drop-shadow(0 0 30px rgba(37, 99, 235, 0.75)) !important;
  pointer-events: none !important;
  margin: 0 auto 18px !important;
}

.login-pos-bg::after {
  display: none !important;
}

.login-pos-card {
  position: relative !important;
  z-index: 5 !important;
  width: min(390px, 92vw) !important;
  margin: 0 auto !important;
  padding: 0 !important;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  color: #e5f0ff !important;
}

.login-pos-card h2 {
  color: #e5f0ff !important;
  text-align: center !important;
  font-size: 22px !important;
  font-weight: 900 !important;
  margin: 0 0 14px !important;
  text-shadow: 0 0 14px rgba(59, 130, 246, 0.75) !important;
}

.login-pos-card button[title],
.login-pos-card > button {
  display: flex !important;
  margin: 0 auto 18px !important;
}

.login-pos-card .field {
  margin-bottom: 14px !important;
}

.login-pos-card label {
  display: none !important;
}

.login-pos-card input,
.login-pos-card select {
  width: 100% !important;
  height: 58px !important;
  text-align: center !important;
  background: #e8eef8 !important;
  color: #020617 !important;
  border: none !important;
  border-radius: 14px !important;
  font-size: 16px !important;
  font-weight: 800 !important;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.28) !important;
}

.login-pos-card input::placeholder {
  color: rgba(15, 23, 42, 0.68) !important;
  text-transform: uppercase !important;
}

.login-pos-card .btn {
  width: 100% !important;
  height: 58px !important;
  min-height: 58px !important;
  border-radius: 14px !important;
  background: #f97316 !important;
  color: #ffffff !important;
  font-size: 18px !important;
  font-weight: 900 !important;
  text-transform: uppercase !important;
  border: none !important;
  box-shadow: 0 14px 32px rgba(249, 115, 22, 0.32) !important;
}

.login-pos-card .btn:hover {
  background: #ea580c !important;
}

@media (max-width: 768px) {
  .login-pos-bg {
    padding: 54px 18px 20px !important;
  }

  .login-pos-bg::before {
    width: min(350px, 88vw) !important;
    height: min(260px, 58vw) !important;
    margin-bottom: 14px !important;
  }

  .login-pos-card {
    width: min(360px, 92vw) !important;
  }

  .login-pos-card h2 {
    font-size: 20px !important;
    margin-bottom: 12px !important;
  }

  .login-pos-card input,
  .login-pos-card select,
  .login-pos-card .btn {
    height: 54px !important;
    min-height: 54px !important;
  }
}

@media (max-height: 740px) {
  .login-pos-bg {
    padding-top: 28px !important;
  }

  .login-pos-bg::before {
    width: min(300px, 76vw) !important;
    height: min(210px, 45vw) !important;
    margin-bottom: 10px !important;
  }

  .login-pos-card input,
  .login-pos-card select,
  .login-pos-card .btn {
    height: 48px !important;
    min-height: 48px !important;
  }
}

/* =========================================================
   TheRock Login - sin brinco de logo
   Logo como imagen real, no como background
   ========================================================= */

.login-pos-bg {
  min-height: 100vh !important;
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  flex-direction: column !important;
  padding: 72px 18px 24px !important;
  background:
    radial-gradient(circle at center 28%, rgba(37, 99, 235, 0.28), transparent 35%),
    linear-gradient(180deg, #020617 0%, #071642 42%, #020617 100%) !important;
  overflow: hidden !important;
}

.login-pos-bg::before,
.login-pos-bg::after {
  display: none !important;
  content: none !important;
}

.login-brand-main {
  display: block !important;
  width: min(320px, 82vw) !important;
  height: auto !important;
  aspect-ratio: 1 / 1 !important;
  object-fit: contain !important;
  margin: 0 auto 18px !important;
  filter: drop-shadow(0 0 30px rgba(37, 99, 235, 0.75)) !important;
  flex: 0 0 auto !important;
}

.login-pos-card {
  position: relative !important;
  z-index: 5 !important;
  width: min(390px, 92vw) !important;
  margin: 0 auto !important;
  padding: 0 !important;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  color: #e5f0ff !important;
}

@media (max-width: 768px) {
  .login-pos-bg {
    padding: 54px 18px 20px !important;
  }

  .login-brand-main {
    width: min(300px, 84vw) !important;
    margin-bottom: 14px !important;
  }
}

@media (max-height: 740px) {
  .login-pos-bg {
    padding-top: 28px !important;
  }

  .login-brand-main {
    width: min(260px, 74vw) !important;
    margin-bottom: 10px !important;
  }
}

/* Ajuste visual login TheRock - logo más integrado */
.login-brand-main {
  width: min(300px, 78vw) !important;
  margin-bottom: 20px !important;
  border-radius: 22px !important;
  box-shadow:
    0 0 45px rgba(37, 99, 235, 0.55),
    0 0 90px rgba(37, 99, 235, 0.28) !important;
}

.login-pos-card {
  transform: translateY(-4px) !important;
}

.login-pos-card h2 {
  margin-bottom: 12px !important;
}

@media (max-height: 740px) {
  .login-brand-main {
    width: min(255px, 74vw) !important;
    margin-bottom: 12px !important;
  }

  .login-pos-card {
    transform: translateY(-2px) !important;
  }
}

/* =========================================================
   FIX DEFINITIVO LOGIN: usar solo imagen real, no background
   ========================================================= */

.login-pos-bg::before,
.login-pos-bg::after {
  display: none !important;
  content: none !important;
  background: none !important;
  background-image: none !important;
}

.login-pos-bg {
  min-height: 100vh !important;
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  flex-direction: column !important;
  padding: 72px 18px 24px !important;
  background:
    radial-gradient(circle at center 28%, rgba(37, 99, 235, 0.28), transparent 35%),
    linear-gradient(180deg, #020617 0%, #071642 42%, #020617 100%) !important;
  overflow: hidden !important;
}

.login-brand-main {
  display: block !important;
  width: 300px !important;
  height: 300px !important;
  max-width: 82vw !important;
  max-height: 38vh !important;
  object-fit: contain !important;
  margin: 0 auto 18px !important;
  filter: drop-shadow(0 0 30px rgba(37, 99, 235, 0.75)) !important;
  flex: 0 0 auto !important;
}

.login-pos-card {
  width: min(390px, 92vw) !important;
  margin: 0 auto !important;
  padding: 0 !important;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
}

@media (max-width: 768px) {
  .login-pos-bg {
    padding-top: 54px !important;
  }

  .login-brand-main {
    width: 280px !important;
    height: 280px !important;
    max-width: 84vw !important;
    max-height: 34vh !important;
    margin-bottom: 14px !important;
  }
}

@media (max-height: 740px) {
  .login-pos-bg {
    padding-top: 26px !important;
  }

  .login-brand-main {
    width: 245px !important;
    height: 245px !important;
    max-height: 32vh !important;
    margin-bottom: 10px !important;
  }
}

/* Loader suave para evitar salto visual de POS */
.pos-soft-loading {
  min-height: 100vh !important;
  background:
    radial-gradient(circle at center 28%, rgba(37, 99, 235, 0.28), transparent 35%),
    linear-gradient(180deg, #020617 0%, #071642 42%, #020617 100%) !important;
  flex-direction: column !important;
  gap: 14px !important;
}

.pos-soft-loading-logo {
  width: 220px !important;
  height: 220px !important;
  max-width: 72vw !important;
  max-height: 34vh !important;
  object-fit: contain !important;
  filter: drop-shadow(0 0 26px rgba(37, 99, 235, 0.70)) !important;
}

.pos-soft-loading-text {
  color: #e5f0ff !important;
  font-weight: 900 !important;
  letter-spacing: 0.8px !important;
  text-transform: uppercase !important;
  text-shadow: 0 0 14px rgba(59, 130, 246, 0.65) !important;
}

/* =========================================================
   TheRock Lightning POS Modern Mobile - Step 1
   Estructura visual APK/móvil sin romper lógica
   ========================================================= */

@media (max-width: 768px) {
  .pos-modern-mobile {
    min-height: 100vh !important;
    background:
      radial-gradient(circle at top, rgba(37, 99, 235, 0.22), transparent 34%),
      linear-gradient(180deg, #020617 0%, #06153d 45%, #020617 100%) !important;
    color: #e5f0ff !important;
    padding: 8px !important;
    overflow-x: hidden !important;
  }

  .pos-modern-mobile .topbar {
    background: rgba(2, 6, 23, 0.82) !important;
    border: 1px solid rgba(59, 130, 246, 0.35) !important;
    border-radius: 18px !important;
    box-shadow: 0 0 22px rgba(37, 99, 235, 0.25) !important;
    padding: 8px !important;
    margin-bottom: 8px !important;
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 8px !important;
  }

  .pos-modern-mobile .pos-brand-header {
    justify-content: center !important;
  }

  .pos-modern-mobile .pos-brand-logo {
    width: 54px !important;
    height: 54px !important;
    border-radius: 14px !important;
  }

  .pos-modern-mobile .system-title {
    color: #ffffff !important;
    font-size: 18px !important;
    text-shadow: 0 0 10px rgba(59, 130, 246, 0.65) !important;
  }

  .pos-modern-mobile .system-subline {
    font-size: 10px !important;
    color: #bfdbfe !important;
  }

  .pos-modern-mobile .topbar-right {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 6px !important;
    width: 100% !important;
  }

  .pos-modern-mobile .topbar-right .badge,
  .pos-modern-mobile .topbar-right button {
    min-height: 34px !important;
    border-radius: 12px !important;
    font-size: 11px !important;
    font-weight: 900 !important;
  }

  .pos-modern-mobile .lottery-area {
    background: rgba(2, 6, 23, 0.78) !important;
    border: 1px solid rgba(59, 130, 246, 0.45) !important;
    border-radius: 18px !important;
    padding: 10px !important;
    margin-bottom: 8px !important;
    box-shadow: 0 0 22px rgba(37, 99, 235, 0.22) !important;
  }

  .pos-modern-mobile .lottery-area-title {
    color: #ffffff !important;
    font-size: 16px !important;
    font-weight: 900 !important;
    letter-spacing: 0.3px !important;
    margin-bottom: 8px !important;
  }

  .pos-modern-mobile .lottery-strip-wrap {
    overflow-x: auto !important;
    padding-bottom: 4px !important;
  }

  .pos-modern-mobile .lottery-strip {
    display: flex !important;
    gap: 8px !important;
  }

  .pos-modern-mobile .lottery-btn {
    flex: 0 0 116px !important;
    min-height: 86px !important;
    border-radius: 16px !important;
    background:
      linear-gradient(180deg, rgba(15, 23, 42, 0.94), rgba(2, 6, 23, 0.92)) !important;
    border: 1px solid rgba(96, 165, 250, 0.38) !important;
    color: #e5f0ff !important;
    box-shadow: inset 0 0 18px rgba(37, 99, 235, 0.12) !important;
    padding: 10px 8px !important;
    position: relative !important;
  }

  .pos-modern-mobile .lottery-btn.active {
    border-color: #22c55e !important;
    box-shadow:
      0 0 16px rgba(34, 197, 94, 0.40),
      inset 0 0 18px rgba(34, 197, 94, 0.14) !important;
  }

  .pos-modern-mobile .lottery-btn.active::after {
    content: '✓';
    position: absolute;
    top: 6px;
    right: 7px;
    width: 22px;
    height: 22px;
    border-radius: 999px;
    display: grid;
    place-items: center;
    background: #22c55e;
    color: #ffffff;
    font-weight: 900;
    font-size: 14px;
  }

  .pos-modern-mobile .lottery-name {
    font-size: 12px !important;
    font-weight: 900 !important;
    line-height: 1.15 !important;
    text-transform: uppercase !important;
  }

  .pos-modern-mobile .lottery-close {
    margin-top: 8px !important;
    display: block !important;
    color: #38bdf8 !important;
    font-size: 11px !important;
    font-weight: 800 !important;
  }

  .pos-modern-mobile .layout.layout-3cols {
    display: flex !important;
    flex-direction: column !important;
    gap: 8px !important;
  }

  .pos-modern-mobile .center-panel {
    order: 1 !important;
  }

  .pos-modern-mobile .left-panel {
    order: 2 !important;
  }

  .pos-modern-mobile .actions-panel,
  .pos-modern-mobile .right-panel {
    order: 3 !important;
  }

  .pos-modern-mobile .ticket-card {
    background: rgba(2, 6, 23, 0.78) !important;
    border: 1px solid rgba(59, 130, 246, 0.38) !important;
    border-radius: 18px !important;
    color: #e5f0ff !important;
    box-shadow: 0 0 20px rgba(37, 99, 235, 0.20) !important;
    padding: 10px !important;
  }

  .pos-modern-mobile .ticket-card h2 {
    color: #ffffff !important;
    font-size: 16px !important;
    margin-bottom: 8px !important;
  }

  .pos-modern-mobile .ticket-scroll {
    max-height: 210px !important;
    overflow-y: auto !important;
  }

  .pos-modern-mobile table {
    font-size: 11px !important;
  }

  .pos-modern-mobile th {
    background: #020617 !important;
    color: #bfdbfe !important;
  }

  .pos-modern-mobile td {
    color: #e5f0ff !important;
    border-color: rgba(59, 130, 246, 0.18) !important;
  }

  .pos-modern-mobile .capture-row {
    display: grid !important;
    grid-template-columns: 1fr 1fr 1fr !important;
    gap: 8px !important;
    align-items: stretch !important;
  }

  .pos-modern-mobile .capture-field {
    background: rgba(2, 6, 23, 0.82) !important;
    border: 1px solid rgba(56, 189, 248, 0.75) !important;
    border-radius: 16px !important;
    padding: 8px !important;
    box-shadow: 0 0 16px rgba(56, 189, 248, 0.18) !important;
  }

  .pos-modern-mobile .capture-field label {
    color: #e5f0ff !important;
    font-size: 11px !important;
    font-weight: 900 !important;
    text-transform: uppercase !important;
  }

  .pos-modern-mobile .capture-field input {
    background: transparent !important;
    border: none !important;
    color: #ffffff !important;
    font-weight: 900 !important;
    font-size: 16px !important;
    box-shadow: none !important;
    padding: 4px 0 !important;
  }

  .pos-modern-mobile .available-input {
    color: #4ade80 !important;
    font-size: 18px !important;
  }

  .pos-modern-mobile .mobile-symbol-bar {
    display: grid !important;
    grid-template-columns: repeat(6, 1fr) !important;
    gap: 6px !important;
    margin-top: 8px !important;
  }

  .pos-modern-mobile .mobile-symbol-bar button {
    min-height: 42px !important;
    border-radius: 13px !important;
    font-size: 22px !important;
    font-weight: 900 !important;
    color: #ffffff !important;
    border: 1px solid rgba(255, 255, 255, 0.18) !important;
    box-shadow: 0 0 13px rgba(37, 99, 235, 0.20) !important;
  }

  .pos-modern-mobile .mobile-symbol-bar .symbol-q {
    background: #0891b2 !important;
  }

  .pos-modern-mobile .pos-main-buttons {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 8px !important;
    margin-top: 8px !important;
  }

  .pos-modern-mobile .pos-main-buttons .btn {
    min-height: 50px !important;
    border-radius: 14px !important;
    font-size: 12px !important;
    font-weight: 900 !important;
    text-transform: uppercase !important;
    box-shadow: 0 0 16px rgba(37, 99, 235, 0.18) !important;
  }

  .pos-modern-mobile .message-box {
    margin-top: 8px !important;
    background: rgba(2, 6, 23, 0.72) !important;
    border: 1px dashed rgba(96, 165, 250, 0.35) !important;
    color: #bfdbfe !important;
    border-radius: 14px !important;
  }
}

/* =========================================================
   TheRock Lightning POS Modern Mobile - Fine tune
   ========================================================= */

@media (max-width: 768px) {
  /* SORTEOS */
  .pos-modern-mobile .lottery-btn {
    flex: 0 0 108px !important;
    min-height: 74px !important;
    padding: 8px 7px !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important;
    align-items: flex-start !important;
  }

  .pos-modern-mobile .lottery-name {
    display: block !important;
    width: 100% !important;
    color: #ffffff !important;
    opacity: 1 !important;
    font-size: 11px !important;
    font-weight: 900 !important;
    line-height: 1.08 !important;
    text-transform: uppercase !important;
    white-space: normal !important;
    word-break: break-word !important;
    overflow: hidden !important;
    min-height: 28px !important;
  }

  .pos-modern-mobile .lottery-close {
    display: block !important;
    width: 100% !important;
    margin-top: 6px !important;
    color: #38bdf8 !important;
    opacity: 1 !important;
    font-size: 10px !important;
    font-weight: 800 !important;
    line-height: 1.1 !important;
  }

  /* 3 COLUMNAS: JUGADA / DISPONIBLE / MONTO */
  .pos-modern-mobile .capture-row {
    display: grid !important;
    grid-template-columns: 1.3fr 0.85fr 0.85fr !important;
    gap: 6px !important;
    align-items: stretch !important;
  }

  .pos-modern-mobile .capture-row > .capture-field,
  .pos-modern-mobile .capture-row > .bet-field {
    grid-column: auto !important;
    width: auto !important;
    min-width: 0 !important;
  }

  .pos-modern-mobile .capture-field {
    padding: 7px !important;
    border-radius: 14px !important;
  }

  .pos-modern-mobile .capture-field label {
    font-size: 10px !important;
    margin-bottom: 2px !important;
  }

  .pos-modern-mobile .capture-field input {
    font-size: 15px !important;
    padding: 2px 0 !important;
  }

  .pos-modern-mobile .available-input {
    font-size: 16px !important;
    text-align: center !important;
  }

  /* BOTONES DE SIMBOLOS MAS PEQUEÑOS */
  .pos-modern-mobile .mobile-symbol-bar {
    display: grid !important;
    grid-template-columns: repeat(6, 1fr) !important;
    gap: 4px !important;
    margin-top: 6px !important;
    margin-bottom: 6px !important;
  }

  .pos-modern-mobile .mobile-symbol-bar button {
    min-height: 34px !important;
    height: 34px !important;
    border-radius: 10px !important;
    font-size: 18px !important;
    font-weight: 900 !important;
    padding: 0 !important;
    line-height: 1 !important;
  }

  .pos-modern-mobile .mobile-symbol-bar .symbol-q {
    background: #0891b2 !important;
  }
}

/* =========================================================
   TheRock POS Mobile - fine tune step 1.1
   ========================================================= */

@media (max-width: 768px) {
  .pos-modern-mobile .lottery-btn {
    flex: 0 0 112px !important;
    min-height: 76px !important;
    padding: 8px 7px !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important;
    align-items: flex-start !important;
  }

  .pos-modern-mobile .lottery-name {
    display: block !important;
    width: 100% !important;
    color: #ffffff !important;
    opacity: 1 !important;
    font-size: 11px !important;
    font-weight: 900 !important;
    line-height: 1.12 !important;
    text-transform: uppercase !important;
    white-space: normal !important;
    word-break: break-word !important;
    overflow: hidden !important;
    min-height: 28px !important;
  }

  .pos-modern-mobile .lottery-close {
    display: block !important;
    width: 100% !important;
    margin-top: 5px !important;
    color: #38bdf8 !important;
    opacity: 1 !important;
    font-size: 10px !important;
    font-weight: 800 !important;
    line-height: 1.1 !important;
  }

  .pos-modern-mobile .capture-row {
    display: grid !important;
    grid-template-columns: 1.25fr 0.9fr 0.85fr !important;
    gap: 6px !important;
    align-items: stretch !important;
  }

  .pos-modern-mobile .capture-row > .capture-field {
    grid-column: auto !important;
    width: auto !important;
    min-width: 0 !important;
  }

  .pos-modern-mobile .capture-field {
    padding: 7px !important;
    border-radius: 14px !important;
    min-width: 0 !important;
  }

  .pos-modern-mobile .capture-field label {
    font-size: 9px !important;
    margin-bottom: 2px !important;
    letter-spacing: 0.2px !important;
  }

  .pos-modern-mobile .capture-field input {
    width: 100% !important;
    font-size: 14px !important;
    min-height: 30px !important;
    padding: 2px 0 !important;
  }

  .pos-modern-mobile .bet-input {
    font-size: 14px !important;
  }

  .pos-modern-mobile .available-input {
    font-size: 15px !important;
    text-align: right !important;
  }

  .pos-modern-mobile .amount-input {
    font-size: 15px !important;
    text-align: right !important;
  }

  .pos-modern-mobile .mobile-symbol-bar {
    display: grid !important;
    grid-template-columns: repeat(6, 1fr) !important;
    gap: 5px !important;
    margin: 7px 0 7px !important;
  }

  .pos-modern-mobile .mobile-symbol-bar button {
    min-height: 32px !important;
    height: 32px !important;
    border-radius: 10px !important;
    font-size: 17px !important;
    font-weight: 900 !important;
    padding: 0 !important;
    line-height: 1 !important;
  }

  .pos-modern-mobile .mobile-symbol-bar .symbol-q {
    background: #0891b2 !important;
  }
}

/* POS móvil: botón Salir rojo */
@media (max-width: 768px) {
  .pos-modern-mobile .top-mini-dark {
    background: linear-gradient(180deg, #ef4444, #b91c1c) !important;
    color: #ffffff !important;
    border: 1px solid rgba(248, 113, 113, 0.75) !important;
    box-shadow: 0 0 14px rgba(239, 68, 68, 0.35) !important;
  }
}

/* POS móvil: ocultar caja fija de mensajes */
@media (max-width: 768px) {
  .pos-modern-mobile .message-box {
    display: none !important;
  }

  .pos-mobile-alert-backdrop {
    position: fixed !important;
    inset: 0 !important;
    z-index: 99999 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: rgba(2, 6, 23, 0.62) !important;
    padding: 18px !important;
  }

  .pos-mobile-alert {
    width: min(92vw, 360px) !important;
    background: linear-gradient(180deg, #071642, #020617) !important;
    color: #e5f0ff !important;
    border: 1px solid rgba(96, 165, 250, 0.55) !important;
    border-radius: 20px !important;
    padding: 18px !important;
    text-align: center !important;
    box-shadow:
      0 22px 60px rgba(0, 0, 0, 0.55),
      0 0 28px rgba(37, 99, 235, 0.35) !important;
  }

  .pos-mobile-alert-title {
    font-weight: 900 !important;
    font-size: 18px !important;
    margin-bottom: 10px !important;
    color: #ffffff !important;
  }

  .pos-mobile-alert-message {
    font-size: 15px !important;
    font-weight: 800 !important;
    color: #bfdbfe !important;
    margin-bottom: 16px !important;
  }

  .pos-mobile-alert-ok {
    width: 100% !important;
    height: 46px !important;
    border-radius: 14px !important;
    border: none !important;
    background: linear-gradient(180deg, #f97316, #ea580c) !important;
    color: white !important;
    font-size: 16px !important;
    font-weight: 900 !important;
  }
}

/* =========================================================
   TheRock POS Mobile - compact visual assembly step 1.2
   ========================================================= */

@media (max-width: 768px) {
  /* General: aprovechar más pantalla */
  .pos-modern-mobile {
    padding: 5px !important;
  }

  .pos-modern-mobile .topbar {
    display: none !important;
  }

  /* Sorteos más compactos */
  .pos-modern-mobile .lottery-area {
    padding: 7px !important;
    border-radius: 14px !important;
    margin-bottom: 6px !important;
  }

  .pos-modern-mobile .lottery-area-title {
    font-size: 12px !important;
    margin-bottom: 5px !important;
  }

  .pos-modern-mobile .lottery-btn {
    flex: 0 0 104px !important;
    min-height: 58px !important;
    padding: 6px 6px !important;
    border-radius: 12px !important;
  }

  .pos-modern-mobile .lottery-name {
    font-size: 9px !important;
    min-height: 20px !important;
    line-height: 1.05 !important;
    color: #ffffff !important;
    opacity: 1 !important;
  }

  .pos-modern-mobile .lottery-close {
    font-size: 8px !important;
    margin-top: 3px !important;
    color: #38bdf8 !important;
    opacity: 1 !important;
  }

  .pos-modern-mobile .lottery-btn.active::after {
    width: 18px !important;
    height: 18px !important;
    font-size: 11px !important;
    top: 4px !important;
    right: 4px !important;
  }

  /* Ticket más estrecho y con texto visible */
  .pos-modern-mobile .ticket-card {
    padding: 7px !important;
    border-radius: 14px !important;
    margin-bottom: 6px !important;
  }

  .pos-modern-mobile .ticket-card-header {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 8px !important;
    margin-bottom: 5px !important;
  }

  .pos-modern-mobile .ticket-card h2 {
    font-size: 12px !important;
    margin: 0 !important;
    color: #ffffff !important;
  }

  .pos-modern-mobile .ticket-eye-btn {
    width: 32px !important;
    height: 28px !important;
    border-radius: 10px !important;
    border: 1px solid rgba(96, 165, 250, 0.45) !important;
    background: rgba(15, 23, 42, 0.95) !important;
    color: #ffffff !important;
    font-size: 15px !important;
    display: grid !important;
    place-items: center !important;
  }

  .pos-modern-mobile .ticket-scroll {
    max-height: 116px !important;
    overflow-y: auto !important;
    background: #020617 !important;
    border-radius: 10px !important;
  }

  .pos-modern-mobile .ticket-card.ticket-expanded .ticket-scroll {
    max-height: 330px !important;
  }

  .pos-modern-mobile .ticket-card table {
    background: #020617 !important;
  }

  .pos-modern-mobile .ticket-card thead th {
    background: #071225 !important;
    color: #dbeafe !important;
    font-size: 8px !important;
    padding: 4px 5px !important;
    border-color: rgba(96, 165, 250, 0.25) !important;
  }

  .pos-modern-mobile .ticket-card tbody td {
    background: #020617 !important;
    color: #e5f0ff !important;
    font-size: 9px !important;
    padding: 4px 5px !important;
    border-color: rgba(96, 165, 250, 0.16) !important;
  }

  .pos-modern-mobile .ticket-card tbody tr {
    background: #020617 !important;
  }

  .pos-modern-mobile .ticket-card tbody tr:nth-child(even) td {
    background: #06122a !important;
  }

  .pos-modern-mobile .ticket-card .table-wrap {
    border: 1px solid rgba(96, 165, 250, 0.18) !important;
  }

  /* Totales debajo del ticket */
  .pos-modern-mobile .ticket-card .ticket-total,
  .pos-modern-mobile .ticket-card .totals,
  .pos-modern-mobile .ticket-card [class*="total"] {
    color: #ffffff !important;
    font-size: 9px !important;
  }

  /* Tres casillas más estrechas */
  .pos-modern-mobile .capture-row {
    grid-template-columns: 1.15fr 0.85fr 0.85fr !important;
    gap: 5px !important;
    margin-bottom: 5px !important;
  }

  .pos-modern-mobile .capture-field {
    padding: 5px 6px !important;
    border-radius: 12px !important;
    min-height: 52px !important;
  }

  .pos-modern-mobile .capture-field label {
    font-size: 8px !important;
    margin-bottom: 1px !important;
  }

  .pos-modern-mobile .capture-field input {
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
    caret-color: #38bdf8 !important;
    font-size: 13px !important;
    min-height: 25px !important;
    height: 25px !important;
    padding: 0 !important;
  }

  .pos-modern-mobile .amount-input {
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
    background: transparent !important;
    text-align: right !important;
  }

  .pos-modern-mobile .available-input {
    color: #4ade80 !important;
    -webkit-text-fill-color: #4ade80 !important;
    background: transparent !important;
    text-align: right !important;
  }

  .pos-modern-mobile .bet-input::placeholder,
  .pos-modern-mobile .amount-input::placeholder,
  .pos-modern-mobile .available-input::placeholder {
    color: rgba(226, 232, 240, 0.60) !important;
    -webkit-text-fill-color: rgba(226, 232, 240, 0.60) !important;
  }

  /* Símbolos compactos */
  .pos-modern-mobile .mobile-symbol-bar {
    grid-template-columns: repeat(6, 1fr) !important;
    gap: 4px !important;
    margin: 5px 0 !important;
  }

  .pos-modern-mobile .mobile-symbol-bar button {
    height: 28px !important;
    min-height: 28px !important;
    border-radius: 9px !important;
    font-size: 15px !important;
  }

  /* Botones principales compactos */
  .pos-modern-mobile .pos-main-buttons {
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 5px !important;
    margin-top: 5px !important;
  }

  .pos-modern-mobile .pos-main-buttons .btn {
    min-height: 38px !important;
    height: 38px !important;
    border-radius: 11px !important;
    font-size: 9px !important;
    padding: 0 4px !important;
  }

  /* Botones secundarios: QuickPick, Ligar, Limpiar */
  .pos-modern-mobile .mobile-secondary-actions,
  .pos-modern-mobile .actions-panel .mobile-secondary-actions {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 5px !important;
    margin-top: 5px !important;
  }

  .pos-modern-mobile .mobile-secondary-actions .btn,
  .pos-modern-mobile .actions-panel .mobile-secondary-actions > button {
    min-height: 34px !important;
    height: 34px !important;
    border-radius: 10px !important;
    font-size: 8px !important;
    padding: 0 4px !important;
  }

  /* Quitar espacios grandes */
  .pos-modern-mobile .left-panel,
  .pos-modern-mobile .center-panel,
  .pos-modern-mobile .actions-panel {
    margin: 0 !important;
    padding: 0 !important;
  }
}

/* =========================================================
   TheRock POS Mobile - fix visual after compact step
   Restaura header, corrige ticket y compacta mejor
   ========================================================= */

@media (max-width: 768px) {
  /* Restaurar header superior */
  .pos-modern-mobile .topbar {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 6px !important;
    background: rgba(2, 6, 23, 0.86) !important;
    border: 1px solid rgba(59, 130, 246, 0.35) !important;
    border-radius: 14px !important;
    padding: 6px !important;
    margin-bottom: 5px !important;
    box-shadow: 0 0 18px rgba(37, 99, 235, 0.20) !important;
  }

  .pos-modern-mobile .pos-brand-header {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 8px !important;
  }

  .pos-modern-mobile .pos-brand-logo {
    width: 42px !important;
    height: 42px !important;
    border-radius: 11px !important;
  }

  .pos-modern-mobile .system-title {
    font-size: 14px !important;
    line-height: 1.05 !important;
    color: #ffffff !important;
  }

  .pos-modern-mobile .pos-brand-subtitle {
    font-size: 7px !important;
    margin: 0 !important;
  }

  .pos-modern-mobile .system-subline {
    font-size: 8px !important;
    line-height: 1.05 !important;
  }

  .pos-modern-mobile .topbar-right {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 4px !important;
  }

  .pos-modern-mobile .topbar-right .badge,
  .pos-modern-mobile .topbar-right button {
    min-height: 28px !important;
    height: 28px !important;
    border-radius: 9px !important;
    font-size: 8px !important;
    padding: 0 4px !important;
  }

  .pos-modern-mobile .top-mini-dark {
    background: linear-gradient(180deg, #ef4444, #b91c1c) !important;
    color: #ffffff !important;
    border: 1px solid rgba(248, 113, 113, 0.75) !important;
  }

  /* Sorteos compactos pero legibles */
  .pos-modern-mobile .lottery-area {
    padding: 6px !important;
    border-radius: 13px !important;
    margin-bottom: 5px !important;
  }

  .pos-modern-mobile .lottery-area-title {
    font-size: 11px !important;
    margin-bottom: 5px !important;
  }

  .pos-modern-mobile .lottery-btn {
    flex: 0 0 104px !important;
    min-height: 62px !important;
    padding: 6px !important;
    border-radius: 12px !important;
  }

  .pos-modern-mobile .lottery-name {
    font-size: 8.5px !important;
    line-height: 1.08 !important;
    min-height: 22px !important;
    color: #ffffff !important;
    opacity: 1 !important;
  }

  .pos-modern-mobile .lottery-close {
    font-size: 8px !important;
    color: #38bdf8 !important;
    opacity: 1 !important;
  }

  /* Ticket compacto sin partirse raro */
  .pos-modern-mobile .ticket-card {
    min-height: 0 !important;
    height: auto !important;
    padding: 6px !important;
    border-radius: 13px !important;
    margin-bottom: 5px !important;
    background: rgba(2, 6, 23, 0.84) !important;
  }

  .pos-modern-mobile .ticket-card-header {
    min-height: 26px !important;
    margin-bottom: 4px !important;
  }

  .pos-modern-mobile .ticket-card h2 {
    font-size: 11px !important;
    margin: 0 !important;
  }

  .pos-modern-mobile .ticket-eye-btn {
    width: 28px !important;
    height: 24px !important;
    font-size: 13px !important;
  }

  .pos-modern-mobile .ticket-scroll {
    height: 118px !important;
    max-height: 118px !important;
    min-height: 0 !important;
    overflow-y: auto !important;
    background: #020617 !important;
    border-radius: 9px !important;
  }

  .pos-modern-mobile .ticket-card.ticket-expanded .ticket-scroll {
    height: 300px !important;
    max-height: 300px !important;
  }

  .pos-modern-mobile .ticket-card table {
    background: #020617 !important;
    color: #e5f0ff !important;
  }

  .pos-modern-mobile .ticket-card thead th {
    background: #071225 !important;
    color: #dbeafe !important;
    font-size: 7.5px !important;
    padding: 3px 4px !important;
  }

  .pos-modern-mobile .ticket-card tbody td {
    background: #020617 !important;
    color: #e5f0ff !important;
    -webkit-text-fill-color: #e5f0ff !important;
    font-size: 8px !important;
    padding: 3px 4px !important;
  }

  .pos-modern-mobile .ticket-card tbody tr:nth-child(even) td {
    background: #06122a !important;
  }

  .pos-modern-mobile .ticket-card tfoot td,
  .pos-modern-mobile .ticket-card .ticket-summary,
  .pos-modern-mobile .ticket-card [class*="summary"],
  .pos-modern-mobile .ticket-card [class*="footer"] {
    background: #020617 !important;
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
    font-size: 8px !important;
  }

  /* Casillas más estrechas, visibles */
  .pos-modern-mobile .capture-row {
    display: grid !important;
    grid-template-columns: 1.12fr 0.84fr 0.84fr !important;
    gap: 4px !important;
    margin-bottom: 4px !important;
  }

  .pos-modern-mobile .capture-field {
    min-height: 48px !important;
    padding: 5px !important;
    border-radius: 11px !important;
  }

  .pos-modern-mobile .capture-field label {
    font-size: 7.5px !important;
    line-height: 1 !important;
    margin-bottom: 1px !important;
  }

  .pos-modern-mobile .capture-field input {
    height: 24px !important;
    min-height: 24px !important;
    font-size: 12px !important;
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    caret-color: #38bdf8 !important;
  }

  .pos-modern-mobile .available-input {
    color: #4ade80 !important;
    -webkit-text-fill-color: #4ade80 !important;
    text-align: right !important;
  }

  .pos-modern-mobile .amount-input {
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
    text-align: right !important;
  }

  .pos-modern-mobile .bet-input::placeholder,
  .pos-modern-mobile .amount-input::placeholder,
  .pos-modern-mobile .available-input::placeholder {
    color: rgba(226, 232, 240, 0.68) !important;
    -webkit-text-fill-color: rgba(226, 232, 240, 0.68) !important;
  }

  /* Botoncitos más estrechos */
  .pos-modern-mobile .mobile-symbol-bar {
    grid-template-columns: repeat(6, 1fr) !important;
    gap: 4px !important;
    margin: 4px 0 !important;
  }

  .pos-modern-mobile .mobile-symbol-bar button {
    height: 27px !important;
    min-height: 27px !important;
    border-radius: 8px !important;
    font-size: 14px !important;
  }

  /* Botones de venta más estrechos */
  .pos-modern-mobile .pos-main-buttons {
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 4px !important;
    margin-top: 4px !important;
  }

  .pos-modern-mobile .pos-main-buttons .btn {
    height: 35px !important;
    min-height: 35px !important;
    border-radius: 10px !important;
    font-size: 8px !important;
    padding: 0 3px !important;
  }

  .pos-modern-mobile .mobile-secondary-actions .btn,
  .pos-modern-mobile .actions-panel .mobile-secondary-actions > button {
    height: 32px !important;
    min-height: 32px !important;
    border-radius: 9px !important;
    font-size: 7.5px !important;
  }
}

/* =========================================================
   FIX Monto visible móvil/APK
   ========================================================= */

@media (max-width: 768px) {
  .pos-modern-mobile .amount-field input,
  .pos-modern-mobile .amount-field .amount-input,
  .pos-modern-mobile input.amount-input.compact {
    background: rgba(2, 6, 23, 0.92) !important;
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
    caret-color: #38bdf8 !important;
    border: 1px solid rgba(96, 165, 250, 0.45) !important;
    border-radius: 9px !important;
    box-shadow: inset 0 0 12px rgba(37, 99, 235, 0.22) !important;
    text-align: right !important;
    padding-right: 6px !important;
  }

  .pos-modern-mobile .amount-field input:focus,
  .pos-modern-mobile .amount-field .amount-input:focus {
    outline: none !important;
    border-color: #38bdf8 !important;
    box-shadow:
      inset 0 0 12px rgba(37, 99, 235, 0.28),
      0 0 10px rgba(56, 189, 248, 0.32) !important;
  }

  .pos-modern-mobile .amount-field input::placeholder,
  .pos-modern-mobile .amount-field .amount-input::placeholder {
    color: rgba(226, 232, 240, 0.75) !important;
    -webkit-text-fill-color: rgba(226, 232, 240, 0.75) !important;
  }
}

/* TheRock POS Mobile - teclado integrado visual step 1.3 */
@media (max-width: 768px) {
  .pos-modern-mobile .modern-mobile-keypad {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 5px !important;
    margin-top: 6px !important;
    padding: 6px !important;
    border-radius: 14px !important;
    background: rgba(2, 6, 23, 0.84) !important;
    border: 1px solid rgba(59, 130, 246, 0.28) !important;
    box-shadow: 0 0 18px rgba(37, 99, 235, 0.18) !important;
  }

  .pos-modern-mobile .modern-mobile-keypad button {
    height: 42px !important;
    min-height: 42px !important;
    border-radius: 11px !important;
    border: 1px solid rgba(96, 165, 250, 0.40) !important;
    background: linear-gradient(180deg, #08204c, #031024) !important;
    color: #e5f0ff !important;
    font-size: 20px !important;
    font-weight: 900 !important;
    box-shadow:
      inset 0 0 12px rgba(37, 99, 235, 0.20),
      0 0 8px rgba(37, 99, 235, 0.16) !important;
  }

  .pos-modern-mobile .modern-mobile-keypad .key-back {
    background: linear-gradient(180deg, #1f2937, #020617) !important;
    color: #ffffff !important;
    font-size: 18px !important;
  }

  .pos-modern-mobile .modern-mobile-keypad .key-enter {
    background: linear-gradient(180deg, #f59e0b, #92400e) !important;
    border-color: rgba(251, 191, 36, 0.75) !important;
    color: #ffffff !important;
    font-size: 13px !important;
    letter-spacing: 0.3px !important;
  }

  .pos-modern-mobile .modern-mobile-keypad .key-enter-ghost {
    background: linear-gradient(180deg, #7c2d12, #431407) !important;
    font-size: 13px !important;
  }

  .pos-modern-mobile .ticket-scroll {
    height: 92px !important;
    max-height: 92px !important;
  }

  .pos-modern-mobile .ticket-card.ticket-expanded .ticket-scroll {
    height: 270px !important;
    max-height: 270px !important;
  }
}

/* =========================================================
   FIX: teclado moderno solo en móvil/APK
   ========================================================= */

/* En computadora no mostrar teclado integrado ni ojo */
.modern-mobile-keypad,
.ticket-eye-btn {
  display: none !important;
}

@media (max-width: 768px) {
  .pos-modern-mobile .modern-mobile-keypad {
    display: grid !important;
  }

  .pos-modern-mobile .ticket-eye-btn {
    display: grid !important;
  }
}

/* =========================================================
   TheRock Lightning POS Mobile - visual polish step 1.4
   ========================================================= */

@media (max-width: 768px) {
  .pos-modern-mobile {
    background:
      radial-gradient(circle at top left, rgba(37, 99, 235, 0.28), transparent 32%),
      radial-gradient(circle at top right, rgba(14, 165, 233, 0.18), transparent 30%),
      linear-gradient(180deg, #020617 0%, #06143b 45%, #020617 100%) !important;
  }

  /* Header más premium */
  .pos-modern-mobile .topbar {
    background:
      linear-gradient(135deg, rgba(3, 7, 18, 0.96), rgba(7, 22, 66, 0.92)) !important;
    border: 1px solid rgba(56, 189, 248, 0.35) !important;
    box-shadow:
      0 0 18px rgba(37, 99, 235, 0.28),
      inset 0 0 18px rgba(37, 99, 235, 0.10) !important;
  }

  .pos-modern-mobile .pos-brand-logo {
    width: 46px !important;
    height: 46px !important;
    border-radius: 12px !important;
    filter: drop-shadow(0 0 12px rgba(59, 130, 246, 0.75)) !important;
  }

  .pos-modern-mobile .system-title {
    font-size: 14px !important;
    color: #ffffff !important;
    text-shadow: 0 0 10px rgba(59, 130, 246, 0.75) !important;
  }

  .pos-modern-mobile .pos-brand-subtitle {
    color: #38bdf8 !important;
    letter-spacing: 0.5px !important;
  }

  .pos-modern-mobile .topbar-right .badge,
  .pos-modern-mobile .topbar-right button {
    background: rgba(15, 23, 42, 0.92) !important;
    border: 1px solid rgba(96, 165, 250, 0.36) !important;
    color: #e5f0ff !important;
    box-shadow: inset 0 0 10px rgba(37, 99, 235, 0.12) !important;
  }

  .pos-modern-mobile .topbar-right .top-mini-apk {
    background: linear-gradient(180deg, #16a34a, #15803d) !important;
    color: #ffffff !important;
  }

  .pos-modern-mobile .topbar-right .top-mini-dark {
    background: linear-gradient(180deg, #ef4444, #991b1b) !important;
    color: #ffffff !important;
  }

  /* Sorteos más llamativos */
  .pos-modern-mobile .lottery-area {
    background:
      linear-gradient(180deg, rgba(2, 6, 23, 0.92), rgba(3, 7, 18, 0.94)) !important;
    border-color: rgba(56, 189, 248, 0.36) !important;
    box-shadow: 0 0 18px rgba(37, 99, 235, 0.20) !important;
  }

  .pos-modern-mobile .lottery-area-title {
    color: #ffffff !important;
    text-shadow: 0 0 8px rgba(59, 130, 246, 0.50) !important;
  }

  .pos-modern-mobile .lottery-btn {
    background:
      linear-gradient(145deg, rgba(8, 32, 76, 0.95), rgba(2, 6, 23, 0.98)) !important;
    border-color: rgba(96, 165, 250, 0.36) !important;
    box-shadow:
      inset 0 0 14px rgba(37, 99, 235, 0.15),
      0 0 8px rgba(37, 99, 235, 0.12) !important;
  }

  .pos-modern-mobile .lottery-btn.active {
    background:
      linear-gradient(145deg, rgba(22, 163, 74, 0.96), rgba(6, 78, 59, 0.96)) !important;
    border-color: rgba(74, 222, 128, 0.90) !important;
    box-shadow:
      0 0 16px rgba(34, 197, 94, 0.45),
      inset 0 0 14px rgba(34, 197, 94, 0.18) !important;
  }

  .pos-modern-mobile .lottery-close {
    color: #7dd3fc !important;
  }

  /* Ticket visual */
  .pos-modern-mobile .ticket-card {
    background:
      linear-gradient(180deg, rgba(2, 6, 23, 0.94), rgba(3, 7, 18, 0.96)) !important;
    border-color: rgba(56, 189, 248, 0.30) !important;
    box-shadow:
      0 0 18px rgba(37, 99, 235, 0.18),
      inset 0 0 14px rgba(37, 99, 235, 0.08) !important;
  }

  .pos-modern-mobile .ticket-card-header h2 {
    color: #ffffff !important;
    text-shadow: 0 0 8px rgba(59, 130, 246, 0.50) !important;
  }

  .pos-modern-mobile .ticket-eye-btn {
    background: linear-gradient(180deg, #082f49, #020617) !important;
    border-color: rgba(56, 189, 248, 0.60) !important;
  }

  /* Captura */
  .pos-modern-mobile .capture-field {
    background:
      linear-gradient(180deg, rgba(3, 7, 18, 0.96), rgba(8, 20, 52, 0.94)) !important;
    border-color: rgba(56, 189, 248, 0.55) !important;
    box-shadow:
      0 0 10px rgba(37, 99, 235, 0.18),
      inset 0 0 10px rgba(37, 99, 235, 0.10) !important;
  }

  .pos-modern-mobile .capture-field:focus-within {
    border-color: rgba(34, 211, 238, 0.95) !important;
    box-shadow:
      0 0 14px rgba(34, 211, 238, 0.34),
      inset 0 0 12px rgba(37, 99, 235, 0.16) !important;
  }

  .pos-modern-mobile .capture-field label {
    color: #bfdbfe !important;
  }

  /* Botones rápidos */
  .pos-modern-mobile .mobile-symbol-bar .symbol-plus {
    background: linear-gradient(180deg, #22c55e, #15803d) !important;
  }

  .pos-modern-mobile .mobile-symbol-bar .symbol-minus {
    background: linear-gradient(180deg, #2563eb, #1e40af) !important;
  }

  .pos-modern-mobile .mobile-symbol-bar .symbol-dot {
    background: linear-gradient(180deg, #7c3aed, #4c1d95) !important;
  }

  .pos-modern-mobile .mobile-symbol-bar .symbol-x {
    background: linear-gradient(180deg, #f97316, #c2410c) !important;
  }

  .pos-modern-mobile .mobile-symbol-bar .symbol-q {
    background: linear-gradient(180deg, #0891b2, #155e75) !important;
  }

  .pos-modern-mobile .mobile-symbol-bar .symbol-clear-command {
    background: linear-gradient(180deg, #ef4444, #991b1b) !important;
  }

  /* Teclado más premium */
  .pos-modern-mobile .modern-mobile-keypad {
    background:
      linear-gradient(180deg, rgba(2, 6, 23, 0.96), rgba(8, 20, 52, 0.96)) !important;
    border-color: rgba(56, 189, 248, 0.32) !important;
    box-shadow:
      0 0 18px rgba(37, 99, 235, 0.22),
      inset 0 0 18px rgba(37, 99, 235, 0.08) !important;
  }

  .pos-modern-mobile .modern-mobile-keypad button {
    background: linear-gradient(180deg, #0f2b61, #06132f) !important;
    border-color: rgba(96, 165, 250, 0.40) !important;
    color: #ffffff !important;
    text-shadow: 0 0 8px rgba(96, 165, 250, 0.45) !important;
  }

  .pos-modern-mobile .modern-mobile-keypad .key-back {
    background: linear-gradient(180deg, #334155, #020617) !important;
  }

  .pos-modern-mobile .modern-mobile-keypad .key-enter {
    background: linear-gradient(180deg, #f59e0b, #b45309) !important;
  }

  .pos-modern-mobile .modern-mobile-keypad .key-enter-ghost {
    background: linear-gradient(180deg, #7f1d1d, #431407) !important;
  }
}

/* =========================================================
   TheRock Lightning POS Mobile - visual polish step 1.4
   ========================================================= */

@media (max-width: 768px) {
  .pos-modern-mobile {
    background:
      radial-gradient(circle at top left, rgba(37, 99, 235, 0.28), transparent 32%),
      radial-gradient(circle at top right, rgba(14, 165, 233, 0.18), transparent 30%),
      linear-gradient(180deg, #020617 0%, #06143b 45%, #020617 100%) !important;
  }

  /* Header más premium */
  .pos-modern-mobile .topbar {
    background:
      linear-gradient(135deg, rgba(3, 7, 18, 0.96), rgba(7, 22, 66, 0.92)) !important;
    border: 1px solid rgba(56, 189, 248, 0.35) !important;
    box-shadow:
      0 0 18px rgba(37, 99, 235, 0.28),
      inset 0 0 18px rgba(37, 99, 235, 0.10) !important;
  }

  .pos-modern-mobile .pos-brand-logo {
    width: 46px !important;
    height: 46px !important;
    border-radius: 12px !important;
    filter: drop-shadow(0 0 12px rgba(59, 130, 246, 0.75)) !important;
  }

  .pos-modern-mobile .system-title {
    font-size: 14px !important;
    color: #ffffff !important;
    text-shadow: 0 0 10px rgba(59, 130, 246, 0.75) !important;
  }

  .pos-modern-mobile .pos-brand-subtitle {
    color: #38bdf8 !important;
    letter-spacing: 0.5px !important;
  }

  .pos-modern-mobile .topbar-right .badge,
  .pos-modern-mobile .topbar-right button {
    background: rgba(15, 23, 42, 0.92) !important;
    border: 1px solid rgba(96, 165, 250, 0.36) !important;
    color: #e5f0ff !important;
    box-shadow: inset 0 0 10px rgba(37, 99, 235, 0.12) !important;
  }

  .pos-modern-mobile .topbar-right .top-mini-apk {
    background: linear-gradient(180deg, #16a34a, #15803d) !important;
    color: #ffffff !important;
  }

  .pos-modern-mobile .topbar-right .top-mini-dark {
    background: linear-gradient(180deg, #ef4444, #991b1b) !important;
    color: #ffffff !important;
  }

  /* Sorteos más llamativos */
  .pos-modern-mobile .lottery-area {
    background:
      linear-gradient(180deg, rgba(2, 6, 23, 0.92), rgba(3, 7, 18, 0.94)) !important;
    border-color: rgba(56, 189, 248, 0.36) !important;
    box-shadow: 0 0 18px rgba(37, 99, 235, 0.20) !important;
  }

  .pos-modern-mobile .lottery-area-title {
    color: #ffffff !important;
    text-shadow: 0 0 8px rgba(59, 130, 246, 0.50) !important;
  }

  .pos-modern-mobile .lottery-btn {
    background:
      linear-gradient(145deg, rgba(8, 32, 76, 0.95), rgba(2, 6, 23, 0.98)) !important;
    border-color: rgba(96, 165, 250, 0.36) !important;
    box-shadow:
      inset 0 0 14px rgba(37, 99, 235, 0.15),
      0 0 8px rgba(37, 99, 235, 0.12) !important;
  }

  .pos-modern-mobile .lottery-btn.active {
    background:
      linear-gradient(145deg, rgba(22, 163, 74, 0.96), rgba(6, 78, 59, 0.96)) !important;
    border-color: rgba(74, 222, 128, 0.90) !important;
    box-shadow:
      0 0 16px rgba(34, 197, 94, 0.45),
      inset 0 0 14px rgba(34, 197, 94, 0.18) !important;
  }

  .pos-modern-mobile .lottery-close {
    color: #7dd3fc !important;
  }

  /* Ticket visual */
  .pos-modern-mobile .ticket-card {
    background:
      linear-gradient(180deg, rgba(2, 6, 23, 0.94), rgba(3, 7, 18, 0.96)) !important;
    border-color: rgba(56, 189, 248, 0.30) !important;
    box-shadow:
      0 0 18px rgba(37, 99, 235, 0.18),
      inset 0 0 14px rgba(37, 99, 235, 0.08) !important;
  }

  .pos-modern-mobile .ticket-card-header h2 {
    color: #ffffff !important;
    text-shadow: 0 0 8px rgba(59, 130, 246, 0.50) !important;
  }

  .pos-modern-mobile .ticket-eye-btn {
    background: linear-gradient(180deg, #082f49, #020617) !important;
    border-color: rgba(56, 189, 248, 0.60) !important;
  }

  /* Captura */
  .pos-modern-mobile .capture-field {
    background:
      linear-gradient(180deg, rgba(3, 7, 18, 0.96), rgba(8, 20, 52, 0.94)) !important;
    border-color: rgba(56, 189, 248, 0.55) !important;
    box-shadow:
      0 0 10px rgba(37, 99, 235, 0.18),
      inset 0 0 10px rgba(37, 99, 235, 0.10) !important;
  }

  .pos-modern-mobile .capture-field:focus-within {
    border-color: rgba(34, 211, 238, 0.95) !important;
    box-shadow:
      0 0 14px rgba(34, 211, 238, 0.34),
      inset 0 0 12px rgba(37, 99, 235, 0.16) !important;
  }

  .pos-modern-mobile .capture-field label {
    color: #bfdbfe !important;
  }

  /* Botones rápidos */
  .pos-modern-mobile .mobile-symbol-bar .symbol-plus {
    background: linear-gradient(180deg, #22c55e, #15803d) !important;
  }

  .pos-modern-mobile .mobile-symbol-bar .symbol-minus {
    background: linear-gradient(180deg, #2563eb, #1e40af) !important;
  }

  .pos-modern-mobile .mobile-symbol-bar .symbol-dot {
    background: linear-gradient(180deg, #7c3aed, #4c1d95) !important;
  }

  .pos-modern-mobile .mobile-symbol-bar .symbol-x {
    background: linear-gradient(180deg, #f97316, #c2410c) !important;
  }

  .pos-modern-mobile .mobile-symbol-bar .symbol-q {
    background: linear-gradient(180deg, #0891b2, #155e75) !important;
  }

  .pos-modern-mobile .mobile-symbol-bar .symbol-clear-command {
    background: linear-gradient(180deg, #ef4444, #991b1b) !important;
  }

  /* Teclado más premium */
  .pos-modern-mobile .modern-mobile-keypad {
    background:
      linear-gradient(180deg, rgba(2, 6, 23, 0.96), rgba(8, 20, 52, 0.96)) !important;
    border-color: rgba(56, 189, 248, 0.32) !important;
    box-shadow:
      0 0 18px rgba(37, 99, 235, 0.22),
      inset 0 0 18px rgba(37, 99, 235, 0.08) !important;
  }

  .pos-modern-mobile .modern-mobile-keypad button {
    background: linear-gradient(180deg, #0f2b61, #06132f) !important;
    border-color: rgba(96, 165, 250, 0.40) !important;
    color: #ffffff !important;
    text-shadow: 0 0 8px rgba(96, 165, 250, 0.45) !important;
  }

  .pos-modern-mobile .modern-mobile-keypad .key-back {
    background: linear-gradient(180deg, #334155, #020617) !important;
  }

  .pos-modern-mobile .modern-mobile-keypad .key-enter {
    background: linear-gradient(180deg, #f59e0b, #b45309) !important;
  }

  .pos-modern-mobile .modern-mobile-keypad .key-enter-ghost {
    background: linear-gradient(180deg, #7f1d1d, #431407) !important;
  }
}

/* =========================================================
   TheRock Lightning POS Mobile - draw logos/colors step 1.5
   ========================================================= */

@media (max-width: 768px) {
  .pos-modern-mobile .lottery-btn {
    display: grid !important;
    grid-template-columns: 34px 1fr !important;
    align-items: center !important;
    gap: 6px !important;
    text-align: left !important;
    overflow: hidden !important;
  }

  .pos-modern-mobile .lottery-logo-wrap {
    width: 31px !important;
    height: 31px !important;
    border-radius: 11px !important;
    display: grid !important;
    place-items: center !important;
    position: relative !important;
    background: rgba(255, 255, 255, 0.10) !important;
    border: 1px solid rgba(255, 255, 255, 0.18) !important;
    box-shadow: inset 0 0 10px rgba(255, 255, 255, 0.08) !important;
    flex: 0 0 auto !important;
  }

  .pos-modern-mobile .lottery-logo-icon {
    font-size: 15px !important;
    line-height: 1 !important;
    filter: drop-shadow(0 0 5px rgba(255, 255, 255, 0.35)) !important;
  }

  .pos-modern-mobile .lottery-logo-label {
    position: absolute !important;
    right: -3px !important;
    bottom: -4px !important;
    min-width: 15px !important;
    height: 13px !important;
    padding: 0 3px !important;
    border-radius: 999px !important;
    display: grid !important;
    place-items: center !important;
    background: #020617 !important;
    color: #ffffff !important;
    border: 1px solid rgba(255, 255, 255, 0.25) !important;
    font-size: 6.5px !important;
    font-weight: 900 !important;
    letter-spacing: 0.2px !important;
  }

  .pos-modern-mobile .lottery-text-wrap {
    min-width: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
  }

  .pos-modern-mobile .lottery-name {
    min-height: auto !important;
    max-height: 22px !important;
  }

  /* Colores por sorteo */
  .pos-modern-mobile .lottery-btn.draw-visual-ny {
    background: linear-gradient(145deg, #082f49, #020617) !important;
    border-color: rgba(56, 189, 248, 0.55) !important;
  }

  .pos-modern-mobile .lottery-btn.draw-visual-florida {
    background: linear-gradient(145deg, #7c2d12, #020617) !important;
    border-color: rgba(251, 146, 60, 0.65) !important;
  }

  .pos-modern-mobile .lottery-btn.draw-visual-maryland {
    background: linear-gradient(145deg, #7f1d1d, #111827) !important;
    border-color: rgba(248, 113, 113, 0.60) !important;
  }

  .pos-modern-mobile .lottery-btn.draw-visual-georgia {
    background: linear-gradient(145deg, #9a3412, #020617) !important;
    border-color: rgba(251, 191, 36, 0.55) !important;
  }

  .pos-modern-mobile .lottery-btn.draw-visual-anguila {
    background: linear-gradient(145deg, #4c1d95, #020617) !important;
    border-color: rgba(168, 85, 247, 0.65) !important;
  }

  .pos-modern-mobile .lottery-btn.draw-visual-suerte {
    background: linear-gradient(145deg, #14532d, #020617) !important;
    border-color: rgba(74, 222, 128, 0.62) !important;
  }

  .pos-modern-mobile .lottery-btn.draw-visual-real {
    background: linear-gradient(145deg, #7f1d1d, #1e1b4b) !important;
    border-color: rgba(250, 204, 21, 0.62) !important;
  }

  .pos-modern-mobile .lottery-btn.draw-visual-loteka {
    background: linear-gradient(145deg, #1e3a8a, #020617) !important;
    border-color: rgba(96, 165, 250, 0.65) !important;
  }

  .pos-modern-mobile .lottery-btn.draw-visual-king {
    background: linear-gradient(145deg, #713f12, #020617) !important;
    border-color: rgba(250, 204, 21, 0.62) !important;
  }

  .pos-modern-mobile .lottery-btn.draw-visual-primera {
    background: linear-gradient(145deg, #065f46, #020617) !important;
    border-color: rgba(52, 211, 153, 0.60) !important;
  }

  .pos-modern-mobile .lottery-btn.draw-visual-loto {
    background: linear-gradient(145deg, #1e1b4b, #020617) !important;
    border-color: rgba(129, 140, 248, 0.62) !important;
  }

  .pos-modern-mobile .lottery-btn.draw-visual-super {
    background: linear-gradient(145deg, #be123c, #020617) !important;
    border-color: rgba(244, 63, 94, 0.62) !important;
  }

  .pos-modern-mobile .lottery-btn.draw-visual-default {
    background: linear-gradient(145deg, #0f172a, #020617) !important;
    border-color: rgba(96, 165, 250, 0.45) !important;
  }

  .pos-modern-mobile .lottery-btn.active {
    transform: translateY(-1px) !important;
  }

  .pos-modern-mobile .lottery-btn.active .lottery-logo-wrap {
    background: rgba(255, 255, 255, 0.18) !important;
    border-color: rgba(255, 255, 255, 0.42) !important;
    box-shadow:
      0 0 10px rgba(255, 255, 255, 0.18),
      inset 0 0 10px rgba(255, 255, 255, 0.10) !important;
  }
}

/* =========================================================
   TheRock Lightning POS Mobile - bottom actions polish 1.6
   ========================================================= */

@media (max-width: 768px) {
  /* Panel de acciones inferior más compacto */
  .pos-modern-mobile .actions-panel {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
    margin-top: 5px !important;
  }

  .pos-modern-mobile .actions-panel .card,
  .pos-modern-mobile .right-panel .card,
  .pos-modern-mobile .actions-card {
    background:
      linear-gradient(180deg, rgba(2, 6, 23, 0.95), rgba(8, 20, 52, 0.92)) !important;
    border: 1px solid rgba(56, 189, 248, 0.26) !important;
    border-radius: 14px !important;
    padding: 6px !important;
    box-shadow:
      0 0 16px rgba(37, 99, 235, 0.18),
      inset 0 0 16px rgba(37, 99, 235, 0.07) !important;
  }

  /* Si hay título "Acción" en móvil, lo ocultamos para ahorrar espacio */
  .pos-modern-mobile .actions-panel h3,
  .pos-modern-mobile .right-panel h3,
  .pos-modern-mobile .actions-card h3 {
    display: none !important;
  }

  /* Botones secundarios tipo banda compacta */
  .pos-modern-mobile .mobile-secondary-actions,
  .pos-modern-mobile .actions-panel .mobile-secondary-actions {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 5px !important;
    margin: 5px 0 !important;
    background: rgba(255, 255, 255, 0.06) !important;
    border-radius: 13px !important;
    padding: 5px !important;
  }

  .pos-modern-mobile .mobile-secondary-actions .btn,
  .pos-modern-mobile .actions-panel .mobile-secondary-actions > button {
    height: 29px !important;
    min-height: 29px !important;
    border-radius: 9px !important;
    font-size: 7.5px !important;
    font-weight: 900 !important;
    padding: 0 3px !important;
    text-transform: uppercase !important;
    letter-spacing: 0.1px !important;
  }

  /* Botonera de Acción: reportes/resultados/anular/pagar/perfil */
  .pos-modern-mobile .action-buttons,
  .pos-modern-mobile .actions-grid,
  .pos-modern-mobile .right-panel .button-grid,
  .pos-modern-mobile .actions-panel .button-grid {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 5px !important;
    margin-top: 5px !important;
  }

  .pos-modern-mobile .action-buttons .btn,
  .pos-modern-mobile .actions-grid .btn,
  .pos-modern-mobile .right-panel .button-grid .btn,
  .pos-modern-mobile .actions-panel .button-grid .btn {
    height: 34px !important;
    min-height: 34px !important;
    border-radius: 10px !important;
    font-size: 8px !important;
    font-weight: 900 !important;
    padding: 0 4px !important;
    text-transform: uppercase !important;
  }

  /* Botón perfil ancho cuando aparezca solo o último */
  .pos-modern-mobile .btn-profile,
  .pos-modern-mobile .perfil-btn,
  .pos-modern-mobile button[class*="profile"],
  .pos-modern-mobile button[class*="perfil"] {
    grid-column: 1 / -1 !important;
    height: 34px !important;
    min-height: 34px !important;
    border-radius: 10px !important;
    background: linear-gradient(180deg, #7c3aed, #5b21b6) !important;
    color: #ffffff !important;
    box-shadow: 0 0 12px rgba(124, 58, 237, 0.28) !important;
  }

  /* Colores más vivos para acciones de abajo */
  .pos-modern-mobile .btn-reportes,
  .pos-modern-mobile .btn-reports,
  .pos-modern-mobile button[class*="report"] {
    background: linear-gradient(180deg, #2563eb, #1e40af) !important;
    color: #ffffff !important;
  }

  .pos-modern-mobile .btn-resultados,
  .pos-modern-mobile .btn-results,
  .pos-modern-mobile button[class*="result"] {
    background: linear-gradient(180deg, #16a34a, #166534) !important;
    color: #ffffff !important;
  }

  .pos-modern-mobile .btn-anular,
  .pos-modern-mobile .btn-cancel,
  .pos-modern-mobile button[class*="cancel"],
  .pos-modern-mobile button[class*="anular"] {
    background: linear-gradient(180deg, #ef4444, #991b1b) !important;
    color: #ffffff !important;
  }

  .pos-modern-mobile .btn-pagar,
  .pos-modern-mobile .btn-pay,
  .pos-modern-mobile button[class*="pay"],
  .pos-modern-mobile button[class*="pagar"] {
    background: linear-gradient(180deg, #f97316, #c2410c) !important;
    color: #ffffff !important;
  }

  /* Reducir separación general bajo teclado */
  .pos-modern-mobile .modern-mobile-keypad {
    margin-bottom: 4px !important;
  }

  .pos-modern-mobile .message-box {
    display: none !important;
  }

  /* En pantallas bajitas, compactar más */
  @media (max-height: 760px) {
    .pos-modern-mobile .modern-mobile-keypad button {
      height: 37px !important;
      min-height: 37px !important;
      font-size: 18px !important;
    }

    .pos-modern-mobile .ticket-scroll {
      height: 76px !important;
      max-height: 76px !important;
    }

    .pos-modern-mobile .lottery-btn {
      min-height: 56px !important;
    }

    .pos-modern-mobile .pos-main-buttons .btn {
      height: 29px !important;
      min-height: 29px !important;
    }

    .pos-modern-mobile .mobile-secondary-actions .btn,
    .pos-modern-mobile .actions-panel .mobile-secondary-actions > button {
      height: 27px !important;
      min-height: 27px !important;
    }
  }
}

/* =========================================================
   TheRock Lightning POS Mobile - bottom actions exact 1.6
   ========================================================= */

@media (max-width: 768px) {
  /* Arriba dejar solo Vender / Compartir / Copiar */
  .pos-modern-mobile .pos-main-buttons {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 5px !important;
    margin-top: 5px !important;
  }

  .pos-modern-mobile .pos-main-buttons .pos-secondary-action {
    display: none !important;
  }

  .pos-modern-mobile .pos-main-buttons .btn {
    height: 32px !important;
    min-height: 32px !important;
    border-radius: 10px !important;
    font-size: 8px !important;
    font-weight: 900 !important;
    padding: 0 4px !important;
    text-transform: uppercase !important;
  }

  /* Panel inferior oscuro, sin bloque blanco */
  .pos-modern-mobile .actions-panel {
    margin-top: 5px !important;
    padding: 0 !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
  }

  .pos-modern-mobile .extra-actions-card.side-actions-card {
    background:
      linear-gradient(180deg, rgba(2, 6, 23, 0.96), rgba(8, 20, 52, 0.94)) !important;
    border: 1px solid rgba(56, 189, 248, 0.28) !important;
    border-radius: 14px !important;
    padding: 6px !important;
    box-shadow:
      0 0 16px rgba(37, 99, 235, 0.20),
      inset 0 0 16px rgba(37, 99, 235, 0.08) !important;
  }

  .pos-modern-mobile .extra-actions-title {
    display: none !important;
  }

  /* Quick-Pick / Ligar / Limpiar */
  .pos-modern-mobile .actions-panel .button-row-3.mobile-secondary-actions {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 5px !important;
    margin: 0 0 5px !important;
  }

  .pos-modern-mobile .actions-panel .button-row-3.mobile-secondary-actions .btn {
    height: 28px !important;
    min-height: 28px !important;
    border-radius: 9px !important;
    font-size: 7.2px !important;
    font-weight: 900 !important;
    padding: 0 3px !important;
    text-transform: uppercase !important;
  }

  /* Reportes / Resultados y Anular / Pagar */
  .pos-modern-mobile .actions-panel .button-row-2 {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 5px !important;
    margin: 0 0 5px !important;
  }

  .pos-modern-mobile .actions-panel .button-row-2 .btn {
    height: 31px !important;
    min-height: 31px !important;
    border-radius: 9px !important;
    font-size: 7.5px !important;
    font-weight: 900 !important;
    padding: 0 3px !important;
    text-transform: uppercase !important;
  }

  /* Perfil ancho */
  .pos-modern-mobile .actions-panel .button-row-1 {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 5px !important;
    margin: 0 !important;
  }

  .pos-modern-mobile .actions-panel .button-row-1 .btn {
    height: 31px !important;
    min-height: 31px !important;
    border-radius: 9px !important;
    font-size: 7.8px !important;
    font-weight: 900 !important;
    padding: 0 4px !important;
    text-transform: uppercase !important;
  }

  /* Colores del panel inferior */
  .pos-modern-mobile .actions-panel .btn-reportes {
    background: linear-gradient(180deg, #2563eb, #1d4ed8) !important;
    color: #ffffff !important;
  }

  .pos-modern-mobile .actions-panel .btn-resultados {
    background: linear-gradient(180deg, #16a34a, #15803d) !important;
    color: #ffffff !important;
  }

  .pos-modern-mobile .actions-panel .btn-cancel {
    background: linear-gradient(180deg, #ef4444, #b91c1c) !important;
    color: #ffffff !important;
  }

  .pos-modern-mobile .actions-panel .btn-pay {
    background: linear-gradient(180deg, #f97316, #c2410c) !important;
    color: #ffffff !important;
  }

  .pos-modern-mobile .actions-panel .btn-perfil {
    background: linear-gradient(180deg, #7c3aed, #5b21b6) !important;
    color: #ffffff !important;
    box-shadow: 0 0 12px rgba(124, 58, 237, 0.30) !important;
  }

  /* Compactar teclado un poco para dar espacio al panel inferior */
  .pos-modern-mobile .modern-mobile-keypad {
    margin-bottom: 5px !important;
    padding: 5px !important;
    gap: 4px !important;
  }

  .pos-modern-mobile .modern-mobile-keypad button {
    height: 38px !important;
    min-height: 38px !important;
    border-radius: 10px !important;
    font-size: 18px !important;
  }

  .pos-modern-mobile .modern-mobile-keypad .key-enter,
  .pos-modern-mobile .modern-mobile-keypad .key-enter-ghost {
    font-size: 11px !important;
  }

  /* En pantallas bajitas compactar todavía más */
  @media (max-height: 760px) {
    .pos-modern-mobile .modern-mobile-keypad button {
      height: 35px !important;
      min-height: 35px !important;
      font-size: 17px !important;
    }

    .pos-modern-mobile .actions-panel .button-row-3.mobile-secondary-actions .btn,
    .pos-modern-mobile .actions-panel .button-row-2 .btn,
    .pos-modern-mobile .actions-panel .button-row-1 .btn {
      height: 27px !important;
      min-height: 27px !important;
      font-size: 7px !important;
    }
  }
}

/* =========================================================
   POS móvil: todos los sorteos seleccionados mismo color
   ========================================================= */

@media (max-width: 768px) {
  .pos-modern-mobile .lottery-btn.active {
    background: linear-gradient(145deg, #16a34a, #064e3b) !important;
    border-color: rgba(74, 222, 128, 0.95) !important;
    color: #ffffff !important;
    box-shadow:
      0 0 16px rgba(34, 197, 94, 0.48),
      inset 0 0 15px rgba(34, 197, 94, 0.22) !important;
  }

  .pos-modern-mobile .lottery-btn.active .lottery-name,
  .pos-modern-mobile .lottery-btn.active .lottery-close {
    color: #ffffff !important;
  }
}

/* =========================================================
   POS móvil: ENTER grande en teclado integrado
   ========================================================= */

@media (max-width: 768px) {
  .pos-modern-mobile .modern-mobile-keypad-enter-tall .key-enter-tall {
    grid-column: 4 !important;
    grid-row: span 2 !important;
    height: auto !important;
    min-height: 76px !important;
    font-size: 12px !important;
    writing-mode: horizontal-tb !important;
    display: grid !important;
    place-items: center !important;
  }

  .pos-modern-mobile .modern-mobile-keypad-enter-tall .key-enter-ghost {
    grid-column: 4 !important;
  }

  @media (max-height: 760px) {
    .pos-modern-mobile .modern-mobile-keypad-enter-tall .key-enter-tall {
      min-height: 70px !important;
    }
  }
}

/* =========================================================
   Ticket compartir: 2 columnas + QR real
   ========================================================= */

.share-ticket-capture .ticket-print-share-mode {
  width: 380px !important;
  max-width: 380px !important;
  padding: 14px 16px !important;
  background: #ffffff !important;
  color: #111827 !important;
  border-radius: 12px !important;
  box-shadow: none !important;
}

.share-ticket-capture .ticket-print-share-mode .ticket-print-title {
  font-size: 17px !important;
  font-weight: 900 !important;
  text-align: center !important;
}

.share-ticket-capture .ticket-print-share-mode .ticket-print-header {
  font-size: 12px !important;
  line-height: 1.35 !important;
  text-align: center !important;
}

.share-ticket-capture .ticket-print-share-mode .ticket-print-group-title {
  font-size: 13px !important;
  font-weight: 900 !important;
  text-align: center !important;
  margin-top: 8px !important;
}

.share-ticket-capture .ticket-print-share-mode .ticket-print-two-col-header,
.share-ticket-capture .ticket-print-share-mode .ticket-print-two-col-row {
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  gap: 12px !important;
}

.share-ticket-capture .ticket-print-share-mode .ticket-print-two-col-cell {
  display: grid !important;
  grid-template-columns: 1fr auto !important;
  gap: 8px !important;
  align-items: center !important;
  min-height: 20px !important;
  font-size: 12px !important;
}

.share-ticket-capture .ticket-print-share-mode .ticket-print-two-col-jugada {
  font-weight: 900 !important;
  text-align: left !important;
}

.share-ticket-capture .ticket-print-share-mode .ticket-print-two-col-monto {
  font-weight: 800 !important;
  text-align: right !important;
}

.share-ticket-capture .ticket-print-share-mode .ticket-print-total {
  font-size: 15px !important;
  text-align: right !important;
  margin-top: 8px !important;
}

.share-ticket-capture .ticket-print-share-mode .ticket-print-qr {
  margin-top: 10px !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 5px !important;
}

.share-ticket-capture .ticket-print-share-mode .ticket-print-qr svg {
  width: 118px !important;
  height: 118px !important;
}

.share-ticket-capture .ticket-print-share-mode .ticket-print-qr-label {
  font-size: 10px !important;
  font-weight: 800 !important;
  text-align: center !important;
  word-break: break-word !important;
}

.share-ticket-capture .ticket-print-share-mode .ticket-print-barcode {
  display: none !important;
}

/* =========================================================
   FIX compartir APK: ticket centrado, angosto y sin corte
   ========================================================= */

.share-ticket-capture-wrap {
  position: fixed !important;
  left: -10000px !important;
  top: 0 !important;
  width: 380px !important;
  min-height: 100vh !important;
  background: #ffffff !important;
  padding: 16px !important;
  z-index: -1 !important;
  opacity: 1 !important;
  pointer-events: none !important;
  overflow: visible !important;
  box-sizing: border-box !important;
}

.share-ticket-capture {
  width: 340px !important;
  max-width: 340px !important;
  margin: 0 auto !important;
  background: #ffffff !important;
  display: flex !important;
  justify-content: center !important;
  align-items: flex-start !important;
  overflow: visible !important;
  box-sizing: border-box !important;
}

.share-ticket-capture .ticket-print-share-mode {
  width: 320px !important;
  max-width: 320px !important;
  min-width: 320px !important;
  margin: 0 auto !important;
  padding: 12px 12px !important;
  box-sizing: border-box !important;
  overflow: hidden !important;
  background: #ffffff !important;
  color: #111827 !important;
  border-radius: 0 !important;
}

.share-ticket-capture .ticket-print-share-mode * {
  box-sizing: border-box !important;
}

.share-ticket-capture .ticket-print-share-mode .ticket-print-header {
  width: 100% !important;
  max-width: 100% !important;
  text-align: center !important;
  font-size: 11px !important;
  line-height: 1.25 !important;
  overflow-wrap: anywhere !important;
}

.share-ticket-capture .ticket-print-share-mode .ticket-print-title {
  font-size: 16px !important;
  font-weight: 900 !important;
  text-align: center !important;
  line-height: 1.15 !important;
}

.share-ticket-capture .ticket-print-share-mode .ticket-print-group-title {
  font-size: 13px !important;
  font-weight: 900 !important;
  text-align: center !important;
  margin: 7px 0 4px !important;
}

.share-ticket-capture .ticket-print-share-mode .ticket-print-two-col-header,
.share-ticket-capture .ticket-print-share-mode .ticket-print-two-col-row {
  width: 100% !important;
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  gap: 8px !important;
}

.share-ticket-capture .ticket-print-share-mode .ticket-print-two-col-cell {
  min-width: 0 !important;
  display: grid !important;
  grid-template-columns: 1fr auto !important;
  gap: 4px !important;
  align-items: center !important;
  font-size: 11px !important;
  line-height: 1.2 !important;
}

.share-ticket-capture .ticket-print-share-mode .ticket-print-two-col-jugada {
  min-width: 0 !important;
  font-weight: 900 !important;
  text-align: left !important;
  overflow-wrap: anywhere !important;
}

.share-ticket-capture .ticket-print-share-mode .ticket-print-two-col-monto {
  font-weight: 900 !important;
  text-align: right !important;
  white-space: nowrap !important;
}

.share-ticket-capture .ticket-print-share-mode .ticket-print-total {
  text-align: right !important;
  font-size: 15px !important;
  font-weight: 900 !important;
  margin-top: 7px !important;
}

.share-ticket-capture .ticket-print-share-mode .ticket-print-footer-message {
  text-align: center !important;
  font-size: 10.5px !important;
  font-weight: 800 !important;
  line-height: 1.2 !important;
  overflow-wrap: anywhere !important;
}

.share-ticket-capture .ticket-print-share-mode .ticket-print-qr {
  width: 100% !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
  align-items: center !important;
  margin: 8px auto 0 !important;
  text-align: center !important;
}

.share-ticket-capture .ticket-print-share-mode .ticket-print-qr svg {
  width: 105px !important;
  height: 105px !important;
  display: block !important;
  margin: 0 auto !important;
}

.share-ticket-capture .ticket-print-share-mode .ticket-print-qr-label {
  max-width: 100% !important;
  font-size: 9.5px !important;
  font-weight: 900 !important;
  text-align: center !important;
  overflow-wrap: anywhere !important;
  margin-top: 3px !important;
}

/* =========================================================
   FIX compartir APK v2.1: más ancho y QR centrado
   ========================================================= */

.share-ticket-capture-wrap {
  width: 430px !important;
  padding: 18px !important;
  background: #ffffff !important;
  overflow: visible !important;
  box-sizing: border-box !important;
}

.share-ticket-capture {
  width: 390px !important;
  max-width: 390px !important;
  margin: 0 auto !important;
  display: flex !important;
  justify-content: center !important;
  align-items: flex-start !important;
  background: #ffffff !important;
  overflow: visible !important;
  box-sizing: border-box !important;
}

.share-ticket-capture .ticket-print-share-mode {
  width: 360px !important;
  max-width: 360px !important;
  min-width: 360px !important;
  margin: 0 auto !important;
  padding: 14px 14px !important;
  background: #ffffff !important;
  color: #111827 !important;
  overflow: hidden !important;
  box-sizing: border-box !important;
}

.share-ticket-capture .ticket-print-share-mode .ticket-print-two-col-header,
.share-ticket-capture .ticket-print-share-mode .ticket-print-two-col-row {
  grid-template-columns: 1fr 1fr !important;
  gap: 12px !important;
}

.share-ticket-capture .ticket-print-share-mode .ticket-print-two-col-cell {
  min-width: 0 !important;
  grid-template-columns: 1fr auto !important;
  gap: 6px !important;
}

.share-ticket-capture .ticket-print-share-mode .ticket-print-qr {
  width: 100% !important;
  margin: 10px auto 0 !important;
  padding: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
}

.share-ticket-capture .ticket-print-share-mode .ticket-print-qr svg,
.share-ticket-capture .ticket-print-share-mode .ticket-print-qr canvas {
  display: block !important;
  width: 105px !important;
  height: 105px !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

.share-ticket-capture .ticket-print-share-mode .ticket-print-qr-label {
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  margin: 4px auto 0 !important;
  text-align: center !important;
  font-size: 9.5px !important;
  font-weight: 900 !important;
  overflow-wrap: anywhere !important;
}

/* =========================================================
   FIX APK compartir: QR visible, centrado y sin corte
   ========================================================= */

.share-ticket-capture-wrap {
  width: 430px !important;
  padding: 14px !important;
  background: #ffffff !important;
  overflow: visible !important;
  box-sizing: border-box !important;
}

.share-ticket-capture {
  width: 390px !important;
  max-width: 390px !important;
  margin: 0 auto !important;
  background: #ffffff !important;
  display: flex !important;
  justify-content: center !important;
  align-items: flex-start !important;
  overflow: visible !important;
  box-sizing: border-box !important;
}

.share-ticket-capture .ticket-print-share-mode {
  width: 360px !important;
  max-width: 360px !important;
  min-width: 360px !important;
  margin: 0 auto !important;
  padding: 12px 14px !important;
  background: #ffffff !important;
  color: #111827 !important;
  overflow: visible !important;
  box-sizing: border-box !important;
}

.share-ticket-capture .ticket-print-share-mode .ticket-print-footer-message {
  margin-top: 6px !important;
  margin-bottom: 6px !important;
  font-size: 10px !important;
  line-height: 1.15 !important;
  text-align: center !important;
  color: #111827 !important;
  font-weight: 800 !important;
}

.share-ticket-capture .ticket-print-share-mode .ticket-print-qr {
  width: 100% !important;
  min-height: 112px !important;
  margin: 8px auto 4px !important;
  padding: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
  background: #ffffff !important;
  overflow: visible !important;
}

.share-ticket-capture .ticket-print-share-mode .ticket-print-qr svg,
.share-ticket-capture .ticket-print-share-mode .ticket-print-qr canvas {
  display: block !important;
  width: 98px !important;
  height: 98px !important;
  min-width: 98px !important;
  min-height: 98px !important;
  margin: 0 auto !important;
  background: #ffffff !important;
  color: #000000 !important;
}

.share-ticket-capture .ticket-print-share-mode .ticket-print-qr svg path,
.share-ticket-capture .ticket-print-share-mode .ticket-print-qr svg rect {
  fill: #000000 !important;
}

.share-ticket-capture .ticket-print-share-mode .ticket-print-qr-label {
  display: block !important;
  width: 100% !important;
  margin: 4px auto 0 !important;
  text-align: center !important;
  font-size: 9px !important;
  font-weight: 900 !important;
  color: #111827 !important;
  overflow-wrap: anywhere !important;
}

.share-ticket-capture .ticket-print-share-mode .ticket-print-divider {
  clear: both !important;
}

/* =========================================================
   FIX APK reportes: texto visible en tablas/modal
   ========================================================= */

@media (max-width: 768px) {
  .pos-modern-mobile .reports-modal,
  .pos-modern-mobile .reports-card,
  .pos-modern-mobile .report-card,
  .pos-modern-mobile .modal-card,
  .pos-modern-mobile .pos-report-modal {
    color: #111827 !important;
  }

  .pos-modern-mobile .reports-modal *,
  .pos-modern-mobile .reports-card *,
  .pos-modern-mobile .report-card *,
  .pos-modern-mobile .pos-report-modal *,
  .pos-modern-mobile .modal-card * {
    color: inherit;
  }

  .pos-modern-mobile .reports-modal h1,
  .pos-modern-mobile .reports-modal h2,
  .pos-modern-mobile .reports-modal h3,
  .pos-modern-mobile .reports-card h1,
  .pos-modern-mobile .reports-card h2,
  .pos-modern-mobile .reports-card h3,
  .pos-modern-mobile .report-card h1,
  .pos-modern-mobile .report-card h2,
  .pos-modern-mobile .report-card h3 {
    color: #111827 !important;
    font-weight: 900 !important;
  }

  .pos-modern-mobile .reports-modal label,
  .pos-modern-mobile .reports-card label,
  .pos-modern-mobile .report-card label,
  .pos-modern-mobile .pos-report-modal label {
    color: #374151 !important;
    font-weight: 800 !important;
  }

  .pos-modern-mobile .reports-modal select,
  .pos-modern-mobile .reports-modal input,
  .pos-modern-mobile .reports-card select,
  .pos-modern-mobile .reports-card input,
  .pos-modern-mobile .report-card select,
  .pos-modern-mobile .report-card input,
  .pos-modern-mobile .pos-report-modal select,
  .pos-modern-mobile .pos-report-modal input {
    color: #111827 !important;
    background: #ffffff !important;
    border: 1px solid #d1d5db !important;
  }

  .pos-modern-mobile .reports-modal table,
  .pos-modern-mobile .reports-card table,
  .pos-modern-mobile .report-card table,
  .pos-modern-mobile .pos-report-modal table {
    color: #111827 !important;
    background: #ffffff !important;
  }

  .pos-modern-mobile .reports-modal thead th,
  .pos-modern-mobile .reports-card thead th,
  .pos-modern-mobile .report-card thead th,
  .pos-modern-mobile .pos-report-modal thead th {
    background: #0f172a !important;
    color: #ffffff !important;
    font-weight: 900 !important;
  }

  .pos-modern-mobile .reports-modal tbody td,
  .pos-modern-mobile .reports-card tbody td,
  .pos-modern-mobile .report-card tbody td,
  .pos-modern-mobile .pos-report-modal tbody td {
    background: #ffffff !important;
    color: #111827 !important;
    font-weight: 700 !important;
  }

  .pos-modern-mobile .reports-modal tbody tr:nth-child(even) td,
  .pos-modern-mobile .reports-card tbody tr:nth-child(even) td,
  .pos-modern-mobile .report-card tbody tr:nth-child(even) td,
  .pos-modern-mobile .pos-report-modal tbody tr:nth-child(even) td {
    background: #f8fafc !important;
  }

  .pos-modern-mobile .reports-modal .status,
  .pos-modern-mobile .reports-card .status,
  .pos-modern-mobile .report-card .status,
  .pos-modern-mobile .badge,
  .pos-modern-mobile .pill {
    color: #111827 !important;
  }
}

/* =========================================================
   FIX fuerte APK/móvil: reportes y auditoría legibles
   ========================================================= */

@media (max-width: 768px) {
  /* Contenedores blancos de reportes */
  .pos-modern-mobile .reports-modal,
  .pos-modern-mobile .reports-card,
  .pos-modern-mobile .report-card,
  .pos-modern-mobile .pos-report-modal,
  .pos-modern-mobile .report-modal,
  .pos-modern-mobile .modal-card,
  .pos-modern-mobile .modal-content,
  .pos-modern-mobile .report-content,
  .pos-modern-mobile .audit-card,
  .pos-modern-mobile .audit-table-wrap {
    background: #ffffff !important;
    color: #111827 !important;
  }

  /* Todo texto dentro de reportes debe ser oscuro por defecto */
  .pos-modern-mobile .reports-modal,
  .pos-modern-mobile .reports-modal *,
  .pos-modern-mobile .reports-card,
  .pos-modern-mobile .reports-card *,
  .pos-modern-mobile .report-card,
  .pos-modern-mobile .report-card *,
  .pos-modern-mobile .pos-report-modal,
  .pos-modern-mobile .pos-report-modal *,
  .pos-modern-mobile .report-modal,
  .pos-modern-mobile .report-modal *,
  .pos-modern-mobile .report-content,
  .pos-modern-mobile .report-content *,
  .pos-modern-mobile .audit-card,
  .pos-modern-mobile .audit-card *,
  .pos-modern-mobile .audit-table-wrap,
  .pos-modern-mobile .audit-table-wrap * {
    color: #111827 !important;
    opacity: 1 !important;
    text-shadow: none !important;
  }

  /* Títulos */
  .pos-modern-mobile .reports-modal h1,
  .pos-modern-mobile .reports-modal h2,
  .pos-modern-mobile .reports-modal h3,
  .pos-modern-mobile .reports-card h1,
  .pos-modern-mobile .reports-card h2,
  .pos-modern-mobile .reports-card h3,
  .pos-modern-mobile .report-card h1,
  .pos-modern-mobile .report-card h2,
  .pos-modern-mobile .report-card h3,
  .pos-modern-mobile .pos-report-modal h1,
  .pos-modern-mobile .pos-report-modal h2,
  .pos-modern-mobile .pos-report-modal h3 {
    color: #111827 !important;
    opacity: 1 !important;
    font-weight: 900 !important;
  }

  /* Labels y filtros */
  .pos-modern-mobile .reports-modal label,
  .pos-modern-mobile .reports-card label,
  .pos-modern-mobile .report-card label,
  .pos-modern-mobile .pos-report-modal label,
  .pos-modern-mobile .report-modal label {
    color: #374151 !important;
    opacity: 1 !important;
    font-weight: 900 !important;
  }

  .pos-modern-mobile .reports-modal select,
  .pos-modern-mobile .reports-modal input,
  .pos-modern-mobile .reports-card select,
  .pos-modern-mobile .reports-card input,
  .pos-modern-mobile .report-card select,
  .pos-modern-mobile .report-card input,
  .pos-modern-mobile .pos-report-modal select,
  .pos-modern-mobile .pos-report-modal input,
  .pos-modern-mobile .report-modal select,
  .pos-modern-mobile .report-modal input {
    background: #ffffff !important;
    color: #111827 !important;
    opacity: 1 !important;
    border: 1px solid #d1d5db !important;
    font-weight: 700 !important;
  }

  /* Tablas */
  .pos-modern-mobile table,
  .pos-modern-mobile .table,
  .pos-modern-mobile .report-table,
  .pos-modern-mobile .audit-table {
    background: #ffffff !important;
    color: #111827 !important;
    opacity: 1 !important;
  }

  .pos-modern-mobile table thead,
  .pos-modern-mobile .report-table thead,
  .pos-modern-mobile .audit-table thead {
    background: #0f172a !important;
  }

  .pos-modern-mobile table thead th,
  .pos-modern-mobile .report-table thead th,
  .pos-modern-mobile .audit-table thead th {
    background: #0f172a !important;
    color: #ffffff !important;
    opacity: 1 !important;
    font-weight: 900 !important;
  }

  .pos-modern-mobile table tbody tr,
  .pos-modern-mobile .report-table tbody tr,
  .pos-modern-mobile .audit-table tbody tr {
    background: #ffffff !important;
  }

  .pos-modern-mobile table tbody tr:nth-child(even),
  .pos-modern-mobile .report-table tbody tr:nth-child(even),
  .pos-modern-mobile .audit-table tbody tr:nth-child(even) {
    background: #f8fafc !important;
  }

  .pos-modern-mobile table tbody td,
  .pos-modern-mobile .report-table tbody td,
  .pos-modern-mobile .audit-table tbody td {
    background: transparent !important;
    color: #111827 !important;
    opacity: 1 !important;
    font-weight: 800 !important;
  }

  /* Celdas específicas que a veces quedan transparentes */
  .pos-modern-mobile td,
  .pos-modern-mobile td *,
  .pos-modern-mobile tbody,
  .pos-modern-mobile tbody *,
  .pos-modern-mobile .report-row,
  .pos-modern-mobile .report-row *,
  .pos-modern-mobile .audit-row,
  .pos-modern-mobile .audit-row * {
    color: #111827 !important;
    opacity: 1 !important;
  }

  /* Badges de estado */
  .pos-modern-mobile .status,
  .pos-modern-mobile .badge-status,
  .pos-modern-mobile .ticket-status,
  .pos-modern-mobile .pill,
  .pos-modern-mobile .badge {
    opacity: 1 !important;
    font-weight: 900 !important;
  }

  .pos-modern-mobile .status.pending,
  .pos-modern-mobile .status-pending,
  .pos-modern-mobile .badge-pending,
  .pos-modern-mobile .pill-pending {
    background: #fef3c7 !important;
    color: #92400e !important;
  }

  /* Botones dentro de reportes */
  .pos-modern-mobile .reports-modal button,
  .pos-modern-mobile .reports-card button,
  .pos-modern-mobile .report-card button,
  .pos-modern-mobile .pos-report-modal button,
  .pos-modern-mobile .report-modal button {
    opacity: 1 !important;
    font-weight: 900 !important;
  }
}

/* =========================================================
   FIX DEFINITIVO POS móvil: Reportes legibles
   ========================================================= */

@media (max-width: 768px) {
  .pos-modern-mobile .pos-reports-modal,
  .pos-modern-mobile .pos-reports-modal *,
  .pos-modern-mobile .pos-reports-result-box,
  .pos-modern-mobile .pos-reports-result-box * {
    opacity: 1 !important;
    text-shadow: none !important;
  }

  .pos-modern-mobile .pos-reports-modal {
    background: #ffffff !important;
    color: #111827 !important;
  }

  .pos-modern-mobile .pos-reports-modal h1,
  .pos-modern-mobile .pos-reports-modal h2,
  .pos-modern-mobile .pos-reports-modal h3,
  .pos-modern-mobile .pos-reports-modal h4,
  .pos-modern-mobile .pos-reports-modal label,
  .pos-modern-mobile .pos-reports-modal p,
  .pos-modern-mobile .pos-reports-modal div,
  .pos-modern-mobile .pos-reports-modal span,
  .pos-modern-mobile .pos-reports-modal strong {
    color: #111827 !important;
    -webkit-text-fill-color: #111827 !important;
  }

  .pos-modern-mobile .pos-reports-modal input,
  .pos-modern-mobile .pos-reports-modal select,
  .pos-modern-mobile .pos-reports-modal textarea {
    background: #ffffff !important;
    color: #111827 !important;
    -webkit-text-fill-color: #111827 !important;
    border: 1px solid #d1d5db !important;
    font-weight: 700 !important;
  }

  .pos-modern-mobile .pos-reports-result-box {
    background: #ffffff !important;
    color: #111827 !important;
    -webkit-text-fill-color: #111827 !important;
  }

  .pos-modern-mobile .pos-reports-result-box .table-wrap {
    background: #ffffff !important;
    border: 1px solid #e5e7eb !important;
    border-radius: 10px !important;
    overflow: auto !important;
  }

  .pos-modern-mobile .pos-reports-result-box table {
    width: 100% !important;
    background: #ffffff !important;
    color: #111827 !important;
    border-collapse: collapse !important;
  }

  .pos-modern-mobile .pos-reports-result-box thead,
  .pos-modern-mobile .pos-reports-result-box thead tr {
    background: #0f172a !important;
  }

  .pos-modern-mobile .pos-reports-result-box thead th,
  .pos-modern-mobile .pos-reports-result-box thead th * {
    background: #0f172a !important;
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
    opacity: 1 !important;
    font-weight: 900 !important;
  }

  .pos-modern-mobile .pos-reports-result-box tbody,
  .pos-modern-mobile .pos-reports-result-box tbody tr {
    background: #ffffff !important;
  }

  .pos-modern-mobile .pos-reports-result-box tbody tr:nth-child(even) {
    background: #f8fafc !important;
  }

  .pos-modern-mobile .pos-reports-result-box tbody td,
  .pos-modern-mobile .pos-reports-result-box tbody td *,
  .pos-modern-mobile .pos-reports-result-box tbody td span,
  .pos-modern-mobile .pos-reports-result-box tbody td strong {
    color: #111827 !important;
    -webkit-text-fill-color: #111827 !important;
    opacity: 1 !important;
    font-weight: 800 !important;
  }

  .pos-modern-mobile .pos-reports-result-box tbody td {
    background: transparent !important;
    border-bottom: 1px solid #e5e7eb !important;
  }

  .pos-modern-mobile .pos-reports-result-box .ticket-status-pill,
  .pos-modern-mobile .pos-reports-result-box .status-pending {
    background: #fef3c7 !important;
    color: #92400e !important;
    -webkit-text-fill-color: #92400e !important;
    border: 1px solid #f59e0b !important;
    font-weight: 900 !important;
  }

  .pos-modern-mobile .pos-reports-result-box .status-winner {
    background: #dcfce7 !important;
    color: #166534 !important;
    -webkit-text-fill-color: #166534 !important;
    border: 1px solid #22c55e !important;
  }

  .pos-modern-mobile .pos-reports-result-box .status-loser {
    background: #fee2e2 !important;
    color: #991b1b !important;
    -webkit-text-fill-color: #991b1b !important;
    border: 1px solid #ef4444 !important;
  }

  .pos-modern-mobile .pos-reports-result-box .status-cancelled {
    background: #e5e7eb !important;
    color: #374151 !important;
    -webkit-text-fill-color: #374151 !important;
    border: 1px solid #9ca3af !important;
  }

  .pos-modern-mobile .pos-reports-result-box button {
    opacity: 1 !important;
    font-weight: 900 !important;
  }
}

/* FIX QR Canvas para imagen compartida APK */
.share-ticket-capture .ticket-print-share-mode .ticket-print-qr canvas {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  width: 118px !important;
  height: 118px !important;
  min-width: 118px !important;
  min-height: 118px !important;
  margin: 0 auto !important;
  background: #ffffff !important;
}

/* =========================================================
   THE ROCK777 - POS DESKTOP DARK STYLE
   Solo navegador computadora. No afecta APK/celular.
   ========================================================= */
@media (min-width: 901px) {
  body {
    background:
      radial-gradient(circle at 50% 8%, rgba(37, 99, 235, 0.42), transparent 30%),
      linear-gradient(135deg, #020617 0%, #061636 45%, #020617 100%) !important;
  }

  .screen {
    background:
      radial-gradient(circle at 50% 0%, rgba(37, 99, 235, 0.32), transparent 34%),
      linear-gradient(135deg, #020617 0%, #061636 45%, #020617 100%) !important;
    min-height: 100vh !important;
  }

  .topbar {
    background: linear-gradient(135deg, rgba(220, 252, 231, 0.96), rgba(187, 247, 208, 0.90)) !important;
    border: 1px solid rgba(34, 197, 94, 0.75) !important;
    border-radius: 20px !important;
    box-shadow: 0 16px 38px rgba(0, 0, 0, 0.35) !important;
  }

  /* Área de sorteos */
  .lottery-area {
    background: rgba(15, 23, 42, 0.78) !important;
    border: 1px solid rgba(59, 130, 246, 0.65) !important;
    border-radius: 18px !important;
    padding: 12px 14px !important;
    box-shadow: 0 16px 34px rgba(0, 0, 0, 0.35) !important;
  }

  .lottery-area-title {
    color: #ffffff !important;
    font-size: 16px !important;
    font-weight: 900 !important;
    padding-left: 2px !important;
    letter-spacing: 0.2px !important;
  }

  .lottery-strip {
    gap: 12px !important;
    align-items: stretch !important;
  }

  .lottery-strip-wrap {
    padding-bottom: 8px !important;
  }

  .lottery-strip-wrap::-webkit-scrollbar {
    height: 12px !important;
  }

  .lottery-strip-wrap::-webkit-scrollbar-thumb {
    background: linear-gradient(90deg, #16a34a, #2563eb) !important;
    border-radius: 999px !important;
  }

  .lottery-strip-wrap::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.25) !important;
    border-radius: 999px !important;
  }

  /* Botones de sorteos centrados */
  .lottery-btn {
    flex: 0 0 168px !important;
    min-width: 168px !important;
    max-width: 168px !important;
    min-height: 94px !important;
    margin-top: 0 !important;
    padding: 10px 10px !important;

    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;

    border-radius: 16px !important;
    border: 1px solid rgba(148, 163, 184, 0.55) !important;
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%) !important;
    box-shadow: 0 9px 20px rgba(0, 0, 0, 0.22) !important;
    transition: transform 0.12s ease, box-shadow 0.12s ease, border-color 0.12s ease !important;
  }

  .lottery-btn:hover {
    transform: translateY(-2px) !important;
    border-color: #22c55e !important;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.32) !important;
  }

  .lottery-btn.active {
    background: linear-gradient(135deg, #dcfce7 0%, #bbf7d0 100%) !important;
    border-color: #16a34a !important;
    box-shadow:
      0 0 0 3px rgba(34, 197, 94, 0.28),
      0 15px 30px rgba(0, 0, 0, 0.30) !important;
  }

  .lottery-logo-wrap {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 4px !important;
    width: 100% !important;
    margin-bottom: 5px !important;
  }

  .lottery-logo-icon {
    font-size: 17px !important;
    line-height: 1 !important;
  }

  .lottery-logo-label {
    font-size: 14px !important;
    font-weight: 900 !important;
    line-height: 1 !important;
  }

  .lottery-text-wrap {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    text-align: center !important;
  }

  .lottery-name {
    display: block !important;
    width: 100% !important;
    font-size: 13px !important;
    font-weight: 900 !important;
    color: #020617 !important;
    line-height: 1.18 !important;
    text-align: center !important;
    white-space: normal !important;
  }

  .lottery-close {
    display: block !important;
    width: 100% !important;
    margin-top: 5px !important;
    font-size: 12px !important;
    color: #334155 !important;
    font-weight: 700 !important;
    line-height: 1.2 !important;
    text-align: center !important;
    white-space: normal !important;
  }

  .layout.layout-3cols {
    gap: 16px !important;
  }

  .left-panel,
  .right-panel,
  .action-card,
  .extra-actions-card,
  .ticket-card,
  .card {
    border-radius: 18px !important;
    box-shadow: 0 16px 34px rgba(0, 0, 0, 0.35) !important;
  }

  .ticket-card {
    background: rgba(255, 255, 255, 0.97) !important;
    border: 1px solid rgba(226, 232, 240, 0.95) !important;
  }

  .table-wrap.ticket-scroll {
    border-radius: 14px !important;
    overflow: hidden !important;
  }

  thead th {
    background: linear-gradient(90deg, #0f172a, #111827) !important;
  }

  .capture-field input {
    border-radius: 10px !important;
    border: 1px solid rgba(148, 163, 184, 0.75) !important;
  }
}

/* =========================================================
   THE ROCK777 - ADMIN / GROUP / SUPERVISOR INNER PANELS ONLY
   Solo cambia por dentro. No toca fondo exterior.
   ========================================================= */
@media (min-width: 901px) {
  /* Contenedores internos principales */
  .admin-content,
  .group-content,
  .supervisor-content,
  .main-content,
  .content-area,
  .dashboard-content {
    background: transparent !important;
  }

  /* Paneles internos */
  .admin-card,
  .group-card,
  .supervisor-card,
  .dashboard-card,
  .content-card,
  .section-card,
  .panel,
  .box {
    background: rgba(15, 23, 42, 0.82) !important;
    border: 1px solid rgba(59, 130, 246, 0.55) !important;
    border-radius: 18px !important;
    box-shadow: 0 16px 34px rgba(0, 0, 0, 0.35) !important;
    color: #f8fafc !important;
  }

  /* Títulos dentro de paneles oscuros */
  .admin-card h1,
  .admin-card h2,
  .admin-card h3,
  .group-card h1,
  .group-card h2,
  .group-card h3,
  .supervisor-card h1,
  .supervisor-card h2,
  .supervisor-card h3,
  .dashboard-card h1,
  .dashboard-card h2,
  .dashboard-card h3,
  .panel h1,
  .panel h2,
  .panel h3,
  .box h1,
  .box h2,
  .box h3 {
    color: #ffffff !important;
  }

  /* Textos secundarios */
  .admin-card p,
  .group-card p,
  .supervisor-card p,
  .dashboard-card p,
  .panel p,
  .box p,
  .admin-card label,
  .group-card label,
  .supervisor-card label,
  .dashboard-card label,
  .panel label,
  .box label {
    color: #e5e7eb !important;
  }

  /* Tablas dentro de paneles */
  .admin-card table,
  .group-card table,
  .supervisor-card table,
  .dashboard-card table,
  .panel table,
  .box table {
    background: #ffffff !important;
    color: #111827 !important;
    border-radius: 14px !important;
    overflow: hidden !important;
  }

  .admin-card thead th,
  .group-card thead th,
  .supervisor-card thead th,
  .dashboard-card thead th,
  .panel thead th,
  .box thead th {
    background: linear-gradient(90deg, #0f172a, #111827) !important;
    color: #ffffff !important;
  }

  .admin-card tbody td,
  .group-card tbody td,
  .supervisor-card tbody td,
  .dashboard-card tbody td,
  .panel tbody td,
  .box tbody td {
    color: #111827 !important;
  }

  /* Inputs dentro de módulos internos */
  .admin-card input,
  .admin-card select,
  .admin-card textarea,
  .group-card input,
  .group-card select,
  .group-card textarea,
  .supervisor-card input,
  .supervisor-card select,
  .supervisor-card textarea,
  .dashboard-card input,
  .dashboard-card select,
  .dashboard-card textarea,
  .panel input,
  .panel select,
  .panel textarea,
  .box input,
  .box select,
  .box textarea {
    background: #ffffff !important;
    color: #111827 !important;
    border-radius: 10px !important;
    border: 1px solid rgba(148, 163, 184, 0.8) !important;
  }

  /* Modales internos */
  .modal-card,
  .modal-content,
  .dialog-card {
    background: rgba(15, 23, 42, 0.94) !important;
    border: 1px solid rgba(59, 130, 246, 0.60) !important;
    color: #f8fafc !important;
    border-radius: 18px !important;
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.45) !important;
  }

  .modal-card h1,
  .modal-card h2,
  .modal-card h3,
  .modal-content h1,
  .modal-content h2,
  .modal-content h3,
  .dialog-card h1,
  .dialog-card h2,
  .dialog-card h3 {
    color: #ffffff !important;
  }
}

/* =========================================================
   THE ROCK777 - ADMIN/GROUP/SUPERVISOR INNER DARK ONLY
   Mantiene el exterior como está y oscurece solo por dentro
   ========================================================= */
@media (min-width: 901px) {
  /* ADMIN: tarjetas internas */
  .admin-page .card,
  .admin-page .panel,
  .admin-page .box,
  .admin-page .section-card,
  .admin-page .content-card,
  .admin-screen .card,
  .admin-screen .panel,
  .admin-screen .box {
    background: rgba(15, 23, 42, 0.88) !important;
    border: 1px solid rgba(59, 130, 246, 0.55) !important;
    color: #f8fafc !important;
  }

  /* GROUP: paneles internos */
  .group-page .card,
  .group-page .panel,
  .group-page .box,
  .group-page .section-card,
  .group-page .content-card,
  .group-screen .card,
  .group-screen .panel,
  .group-screen .box,
  .group-dashboard-card,
  .group-menu-card,
  .group-stat-card {
    background: rgba(15, 23, 42, 0.88) !important;
    border: 1px solid rgba(59, 130, 246, 0.55) !important;
    color: #f8fafc !important;
  }

  /* SUPERVISOR: paneles internos */
  .supervisor-page .card,
  .supervisor-page .panel,
  .supervisor-page .box,
  .supervisor-page .section-card,
  .supervisor-page .content-card,
  .supervisor-screen .card,
  .supervisor-screen .panel,
  .supervisor-screen .box,
  .supervisor-dashboard-card,
  .supervisor-menu-card,
  .supervisor-stat-card {
    background: rgba(15, 23, 42, 0.88) !important;
    border: 1px solid rgba(59, 130, 246, 0.55) !important;
    color: #f8fafc !important;
  }

  /* Títulos y textos dentro de paneles oscuros */
  .admin-page .card h1,
  .admin-page .card h2,
  .admin-page .card h3,
  .admin-page .panel h1,
  .admin-page .panel h2,
  .admin-page .panel h3,
  .group-page .card h1,
  .group-page .card h2,
  .group-page .card h3,
  .group-page .panel h1,
  .group-page .panel h2,
  .group-page .panel h3,
  .supervisor-page .card h1,
  .supervisor-page .card h2,
  .supervisor-page .card h3,
  .supervisor-page .panel h1,
  .supervisor-page .panel h2,
  .supervisor-page .panel h3 {
    color: #ffffff !important;
  }

  .admin-page .card p,
  .admin-page .card label,
  .admin-page .panel p,
  .admin-page .panel label,
  .group-page .card p,
  .group-page .card label,
  .group-page .panel p,
  .group-page .panel label,
  .supervisor-page .card p,
  .supervisor-page .card label,
  .supervisor-page .panel p,
  .supervisor-page .panel label {
    color: #e5e7eb !important;
  }

  /* Tablas dentro de admin/group/supervisor: se quedan blancas para lectura */
  .admin-page table,
  .group-page table,
  .supervisor-page table {
    background: #ffffff !important;
    color: #111827 !important;
  }

  .admin-page tbody td,
  .group-page tbody td,
  .supervisor-page tbody td {
    color: #111827 !important;
  }

  .admin-page thead th,
  .group-page thead th,
  .supervisor-page thead th {
    background: linear-gradient(90deg, #0f172a, #111827) !important;
    color: #ffffff !important;
  }

  /* Inputs dentro de esas pantallas */
  .admin-page input,
  .admin-page select,
  .admin-page textarea,
  .group-page input,
  .group-page select,
  .group-page textarea,
  .supervisor-page input,
  .supervisor-page select,
  .supervisor-page textarea {
    background: #ffffff !important;
    color: #111827 !important;
    border-radius: 10px !important;
  }
}

/* =========================================================
   THE ROCK777 - ADMIN / GROUP / SUPERVISOR INNER DARK REAL CLASSES
   Solo cambia paneles internos. No toca fondo exterior/body/#root.
   ========================================================= */
@media (min-width: 901px) {
  /* Tarjetas internas principales de admin, group y supervisor */
  .app-shell.admin-shell > .card,
  .app-shell.admin-shell > .admin-card,
  .app-shell.admin-shell .admin-card,
  .app-shell.admin-shell .group-admin-menu,
  .app-shell.admin-shell .group-dashboard-new,
  .app-shell.admin-shell .group-dashboard-chart-panel,
  .app-shell.admin-shell .group-dashboard-lottery-panel,
  .app-shell.admin-shell .group-banks-section,
  .app-shell.admin-shell .group-section-card,
  .app-shell.admin-shell .group-lotteries-box {
    background: rgba(15, 23, 42, 0.88) !important;
    border: 1px solid rgba(59, 130, 246, 0.58) !important;
    color: #f8fafc !important;
    border-radius: 18px !important;
    box-shadow: 0 16px 34px rgba(0, 0, 0, 0.36) !important;
  }

  /* Títulos dentro de los paneles oscuros */
  .app-shell.admin-shell > .card h1,
  .app-shell.admin-shell > .card h2,
  .app-shell.admin-shell > .card h3,
  .app-shell.admin-shell .admin-card h1,
  .app-shell.admin-shell .admin-card h2,
  .app-shell.admin-shell .admin-card h3,
  .app-shell.admin-shell .group-admin-menu h1,
  .app-shell.admin-shell .group-admin-menu h2,
  .app-shell.admin-shell .group-admin-menu h3,
  .app-shell.admin-shell .group-dashboard-new h1,
  .app-shell.admin-shell .group-dashboard-new h2,
  .app-shell.admin-shell .group-dashboard-new h3,
  .app-shell.admin-shell .group-dashboard-chart-panel h3,
  .app-shell.admin-shell .group-dashboard-lottery-panel h3 {
    color: #ffffff !important;
  }

  /* Textos generales */
  .app-shell.admin-shell > .card p,
  .app-shell.admin-shell > .card label,
  .app-shell.admin-shell .admin-card p,
  .app-shell.admin-shell .admin-card label,
  .app-shell.admin-shell .group-dashboard-new p,
  .app-shell.admin-shell .group-dashboard-new label {
    color: #e5e7eb !important;
  }

  /* Separadores internos */
  .app-shell.admin-shell .group-dashboard-new > div:first-child,
  .app-shell.admin-shell .card > div:first-child {
    border-color: rgba(59, 130, 246, 0.45) !important;
  }

  /* Mantener KPIs con sus colores vivos */
  .app-shell.admin-shell .group-kpi-card,
  .app-shell.admin-shell .group-kpi-yellow,
  .app-shell.admin-shell .group-kpi-blue,
  .app-shell.admin-shell .group-kpi-orange,
  .app-shell.admin-shell .group-kpi-green {
    border: none !important;
  }

  /* Tablas blancas para lectura */
  .app-shell.admin-shell table,
  .app-shell.admin-shell .group-lottery-table {
    background: #ffffff !important;
    color: #111827 !important;
  }

  .app-shell.admin-shell thead th,
  .app-shell.admin-shell .group-lottery-table thead th {
    background: linear-gradient(90deg, #0f172a, #111827) !important;
    color: #ffffff !important;
  }

  .app-shell.admin-shell tbody td,
  .app-shell.admin-shell .group-lottery-table tbody td {
    color: #111827 !important;
  }

  /* Inputs claros dentro de paneles oscuros */
  .app-shell.admin-shell input,
  .app-shell.admin-shell select,
  .app-shell.admin-shell textarea {
    background: #ffffff !important;
    color: #111827 !important;
    border-radius: 10px !important;
    border: 1px solid rgba(148, 163, 184, 0.8) !important;
  }

  /* Mensajes internos */
  .app-shell.admin-shell .message,
  .app-shell.admin-shell .message-box,
  .app-shell.admin-shell .empty-results {
    background: rgba(255, 255, 255, 0.08) !important;
    border: 1px dashed rgba(148, 163, 184, 0.55) !important;
    color: #f8fafc !important;
    border-radius: 14px !important;
  }
}

/* =========================================================
   THE ROCK777 - FIX TEXTOS EN PANELES OSCUROS
   Corrige textos negros dentro de Admin/Group/Supervisor
   ========================================================= */
@media (min-width: 901px) {
  /* Títulos principales dentro de paneles oscuros */
  .app-shell.admin-shell .card > h1,
  .app-shell.admin-shell .card > h2,
  .app-shell.admin-shell .card > h3,
  .app-shell.admin-shell .admin-card > h1,
  .app-shell.admin-shell .admin-card > h2,
  .app-shell.admin-shell .admin-card > h3,
  .app-shell.admin-shell .group-banks-section h1,
  .app-shell.admin-shell .group-banks-section h2,
  .app-shell.admin-shell .group-banks-section h3,
  .app-shell.admin-shell .group-dashboard-new h1,
  .app-shell.admin-shell .group-dashboard-new h2,
  .app-shell.admin-shell .group-dashboard-new h3,
  .app-shell.admin-shell .group-dashboard-chart-panel h1,
  .app-shell.admin-shell .group-dashboard-chart-panel h2,
  .app-shell.admin-shell .group-dashboard-chart-panel h3,
  .app-shell.admin-shell .group-dashboard-lottery-panel h1,
  .app-shell.admin-shell .group-dashboard-lottery-panel h2,
  .app-shell.admin-shell .group-dashboard-lottery-panel h3 {
    color: #ffffff !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.45) !important;
  }

  /* Subtítulos y textos pequeños dentro de paneles oscuros */
  .app-shell.admin-shell .card > p,
  .app-shell.admin-shell .card small,
  .app-shell.admin-shell .admin-card p,
  .app-shell.admin-shell .admin-card small,
  .app-shell.admin-shell .group-banks-section p,
  .app-shell.admin-shell .group-banks-section small,
  .app-shell.admin-shell .group-dashboard-new p,
  .app-shell.admin-shell .group-dashboard-new small,
  .app-shell.admin-shell .group-dashboard-chart-panel p,
  .app-shell.admin-shell .group-dashboard-chart-panel small,
  .app-shell.admin-shell .group-dashboard-lottery-panel p,
  .app-shell.admin-shell .group-dashboard-lottery-panel small {
    color: #cbd5e1 !important;
  }

  /* Labels de filtros */
  .app-shell.admin-shell .card label,
  .app-shell.admin-shell .admin-card label,
  .app-shell.admin-shell .group-banks-section label,
  .app-shell.admin-shell .group-dashboard-new label {
    color: #e5e7eb !important;
    font-weight: 800 !important;
  }

  /* Mantener formularios blancos para que se lean bien */
  .app-shell.admin-shell .card .field,
  .app-shell.admin-shell .admin-card .field,
  .app-shell.admin-shell .group-banks-section .field {
    color: #111827 !important;
  }

  .app-shell.admin-shell input,
  .app-shell.admin-shell select,
  .app-shell.admin-shell textarea {
    background: #ffffff !important;
    color: #111827 !important;
  }

  /* Tablas legibles */
  .app-shell.admin-shell table {
    background: #ffffff !important;
    color: #111827 !important;
  }

  .app-shell.admin-shell table td,
  .app-shell.admin-shell table td *,
  .app-shell.admin-shell table tbody,
  .app-shell.admin-shell table tbody * {
    color: #111827 !important;
  }

  .app-shell.admin-shell table thead th,
  .app-shell.admin-shell table thead th * {
    color: #ffffff !important;
  }

  /* Evita que los paneles corten contenido interno */
  .app-shell.admin-shell .card,
  .app-shell.admin-shell .admin-card,
  .app-shell.admin-shell .group-admin-menu,
  .app-shell.admin-shell .group-dashboard-new,
  .app-shell.admin-shell .group-banks-section {
    overflow: visible !important;
  }
}

/* =========================================================
   THE ROCK777 - ADMIN/GROUP/SUPERVISOR SOLO MENUS OSCUROS
   Deja contenido/tablas/formularios como antes
   ========================================================= */
@media (min-width: 901px) {
  /* Restaurar tarjetas de contenido a blanco */
  .app-shell.admin-shell > .card,
  .app-shell.admin-shell > .admin-card,
  .app-shell.admin-shell .admin-card,
  .app-shell.admin-shell .group-dashboard-new,
  .app-shell.admin-shell .group-dashboard-chart-panel,
  .app-shell.admin-shell .group-dashboard-lottery-panel,
  .app-shell.admin-shell .group-banks-section,
  .app-shell.admin-shell .group-section-card,
  .app-shell.admin-shell .group-lotteries-box {
    background: #ffffff !important;
    border: 1px solid #e5e7eb !important;
    color: #111827 !important;
    border-radius: 18px !important;
    box-shadow: 0 16px 34px rgba(0, 0, 0, 0.18) !important;
  }

  /* Solo el menú principal de botones queda oscuro */
  .app-shell.admin-shell .group-admin-menu,
  .app-shell.admin-shell > .card:has(.btn),
  .app-shell.admin-shell .card:has(.btn.btn-dark),
  .app-shell.admin-shell .card:has(.btn-sell),
  .app-shell.admin-shell .card:has(.btn-reportes),
  .app-shell.admin-shell .card:has(.btn-pay),
  .app-shell.admin-shell .card:has(.btn-perfil) {
    background: rgba(15, 23, 42, 0.90) !important;
    border: 1px solid rgba(59, 130, 246, 0.58) !important;
    color: #f8fafc !important;
    border-radius: 18px !important;
    box-shadow: 0 16px 34px rgba(0, 0, 0, 0.30) !important;
  }

  /* Textos de contenido vuelven normales */
  .app-shell.admin-shell .admin-card h1,
  .app-shell.admin-shell .admin-card h2,
  .app-shell.admin-shell .admin-card h3,
  .app-shell.admin-shell .group-dashboard-new h1,
  .app-shell.admin-shell .group-dashboard-new h2,
  .app-shell.admin-shell .group-dashboard-new h3,
  .app-shell.admin-shell .group-banks-section h1,
  .app-shell.admin-shell .group-banks-section h2,
  .app-shell.admin-shell .group-banks-section h3,
  .app-shell.admin-shell .card h1,
  .app-shell.admin-shell .card h2,
  .app-shell.admin-shell .card h3 {
    color: #111827 !important;
    text-shadow: none !important;
  }

  .app-shell.admin-shell .admin-card p,
  .app-shell.admin-shell .admin-card label,
  .app-shell.admin-shell .group-dashboard-new p,
  .app-shell.admin-shell .group-dashboard-new label,
  .app-shell.admin-shell .group-banks-section p,
  .app-shell.admin-shell .group-banks-section label,
  .app-shell.admin-shell .card p,
  .app-shell.admin-shell .card label,
  .app-shell.admin-shell .card small {
    color: #374151 !important;
    text-shadow: none !important;
  }

  /* Tablas blancas normales */
  .app-shell.admin-shell table,
  .app-shell.admin-shell .group-lottery-table {
    background: #ffffff !important;
    color: #111827 !important;
  }

  .app-shell.admin-shell tbody td,
  .app-shell.admin-shell tbody td *,
  .app-shell.admin-shell .group-lottery-table tbody td,
  .app-shell.admin-shell .group-lottery-table tbody td * {
    color: #111827 !important;
  }

  .app-shell.admin-shell thead th,
  .app-shell.admin-shell thead th *,
  .app-shell.admin-shell .group-lottery-table thead th,
  .app-shell.admin-shell .group-lottery-table thead th * {
    background: #0f172a !important;
    color: #ffffff !important;
  }

  /* Inputs normales */
  .app-shell.admin-shell input,
  .app-shell.admin-shell select,
  .app-shell.admin-shell textarea {
    background: #ffffff !important;
    color: #111827 !important;
    border-radius: 10px !important;
    border: 1px solid #cbd5e1 !important;
  }

  /* Mensajes normales dentro de contenido */
  .app-shell.admin-shell .message,
  .app-shell.admin-shell .message-box,
  .app-shell.admin-shell .empty-results {
    background: #f9fafb !important;
    border: 1px dashed #d1d5db !important;
    color: #374151 !important;
    border-radius: 14px !important;
  }

  /* Botones del menú se mantienen bonitos */
  .app-shell.admin-shell .group-admin-menu .btn,
  .app-shell.admin-shell .card:has(.btn.btn-dark) .btn,
  .app-shell.admin-shell .card:has(.btn-sell) .btn {
    border-radius: 10px !important;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.14) !important;
  }
}
/* POS móvil/APK: Ticket actual más legible */
@media (max-width: 768px) {
  .current-ticket-card,
  .ticket-current-card,
  .pos-ticket-card,
  .ticket-panel,
  .current-ticket-panel {
    font-size: 16px;
  }

  /* Tabla de ticket actual */
  .current-ticket-card table,
  .ticket-current-card table,
  .pos-ticket-card table,
  .ticket-panel table,
  .current-ticket-panel table {
    width: 100%;
    table-layout: fixed;
    font-size: 16px;
  }

  .current-ticket-card th,
  .current-ticket-card td,
  .ticket-current-card th,
  .ticket-current-card td,
  .pos-ticket-card th,
  .pos-ticket-card td,
  .ticket-panel th,
  .ticket-panel td,
  .current-ticket-panel th,
  .current-ticket-panel td {
    padding: 10px 6px;
    font-size: 16px;
    font-weight: 800;
    line-height: 1.25;
  }

  /* Jugada más grande */
  .current-ticket-card td:nth-child(2),
  .ticket-current-card td:nth-child(2),
  .pos-ticket-card td:nth-child(2),
  .ticket-panel td:nth-child(2),
  .current-ticket-panel td:nth-child(2) {
    font-size: 18px;
    font-weight: 900;
  }

  /* Ocultar columna Origen en móvil: header y celdas */
  .current-ticket-card th:nth-child(5),
  .current-ticket-card td:nth-child(5),
  .ticket-current-card th:nth-child(5),
  .ticket-current-card td:nth-child(5),
  .pos-ticket-card th:nth-child(5),
  .pos-ticket-card td:nth-child(5),
  .ticket-panel th:nth-child(5),
  .ticket-panel td:nth-child(5),
  .current-ticket-panel th:nth-child(5),
  .current-ticket-panel td:nth-child(5) {
    display: none;
  }

  /* Dar espacio a la X de borrar */
  .current-ticket-card th:last-child,
  .current-ticket-card td:last-child,
  .ticket-current-card th:last-child,
  .ticket-current-card td:last-child,
  .pos-ticket-card th:last-child,
  .pos-ticket-card td:last-child,
  .ticket-panel th:last-child,
  .ticket-panel td:last-child,
  .current-ticket-panel th:last-child,
  .current-ticket-panel td:last-child {
    width: 42px;
    min-width: 42px;
    text-align: center;
    font-size: 22px;
    font-weight: 900;
  }
}

/* APK / móvil: agrandar tabla Ticket actual */
@media (max-width: 768px) {
  .pos-mobile-shell table th,
  .pos-mobile-shell table td,
  .mobile-pos table th,
  .mobile-pos table td,
  .pos-screen table th,
  .pos-screen table td,
  .screen table th,
  .screen table td {
    font-size: 15px !important;
    padding: 9px 6px !important;
    font-weight: 800 !important;
    line-height: 1.25 !important;
  }

  .pos-mobile-shell table td,
  .mobile-pos table td,
  .pos-screen table td,
  .screen table td {
    white-space: nowrap !important;
  }

  /* Jugada más grande */
  .pos-mobile-shell table td:nth-child(2),
  .mobile-pos table td:nth-child(2),
  .pos-screen table td:nth-child(2),
  .screen table td:nth-child(2) {
    font-size: 17px !important;
    font-weight: 900 !important;
  }

  /* Ocultar Origen si es la columna 5 */
  .pos-mobile-shell table th:nth-child(5),
  .pos-mobile-shell table td:nth-child(5),
  .mobile-pos table th:nth-child(5),
  .mobile-pos table td:nth-child(5),
  .pos-screen table th:nth-child(5),
  .pos-screen table td:nth-child(5),
  .screen table th:nth-child(5),
  .screen table td:nth-child(5) {
    display: none !important;
  }

  /* X de borrar más grande */
  .pos-mobile-shell table th:last-child,
  .pos-mobile-shell table td:last-child,
  .mobile-pos table th:last-child,
  .mobile-pos table td:last-child,
  .pos-screen table th:last-child,
  .pos-screen table td:last-child,
  .screen table th:last-child,
  .screen table td:last-child {
    width: 44px !important;
    min-width: 44px !important;
    max-width: 44px !important;
    text-align: center !important;
    font-size: 22px !important;
    font-weight: 900 !important;
  }
}

/* APK / celular: Ticket actual más grande y legible */
@media (max-width: 768px) {
  .current-ticket-table,
  .current-ticket-table table {
    font-size: 16px !important;
  }

  .current-ticket-table th,
  .current-ticket-table td {
    font-size: 15px !important;
    padding: 10px 6px !important;
    font-weight: 800 !important;
    line-height: 1.25 !important;
    white-space: nowrap !important;
  }

  .current-ticket-table td:nth-child(2) {
    font-size: 18px !important;
    font-weight: 900 !important;
  }

  .current-ticket-table td:nth-child(3) {
    font-size: 14px !important;
  }

  .current-ticket-table td:nth-child(4) {
    font-size: 16px !important;
    font-weight: 900 !important;
  }

  .current-ticket-table .actions-cell {
    width: 44px !important;
    min-width: 44px !important;
    max-width: 44px !important;
    text-align: center !important;
  }

  .current-ticket-table .danger-icon {
    font-size: 24px !important;
    width: 36px !important;
    height: 36px !important;
    line-height: 1 !important;
  }
}

/* APK / celular: Ticket actual grande */
@media (max-width: 768px) {
  .ticket-card .current-ticket-table {
    width: 100% !important;
    table-layout: fixed !important;
  }

  .ticket-card .current-ticket-table th,
  .ticket-card .current-ticket-table td {
    font-size: 15px !important;
    padding: 10px 5px !important;
    font-weight: 800 !important;
    line-height: 1.25 !important;
    white-space: nowrap !important;
  }

  .ticket-card .current-ticket-table th:nth-child(1),
  .ticket-card .current-ticket-table td:nth-child(1) {
    width: 27% !important;
  }

  .ticket-card .current-ticket-table th:nth-child(2),
  .ticket-card .current-ticket-table td:nth-child(2) {
    width: 25% !important;
    font-size: 19px !important;
    font-weight: 900 !important;
  }

  .ticket-card .current-ticket-table th:nth-child(3),
  .ticket-card .current-ticket-table td:nth-child(3) {
    width: 23% !important;
    font-size: 13px !important;
  }

  .ticket-card .current-ticket-table th:nth-child(4),
  .ticket-card .current-ticket-table td:nth-child(4) {
    width: 15% !important;
    font-size: 16px !important;
    font-weight: 900 !important;
  }

  .ticket-card .current-ticket-table th:nth-child(5),
  .ticket-card .current-ticket-table td:nth-child(5) {
    width: 10% !important;
    min-width: 38px !important;
    text-align: center !important;
  }

  .ticket-card .current-ticket-table .danger-icon {
    font-size: 24px !important;
    width: 34px !important;
    height: 34px !important;
    line-height: 1 !important;
    padding: 0 !important;
  }
}

/* APK / celular: Ticket actual final - columnas ajustadas y X visible */
@media (max-width: 768px) {
  .ticket-card .current-ticket-table {
    width: 100% !important;
    table-layout: fixed !important;
  }

  .ticket-card .current-ticket-table th,
  .ticket-card .current-ticket-table td {
    padding: 9px 4px !important;
    font-weight: 800 !important;
    line-height: 1.2 !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
  }

  /* Sorteo más estrecho */
  .ticket-card .current-ticket-table th:nth-child(1),
  .ticket-card .current-ticket-table td:nth-child(1) {
    display: table-cell !important;
    width: 20% !important;
    max-width: 20% !important;
    font-size: 10px !important;
  }

  /* Jugada grande */
  .ticket-card .current-ticket-table th:nth-child(2),
  .ticket-card .current-ticket-table td:nth-child(2) {
    display: table-cell !important;
    width: 32% !important;
    max-width: 32% !important;
    font-size: 19px !important;
    font-weight: 900 !important;
    text-align: center !important;
  }

  /* Tipo más estrecho */
  .ticket-card .current-ticket-table th:nth-child(3),
  .ticket-card .current-ticket-table td:nth-child(3) {
    display: table-cell !important;
    width: 22% !important;
    max-width: 22% !important;
    font-size: 11px !important;
    text-align: center !important;
  }

  /* Monto visible */
  .ticket-card .current-ticket-table th:nth-child(4),
  .ticket-card .current-ticket-table td:nth-child(4) {
    display: table-cell !important;
    width: 16% !important;
    max-width: 16% !important;
    font-size: 15px !important;
    font-weight: 900 !important;
    text-align: right !important;
  }

  /* X visible para borrar */
  .ticket-card .current-ticket-table th:nth-child(5),
  .ticket-card .current-ticket-table td:nth-child(5),
  .ticket-card .current-ticket-table .actions-cell {
    display: table-cell !important;
    width: 10% !important;
    min-width: 34px !important;
    max-width: 10% !important;
    text-align: center !important;
    overflow: visible !important;
  }

  .ticket-card .current-ticket-table .danger-icon {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 22px !important;
    width: 30px !important;
    height: 30px !important;
    padding: 0 !important;
    line-height: 1 !important;
  }
}

/* APK / celular: Ticket actual sin scroll horizontal */
@media (max-width: 768px) {
  .ticket-card .table-wrap.ticket-scroll {
    overflow-x: hidden !important;
    overflow-y: auto !important;
  }

  .ticket-card .current-ticket-table {
    width: 100% !important;
    min-width: 0 !important;
    table-layout: fixed !important;
    border-collapse: collapse !important;
  }

  .ticket-card .current-ticket-table th,
  .ticket-card .current-ticket-table td {
    display: table-cell !important;
    padding: 8px 3px !important;
    font-weight: 800 !important;
    line-height: 1.15 !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    vertical-align: middle !important;
  }

  /* Jugada grande */
  .ticket-card .current-ticket-table th:nth-child(1),
  .ticket-card .current-ticket-table td:nth-child(1) {
    width: 34% !important;
    max-width: 34% !important;
    font-size: 19px !important;
    font-weight: 950 !important;
    text-align: center !important;
  }

  /* Tipo pequeño */
  .ticket-card .current-ticket-table th:nth-child(2),
  .ticket-card .current-ticket-table td:nth-child(2) {
    width: 20% !important;
    max-width: 20% !important;
    font-size: 10px !important;
    text-align: center !important;
  }

  /* Sorteo pequeño */
  .ticket-card .current-ticket-table th:nth-child(3),
  .ticket-card .current-ticket-table td:nth-child(3) {
    width: 18% !important;
    max-width: 18% !important;
    font-size: 9px !important;
    text-align: left !important;
  }

  /* Monto */
  .ticket-card .current-ticket-table th:nth-child(4),
  .ticket-card .current-ticket-table td:nth-child(4) {
    width: 17% !important;
    max-width: 17% !important;
    font-size: 15px !important;
    font-weight: 900 !important;
    text-align: right !important;
  }

  /* X roja */
  .ticket-card .current-ticket-table th:nth-child(5),
  .ticket-card .current-ticket-table td:nth-child(5),
  .ticket-card .current-ticket-table .actions-cell {
    display: table-cell !important;
    width: 11% !important;
    min-width: 30px !important;
    max-width: 11% !important;
    text-align: center !important;
    overflow: visible !important;
  }

  .ticket-card .current-ticket-table .danger-icon {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    color: #ef4444 !important;
    background: transparent !important;
    border: 0 !important;
    font-size: 22px !important;
    width: 28px !important;
    height: 28px !important;
    padding: 0 !important;
    line-height: 1 !important;
  }

  .ticket-card .current-ticket-table .ticket-bet-cell {
    font-size: 19px !important;
    font-weight: 950 !important;
  }

  .ticket-card .current-ticket-table .ticket-type-cell {
    font-size: 10px !important;
  }

  .ticket-card .current-ticket-table .ticket-draw-cell {
    font-size: 9px !important;
  }

  .ticket-card .current-ticket-table .ticket-amount-cell {
    font-size: 15px !important;
    font-weight: 900 !important;
  }
}

/* APK / celular: título Ticket actual más visible y X roja */
@media (max-width: 768px) {
  .ticket-card .ticket-card-header h2 {
    font-size: 20px !important;
    font-weight: 950 !important;
    color: #ffffff !important;
    letter-spacing: 0.2px !important;
  }

  .ticket-card .current-ticket-table .actions-cell,
  .ticket-card .current-ticket-table td.actions-cell {
    color: #ef4444 !important;
  }

  .ticket-card .current-ticket-table .actions-cell .danger-icon,
  .ticket-card .current-ticket-table td.actions-cell .danger-icon,
  .ticket-card .danger-icon {
    color: #ef4444 !important;
    fill: #ef4444 !important;
    background: transparent !important;
    border: 0 !important;
    font-size: 24px !important;
    font-weight: 950 !important;
    text-shadow: none !important;
  }
}

/* POS móvil: zafacón borrar jugada */
@media (max-width: 768px) {
  .ticket-card .current-ticket-table .danger-icon {
    font-size: 21px !important;
    filter: none !important;
    background: transparent !important;
  }
}

/* APK / celular: detalle de ticket en auditoría, visible en vertical */
@media (max-width: 768px) {
  .audit-ticket-detail-modal {
    width: calc(100vw - 20px) !important;
    max-width: calc(100vw - 20px) !important;
    max-height: 88vh !important;
    overflow-y: auto !important;
    padding: 14px !important;
  }

  .audit-ticket-detail-modal h3 {
    font-size: 24px !important;
    font-weight: 950 !important;
    margin-bottom: 10px !important;
  }

  .audit-ticket-detail-modal .result-box p {
    font-size: 13px !important;
    margin: 4px 0 !important;
  }

  .audit-ticket-detail-modal .audit-ticket-plays-wrap {
    overflow-x: hidden !important;
    max-height: 52vh !important;
    overflow-y: auto !important;
  }

  .audit-ticket-detail-modal .audit-ticket-plays-table,
  .audit-ticket-detail-modal .audit-ticket-plays-table thead,
  .audit-ticket-detail-modal .audit-ticket-plays-table tbody,
  .audit-ticket-detail-modal .audit-ticket-plays-table tr,
  .audit-ticket-detail-modal .audit-ticket-plays-table th,
  .audit-ticket-detail-modal .audit-ticket-plays-table td {
    display: block !important;
    width: 100% !important;
  }

  .audit-ticket-detail-modal .audit-ticket-plays-table thead {
    display: none !important;
  }

  .audit-ticket-detail-modal .audit-ticket-plays-table tr {
    margin: 8px 0 !important;
    padding: 10px !important;
    border-radius: 12px !important;
    background: #f8fafc !important;
    border: 1px solid #e5e7eb !important;
  }

  .audit-ticket-detail-modal .audit-ticket-plays-table tr.ticket-winning-row,
  .audit-ticket-detail-modal .audit-ticket-plays-table tr.winning-row,
  .audit-ticket-detail-modal .audit-ticket-plays-table tr:has(.ticket-winning-prize) {
    background: #dcfce7 !important;
    border: 2px solid #22c55e !important;
    color: #166534 !important;
    font-weight: 900 !important;
  }

  .audit-ticket-detail-modal .audit-ticket-plays-table td {
    display: grid !important;
    grid-template-columns: 78px minmax(0, 1fr) !important;
    gap: 8px !important;
    padding: 5px 0 !important;
    font-size: 16px !important;
    font-weight: 800 !important;
    border: 0 !important;
    white-space: normal !important;
  }

  .audit-ticket-detail-modal .audit-ticket-plays-table td:nth-child(1)::before {
    content: "Sorteo:";
    font-weight: 900;
    color: #64748b;
  }

  .audit-ticket-detail-modal .audit-ticket-plays-table td:nth-child(2)::before {
    content: "Jugada:";
    font-weight: 900;
    color: #64748b;
  }

  .audit-ticket-detail-modal .audit-ticket-plays-table td:nth-child(3)::before {
    content: "Tipo:";
    font-weight: 900;
    color: #64748b;
  }

  .audit-ticket-detail-modal .audit-ticket-plays-table td:nth-child(4)::before {
    content: "Monto:";
    font-weight: 900;
    color: #64748b;
  }

  .audit-ticket-detail-modal .audit-ticket-plays-table td:nth-child(5)::before {
    content: "Premio:";
    font-weight: 900;
    color: #64748b;
  }

  .audit-ticket-detail-modal .audit-ticket-plays-table td:nth-child(2) {
    font-size: 21px !important;
    font-weight: 950 !important;
  }

  .audit-ticket-detail-modal .audit-ticket-plays-table .ticket-winning-prize {
    color: #16a34a !important;
    font-size: 20px !important;
    font-weight: 950 !important;
  }
}

/* Group Portal: detalle de ticket con premio y línea ganadora */
.group-ticket-plays-table .group-ticket-winning-row {
  background: #dcfce7 !important;
  color: #166534 !important;
  font-weight: 900 !important;
}

.group-ticket-plays-table .group-ticket-winning-prize {
  color: #16a34a !important;
  font-weight: 950 !important;
}

/* Group Portal móvil: detalle de ticket legible en vertical */
@media (max-width: 768px) {
  .group-ticket-modal {
    width: calc(100vw - 20px) !important;
    max-width: calc(100vw - 20px) !important;
    max-height: 88vh !important;
    overflow-y: auto !important;
    padding: 14px !important;
  }

  .group-ticket-modal h3 {
    font-size: 24px !important;
    font-weight: 950 !important;
  }

  .group-ticket-detail p {
    font-size: 13px !important;
    margin: 4px 0 !important;
  }

  .group-ticket-plays-wrap {
    overflow-x: hidden !important;
    max-height: 52vh !important;
    overflow-y: auto !important;
  }

  .group-ticket-plays-table {
    width: 100% !important;
    table-layout: fixed !important;
  }

  .group-ticket-plays-table th,
  .group-ticket-plays-table td {
    padding: 8px 4px !important;
    font-size: 12px !important;
    font-weight: 800 !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
  }

  .group-ticket-plays-table th:nth-child(1),
  .group-ticket-plays-table td:nth-child(1) {
    width: 24% !important;
  }

  .group-ticket-plays-table th:nth-child(2),
  .group-ticket-plays-table td:nth-child(2) {
    width: 18% !important;
    font-size: 11px !important;
  }

  .group-ticket-plays-table th:nth-child(3),
  .group-ticket-plays-table td:nth-child(3) {
    width: 24% !important;
    font-size: 16px !important;
    font-weight: 950 !important;
  }

  .group-ticket-plays-table th:nth-child(4),
  .group-ticket-plays-table td:nth-child(4) {
    width: 16% !important;
    text-align: right !important;
  }

  .group-ticket-plays-table th:nth-child(5),
  .group-ticket-plays-table td:nth-child(5) {
    width: 18% !important;
    text-align: right !important;
    font-weight: 950 !important;
  }

  .group-ticket-plays-table .group-ticket-winning-row {
    background: #dcfce7 !important;
    color: #166534 !important;
  }

  .group-ticket-plays-table .group-ticket-winning-prize {
    color: #16a34a !important;
    font-size: 16px !important;
    font-weight: 950 !important;
  }

  .group-ticket-totals {
    font-size: 16px !important;
    font-weight: 950 !important;
  }
}

/* Fix visual modal Como Jugar */
.how-to-play-modal .how-to-play-card,
.how-to-play-modal .how-to-play-card * {
  color: #111827 !important;
  opacity: 1 !important;
}

.how-to-play-modal .how-to-play-card {
  background: #ffffff !important;
}

.how-to-play-modal .how-to-play-header {
  background: #ffffff !important;
}

.how-to-play-modal .how-to-play-header h3 {
  color: #0f172a !important;
  font-size: 22px !important;
  font-weight: 950 !important;
}

.how-to-play-modal .how-to-play-close-top {
  width: 42px !important;
  min-width: 42px !important;
  max-width: 42px !important;
  height: 38px !important;
  min-height: 38px !important;
  padding: 0 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  background: #6b7280 !important;
  color: #ffffff !important;
  border-radius: 10px !important;
  font-size: 22px !important;
  line-height: 1 !important;
}

.how-to-play-modal .how-to-play-language {
  background: #f8fafc !important;
  border: 1px solid #dbe4ef !important;
}

.how-to-play-modal .how-to-play-language h4 {
  color: #0f172a !important;
}

.how-to-play-modal .how-to-play-game h5 {
  color: #1e3a8a !important;
}

.how-to-play-modal .how-to-play-game p {
  color: #111827 !important;
}

.how-to-play-modal .how-to-play-game strong {
  color: #000000 !important;
}

.how-to-play-modal .profile-printer-close-row .btn {
  color: #ffffff !important;
}

/* Como Jugar - color verde unificado */
.btn-how-to-play {
  background: #16a34a !important;
  color: #ffffff !important;
  border: 0 !important;
}

.btn-how-to-play:hover {
  background: #15803d !important;
}

.how-to-play-modal .how-to-play-close-top {
  background: #16a34a !important;
  color: #ffffff !important;
  border: 0 !important;
}

.how-to-play-modal .how-to-play-close-top:hover {
  background: #15803d !important;
}

.how-to-play-modal .profile-printer-close-row .btn {
  background: #16a34a !important;
  color: #ffffff !important;
  border: 0 !important;
}

.how-to-play-modal .profile-printer-close-row .btn:hover {
  background: #15803d !important;
}

/* APK safe bottom spacing for Como Jugar modal */
@media (max-width: 768px) {
  .how-to-play-modal {
    padding-bottom: calc(24px + env(safe-area-inset-bottom)) !important;
  }

  .how-to-play-modal .how-to-play-card {
    max-height: calc(88vh - env(safe-area-inset-bottom)) !important;
    padding-bottom: calc(16px + env(safe-area-inset-bottom)) !important;
  }

  .how-to-play-modal .profile-printer-close-row {
    padding-bottom: calc(8px + env(safe-area-inset-bottom)) !important;
  }
}

/* APK Android bottom navigation safe area - POS actions */
@media (max-width: 768px) {
  .pos-modern-mobile .actions-panel {
    padding-bottom: 110px !important;
    margin-bottom: 90px !important;
  }

  .pos-modern-mobile .actions-panel .button-row-1.pos-full-action-row:last-child {
    margin-bottom: 70px !important;
  }

  .pos-modern-mobile .actions-panel .button-row-1.pos-full-action-row .btn-how-to-play {
    min-height: 56px !important;
  }
}

/* Ajuste final APK Android bottom navigation - menos espacio */
@media (max-width: 768px) {
  .pos-modern-mobile .actions-panel {
    padding-bottom: 54px !important;
    margin-bottom: 34px !important;
  }

  .pos-modern-mobile .actions-panel .button-row-1.pos-full-action-row:last-child {
    margin-bottom: 24px !important;
  }

  .pos-modern-mobile .actions-panel .button-row-1.pos-full-action-row .btn-how-to-play {
    min-height: 50px !important;
  }
}

/* APK Android bottom navigation - compact final */
@media (max-width: 768px) {
  .pos-modern-mobile .actions-panel {
    padding-bottom: 26px !important;
    margin-bottom: 16px !important;
  }

  .pos-modern-mobile .actions-panel .button-row-1.pos-full-action-row:last-child {
    margin-bottom: 10px !important;
  }

  .pos-modern-mobile .actions-panel .button-row-1.pos-full-action-row .btn-how-to-play {
    min-height: 48px !important;
  }
}

/* POS APK / Mobile - fondo azul cielo más claro */
@media (max-width: 768px) {
  .pos-modern-mobile {
    background:
      radial-gradient(circle at top, #dbeafe 0%, #93c5fd 38%, #60a5fa 100%) !important;
  }

  .pos-modern-mobile .pos-layout,
  .pos-modern-mobile .pos-mobile-layout {
    background:
      linear-gradient(180deg, #dbeafe 0%, #bfdbfe 45%, #93c5fd 100%) !important;
  }

  .pos-modern-mobile .actions-panel,
  .pos-modern-mobile .ticket-panel,
  .pos-modern-mobile .lotteries-panel,
  .pos-modern-mobile .pos-card,
  .pos-modern-mobile .card {
    box-shadow: 0 10px 24px rgba(30, 64, 175, 0.18) !important;
  }
}

/* APK / Mobile - brillo tipo luces en Jugada, Disponible y Monto */
@media (max-width: 768px) {
  .pos-modern-mobile .capture-field {
    position: relative !important;
    overflow: hidden !important;
    border-radius: 14px !important;
  }

  .pos-modern-mobile .capture-field::before {
    content: "" !important;
    position: absolute !important;
    inset: -2px !important;
    border-radius: 16px !important;
    pointer-events: none !important;
    background: linear-gradient(
      120deg,
      rgba(56, 189, 248, 0.20),
      rgba(34, 197, 94, 0.55),
      rgba(59, 130, 246, 0.25),
      rgba(56, 189, 248, 0.20)
    ) !important;
    opacity: 0.85 !important;
    filter: blur(1px) !important;
    animation: posInputGlowPulse 1.9s ease-in-out infinite !important;
    z-index: 0 !important;
  }

  .pos-modern-mobile .capture-field label,
  .pos-modern-mobile .capture-field input {
    position: relative !important;
    z-index: 1 !important;
  }

  .pos-modern-mobile .bet-input,
  .pos-modern-mobile .available-input,
  .pos-modern-mobile .amount-input,
  .pos-modern-mobile .amount-input.compact {
    border: 1px solid rgba(125, 211, 252, 0.95) !important;
    box-shadow:
      0 0 8px rgba(56, 189, 248, 0.75),
      inset 0 0 10px rgba(14, 165, 233, 0.22) !important;
  }

  .pos-modern-mobile .bet-input:focus,
  .pos-modern-mobile .amount-input:focus,
  .pos-modern-mobile .amount-input.compact:focus {
    border-color: #22c55e !important;
    box-shadow:
      0 0 10px rgba(34, 197, 94, 0.95),
      0 0 22px rgba(34, 197, 94, 0.55),
      inset 0 0 12px rgba(34, 197, 94, 0.18) !important;
  }
}

@keyframes posInputGlowPulse {
  0% {
    opacity: 0.45;
    transform: scale(1);
  }
  50% {
    opacity: 1;
    transform: scale(1.015);
  }
  100% {
    opacity: 0.45;
    transform: scale(1);
  }
}

/* Group Admin - Auditoría: tickets y líneas ganadoras */
.group-audit-winner-row {
  background: #dcfce7 !important;
}

.group-audit-winner-row td {
  color: #064e3b !important;
  font-weight: 700;
  border-bottom-color: #86efac !important;
}

.group-audit-winner-row:hover {
  background: #bbf7d0 !important;
}

.group-audit-winner-prize {
  color: #15803d !important;
  font-weight: 900 !important;
}

.group-ticket-plays-table .group-ticket-winning-row,
.group-ticket-winning-row {
  background: #dcfce7 !important;
}

.group-ticket-plays-table .group-ticket-winning-row td,
.group-ticket-winning-row td {
  color: #064e3b !important;
  font-weight: 800 !important;
  border-bottom-color: #86efac !important;
}

.group-ticket-plays-table .group-ticket-winning-prize,
.group-ticket-winning-prize {
  color: #15803d !important;
  font-weight: 900 !important;
}

.group-ticket-total-prize-winner {
  color: #15803d !important;
  font-weight: 900 !important;
}

/* =========================================================
   GROUP PORTAL RESPONSIVE - TABLET / PHONE
   ========================================================= */

@media (max-width: 900px) {
  .admin-shell {
    padding: 10px !important;
    overflow-x: hidden;
  }

  .group-portal-header {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 10px !important;
    padding: 12px !important;
  }

  .group-portal-header h1,
  .group-portal-header h2,
  .group-portal-header h3 {
    font-size: 20px !important;
    line-height: 1.2 !important;
    margin: 0 !important;
  }

  .group-portal-header .button-row,
  .group-portal-header > div:last-child {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 8px !important;
    justify-content: flex-start !important;
  }

  .group-portal-header .btn,
  .group-portal-header button {
    min-height: 38px !important;
    padding: 8px 12px !important;
    font-size: 13px !important;
    border-radius: 9px !important;
  }

  .group-card,
  .group-dashboard,
  .group-dashboard-new,
  .group-audit-section {
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: hidden !important;
  }

  .group-dashboard-kpis {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 10px !important;
  }

  .group-dashboard-body {
    grid-template-columns: 1fr !important;
    gap: 12px !important;
  }

  .group-audit-filters {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 10px !important;
    align-items: end !important;
  }

  .group-audit-filters label,
  .group-audit-filters input,
  .group-audit-filters select,
  .group-audit-filters button {
    width: 100% !important;
    min-width: 0 !important;
  }

  .group-audit-action,
  .group-audit-action .btn {
    width: 100% !important;
  }

  .group-audit-table-wrap {
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
  }

  .group-audit-table-wrap table {
    min-width: 980px !important;
    font-size: 12px !important;
  }

  .group-audit-table-wrap table th,
  .group-audit-table-wrap table td {
    white-space: nowrap !important;
    padding: 8px 8px !important;
  }

  .group-audit-actions {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 5px !important;
  }

  .group-audit-actions .btn,
  .group-audit-actions button {
    min-height: 30px !important;
    padding: 6px 8px !important;
    font-size: 11px !important;
  }

  .group-ticket-modal {
    width: calc(100vw - 18px) !important;
    max-width: calc(100vw - 18px) !important;
    max-height: calc(100vh - 18px) !important;
    overflow-y: auto !important;
    padding: 14px !important;
    border-radius: 14px !important;
  }

  .group-ticket-detail {
    padding: 10px !important;
  }

  .group-ticket-detail p {
    font-size: 13px !important;
    line-height: 1.35 !important;
  }

  .group-ticket-plays-wrap {
    max-height: 48vh !important;
    overflow: auto !important;
    -webkit-overflow-scrolling: touch !important;
  }

  .group-ticket-plays-table {
    min-width: 620px !important;
    font-size: 12px !important;
  }

  .group-ticket-plays-table th,
  .group-ticket-plays-table td {
    padding: 8px 8px !important;
    white-space: nowrap !important;
  }

  .group-ticket-totals {
    display: flex !important;
    flex-direction: column !important;
    gap: 6px !important;
    align-items: stretch !important;
    font-size: 15px !important;
  }

  .group-ticket-modal-actions {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 8px !important;
  }

  .group-ticket-modal-actions .btn,
  .group-ticket-modal-actions button {
    width: 100% !important;
    min-height: 42px !important;
    font-size: 14px !important;
  }
}

@media (max-width: 640px) {
  .admin-shell {
    padding: 6px !important;
  }

  .group-portal-header {
    margin: 0 0 10px 0 !important;
  }

  .group-dashboard-kpis {
    grid-template-columns: 1fr !important;
  }

  .group-audit-filters {
    grid-template-columns: 1fr !important;
  }

  .group-audit-table-wrap table {
    min-width: 900px !important;
    font-size: 11px !important;
  }

  .group-audit-actions {
    min-width: 210px !important;
  }

  .group-ticket-modal {
    width: 100vw !important;
    max-width: 100vw !important;
    height: 100vh !important;
    max-height: 100vh !important;
    border-radius: 0 !important;
    padding: 12px !important;
  }

  .group-ticket-modal h3 {
    font-size: 18px !important;
  }

  .group-ticket-plays-wrap {
    max-height: 50vh !important;
  }

  .group-ticket-plays-table {
    min-width: 560px !important;
    font-size: 11px !important;
  }
}

/* =========================================================
   GROUP REPORTS - MOBILE/TABLET SCROLL FIX
   ========================================================= */

@media (max-width: 900px) {
  .app-shell.admin-shell {
    min-height: 100vh !important;
    height: auto !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
  }

  .app-shell.admin-shell .screen,
  .app-shell.admin-shell .group-card,
  .app-shell.admin-shell .content-card,
  .app-shell.admin-shell .report-card,
  .app-shell.admin-shell .reports-card {
    max-width: 100% !important;
    overflow-x: visible !important;
  }

  /* Permitir scroll horizontal en tablas de reportes del portal group */
  .app-shell.admin-shell table {
    width: max-content !important;
    min-width: 760px !important;
  }

  .app-shell.admin-shell .table-wrap,
  .app-shell.admin-shell .reports-table-wrap,
  .app-shell.admin-shell .group-report-table-wrap,
  .app-shell.admin-shell .group-card:has(table),
  .app-shell.admin-shell .content-card:has(table) {
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: auto !important;
    overflow-y: visible !important;
    -webkit-overflow-scrolling: touch !important;
  }

  .app-shell.admin-shell table th,
  .app-shell.admin-shell table td {
    white-space: nowrap !important;
  }

  /* Que el área principal pueda bajar completa en celular */
  body,
  html,
  #root {
    min-height: 100% !important;
    height: auto !important;
    overflow-y: auto !important;
  }
}

@media (max-width: 640px) {
  .app-shell.admin-shell {
    padding-bottom: 80px !important;
  }

  .app-shell.admin-shell table {
    min-width: 820px !important;
    font-size: 11px !important;
  }

  .app-shell.admin-shell table th,
  .app-shell.admin-shell table td {
    padding: 8px 8px !important;
  }

  /* En móvil, las tarjetas de resumen bajan en una columna */
  .app-shell.admin-shell .summary-grid,
  .app-shell.admin-shell .dashboard-grid,
  .app-shell.admin-shell .report-summary-grid,
  .app-shell.admin-shell .kpi-grid {
    grid-template-columns: 1fr !important;
  }
}

/* Group Reports - balances/resultados negativos */
.group-report-negative-balance-row {
  background: #fee2e2 !important;
}

.group-report-negative-balance-row td {
  color: #7f1d1d !important;
  font-weight: 700;
  border-bottom-color: #fecaca !important;
}

.group-report-negative-balance-row:hover {
  background: #fecaca !important;
}

.group-report-negative-result-cell {
  background: #dc2626 !important;
  color: #ffffff !important;
  font-weight: 900 !important;
  border-radius: 6px;
}

.group-report-negative-balance-row .group-report-negative-result-cell {
  background: #b91c1c !important;
  color: #ffffff !important;
}

.admin-users-filters {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(170px, 240px) auto;
  gap: 10px;
  align-items: center;
  margin: 10px 0 14px;
}

.admin-users-filters input,
.admin-users-filters select {
  width: 100%;
  min-height: 38px;
  border: 1px solid #d5dbe7;
  border-radius: 10px;
  padding: 8px 10px;
  font-size: 14px;
  background: #fff;
}

.admin-users-filters button {
  min-height: 38px;
  border: 0;
  border-radius: 10px;
  padding: 8px 14px;
  font-weight: 700;
  cursor: pointer;
  background: #6b7280;
  color: #fff;
}

@media (max-width: 768px) {
  .admin-users-filters {
    grid-template-columns: 1fr;
  }
}
