
#floating_ui {
    position: fixed;
    right: 15px;
    bottom: 15px;
    overflow: hidden;
    z-index:1;

    display: flex;
    flex-direction: column;
    max-height: 60vh;

    box-shadow: 0 0 6px #ccc;   
    border-radius:15px; 

    transition: width 0.5s; 
}

#floating_ui > div.expand, #floating_ui > div.collapsed {
  /* Floating UI needs a class in order to stay visible */
  display:none;
}

#floating_ui.collapsed > div.collapsed {
  /* Shows Collapsed template */
  display: inline;
}

#floating_ui.expand .expand {
  /* Shows Expand template */
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

#floating_ui.collapsed {
  border-radius: 50%;
}

input::placeholder {
  color:#666;
}

.icon .option {
  padding:0px;
}

.circle {
  border-radius:0px;
}

.waiting {
  pointer-events: none;   /* Desactiva los eventos de clic */
  opacity: 0.5;           /* Cambia la opacidad para dar aspecto de deshabilitado */
  cursor: not-allowed; 
}

#floating_ui.expand {
  width:90%;
  margin:0px 5%;
  right:0px;
}

.icon i.selected, .icon svg.selected path {
  fill:#000;
  color:#000;
  transition:0.5s;
}

.icon i,.icon path {
  color:#ddd;
  fill:#ddd;
}

#floating_ui.collapsed .icon{
  height:56px;
  top:3px;
  left:2px;
  position:absolute;
}

#floating_ui #formulario{
  display:flex;
  margin:0px;
}

ul.collection {
  border-width:0px;
}

.collection li.avatar {
  border-radius: 10px;
  margin-bottom: 1em;
  border-width: 1px;
  border-style: solid;
  border-color: #eee;
  min-height:68px !important;
}

.collection .collection-item:last-child {
    border-bottom:solid;
    border-color: #eee;
}

#floating_ui input[type="radio"] {
  display: none;
}

#floating_ui .option_caption {
  font-size:1.2em;
}

#floating_ui input[type="radio"] + label i.material-icons.option {
  color: #ddd;
}

#floating_ui input[type="radio"]:checked + label i.material-icons.option {
  color: #222;
}

/* Clear */
#floating_ui.collapsed .clear{
  display:none;
}

.clear {
  position: absolute;
  top:50%;
  width:15px;
  height:15px;
  right:29px;
  cursor:pointer;
  display:flex;
  justify-content: center;
  align-items:center;
  transform: translateY(-50%);
}

.clear::before {
  position:absolute;
  content:'';
  width:1px;
  height:15px;
  background:#999;
  transform: rotate(45deg);
}

.clear::after{
  position:absolute;
  content:'';
  width:1px;
  height:15px;
  background:#999;
  transform: rotate(315deg);
}

.floating_content .clear{
  top:20%;
}

/* Status */
.floating_status {
  position:fixed;
  right:15px;
  bottom:13px;
  border-radius:10px;
  font-family: monospace;
  width:40%;
  max-height:0px;
  transition:0.5s;
  overflow: hidden;
  z-index:999;
  overflow-y: auto;
}

.floating_status>div{
  background-color:#eee;
  padding:1em;
  margin-bottom:1em;
  border-radius:10px;
}

/* Header */
#floating_ui .floating_header {
  background-color:white;
}

#floating_ui .floating_header:not(:empty) {
  padding: 1.5em 3em;
}

#floating_ui .floating_header h1 {
  font-size:1.6em;
  margin:0px 0px 4px;
}

#floating_ui .floating_header h2 {
  font-size:1.2em;
  margin:0px;
}

/* Content */
#floating_ui .floating_content:empty {
  padding:0px;
}

#floating_ui .floating_content:not(:empty) {
  padding: 2em 2em 3em 2em;
}

.floating_content .flow-text {
    font-size:1.5em;
}

#floating_ui .floating_content::after {
  /*content: '';*/
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 120px;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0), rgba(255, 255, 255, 1));
  pointer-events: none;
}

.floating_content:not(:empty) {
  padding:0px 1em 3em 1em;
}

.floating_content{
  background-color:white;
  box-shadow: none;
  -webkit-box-shadow: none;
  overflow-y: auto;
  margin:0px;
  padding:0px;
  font-size:1.1em;
}

#floating_ui .floating_content::after {
  position: relative;
}

/* Floating Bottom */
.floating_bottom:not(:empty) {
  padding:1em 3em 1em 1.6em;
  position: relative;
  /*box-shadow: 0 -61px 41px rgba(255, 255, 255, 0.8);*/
  background-color:#fafafa;
}

.floating_bottom .icon i {
  font-size:36px;
}

.floating_bottom .icon {
    font-size:2em;
    position:static;
    left:28px;
    height:39px;
    justify-content:left;
    align-items:center;
    z-index:1000;
    cursor:pointer;
}

.floating_bottom .input {
  width:100%;
  display:flex;
  align-items:center;
}

.floating_bottom .input input {
  position:absolute;
  margin:0px;
  width:100%;
  height:100%;
  border:none;
  outline: none;
  font-size:18px;
  padding: 10px 0;
}

.floating_bottom input:focus {
  box-shadow:0px 0px 0px !important;
}

/* 1. Bloquea los clics */
.floating_bottom .locked,
.floating_bottom .locked * {
  pointer-events: none;   /* ignora todos los eventos del ratón / táctiles */
}

.floating_bottom .locked {
  opacity: .6;            /* aspecto atenuado */
  filter: grayscale(1);   /* (opcional) escala de grises */
  cursor: not-allowed;    /* cursor de prohibido al pasar por encima */
}

.radio-icon {
  display: none;
}

.icon-label:hover {
  background-color:#eee;
}

.icon-label {
  padding: 0.2em;
  border-radius: 50%;
  font-size: 32px;
  color: #ccc; /* gris por defecto */
  cursor: pointer;
  user-select: none;
  transition: color 0.2s;
  /*margin-right: 0.5em;*/
}

.radio-icon:checked + .icon-label {
  color: #000; /* negro cuando está seleccionado */
}

#search-input::placeholder {
color: #ccc; /* más claro que #888 o el negro por defecto */
}