@charset "UTF-8";

/* Layout container */
.sn-tor-ins .sn-tor-layout {
  display: flex;
  gap: 8px;
  align-items: stretch;
}

/* Main badge */
.sn-tor-ins .sn-tor-badge {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-width: 220px;
  padding: 10px 14px;
  border-radius: 10px !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  background: linear-gradient(180deg, #111, #0c0c0c) !important;
  color: #eee !important;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.2s ease;
  text-transform: none !important;
  box-shadow: none !important;
  outline: none !important;
  -webkit-appearance: none;
  appearance: none;
}
.sn-tor-ins .sn-tor-badge .sn-tor-top {
  display: flex;
  gap: 8px;
  align-items: center;
  font-weight: 600;
}
.sn-tor-ins .sn-tor-badge .sn-tor-bottom {
  margin-top: 6px;
  font-size: 0.85rem;
  opacity: 0.9;
}
.sn-tor-ins .sn-tor-badge .sn-tor-sub {
  display: block;
  color: #aaa;
  margin-bottom: 3px;
}
.sn-tor-ins .sn-tor-badge:disabled,
.sn-tor-ins .sn-tor-badge[disabled] {
  cursor: not-allowed;
  opacity: 0.7;
}
.sn-tor-ins .sn-tor-badge:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
}

/* Side button */
.sn-tor-ins .sn-tor-side {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 8px 10px;
  border-radius: 10px !important;
  background: #1a1a1a !important;
  color: #ddd !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease;
  text-transform: none !important;
  box-shadow: none !important;
  outline: none !important;
  -webkit-appearance: none;
  appearance: none;
}
.sn-tor-ins .sn-tor-side i {
  margin-bottom: 2px;
}
.sn-tor-ins .sn-tor-side-count {
  font-size: 0.8rem;
  color: #aaa;
}
.sn-tor-ins .sn-tor-side:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
  background: #222 !important;
}
.sn-tor-ins .sn-tor-side:focus {
  outline: 2px solid rgba(100, 150, 255, 0.5);
  outline-offset: 2px;
}

/* States */
.sn-tor-ins .sn-tor-badge.st-open {
  background: linear-gradient(180deg, #0d3b18, #0a2b12) !important;
  border-color: #125f26 !important;
  color: #e8f5e9 !important;
}
.sn-tor-ins .sn-tor-badge.st-inscribed {
  background: linear-gradient(180deg, #0d2b3b, #0a1f2b) !important;
  border-color: #12605f !important;
  color: #e3f2fd !important;
}
.sn-tor-ins .sn-tor-badge.st-locked {
  background: linear-gradient(180deg, #2b2b2b, #212121) !important;
}
.sn-tor-ins .sn-tor-badge.st-full {
  background: linear-gradient(180deg, #3b251f, #24120f) !important;
  border-color: #5f2a12 !important;
}
.sn-tor-ins .sn-tor-badge.st-closed {
  background: linear-gradient(180deg, #2b2b2b, #1c1c1c) !important;
}
.sn-tor-ins .sn-tor-badge.st-blocked-config {
  background: linear-gradient(180deg, #3b2b0d, #2b1f07) !important;
}
.sn-tor-ins .sn-tor-badge.st-blocked-ban {
  background: linear-gradient(180deg, #3b0d0d, #2b0707) !important;
}
.sn-tor-ins .sn-tor-badge.st-blocked-ban .sn-tor-top:before {
  content: "⛔";
  margin-right: 6px;
}

/* Blink */
.sn-blink {
  animation: snblink 0.9s infinite;
}
.sn-tor-inscrito {
  color: #a5d6a7;
  font-weight: 600;
}
@keyframes snblink {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.55;
  }
}

/* Mobile full width inside mobile container */
@media (max-width: 768px) {
  .tor-inscripcion-mobile .sn-tor-ins .sn-tor-layout {
    width: 100%;
  }
  .tor-inscripcion-mobile .sn-tor-ins .sn-tor-badge {
    width: 100%;
  }
}

/* Modal overlay */
.sn-tor-modal-wrap {
  position: fixed;
  inset: 0;
  z-index: 9999; /* match tor-res overlay stack */
  display: block; /* avoid theme flex interference */
  text-align: left !important;
  padding: 0; /* match other modals spacing */
  box-sizing: border-box;
  width: 100vw;
  height: 100vh;
}
.sn-tor-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6); /* same as tor-res */
  backdrop-filter: blur(1px);
}
.sn-tor-modal {
  position: absolute !important; /* same centering model as tor-res */
  top: 5% !important;
  left: 50% !important;
  transform: translateX(-50%) !important;
  z-index: 2147480001;
  float: none !important;
  margin: 0 !important;
  max-width: 1100px;
  width: min(1100px, 92vw);
  display: flex;
  flex-direction: column;
  max-height: 90vh;
  overflow: hidden;
  background: #111; /* match tor-res */
  color: #eee;
  border: 1px solid #222;
  border-radius: 10px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6);
  direction: ltr;
  box-sizing: border-box;
  font-family: inherit;
}
.sn-tor-modal-header {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important; /* like tor-res */
  gap: 8px;
  padding: 0.8rem 1rem; /* like tor-res */
  border-bottom: 1px solid #222; /* like tor-res */
  position: static !important; /* remove sticky to mimic tor-res */
  background: #151515; /* like tor-res */
  z-index: 4;
  text-align: left !important;
}
.sn-tor-modal-header h3 {
  margin: 0;
  flex: 1;
  text-align: left; /* like tor-res */
  font-size: 1rem;
  color: #fff;
}
.sn-tor-close {
  position: static !important; /* inline like tor-res */
  width: auto;
  height: auto;
  display: inline-block;
  background: #1f1f1f !important;
  border: 1px solid #333 !important;
  color: #eee !important;
  border-radius: 6px;
  padding: 0.3rem 0.5rem;
  cursor: pointer;
}
.sn-tor-close:hover {
  background: #262626 !important;
}
.sn-tor-modal-body {
  padding: 0.8rem; /* like tor-res */
  text-align: left !important;
  overflow: auto;
  max-height: calc(90vh - 56px); /* head height approx */
}
.sn-tor-modal-footer {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
  padding: 10px 14px;
  border-top: 1px solid #222;
  position: static;
  background: #151515;
  z-index: 2;
  text-align: left !important;
}
.sn-tor-save,
.sn-tor-delete {
  background: #1f7a2e;
  color: #fff;
  border: 0;
  border-radius: 8px;
  padding: 8px 12px;
  cursor: pointer;
}
.sn-tor-save[disabled] {
  opacity: 0.6;
  cursor: not-allowed;
}
.sn-tor-delete {
  background: #7a1f1f;
}

.sn-tor-form label {
  display: block;
  font-weight: 600;
  margin-bottom: 6px;
}
.sn-tor-form select {
  width: 100%;
  background: #1a1a1a;
  color: #eee;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  padding: 8px;
}
.sn-tor-form .fld-acepta label {
  font-weight: normal;
}

/* Select2 inside modal */
.sn-tor-modal .select2-container {
  z-index: 2147480002;
  width: 100% !important;
}
.sn-tor-modal .select2-container--dark .select2-selection {
  background: #1a1a1a;
  color: #eee;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

/* Prevent background scroll when modal is open */
body.sn-tor-modal-open {
  overflow: hidden;
  overflow-x: hidden;
  overscroll-behavior: contain;
}

/* ===== Inscritos modal ===== */
.sn-ins-loading,
.sn-ins-error,
.sn-ins-empty {
  padding: 12px;
  color: #ccc;
}
.sn-ins-controls {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-bottom: 10px;
  justify-content: flex-start;
}
.sn-ins-controls label {
  color: #aaa;
}
.sn-ins-controls select {
  background: #1a1a1a;
  color: #eee;
  border: 1px solid #2a2a2a;
  border-radius: 6px;
  padding: 0.35rem 0.6rem;
  min-width: 220px;
  font-size: 0.85rem;
}
.sn-ins-tabs {
  display: flex;
  gap: 0.4rem;
  padding: 0.5rem 0.8rem; /* like tor-res */
  border-bottom: 1px solid #222; /* like tor-res */
  background: #131313; /* like tor-res */
  justify-content: flex-start;
  flex-wrap: wrap;
}
.sn-ins-tab {
  background: #1a1a1a;
  border: 1px solid #2a2a2a;
  color: #cfcfcf;
  padding: 0.35rem 0.7rem;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.75rem;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  float: none !important;
}
.sn-ins-tab.active {
  background: #2b4f8a; /* like tor-res */
  color: #fff;
  border-color: #1e3558;
}
.sn-ins-content .sn-ins-div {
  display: none;
}
.sn-ins-content .sn-ins-div.active {
  display: block;
}
.sn-ins-cat-title {
  font-weight: 700;
  color: #9ecbff;
  margin: 10px 0 6px;
}
.sn-ins-table-wrap {
  overflow: auto;
  border: 1px solid #222; /* like tor-res */
  border-radius: 8px; /* like tor-res */
}
.sn-ins-table {
  width: 100% !important;
  border-collapse: collapse !important;
  color: #eee !important;
  font-size: 0.78rem !important; /* like tor-res */
}
.sn-ins-table thead th {
  position: sticky !important;
  top: 0 !important;
  background: #181818 !important; /* like tor-res */
  color: #e0e0e0 !important;
  font-weight: 700 !important;
  padding: 0.45rem 0.55rem !important;
  text-align: left !important;
  border-bottom: 1px solid #2a2a2a !important;
  z-index: 1 !important;
}
.sn-ins-table tbody td {
  padding: 0.45rem 0.55rem !important;
  border-bottom: 1px solid #1b1b1b !important;
  text-align: left !important;
  white-space: nowrap !important;
}
.sn-ins-table tbody tr:nth-child(even) {
  background: #141414 !important; /* like tor-res */
}

/* Remove previous sticky/absolute overrides to match tor-res */
/* Intentionally left no extra overrides here */

/* Force dark, compact selects in controls (avoid theme pill styles) */
.sn-tor-modal .sn-ins-controls select,
.sn-tor-modal select {
  background: #1a1a1a !important;
  color: #eee !important;
  border: 1px solid #2a2a2a !important;
  border-radius: 6px !important;
  box-shadow: none !important;
  -webkit-appearance: none !important;
  appearance: none !important;
}
