/* =========================================================
   CONFIRMAR — Grid tipo tabla + Toggle (ccf-*)
   ========================================================= */

.ccf-headrow{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  margin: 6px 0 10px 0;
}

.ccf-title{
  font-weight: 900;
  color: rgba(255,255,255,.86);
  font-size: 13px;
  letter-spacing: .2px;
}

.ccf-viewbar{
  display:inline-flex;
  gap:8px;
  align-items:center;
}

.ccf-viewbtn{
  border-radius: 999px !important;
  font-weight: 900 !important;
  letter-spacing: 0.2px;
  padding: 6px 12px !important;
  border: 1px solid rgba(255,255,255,0.16) !important;
  background: rgba(255,255,255,0.06) !important;
  color: rgba(255,255,255,0.80) !important;
  line-height: 1;
}

.ccf-viewbtn--active{
  border-color: rgba(0,231,255,0.45) !important;
  box-shadow:
    0 0 0 2px rgba(0,231,255,0.12) inset,
    0 10px 24px rgba(0,0,0,0.35);
  color: rgba(255,255,255,0.92) !important;
}

.ccf-wrap{
  display:flex;
  flex-direction:column;
  min-height:0;
}

.ccf-table{
  width:100%;
  height:100%;
  min-height:0;

  border-radius: 16px;
  overflow: hidden;

  background: rgba(10, 12, 16, 0.62);
  border: 1px solid rgba(255,255,255,0.10);
  box-shadow:
    0 14px 34px rgba(0,0,0,0.35),
    0 0 0 1px rgba(255,255,255,0.04) inset;
  backdrop-filter: blur(10px);

  display:flex;
  flex-direction:column;
}

/* columnas del grid */
.ccf-grid-scope{
  --ccf-cols:
    34px   /* checkbox */
    44px   /* fed icon */
    48px   /* tipo juego */
    44px   /* edad icon */
    clamp(140px, 16vw, 240px) /* categoria */
    clamp(120px, 14vw, 240px) /* grupo */
    44px   /* esc local */
    minmax(0, 1fr) /* local */
    44px   /* NEW local */
    44px   /* esc vis */
    minmax(0, 1fr) /* visitante */
    44px   /* NEW vis */
    clamp(86px, 12vw, 112px) /* fecha */
    clamp(56px,  7vw,  74px) /* hora */
    minmax(0, 1fr);          /* campo */
}

.ccf-head{
  display:grid;
  align-items:center;
  padding: 10px 12px;
  column-gap: 10px;

  background: rgba(255,255,255,0.04);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  flex:0 0 auto;

  grid-template-columns: var(--ccf-cols);
}

.ccf-body{
  flex:1 1 auto;
  min-height:0;
  overflow-y:auto;
  overflow-x:hidden;

  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,0.22) rgba(255,255,255,0.06);
}

.ccf-row{
  display:grid;
  align-items:center;
  padding: 9px 12px;
  column-gap: 10px;

  border-bottom: 1px solid rgba(255,255,255,0.06);
  transition: background 120ms ease;

  grid-template-columns: var(--ccf-cols);
  cursor: pointer;
}

.ccf-row:hover{ background: rgba(34,197,94,0.06); }

.ccf-row--selected{
  background: rgba(0,231,255,0.10);
}

.ccf-hcell{
  font-weight: 900;
  font-size: 11px;
  letter-spacing: 0.35px;
  color: rgba(255,255,255,0.70);
  text-transform: uppercase;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ccf-hcell--center{ text-align:center; }

.ccf-cell{
  min-width:0;
  color: rgba(255,255,255,0.86);
  font-size: 12px;
  white-space: nowrap;
  overflow:hidden;
  text-overflow: ellipsis;
}

.ccf-cell--center{
  text-align:center;
  justify-self:center;
}

.ccf-cell--ico{
  display:flex;
  align-items:center;
  justify-content:center;
  overflow: visible !important;
  white-space: normal !important;
}

.ccf-icoimg{
  height: 18px;
  width: 18px;
  object-fit: contain;
  display:block;
}

.ccf-icoimg--round{
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 1px 2px rgba(0,0,0,0.35);
}

.ccf-cell--chk{
  display:flex;
  align-items:center;
  justify-content:center;
  font-weight: 900;
  color: rgba(255,255,255,.85);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 8px;
  height: 20px;
  width: 20px;
  justify-self: center;
  background: rgba(255,255,255,.04);
}

.ccf-cell--cat{
  display:flex;
  align-items:center;
  gap:6px;
  min-width:0;
  overflow:hidden;
}

.ccf-cat-text{
  min-width:0;
  overflow:hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ccf-body--empty{
  display:flex;
  align-items:center;
  justify-content:center;
}

.ccf-empty{
  color: rgba(255,255,255,0.55);
  font-weight: 800;
  font-size: 12px;
}

/* DataTable wrapper aislado */
.ccf-dt-scope{
  width:100%;
  height:100%;
  min-height:0;
}









/* Estados del grid: mismos colores que tabla-informe-partidos */
.ccf-row{ background: transparent; }
.ccf-row:hover{ background: rgba(34,197,94,0.06); }

/* Azul = por guardar */
.ccf-row--blue{
  background: rgba(0, 231, 255, 0.20) !important;
}

/* Verde = guardado y opcion A */
.ccf-row--green{
  background: rgba(57, 255, 20, 0.22) !important;
}

/* Amarillo = guardado y opcion B */
.ccf-row--yellow{
  background: rgba(255, 213, 74, 0.22) !important;
}

/* Checkbox “activo” (si no quieres 3 estilos distintos, con esto vale) */
.ccf-row--blue  .ccf-cell--chk,
.ccf-row--green .ccf-cell--chk,
.ccf-row--yellow .ccf-cell--chk{
  border-color: rgba(255,255,255,.22);
}






