/* =========================
   Tickets cargados
   Variante tipo "contenedor interno"
   con tonos verdes de éxito
   ========================= */

/* =========================================================
   CONTENEDOR GENERAL
   ========================================================= */

#tickets-loaded-section.tickets-loaded-section{
  margin-top: 12px;
  padding: 4px 12px 12px 12px;
  border-radius: 16px;

  background:
    linear-gradient(180deg, rgba(55,242,166,0.075) 0%, rgba(55,242,166,0.020) 100%),
    radial-gradient(900px 170px at 22% 0%, rgba(55,242,166,0.12), transparent 60%),
    radial-gradient(700px 150px at 82% 0%, rgba(120,255,200,0.06), transparent 58%),
    #0d1318;

  border: 1px solid rgba(55,242,166,0.22);

  box-shadow:
    0 12px 28px rgba(0,0,0,0.22),
    0 0 0 1px rgba(55,242,166,0.05) inset,
    0 0 22px rgba(55,242,166,0.08);

  backdrop-filter: blur(10px);

  position: relative;
  isolation: isolate;
  overflow: visible !important;
}

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

#tickets-loaded-section .tickets-loaded-head,
.tickets-loaded-head{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;

  padding: 0 0 4px 0;
  margin: 0;

  border-bottom: 1px solid rgba(55,242,166,0.18);
  background: transparent;

  position: relative;
  z-index: 1;
}

#tickets-loaded-section .tickets-loaded-title,
.tickets-loaded-title{
  display: flex;
  align-items: center;
  gap: 8px;

  color: rgba(255,255,255,0.94);
  font-weight: 900;
  letter-spacing: 0.15px;
  font-size: 13px;
  line-height: 0.98;

  margin: 0;
  padding: 0;
}

#tickets-loaded-section .tickets-loaded-title .panel-icon,
.tickets-loaded-title .panel-icon{
  height: 16px;
  width: 16px;
  opacity: 0.96;
  filter: none;
}

/* Leyenda derecha */
.tickets-loaded-legend{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  line-height: 1;
  min-width: 0;
}

/* =========================================================
   BODY
   ========================================================= */

#tickets-loaded-section .tickets-loaded-body,
.tickets-loaded-body{
  position: relative;
  z-index: 2;
  padding-top: 10px;
  margin-top: 0;
  overflow: visible !important;
}

/* =========================================================
   LAYOUT INTERNO DE TARJETAS + RESUMEN
   ========================================================= */

#tickets-loaded-section .tickets-output-wrap{
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
  min-width: 0;
}

#tickets-loaded-section .tickets-summary-grid--upload-flat{
  width: 100%;
  min-width: 0;
}

#tickets-loaded-section .tickets-summary-left--upload-flat{
  width: 100%;
  min-width: 0;
  display: block;
}

/* =========================================================
   TOTALES SUBIDA
   - iguales a saved: dos tarjetas en paralelo
   ========================================================= */

#tickets-loaded-section .tickets-totals-wrap--upload-flat{
  width: 100%;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  align-items: stretch;
}

#tickets-loaded-section .tickets-totals-wrap--upload-flat .tickets-total-card{
  width: 100%;
  min-width: 0;
  max-width: none;
  flex: 0 0 auto;
}

/* =========================================================
   TARJETAS DE TOTALES BASE
   ========================================================= */

#tickets-loaded-section .tickets-total-card{
  border-radius: 14px;
  padding: 10px 12px;

  background:
    linear-gradient(180deg, rgba(255,255,255,0.025) 0%, rgba(255,255,255,0.010) 100%),
    radial-gradient(700px 120px at 24% 0%, rgba(130,155,178,0.10), transparent 58%),
    #101820;

  border: 1px solid rgba(130,155,178,0.18);

  box-shadow:
    0 10px 22px rgba(0,0,0,0.20),
    0 0 0 1px rgba(255,255,255,0.03) inset;

  backdrop-filter: blur(10px);
  transition: transform 140ms ease, box-shadow 140ms ease, border-color 140ms ease, background 140ms ease;
}

#tickets-loaded-section .tickets-total-card:hover{
  transform: translateY(-1px);
  border-color: rgba(130,155,178,0.28);
  box-shadow:
    0 14px 28px rgba(0,0,0,0.24),
    0 0 0 1px rgba(255,255,255,0.05) inset;
}

#tickets-loaded-section .tickets-total-card--money{
  background:
    linear-gradient(180deg, rgba(55,242,166,0.055) 0%, rgba(55,242,166,0.018) 100%),
    radial-gradient(800px 120px at 30% 0%, rgba(55,242,166,0.10), transparent 60%),
    #101820;
  border-color: rgba(55,242,166,0.18);
}

#tickets-loaded-section .tickets-total-card--money .tickets-total-value{
  color: #37f2a6;
}

#tickets-loaded-section .tickets-total-row{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-width: 0;
}

#tickets-loaded-section .tickets-total-left{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

#tickets-loaded-section .tickets-total-icon{
  height: 18px;
  width: 18px;
  object-fit: contain;
  opacity: 0.94;
  filter: none;
  flex: 0 0 auto;
}

#tickets-loaded-section .tickets-total-label{
  font-size: 12px;
  font-weight: 900;
  color: rgba(255,255,255,0.72);
  letter-spacing: 0.2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

#tickets-loaded-section .tickets-total-value{
  margin-left: 14px;
  font-size: 14px;
  font-weight: 900;
  color: rgba(255,255,255,0.92);
  line-height: 1.1;
  white-space: nowrap;
  text-align: right;
}

/* =========================================================
   FIXES DE RECORTE
   ========================================================= */

#tickets-loaded-section,
#tickets-loaded-section .tickets-loaded-body,
#tickets-loaded-section .tickets-output-wrap,
#tickets-loaded-section .row,
#tickets-loaded-section [class*="col"],
#tickets-loaded-section .ticket-card-wrap{
  overflow: visible !important;
}

#tickets-loaded-section .ticket-card-wrap{
  position: relative;
  z-index: 5;
}

#tickets-loaded-section .ticket-num,
#tickets-loaded-section .ticket-actions-float,
#tickets-loaded-section .ticket-badges{
  z-index: 9999;
}

/* =========================================================
   MICRODETALLES VISUALES OPCIONALES
   ========================================================= */

#tickets-loaded-section .tickets-loaded-legend .badge,
#tickets-loaded-section .tickets-loaded-legend .pill,
#tickets-loaded-section .tickets-loaded-legend .status{
  border: 1px solid rgba(55,242,166,0.24);
  background: rgba(55,242,166,0.10);
  color: #7cffc8;
  box-shadow:
    inset 0 0 0 1px rgba(55,242,166,0.03),
    0 0 12px rgba(55,242,166,0.08);
}

/* =========================================================
   HOVER SUAVE DEL CONTENEDOR
   ========================================================= */

#tickets-loaded-section.tickets-loaded-section:hover{
  border-color: rgba(55,242,166,0.28);
  box-shadow:
    0 14px 30px rgba(0,0,0,0.24),
    0 0 0 1px rgba(55,242,166,0.06) inset,
    0 0 26px rgba(55,242,166,0.10);
}

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

@media (max-width: 640px){
  #tickets-loaded-section .tickets-totals-wrap--upload-flat{
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px){
  #tickets-loaded-section.tickets-loaded-section{
    padding: 4px 10px 10px 10px;
    border-radius: 14px;
  }

  #tickets-loaded-section .tickets-loaded-head,
  .tickets-loaded-head{
    padding-bottom: 3px;
  }

  #tickets-loaded-section .tickets-loaded-body,
  .tickets-loaded-body{
    padding-top: 9px;
  }
}