/* ===== Layout base ===== */
html, body { height: 100%; }
body {
  margin: 0;
  height: 100vh;
  display: flex;
  font-family: Arial, sans-serif;
  background: #f0f0f0;
}

/* ===== Área de contenido (iframe full) ===== */
.content{
  flex: 1 1 auto;
  height: 100vh;
  width: 100%;
  display: flex;
  flex-direction: column;
}
iframe{
  border: none;
  flex-grow: 1;
  width: 100%;
  height: 100%;
  background: #fff;
}
/* Cuando el panel está abierto, evita que el iframe capture clics */
body.panel-open iframe{ pointer-events: none; }

/* ===== Botón flotante vertical ===== */
.fab-vertical{
  position: fixed;
  left: 8px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 12000;          /* por encima de todo */
  background: #1f2937;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 8px 6px;
  cursor: pointer;
  box-shadow: 0 6px 16px rgba(0,0,0,.25);
}
.fab-vertical span{
  display: inline-block;
  writing-mode: vertical-rl; /* texto vertical */
  transform: rotate(180deg); /* lectura de abajo a arriba */
  letter-spacing: 1px;
  font-weight: 600;
}

/* ===== Scrim ===== */
.scrim{
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.15);
  z-index: 10990;           /* debajo del botón/panel, encima del iframe */
  display: none;
}
body.panel-open #scrim{ display: block; }

/* ===== Panel flotante (overlay) ===== */
.panel-float{
  position: fixed;
  z-index: 11990;           /* debajo del botón, encima del scrim */
  left: 64px;               /* deja hueco para el botón vertical */
  top: 6%;
  bottom: 6%;
  width: 420px;
  max-width: calc(100% - 96px);
  background: #2c3e50;
  color: #fff;
  border-radius: 12px;
  box-shadow: 0 16px 40px rgba(0,0,0,.35);
  display: flex;
  flex-direction: column;
  opacity: 0;
  transform: translateY(8px) scale(.98);
  pointer-events: none;
  transition: opacity .18s ease, transform .18s ease;
}
body.panel-open .panel-float{
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

/* Header y body del panel */
.panel-header{
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  background: #243447;
  border-top-left-radius: 12px;
  border-top-right-radius: 12px;
}
.panel-header h3{
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  color: #fff;
}
.panel-close{
  background: transparent;
  color: #fff;
  border: none;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}
.panel-body{
  padding: 12px 14px 16px 14px;
  overflow-y: auto;
  gap: 12px;
}

/* ===== Cards dentro del panel ===== */
.card{
  background: #32465a;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 10px;
  padding: 12px;
  margin-bottom: 12px;
}
.card h4{
  margin: 0 0 10px 0;
  font-size: 20px;
  font-weight: 600;
  color: #fff;
}

/* Grid de info */
.info-grid{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 12px;
}
.info-grid .info-label{
  display: block;
  font-size: 12px;
  color: #FFA2A2;
}

/* Botón enviar */
.btn-enviar{
  margin-top: 10px;
  padding: 10px;
  border: none;
  border-radius: 6px;
  background: #3498db;
  color: white;
  font-size: 14px;
  cursor: pointer;
  transition: background .2s;
}
.btn-enviar:hover{ background: #2980b9; }

/* Tipografías / herencias previas */
.cabecera{ color: #FFA2A2; font-size: 14px; margin: 0; }
.texto{ color: white; font-size: 12px; }
.titulo{ color: #FF8904; font-size: 14px; }
.espacio{ margin-top: 10px; }
#contenedor_Cliente{ padding: 0; }

/* Select2 (ajustes + z-index alto para salir encima) */
.select2-results__option:empty { height: 35px; }
.select2{ font-size:12px; }
.select2-results__option{ font-size:13px; }
.select2-container { z-index: 13000 !important; }
