/* =========================================================
   TICKETS PAGE · PANELS LAYOUT
   ========================================================= */

.tickets-page .tickets-panel--main{
  border-radius: 16px;
  overflow: visible !important;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.018) 0%, rgba(255,255,255,0.008) 100%),
    #0d1318;
  border: 1px solid rgba(130,155,178,0.18);
  box-shadow:
    0 12px 28px rgba(0,0,0,0.22),
    0 0 0 1px rgba(255,255,255,0.03) inset;
  backdrop-filter: blur(10px);
}

.tickets-page .tickets-col--mainwide{
  min-height: 520px;
  min-width: 0;
}

/* =========================================================
   STATES
   ========================================================= */

.tickets-page .panel-state{
  min-height: 420px;
  border-radius: 16px;
  border: 1px solid rgba(130,155,178,0.18);
  background:
    linear-gradient(180deg, rgba(255,255,255,0.018) 0%, rgba(255,255,255,0.008) 100%),
    #101820;
  box-shadow: 0 12px 28px rgba(0,0,0,0.20);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 18px;
}

.tickets-page .panel-state--empty{
  flex-direction: column;
  gap: 10px;
}

.tickets-page .panel-state--compact{
  min-height: 220px;
}

.tickets-page .state-hero--sm{
  height: 150px;
}

/* =========================================================
   SUBSECCIONES
   ========================================================= */

.tickets-page .panel-subsection{
  margin-top: 12px;
  border-radius: 16px;
  border: 1px solid rgba(130,155,178,0.18);
  background:
    linear-gradient(180deg, rgba(255,255,255,0.015) 0%, rgba(255,255,255,0.008) 100%),
    #101820;
  box-shadow: 0 12px 28px rgba(0,0,0,0.20);
  overflow: hidden;
}

.tickets-page .panel-subsection--inner{
  margin-top: 0;
}

.tickets-page .panel-subhead{
  padding: 12px 12px 10px 12px;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.018) 0%, rgba(255,255,255,0.00) 100%);
  border-bottom: 1px solid rgba(130,155,178,0.18);
}

.tickets-page .panel-subtitle{
  display: flex;
  align-items: center;
  gap: 10px;
  color: rgba(255,255,255,0.90);
  font-weight: 800;
  letter-spacing: 0.2px;
  font-size: 13px;
}

.tickets-page .panel-icon--mini{
  height: 18px;
  width: 18px;
  opacity: 0.95;
}

.tickets-page .panel-subbody{
  padding: 12px;
  min-width: 0;
  overflow: visible;
}

.tickets-page .panel-gestion-body{
  padding-top: 12px;
}

/* =========================================================
   ACCIONES
   ========================================================= */

.tickets-page .panel-table-actions{
  display: flex;
  justify-content: flex-end;
  margin-top: 6px;
  margin-bottom: -22px;
}

.tickets-page .panel-icon-btn{
  border-radius: 50% !important;
  width: 28px !important;
  height: 28px !important;
  padding: 0 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.96) 0%, rgba(240,245,250,0.92) 100%) !important;
  border: 1px solid rgba(130,155,178,0.22) !important;
  box-shadow:
    0 10px 20px rgba(0,0,0,0.22),
    0 0 0 1px rgba(255,255,255,0.55) inset;
  transition: transform 0.12s ease, filter 0.12s ease, box-shadow 0.12s ease;
}

.tickets-page .panel-icon-btn:hover{
  transform: translateY(-1px);
  filter: brightness(1.03);
  box-shadow:
    0 14px 24px rgba(0,0,0,0.26),
    0 0 0 1px rgba(255,255,255,0.70) inset;
}

/* =========================================================
   GRÁFICOS
   ========================================================= */

.tickets-page .panel-graph-wrap{
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.tickets-page .panel-graph{
  width: 100% !important;
}

/* =========================================================
   IMÁGENES GESTIÓN
   ========================================================= */

.tickets-page .side-images{
  background: transparent !important;
  padding: 0 !important;
  border-radius: 0 !important;
}

.tickets-page #imagenes-tickets-container .row{
  --bs-gutter-x: 10px;
  --bs-gutter-y: 10px;
}

.tickets-page #imagenes-tickets-container .col-6{
  max-width: 50%;
  flex: 0 0 50%;
}

@media (max-width: 992px){
  .tickets-page #imagenes-tickets-container .col-6{
    max-width: 100%;
    flex: 0 0 100%;
  }
}

/* =========================================================
   TOTALES MES
   ========================================================= */

.tickets-page .tickets-monthtotals-wrap{
  margin-top: 10px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: stretch;
  gap: 10px;
  width: 100%;
  max-width: 100%;
  height: auto;
}

.tickets-page .tickets-monthtotals-card{
  flex: 0 0 auto;
  width: 100%;
  max-width: none;
  min-width: 0;
  border-radius: 14px;
  padding: 10px 12px;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.022) 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;
}

.tickets-page .tickets-monthtotals-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-page .tickets-monthtotals-row{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-width: 0;
}

.tickets-page .tickets-monthtotals-left{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.tickets-page .tickets-monthtotals-icon{
  height: 18px;
  width: 18px;
  object-fit: contain;
  opacity: 0.92;
  flex: 0 0 auto;
}

.tickets-page .tickets-monthtotals-label{
  font-size: 12px;
  font-weight: 900;
  color: rgba(255,255,255,0.70);
  letter-spacing: 0.2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tickets-page .tickets-monthtotals-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;
}

.tickets-page .tickets-monthtotals-card--money{
  background:
    linear-gradient(180deg, rgba(55,242,166,0.050) 0%, rgba(55,242,166,0.015) 100%),
    radial-gradient(800px 120px at 30% 0%, rgba(55,242,166,0.08), transparent 60%),
    #101820;
  border-color: rgba(55,242,166,0.16);
}

.tickets-page .tickets-monthtotals-card--money .tickets-monthtotals-value{
  color: #37f2a6;
}

/* =========================================================
   TIMELINE
   ========================================================= */

.tickets-page .panel-subsection--timeline{
  overflow: visible !important;
}

.tickets-page .panel-subbody--timeline,
.tickets-page .timeline-tickets-container,
.tickets-page #timeline-tickets-container{
  overflow: visible !important;
}

/* =========================================================
   RESUMEN DEL MES
   ========================================================= */

.tickets-page .tickets-hidden-table{
  display: none !important;
}

.tickets-page .tickets-grid-scope--summary{
  margin-top: 0;
}

.tickets-page .panel-table-actions--below-grid{
  margin-top: 10px;
  margin-bottom: 0;
  justify-content: flex-end;
}

.tickets-page .tickets-totals-right{
  margin-top: 10px;
}

.tickets-page .tickets-totals-right .tickets-monthtotals-wrap{
  justify-content: center;
}

@media (max-width: 992px){
  .tickets-page .panel-table-actions--below-grid{
    justify-content: flex-start;
  }
}

/* =========================================================
   SUBPANEL SUMMARY
   ========================================================= */

.tickets-page .panel-subsection--summary{
  margin-top: 0;
  overflow: visible !important;
  position: relative;
  z-index: 1;
}

.tickets-page .tickets-summary-right{
  position: relative;
  z-index: 2;
}

.tickets-page .tickets-summary-right-graph{
  position: relative;
  z-index: 3;
}

.tickets-page .tickets-summary-right-totals{
  position: relative;
  z-index: 3;
}

.tickets-page .tickets-summary-right-graph .dash-graph,
.tickets-page .tickets-summary-right-graph .js-plotly-plot,
.tickets-page .tickets-summary-right-graph .plot-container{
  height: 100% !important;
  min-height: 220px !important;
}