/* =========================================================
   AG GRID · INFORME PARTIDOS
   ========================================================= */

:root{
  --agip-bg-grid: #101618;
  --agip-bg-header: #0f1416;
  --agip-text: #ffffff;
  --agip-text-soft: rgba(255,255,255,0.90);
  --agip-line: rgba(6,190,132,0.16);

  --agip-row-odd: rgba(6,190,132,0.10);
  --agip-row-even: rgba(6,190,132,0.05);

  --agip-row-hover: rgba(255,255,255,0.92);
  --agip-row-hover-text: #000000;

  --agip-row-selected: rgba(6,190,132,0.18);

  --agip-yellow: rgba(255, 213, 74, 0.22);
  --agip-blue: rgba(0, 231, 255, 0.20);
  --agip-green-state: rgba(57, 255, 20, 0.22);

  --agip-radius: 14px;
  --agip-row-h: 34px;
  --agip-header-h: 36px;
  --agip-icon-size: 24px;
  --agip-icon-size-small: 22px;
  --agip-icon-border: rgba(255,255,255,.22);
}

/* =========================================================
   CADENA DE ALTURA CERRADA
   ========================================================= */

#content-container{
  overflow: hidden !important;
  min-height: 0 !important;
}

#tabs-scroll-area{
  flex: 1 1 auto;
  min-height: 0 !important;
  height: 100%;
  overflow: hidden !important;   /* ← la tab NO scrollea */
  display: flex;
  flex-direction: column;
}

#tabs-scroll-area > div,
#tabs-scroll-area .tab-content,
#tabs-scroll-area .tab-pane{
  height: 100%;
  min-height: 0 !important;
}

#wrapper-tabla-partidos{
  width: 100%;
  height: 100%;
  min-height: 0 !important;
}

#partidos-table-box{
  width: 100%;
  height: 100%;
  min-height: 0 !important;
}

#contenedor-tabla-partidos{
  width: 100%;
  height: 100%;
  min-height: 0 !important;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.table-informe-partidos-ag-scope{
  width: 100%;
  min-width: 0;
  height: 100%;
  min-height: 0 !important;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* =========================================================
   AG GRID BASE
   ========================================================= */

.table-informe-partidos-ag-scope .ag-theme-quartz{
  --ag-font-size: 13px;
  --ag-font-family: 'Roboto', sans-serif;
  --ag-background-color: var(--agip-bg-grid);
  --ag-foreground-color: var(--agip-text);
  --ag-header-background-color: var(--agip-bg-header);
  --ag-header-foreground-color: var(--agip-text);
  --ag-border-color: var(--agip-line);
  --ag-row-border-color: transparent;
  --ag-cell-horizontal-border: transparent;
  --ag-column-border: transparent;
  --ag-selected-row-background-color: transparent;
  --ag-row-hover-color: transparent;
  --ag-wrapper-border-radius: var(--agip-radius);
  --ag-wrapper-border: 1px solid var(--agip-line);

  width: 100% !important;
  height: 100% !important;
  min-height: 0 !important;

  border-radius: var(--agip-radius);
  overflow: hidden;
  background: var(--agip-bg-grid) !important;
}

.table-informe-partidos-ag-scope .ag-root-wrapper{
  border: none !important;
  border-radius: var(--agip-radius) !important;
  overflow: hidden !important;
  background: transparent !important;
  height: 100% !important;
  min-height: 0 !important;
}

.table-informe-partidos-ag-scope .ag-root-wrapper-body{
  height: 100% !important;
  min-height: 0 !important;
}

.table-informe-partidos-ag-scope .ag-root{
  height: 100% !important;
  min-height: 0 !important;
}

.table-informe-partidos-ag-scope .ag-header{
  background:
    linear-gradient(180deg, rgba(6,190,132,0.08) 0%, rgba(255,255,255,0) 100%),
    var(--agip-bg-header) !important;
  border-bottom: 1px solid var(--agip-line) !important;
}

.table-informe-partidos-ag-scope .ag-header-row{
  min-height: var(--agip-header-h) !important;
  height: var(--agip-header-h) !important;
}

.table-informe-partidos-ag-scope .ag-header-cell{
  background: transparent !important;
  border-right: none !important;
  padding-left: 10px !important;
  padding-right: 10px !important;
}

.table-informe-partidos-ag-scope .ag-header-cell-text{
  color: #fff !important;
  font-size: 13px !important;
  font-weight: 800 !important;
  line-height: 1 !important;
}

/* 👇 ESTE ES EL QUE DEBE SCROLLEAR */
.table-informe-partidos-ag-scope .ag-body-viewport{
  background: transparent !important;
  overflow-y: auto !important;
}

.table-informe-partidos-ag-scope .ag-center-cols-viewport,
.table-informe-partidos-ag-scope .ag-center-cols-container,
.table-informe-partidos-ag-scope .ag-body-horizontal-scroll-viewport{
  background: transparent !important;
}

.table-informe-partidos-ag-scope .ag-row{
  border: none !important;
  background: transparent !important;
  min-height: var(--agip-row-h) !important;
  height: var(--agip-row-h) !important;
}

.table-informe-partidos-ag-scope .ag-row.ag-row-odd{
  background: var(--agip-row-odd) !important;
}

.table-informe-partidos-ag-scope .ag-row.ag-row-even{
  background: var(--agip-row-even) !important;
}

.table-informe-partidos-ag-scope .ag-row:hover{
  background: var(--agip-row-hover) !important;
}

.table-informe-partidos-ag-scope .ag-row:hover .ag-cell,
.table-informe-partidos-ag-scope .ag-row:hover .ag-cell-value,
.table-informe-partidos-ag-scope .ag-row:hover span,
.table-informe-partidos-ag-scope .ag-row:hover div{
  color: var(--agip-row-hover-text) !important;
}

.table-informe-partidos-ag-scope .ag-row.ag-row-selected{
  background: var(--agip-row-selected) !important;
}

.table-informe-partidos-ag-scope .ag-row.row-state-blue{
  background: var(--agip-blue) !important;
}

.table-informe-partidos-ag-scope .ag-row.row-state-green{
  background: var(--agip-green-state) !important;
}

.table-informe-partidos-ag-scope .ag-row.row-state-yellow{
  background: var(--agip-yellow) !important;
}

.table-informe-partidos-ag-scope .ag-row.row-state-blue:hover,
.table-informe-partidos-ag-scope .ag-row.row-state-green:hover,
.table-informe-partidos-ag-scope .ag-row.row-state-yellow:hover{
  background: var(--agip-row-hover) !important;
}

.table-informe-partidos-ag-scope .ag-cell{
  border: none !important;
  background: transparent !important;
  color: var(--agip-text-soft) !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  padding-left: 10px !important;
  padding-right: 10px !important;
  display: flex;
  align-items: center;
  line-height: normal !important;
  min-height: var(--agip-row-h) !important;
  height: var(--agip-row-h) !important;
}

.table-informe-partidos-ag-scope .ag-cell.col-fed,
.table-informe-partidos-ag-scope .ag-cell.col-edad,
.table-informe-partidos-ag-scope .ag-cell.col-new-local,
.table-informe-partidos-ag-scope .ag-cell.col-new-visitante,
.table-informe-partidos-ag-scope .ag-cell.col-escudo-local,
.table-informe-partidos-ag-scope .ag-cell.col-escudo-visitante,
.table-informe-partidos-ag-scope .ag-cell.col-flag{
  justify-content: center !important;
  text-align: center !important;
}

.table-informe-partidos-ag-scope .ag-cell.col-equipo-local,
.table-informe-partidos-ag-scope .ag-cell.col-equipo-visitante{
  font-weight: 800 !important;
  color: #ffffff !important;
}

.table-informe-partidos-ag-scope .ag-row:hover .ag-cell.col-equipo-local,
.table-informe-partidos-ag-scope .ag-row:hover .ag-cell.col-equipo-visitante{
  color: #000 !important;
}

.table-informe-partidos-ag-scope .ag-cell img{
  display: block;
}

.table-informe-partidos-ag-scope .ag-img-wrap{
  width: 100%;
  height: calc(var(--agip-row-h) - 2px);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.table-informe-partidos-ag-scope .ag-cell-img{
  display: block;
  width: var(--agip-icon-size);
  height: var(--agip-icon-size);
  object-fit: contain;
  flex: 0 0 auto;
}

.table-informe-partidos-ag-scope .ag-cell-img--circle{
  object-fit: cover;
  border-radius: 50%;
  border: 1px solid var(--agip-icon-border);
}

.table-informe-partidos-ag-scope .ag-category-icon{
  width: var(--agip-icon-size-small);
  height: var(--agip-icon-size-small);
  object-fit: contain;
  flex: 0 0 auto;
}

.table-informe-partidos-ag-scope .ag-checkbox-input-wrapper{
  transform: scale(1.15);
  border-radius: 5px !important;
}

.table-informe-partidos-ag-scope .ag-cell:focus,
.table-informe-partidos-ag-scope .ag-cell-focus{
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
}








.table-informe-partidos-ag-scope .ag-cell.col-delete{
  justify-content: center !important;
  text-align: center !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
  cursor: pointer;
  font-weight: 800;
}

.table-informe-partidos-ag-scope .ag-cell[col-id="delete_col"]{
  justify-content: center !important;
  text-align: center !important;
  cursor: pointer;
}

.table-informe-partidos-ag-scope .ag-cell[col-id="delete_col"]:hover{
  background: rgba(255,255,255,0.08) !important;
}
