/* v272.15: Set up tablets -- the phone-shaped pages inside Manage Devices.
 *
 * Built for a phone first and allowed to spread on a desktop, because this is also what a staff
 * tablet sees when it is given the Device Management function.
 *
 * Rules kept from the archive: box-sizing is never border-box unless something says so, so every
 * box here says so; and nothing is told apart by hue alone -- a chosen thing is darker AND
 * carries a tick, so it still reads under the common kinds of colour blindness.
 */

#tab-manage-devices .dvs-v27215,
#tab-manage-devices .dvs-v27215 *,
#tab-manage-devices .dvs-v27215 *::before,
#tab-manage-devices .dvs-v27215 *::after { box-sizing: border-box; }

#tab-manage-devices .dvs-v27215 {
  --dvs-on: #144f8c;
  --dvs-on-ink: #ffffff;
  --dvs-line: #cbd5e1;
  --dvs-soft: #f1f5f9;
  max-width: 44rem;
  margin: 0 auto;
  padding: 0 0 2rem;
}
#tab-manage-devices .dvs-v27215.is-busy-v27215 { opacity: .6; pointer-events: none; }

/* the step strip */
#tab-manage-devices .dvs-steps-v27215 {
  display: flex; gap: .4rem; list-style: none; margin: 0 0 1rem; padding: 0;
}
#tab-manage-devices .dvs-steps-v27215 li {
  flex: 1 1 0; display: flex; flex-direction: column; align-items: center; gap: .2rem;
  font-size: .72rem; color: #64748b; text-align: center; line-height: 1.2;
  border-top: 4px solid var(--dvs-line); padding-top: .4rem;
}
#tab-manage-devices .dvs-steps-v27215 li span {
  display: inline-flex; align-items: center; justify-content: center;
  width: 1.5rem; height: 1.5rem; border-radius: 50%;
  background: var(--dvs-soft); color: #334155; font-weight: 700;
}
/* done and now differ by weight and by the tick, not only by colour */
#tab-manage-devices .dvs-steps-v27215 li.is-now-v27215 { color: #0f172a; font-weight: 700; border-top-color: var(--dvs-on); }
#tab-manage-devices .dvs-steps-v27215 li.is-now-v27215 span { background: var(--dvs-on); color: var(--dvs-on-ink); }
#tab-manage-devices .dvs-steps-v27215 li.is-done-v27215 { color: #334155; border-top-color: #64748b; }
#tab-manage-devices .dvs-steps-v27215 li.is-done-v27215 span { background: #64748b; color: #fff; }

#tab-manage-devices .dvs-h-v27215 { margin: 0 0 .25rem; font-size: 1.25rem; }
#tab-manage-devices .dvs-hint-v27215 { margin: 0 0 .75rem; color: #475569; font-size: .9rem; }
#tab-manage-devices .dvs-muted-v27215 { color: #64748b; }
#tab-manage-devices .dvs-none-v27215 { color: #64748b; padding: .6rem; }
#tab-manage-devices .dvs-error-v27215 {
  margin: 0 0 .75rem; padding: .6rem .75rem; border-radius: .5rem;
  background: #fef2f2; border: 1px solid #fecaca; color: #7f1d1d;
}
#tab-manage-devices .dvs-said-v27215 {
  margin: 0 0 .75rem; padding: .6rem .75rem; border-radius: .5rem;
  background: #eff6ff; border: 1px solid #bfdbfe; color: #1e3a8a;
}
#tab-manage-devices .dvs-full-v27215 {
  margin: .5rem 0; padding: .6rem .75rem; border-radius: .5rem;
  background: #fffbeb; border: 1px solid #fde68a; color: #78350f; font-size: .9rem;
}

/* the tablet tiles */
#tab-manage-devices .dvs-bulk-v27215 { display: flex; gap: .5rem; margin-bottom: .75rem; }
#tab-manage-devices .dvs-bulk-v27215 button {
  flex: 0 0 auto; min-height: 2.5rem; padding: 0 .9rem; border-radius: .5rem;
  border: 1px solid var(--dvs-line); background: #fff; color: #0f172a; font-size: .9rem;
}
#tab-manage-devices .dvs-tiles-v27215 {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(8.5rem, 1fr));
  gap: .6rem; list-style: none; margin: 0 0 1rem; padding: 0;
}
#tab-manage-devices .dvs-tiles-v27215 > li { margin: 0; }
#tab-manage-devices .dvs-tile-v27215 {
  width: 100%; min-height: 4.25rem; display: flex; flex-direction: column;
  align-items: flex-start; justify-content: center; gap: .15rem;
  padding: .6rem .7rem; border-radius: .6rem; text-align: left;
  border: 2px solid var(--dvs-line); background: #fff; color: #0f172a;
}
#tab-manage-devices .dvs-tile-v27215.is-on-v27215 {
  border-color: var(--dvs-on); background: var(--dvs-on); color: var(--dvs-on-ink);
}
/* the tick, so choosing is never shown by colour alone */
#tab-manage-devices .dvs-tile-v27215.is-on-v27215 .dvs-tile-n-v27215::after { content: " \2713"; font-weight: 700; }
#tab-manage-devices .dvs-tile-n-v27215 { font-weight: 700; font-size: .95rem; }
#tab-manage-devices .dvs-tile-who-v27215 { font-size: .8rem; opacity: .85; }
#tab-manage-devices .dvs-tile-who-v27215.is-free-v27215 { font-style: italic; }

/* staff or pupils */
#tab-manage-devices .dvs-kinds-v27215 { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; margin-bottom: 1rem; }
#tab-manage-devices .dvs-kind-v27215 {
  min-height: 5.5rem; border-radius: .75rem; border: 2px solid var(--dvs-line);
  background: #fff; color: #0f172a; font-size: 1.05rem; font-weight: 600;
}
#tab-manage-devices .dvs-kind-v27215.is-on-v27215 { border-color: var(--dvs-on); background: var(--dvs-on); color: var(--dvs-on-ink); }
#tab-manage-devices .dvs-kind-v27215.is-on-v27215::after { content: " \2713"; }

/* the search and what it finds */
#tab-manage-devices .dvs-find-v27215 {
  width: 100%; min-height: 2.75rem; padding: .5rem .75rem; margin-bottom: .5rem;
  border: 1px solid var(--dvs-line); border-radius: .5rem; font-size: 1rem; background: #fff;
}
#tab-manage-devices .dvs-found-v27215 { list-style: none; margin: 0 0 1rem; padding: 0; max-height: 15rem; overflow: auto; border: 1px solid var(--dvs-line); border-radius: .5rem; }
#tab-manage-devices .dvs-found-v27215 > li + li { border-top: 1px solid var(--dvs-line); }
#tab-manage-devices .dvs-found-v27215 button {
  width: 100%; min-height: 2.75rem; padding: .5rem .75rem; text-align: left;
  border: 0; background: #fff; color: #0f172a; font-size: .95rem;
}
#tab-manage-devices .dvs-found-v27215 .dvs-class-v27215 { background: var(--dvs-soft); }

/* the chosen list, with a cross to remove */
#tab-manage-devices .dvs-chosen-v27215 { list-style: none; margin: 0 0 1rem; padding: 0; }
#tab-manage-devices .dvs-chosen-v27215 > li {
  display: flex; align-items: center; gap: .5rem;
  min-height: 2.75rem; padding: .35rem .5rem .35rem .75rem;
  border: 1px solid var(--dvs-line); border-radius: .5rem; background: var(--dvs-soft);
}
#tab-manage-devices .dvs-chosen-v27215 > li + li { margin-top: .4rem; }
#tab-manage-devices .dvs-chosen-v27215 > li span { flex: 1 1 auto; }
#tab-manage-devices .dvs-x-v27215 {
  flex: 0 0 auto; width: 2.25rem; height: 2.25rem; border-radius: .4rem; font-size: 1.25rem; line-height: 1;
  border: 1px solid #fecaca; background: #fff; color: #7f1d1d;
}

/* the starting position */
#tab-manage-devices .dvs-set-v27215 {
  border: 1px solid var(--dvs-line); border-radius: .6rem;
  margin: 0 0 .75rem; padding: .6rem .75rem .75rem;
  display: flex; flex-wrap: wrap; gap: .5rem;
}
#tab-manage-devices .dvs-set-v27215 > legend { padding: 0 .35rem; font-weight: 700; font-size: .85rem; color: #334155; }
#tab-manage-devices .dvs-opt-v27215 {
  flex: 1 1 7rem; min-height: 2.75rem; padding: .4rem .75rem; border-radius: .5rem;
  border: 2px solid var(--dvs-line); background: #fff; color: #0f172a; font-size: .95rem;
}
#tab-manage-devices .dvs-opt-v27215.is-on-v27215 { border-color: var(--dvs-on); background: var(--dvs-on); color: var(--dvs-on-ink); font-weight: 600; }
#tab-manage-devices .dvs-opt-v27215.is-on-v27215::after { content: " \2713"; }

/* who ends up on what */
#tab-manage-devices .dvs-pairs-v27215 { list-style: none; margin: .75rem 0 0; padding: 0; font-size: .9rem; }
#tab-manage-devices .dvs-pairs-v27215 > li { padding: .35rem .5rem; border-bottom: 1px solid var(--dvs-line); }
#tab-manage-devices .dvs-pairs-v27215 > li:last-child { border-bottom: 0; }
#tab-manage-devices .dvs-arrow-v27215 { color: #64748b; }

/* Back / Next */
#tab-manage-devices .dvs-nav-v27215 { display: flex; gap: .75rem; margin-top: 1.25rem; }
#tab-manage-devices .dvs-nav-v27215 > button {
  flex: 1 1 0; min-height: 3rem; border-radius: .6rem; font-size: 1rem;
  border: 1px solid var(--dvs-line); background: #fff; color: #0f172a;
}
#tab-manage-devices .dvs-nav-v27215 > .dvs-go-v27215 {
  border-color: var(--dvs-on); background: var(--dvs-on); color: var(--dvs-on-ink); font-weight: 600;
}
/* a refused Next says why when it is pressed, so it is never silently dead */
#tab-manage-devices .dvs-nav-v27215 > .dvs-go-v27215[aria-disabled="true"] {
  background: #cbd5e1; border-color: #cbd5e1; color: #475569;
}
#tab-manage-devices .dvs-nav-v27215 > button[disabled] { opacity: .6; }

#tab-manage-devices .dvs-pickone-v27215 { margin-top: 1rem; }

@media (min-width: 40rem) {
  #tab-manage-devices .dvs-steps-v27215 li { font-size: .8rem; }
  #tab-manage-devices .dvs-nav-v27215 > button { flex: 0 1 12rem; }
  #tab-manage-devices .dvs-nav-v27215 { justify-content: space-between; }
}
