/* ============================================================================
   buscador.css · (2-oct-2026, Iago) DICTADO ELEMENTAL · el alumno se elige con un buscador
   «Quiero que haya un buscador en el que yo ponga el nombre… porque las libretas las cojo desordenadamente.»
   La misma piel que el resumen final: fondo oscuro, filas con contorno fino y el naranja de la app.
   ============================================================================ */
#view-buscar .bus-cont{ display:flex; flex-direction:column; gap:10px; min-height:100vh; min-height:100dvh; padding-bottom:calc(14px + env(safe-area-inset-bottom, 0px)); box-sizing:border-box }
#view-buscar .bus-cab{ display:flex; align-items:baseline; gap:12px; flex-wrap:wrap; margin:0; padding:0 0 10px; border-bottom:1px solid rgba(255,255,255,.10) }
#view-buscar .bus-cab h1{ margin:0; font-size:23px; font-weight:800; letter-spacing:.01em; color:#f4f7fb; background:none; -webkit-text-fill-color:currentColor }
#view-buscar .bus-sub{ font-size:12px; font-weight:700; letter-spacing:.05em; text-transform:uppercase; color:rgba(232,238,245,.45) }

#view-buscar .bus-campo{ position:relative; flex:0 0 auto }
#view-buscar #bus-input{
  width:100%; height:54px; box-sizing:border-box; margin:0; padding:0 48px 0 16px;
  font:inherit; font-size:18px; font-weight:700; color:#f4f7fb; caret-color:var(--app, #f97316);
  /* plano-a.css fuerza el contorno gris de todos los campos con !important: este es EL campo de la pantalla */
  background:#0b1320 !important; border:2px solid var(--app, #f97316) !important; border-radius:12px; outline:none;
  -webkit-appearance:none; appearance:none;
}
#view-buscar #bus-input::placeholder{ color:rgba(232,238,245,.40); font-weight:600 }
#view-buscar #bus-input::-webkit-search-cancel-button{ -webkit-appearance:none; display:none }
#view-buscar .bus-borrar{
  position:absolute; right:7px; top:7px; width:40px; height:40px; padding:0; margin:0;
  display:inline-flex; align-items:center; justify-content:center;
  border:0; border-radius:10px; background:rgba(255,255,255,.08); color:#e8eef5; font-size:15px; font-weight:800; cursor:pointer;
}
#view-buscar .bus-borrar[hidden]{ display:none }

#view-buscar .bus-lista{ display:flex; flex-direction:column; gap:6px; flex:1 1 auto; min-height:0 }
#view-buscar .bus-item{
  display:flex; align-items:center; justify-content:space-between; gap:12px;
  width:100%; min-height:52px; box-sizing:border-box; margin:0; padding:10px 14px;
  font:inherit; text-align:left; color:#f4f7fb; cursor:pointer;
  background:rgba(255,255,255,.035); border:1px solid rgba(255,255,255,.10); border-radius:12px;
  -webkit-tap-highlight-color:transparent;
}
#view-buscar .bus-item:active{ border-color:var(--app, #f97316); background:rgba(249,115,22,.10) }
#view-buscar .bus-nom{ flex:1 1 auto; min-width:0; font-size:16px; font-weight:700; overflow-wrap:anywhere }
#view-buscar .bus-nota{ flex:0 0 auto; font-size:18px; font-weight:900; font-variant-numeric:tabular-nums }
#view-buscar .bus-nota.alta{ color:#4ade80 }
#view-buscar .bus-nota.media{ color:#fbbf24 }
#view-buscar .bus-nota.baja{ color:#ff6b6b }
#view-buscar .bus-nota.nv{ color:#c4b5fd; font-size:15px; font-weight:800 }
#view-buscar .bus-item.hecho{ background:transparent }
#view-buscar .bus-item.hecho .bus-nom{ color:rgba(232,238,245,.55) }
#view-buscar .bus-sep{ height:1px; margin:6px 2px; background:rgba(255,255,255,.14) }
#view-buscar .bus-vacio{ padding:22px 8px; text-align:center; font-size:14px; font-weight:600; color:rgba(232,238,245,.45) }

#view-buscar .bus-pie{ display:flex; gap:10px; margin-top:auto; padding-top:10px; flex:0 0 auto }
#view-buscar .bus-pie .btn{ margin:0; height:54px; min-height:54px }
#view-buscar #btn-bus-salir{ flex:0 0 auto; width:auto; padding:0 20px }
#view-buscar #btn-bus-terminar{ flex:1 1 auto; width:auto; font-size:16px; font-weight:800 }

/* en el resumen: de vuelta al buscador */
#view-fin #btn-fin-seguir{ width:100%; margin:0 0 10px }
#view-fin #btn-fin-seguir.hidden{ display:none }
