/* =====================================================
PREFERENCIA DE TURNOS – TABLA 6x2 SIN CHECKBOX VISIBLE
Campo: civicrm_1_participant_1_cg47_custom_519
===================================================== */

/* CONTENEDOR */
#edit-civicrm-1-participant-1-cg47-custom-519{
display:grid;
grid-template-columns:repeat(6,minmax(160px,1fr));
gap:12px;
padding:14px;
border:1px solid #d8dee4;
border-radius:10px;
background:#fff;
}

/* ITEMS */
#edit-civicrm-1-participant-1-cg47-custom-519 > .form-item{
margin:0;
position:relative;
}

/* OCULTAR CHECKBOX (pero sigue funcionando) */
#edit-civicrm-1-participant-1-cg47-custom-519 input[type="checkbox"]{
position:absolute;
opacity:0;
pointer-events:none;
}

/* TARJETA */
#edit-civicrm-1-participant-1-cg47-custom-519 label.option{
display:flex;
align-items:center;
justify-content:center;

width:100%;
min-height:52px;

padding:12px 14px;

border:1px solid #d8dee4;
border-radius:10px;
background:#ffffff;

text-align:center;
line-height:1.25;

cursor:pointer;
transition:all .15s ease;
}

/* HOVER */
#edit-civicrm-1-participant-1-cg47-custom-519 label.option:hover

/* SELECCIONADO */
#edit-civicrm-1-participant-1-cg47-custom-519 > .form-item:has(input:checked) label.option{
border-color:#2b6cb0;
background:#f0f6ff;
box-shadow:0 0 0 2px rgba(43,108,176,0.15);
}

/* ICONO CHECK */
#edit-civicrm-1-participant-1-cg47-custom-519 > .form-item:has(input:checked) label.option::after{
content:"✓";
position:absolute;
top:6px;
right:10px;
font-size:14px;
font-weight:bold;
color:#2b6cb0;
}

/* DESHABILITADO */
#edit-civicrm-1-participant-1-cg47-custom-519 input:disabled + label.option{
opacity:.45;
background:#f6f8fa;
cursor:not-allowed;
pointer-events:none;
}

/* =====================================================
POSICIONAMIENTO TABLA
===================================================== */

/* Lunes */
#edit-civicrm-1-participant-1-cg47-custom-519 > .form-item:nth-child(1){grid-column:1;grid-row:1;}
#edit-civicrm-1-participant-1-cg47-custom-519 > .form-item:nth-child(2){grid-column:1;grid-row:2;}

/* Martes */
#edit-civicrm-1-participant-1-cg47-custom-519 > .form-item:nth-child(3){grid-column:2;grid-row:1;}
#edit-civicrm-1-participant-1-cg47-custom-519 > .form-item:nth-child(4){grid-column:2;grid-row:2;}

/* Miércoles */
#edit-civicrm-1-participant-1-cg47-custom-519 > .form-item:nth-child(5){grid-column:3;grid-row:1;}
#edit-civicrm-1-participant-1-cg47-custom-519 > .form-item:nth-child(6){grid-column:3;grid-row:2;}

/* Jueves */
#edit-civicrm-1-participant-1-cg47-custom-519 > .form-item:nth-child(7){grid-column:4;grid-row:1;}
#edit-civicrm-1-participant-1-cg47-custom-519 > .form-item:nth-child(8){grid-column:4;grid-row:2;}

/* Viernes */
#edit-civicrm-1-participant-1-cg47-custom-519 > .form-item:nth-child(9){grid-column:5;grid-row:1;}
#edit-civicrm-1-participant-1-cg47-custom-519 > .form-item:nth-child(10){grid-column:5;grid-row:2;}

/* Sábado */
#edit-civicrm-1-participant-1-cg47-custom-519 > .form-item:nth-child(11){grid-column:6;grid-row:1;}
#edit-civicrm-1-participant-1-cg47-custom-519 > .form-item:nth-child(12){grid-column:6;grid-row:2;}

/* =====================================================
RESPONSIVE
===================================================== */

@media (max-width:900px){
#edit-civicrm-1-participant-1-cg47-custom-519{
grid-template-columns:repeat(2,minmax(180px,1fr));
}

#edit-civicrm-1-participant-1-cg47-custom-519 > .form-item{
grid-column:auto !important;
grid-row:auto !important;
}
}

@media (max-width:500px){
#edit-civicrm-1-participant-1-cg47-custom-519{
grid-template-columns:1fr;
}
}
/* Estado deshabilitado: visible, gris, sin interacción */
#edit-civicrm-1-participant-1-cg47-custom-519 .form-item.is-disabled label.option,
#edit-civicrm-1-participant-1-cg47-custom-519 input:disabled + label.option{
  opacity: .45;
  background: #f6f8fa;
  cursor: not-allowed;
  pointer-events: none;
  border-color: #e0e6ed;
}