/* ── Kiosko Consultas – Estilos ── */

.kiosko-wrap {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 620px;
  margin: 0 auto;
  padding: 10px;
}

.kiosko-btn {
  display: flex;
  align-items: center;
  gap: 18px;
  width: 100%;
  padding: 18px 22px;
  border: none;
  border-radius: 20px;
  cursor: pointer;
  color: #fff;
  text-align: left;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  box-shadow: 0 6px 18px rgba(0,0,0,0.18);
}
.kiosko-btn:hover {
  transform: translateY(-3px) scale(1.01);
  box-shadow: 0 12px 28px rgba(0,0,0,0.25);
}
.kiosko-btn:active { transform: scale(0.98); }

.btn-horarios   { background: linear-gradient(135deg,#00c9c8,#0093a7); }
.btn-pizarra    { background: linear-gradient(135deg,#a855f7,#7c3aed); }
.btn-calendario { background: linear-gradient(135deg,#f97316,#fb923c); }
.btn-averias    { background: linear-gradient(135deg,#ef4444,#f97316); }

.kiosko-icon {
  flex-shrink: 0;
  width: 68px;
  height: 68px;
  background: rgba(255,255,255,0.2);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.2rem;
}

.kiosko-text {
  display: flex;
  flex-direction: column;
}
.kiosko-text strong {
  font-size: 1.15rem;
  font-weight: 800;
  text-transform: uppercase;
  text-shadow: 0 1px 3px rgba(0,0,0,0.2);
  letter-spacing: 0.4px;
}
.kiosko-text small {
  font-size: 0.85rem;
  opacity: 0.92;
  margin-top: 3px;
  line-height: 1.4;
}

/* ── Overlay ── */
.kiosko-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.72);
  z-index: 999999;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(4px);
}
.kiosko-overlay.active { display: flex; }

/* ── Modal ── */
.kiosko-modal {
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  width: 95vw;
  height: 90vh;
  max-width: 1400px;
  display: flex;
  flex-direction: column;
  box-shadow: 0 24px 60px rgba(0,0,0,0.4);
  animation: kioskIn 0.25s ease;
}
@keyframes kioskIn {
  from { opacity:0; transform:scale(0.93); }
  to   { opacity:1; transform:scale(1); }
}

.kiosko-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  color: #fff;
  font-weight: 700;
  font-size: 1.05rem;
}
.modal-horarios   .kiosko-modal-header { background: linear-gradient(135deg,#00c9c8,#0093a7); }
.modal-pizarra    .kiosko-modal-header { background: linear-gradient(135deg,#a855f7,#7c3aed); }
.modal-calendario .kiosko-modal-header { background: linear-gradient(135deg,#f97316,#fb923c); }
.modal-averias    .kiosko-modal-header { background: linear-gradient(135deg,#ef4444,#f97316); }

.kiosko-close {
  background: rgba(255,255,255,0.25);
  border: none;
  color: #fff;
  font-size: 1.6rem;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
  line-height: 1;
}
.kiosko-close:hover { background: rgba(255,255,255,0.45); }

.kiosko-iframe {
  flex: 1;
  width: 100%;
  border: none;
}
.kiosko-iframe {
  flex: 1;
  width: 100%;
  border: none;
  min-width: 100%;          /* ← ayuda en algunos casos raros */
}

.kiosko-modal {
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  width: 95vw;
  height: 90vh;
  max-width: 1400px;
  display: flex;
  flex-direction: column;
  box-shadow: 0 24px 60px rgba(0,0,0,0.4);
  animation: kioskIn 0.25s ease;
}

/* Fuerza a que la tabla de GravityView use todo el ancho disponible */
.kiosko-iframe {
  width: 100% !important;
}

.kiosko-iframe body,
.kiosko-iframe .gv-container,
.kiosko-iframe .gv-table-view,
.kiosko-iframe table.dataTable {
  width: 100% !important;
  min-width: 100% !important;
  max-width: 100% !important;
  table-layout: auto;          /* o prueba fixed si usas anchos % en columnas */
}

/* Muy importante para DataTables en contenedores dinámicos */
.kiosko-iframe table.dataTable {
  width: 100% !important;
}
/* ── Solución nuclear para GravityView/DataTables en modal/iframe ── */
.kiosko-iframe {
  width: 100% !important;
  min-width: 100% !important;
  max-width: 100% !important;
}

.kiosko-modal .kiosko-iframe,
.kiosko-modal .gv-container,
.kiosko-modal .gv-table-view,
.kiosko-modal table.dataTable,
.kiosko-modal .dataTables_wrapper {
  width: 100% !important;
  min-width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* Fuerza recalculo de columnas y evita nowrap que rompe en modales */
table.dataTable {
  width: 100% !important;
  table-layout: auto !important;   /* o prueba 'fixed' si las columnas tienen % definidos */
}

.gv-container table.dataTable.nowrap th,
.gv-container table.dataTable.nowrap td {
  white-space: normal !important;   /* ← muy útil si Responsive está activado y fuerza nowrap */
}

/* Evita que DataTables se quede con ancho pequeño inicial */
.dataTables_scrollBody {
  width: 100% !important;
}

.dataTable th, .dataTable td {
  white-space: nowrap;   /* mantén si quieres columnas sin wrap, pero prueba 'normal' si sigue angosta */
}