/* ===================== */
/* TARJETA DE TURNO */
/* ===================== */

.turno {
  display: flex;
      padding-bottom: 1em;
    padding-top: 1em;

    background-color: #f3f3f3;
    margin-bottom: 12px;
    border-left: 6px solid transparent;
    border-radius: 6px;
    transition: background-color 0.2s, opacity 0.2s;
}

/* Colores de borde por estado */
.turno.estado-pending {
    border-left-color: #ffa603;
}

.turno.estado-cancelled {
    border-left-color: #ff0066;
    background-color: rgba(136, 79, 213, .1) !important;
}

.turno.estado-on-hold {
    border-left-color: #5dc6f5;
}

.turno.estado-completed {
    border-left-color: #9de567;
    background-color: rgba(157, 229, 103, 0.2) !important;
}

.turno.estado-blocked {
    border-left-color: #bfbfbf;
}

/* ===================== */
/* SELECT DE ESTADO */
/* ===================== */



/* ===================== */
/* INSTITUCIÓN */
/* ===================== */

.turno .institucion {
    font-weight: bold;
    font-size: 1.2em;
    color: #004a98;
    margin-bottom: 6px;
    display: block;

}

/* ===================== */
/* ÍCONOS DE CONTACTO */
/* ===================== */

.icono {
    width: 14px;
    height: 14px;
    display: inline-block;
    vertical-align: middle;
    margin-right: 6px;
    fill: currentColor;
}

.icono svg {
    width: 14px;
    height: 14px;
}

.icono path {
    fill: #666;
}

.estado-icons {
  margin-top: 8px;
}

.estado-icons i {
  font-size: 14px;
  color: #004a98;
  margin-right: 10px;
  vertical-align: middle;
}

.icono-accion {
  margin-left: 6px;
  color: #888;
  font-size: 13px;
  cursor: pointer;
}

.tooltip-icon {
  position: relative;
  cursor: pointer;
}

.tooltip-icon::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: 145%;
  left: 50%;
  transform: translateX(-50%);
  background: #333;
  color: #fff;
  padding: 4px 8px;
  font-size: 16px;
  font-family: "Arial", sans-serif;
  border-radius: 4px;
  font-weight: normal;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
  z-index: 10;
  text-align: center;
  width: 350px;

}

.tooltip-icon:hover::after {
  opacity: 1;
}

.institucion-nombre{
  text-transform: uppercase !important;
}

.institucion-header {
  font-weight: bold;
  font-size: 1.2em;
  color: #004a98;
  cursor: pointer;
  margin-bottom: 4px;
}

.institucion-detalle {
  background-color: rgba(0,0,0,0.0);
  padding: 6px 10px;
  border-left: 3px solid #004a98;
  font-size: 0.95em;
  margin-bottom: 10px;
}


.turno-row {
  display: flex;
  width: 100%;
}

.col-turno {
  box-sizing: border-box;
}

.col-check {
  width: 5%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.col-inst {
  width: 40%;
}

.col-fecha {
  width: 15%;
  display: flex;
  align-items: center;
  font-size:14px;
  
}

.col-hora {
  width: 10%;
  display: flex;
  align-items: center;
  font-size:14px;
}

.col-guia {
  width: 20%;
  display: flex;
  align-items: center;
}

.col-asistio {
  /*width: 10%;
  display: flex;
  justify-content: center;
  align-items: center;*/
}

.col-estado {
  width: 15%;
  display: flex;
  align-items: center;
  padding:10px;
}


.estado-select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;

  color: white;
  border-radius: 20px;
  padding: 6px 12px;
  text-transform: uppercase;
  font-size: 14px;
  border: none;
  cursor: pointer;
  background-image: url("data:image/svg+xml;utf8,<svg fill='white' height='16' viewBox='0 0 24 24' width='16' xmlns='http://www.w3.org/2000/svg'><path d='M7 10l5 5 5-5z'/></svg>");
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 16px;
  padding-right: 60px;
  width:80%;
  display: block;
  margin: 0 auto;
}



.guia-select{
    font-weight: 400;
    background-color: #f5f5f5;
    border-radius: 50px;
    display: block;
    color: #004a98;
    width: 70%;

}

.asistencia-btn {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 20px;
  text-align: center;
  font-size: 0.85em;
  text-transform: uppercase;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.2s, color 0.2s;
}

.asistencia-btn.asistio-si {
  background-color: #A7E18E;
  color: white;
}

.asistencia-btn.asistio-no {
  background-color: #D8D8D8;
  color: #444;
}


.institucion-personas{
  color: black;
  font-size: 12px;
}

.icono-editar{
  color: #2ee1f7;
}

.icono-info{
  color: #547b89;
}


.copy-email, .open-whatsapp{
  cursor: pointer;
}



.icono-discapacidad{
  color: #806dd2;
}

.header-input{
    border: 1px solid #ccc !important;
    border-radius: 20px !important;
    width: 100% !important;
}

.header-input-button{
  color: #FFF !important;
  border-radius: 25px !important;
}

.change-status-button-completed{
  background-color: #9de567;
}

.change-status-button-pending{
  background-color: #ffa603;
}

.change-status-button-on-hold{
  background-color: #5dc6f5;
}


.change-status-button-cancelled{
  background-color: #ff0066;
}

.fa-stack{
  transform: scale(0.6) !important;
  margin:-10px;
}

.nota-editor{
  color: #8c8c8c;
    border-radius: 22px;
    border-color: #d3d3d3;
}

.guardar-nota{
    background-color: #004a98;
    color: white !important;
    border-radius: 25px !important;;

    border: none;
    border-radius: 6px;
    cursor: pointer;
    transform: scale(0.8) translate(-10px, -5px);
}

.flecha-estilo {
  transition: transform 0.3s ease;
      transform: scale(0.6);
}
.flecha-estilo {
  transform: rotate(90deg);
      transform: scale(0.6);
}

.notita-label, .datos-de-la-persona{
  font-size: 14px;
}






.nota-turno {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 14px;
}

.nota-turno.modo-edicion {
  flex-direction: column;
  align-items: flex-start;
}

.notita-label {
  font-weight: bold;
  font-size: 14px;
  color: #333;
}

.nota-prev,
.icono-nota {
  transition: color 0.2s ease;
  font-size: 14px;
}

/* Estilo cuando hay nota */
.nota-prev.con-nota,
.icono-nota.con-nota {
  color: #ff8203;
}

/* Estilo cuando no hay nota */
.nota-prev.sin-nota,
.icono-nota.sin-nota {
  color: #ccc;
  font-style: italic;
}

.nota-editor {
  width: 70%;
  min-height: 60px;
  font-size: 14px;
  padding: 6px;
  border-radius: 4px;
  border: 1px solid #aaa;
  resize: vertical;

  border-color: #ff8203 !important;
  background-color: #f1f1f1 !important;
  border-radius: 16px !important;
  min-width: 250px;
  min-height: 60px;
}

.guardar-nota {
  background-color: #ff8203;
  color: white;
  border: none;
  padding: 6px 12px;
  font-size: 14px;
  border-radius: 4px;
  cursor: pointer;
}

.guardar-nota:hover {
  background-color: #e47100;
}

.icono-vip{
  color: #ff8f00;
}

.contacto-detalle{
  font-size: 14px;
}

.contacto-header{
  padding:0.2em;
}

.icono-hora{
      color: #45c07e;
    font-size: 16px;
    top: -2px;
}

.estado-dropdown-wrapper {
  position: relative;
  font-size: 14px;
  width: 100%;
  display: flex;
  justify-content: center;
}

.estado-toggle {
  color: white !important;
  padding: 6px 16px;
  text-transform: uppercase;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: #ccc;
  position: relative;
  transition: background-color 0.2s ease;
  border-radius: 25px !important;
  border: none !important;
  width: 160px; 
  text-align: left;
  font-size: 14px;

}

.flecha-dropdown {
  transform: scale(0.5);
  margin-left: auto;
  display: inline-block;
}

.flecha-dropdown .fa-chevron-right {
  transition: transform 0.2s ease;
}

.estado-toggle.abierto .fa-chevron-right {
  transform: rotate(90deg); /* de derecha → hacia abajo */
}

.estado-options {
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  list-style: none;
  background: white;
  border-radius: 6px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  margin-top: 4px;
  padding: 0;
  z-index: 10;
  overflow: hidden;
  font-weight: normal;
}

.estado-option {
  padding: 10px 14px;
  cursor: pointer;
  color: #444;
  border-bottom: 1px solid #eee;
  transition: background-color 0.2s;
}

.estado-option:last-child {
  border-bottom: none;
}

.estado-option:hover {
  background-color: #f3f3f3;
}

.estado-option.selected-estado {
  background-color: #e0e0e0;
  font-weight: bold;
}


.color-estado-pending {
  color: #ffa603;
}

.color-estado-on-hold {
  color: #5dc6f5;
}

.color-estado-completed {
  color: #9de567;
}

.color-estado-cancelled {
  color: #ff0066;
}

.color-estado-blocked {
  color: #bfbfbf;
}

.flecha-contacto.flecha-estilo{
  transform: scale(0.4) !important;
  top:-1px;
 }


.flecha-institucion.flecha-estilo {
  transform: scale(0.3) !important;
  top:-1px;
 }

 .flecha-institucion i.fa-chevron-right {
  transition: transform 0.3s ease;
  transform: rotate(0deg); /* por defecto: derecha */
}

.flecha-abierta i.fa-chevron-right {
  transform: rotate(90deg); /* cuando está abierta: hacia abajo */
}

.flecha-contacto .fa-chevron-right {
  transition: transform 0.3s ease;
  transform: rotate(0deg);
}

.flecha-contacto.flecha-abierta .fa-chevron-right {
  transform: rotate(90deg);
}