/*
  The staff page's Add staff drawer for the pilot company (class.add_staff_drawer.php,
  add_staff_drawer.js) — what is its own on top of the process drawer (process_drawer.css):
  the new-role box the header's + opens, the people rows, the pasted list.

  NOTE: no rem units in here. lib/bootstrap_old sets html { font-size: 10px }, so a rem is 10px
  on this site. px throughout.

  Everything is scoped under .add_staff_drawer_container, the mchat frame inside the drawer.
*/

/* ---- the new-role box, dropped in above the cards by the header's + ---- */

.asd_new_role
{
  background: #ffffff;
  border: 1.5px solid var(--pd_brand);
  border-radius: var(--pd_radius);
  padding: 12px 12px 10px;
  margin: 0 0 12px;
  box-shadow: 0 0 0 3px var(--pd_brand_wash);
}
.asd_new_role_label
{
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--pd_brand);
  margin-bottom: 8px;
}
.asd_new_role_row
{
  display: flex;
  gap: 8px;
}
.asd_new_role_row .form-control
{
  flex: 1;
  min-width: 0;
  height: 44px;
  border: 1.5px solid var(--pd_line);
  border-radius: 8px;
  box-shadow: none;
  font-size: 16px;   /* 16px stops ios zooming the page on focus */
  color: var(--pd_ink);
}
.asd_new_role_row .form-control:focus { border-color: var(--pd_brand); box-shadow: none; }
.asd_new_role_save
{
  flex: none;
  height: 44px;
  padding: 0 18px;
  border-radius: 8px;
  background: var(--pd_brand);
  border: 1px solid var(--pd_brand);
  color: #ffffff !important;
  font-weight: 700;
  box-shadow: none;
}
.asd_new_role_save:hover, .asd_new_role_save:focus { background: var(--pd_brand_deep); border-color: var(--pd_brand_deep); }
.asd_new_role .asd_new_role_hint { margin: 8px 2px 0; font-size: 13px; }

/* ---- the people rows ---- */

/* on a phone one person at a time: the first row only, no Add another person; the done
   step's Add more brings the panel back for the next one */
@media (max-width: 767px)
{
  .asd_people .asd_person_row + .asd_person_row { display: none; }
  .pd_link.asd_add_row { display: none; }
  .asd_person_row .asd_remove_row { display: none; }
}

.asd_people
{
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.asd_person_row
{
  background: #ffffff;
  border: 1.5px solid var(--pd_line);
  border-radius: var(--pd_radius);
  overflow: hidden;
}
.asd_person_row:focus-within { border-color: var(--pd_brand); }
.asd_person_names
{
  display: flex;
  border-bottom: 1px solid var(--pd_line);
}
.asd_person_names .form-control:first-child { border-right: 1px solid var(--pd_line); }
.asd_person_email_row
{
  display: flex;
  align-items: stretch;
}
.asd_person_row .form-control
{
  flex: 1;
  min-width: 0;
  height: 46px;
  border: none;
  border-radius: 0;
  box-shadow: none;
  font-size: 16px;   /* 16px stops ios zooming the page on focus */
  color: var(--pd_ink);
  padding: 10px 14px;
}
.asd_person_row .form-control:focus { box-shadow: none; background: #fbfdfd; }
.asd_remove_row
{
  flex: none;
  width: 44px;
  border: none;
  border-left: 1px solid var(--pd_line);
  background: transparent;
  color: var(--pd_faint);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}
.asd_remove_row:hover { color: var(--pd_ink); background: #f4f7f8; }

.asd_paste_toggle_wrap
{
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px dashed var(--pd_line);
}
.asd_paste_toggle_wrap .pd_link { margin-top: 0; color: var(--pd_muted); }

.asd_paste .form-control
{
  border: 1.5px solid var(--pd_line);
  border-radius: var(--pd_radius);
  box-shadow: none;
  font-size: 16px;
  color: var(--pd_ink);
  padding: 12px 14px;
  min-height: 150px;
  resize: vertical;
  line-height: 1.45;
  margin-top: 10px;
}
.asd_paste .form-control:focus { border-color: var(--pd_brand); box-shadow: none; }
.asd_paste .pd_hint { margin-top: 8px; font-size: 13px; }
