/* ================== SHARE SCHEDULOSITY ==================
   The drawer behind the Settings page's Share Schedulosity row (class.app_share.php,
   share_app.js): the QR code, the link, and the invite you text to someone. The sa_ prefix is
   this feature's alone — nothing else in header_files.php uses it. */

.share_app_body
{
  padding-bottom: 30px;
}

.share_app_body .sa_error
{
  margin-bottom: 14px;
  border-radius: 10px;
  font-size: 0.92em;
}

.sa_card
{
  background: #fff;
  border-radius: 14px;
  padding: 16px;
}

.settings_group .sa_card
{
  border-radius: 0;
  padding: 16px 16px 18px;
}

.sa_card_title
{
  font-size: 0.95em;
  font-weight: 800;
  color: #16211f;
  text-align: center;
}

/* ---- the QR ---- */

.sa_scan_card
{
  text-align: center;
  padding: 20px 18px 18px;
}

.sa_qr
{
  width: 208px;
  max-width: 72vw;
  margin: 14px auto 0;
  padding: 10px;
  background: #fff;
  border: 1px solid #dde7e7;
  border-radius: 12px;
}

.sa_qr svg
{
  display: block;
  width: 100%;
  height: auto;
}

.sa_qr_missing
{
  display: flex;
  align-items: center;
  justify-content: center;
  height: 208px;
  font-size: 64px;
  color: #c3d1d1;
}

.sa_scan_note
{
  margin-top: 12px;
  font-size: 0.88em;
  line-height: 1.5;
  color: #6b7b80;
}

/* ---- the link ---- */

.sa_link_row
{
  display: flex;
  align-items: stretch;
  gap: 8px;
}

.sa_link_input
{
  flex: 1;
  min-width: 0;
  height: 40px;
  padding: 0 12px;
  border: 1px solid #dde7e7;
  border-radius: 9px;
  background: #f6fafa;
  color: #16211f;
  font-size: 0.92em;
}

.sa_copy_btn
{
  flex: none;
  width: 44px;
  height: 40px;
  border: 1px solid #0f7777;
  border-radius: 9px;
  background: #0f7777;
  color: #fff;
  font-size: 1em;
  padding: 0;
}

.sa_copy_btn.sa_copied
{
  background: #158a5a;
  border-color: #158a5a;
}

.sa_hint
{
  margin-top: 10px;
  font-size: 0.85em;
  line-height: 1.5;
  color: #6b7b80;
}

.sa_hint_warn
{
  color: #8a5300;
}

.sa_stores
{
  margin-top: 14px;
  display: flex;
  gap: 8px;
}

.sa_store_btn
{
  flex: 1;
  height: 42px;
  border: 1px solid #dde7e7;
  border-radius: 10px;
  background: #fff;
  color: #16211f;
  font-size: 0.9em;
  font-weight: 700;
  padding: 0 6px;
}

.sa_store_btn i
{
  margin-right: 5px;
}

/* ---- texting one ---- */

.sa_field
{
  margin-bottom: 12px;
}

.sa_field label
{
  display: block;
  margin-bottom: 5px;
  font-size: 0.8em;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #6b7b80;
}

.sa_field label span
{
  margin-left: 5px;
  font-weight: 600;
  text-transform: none;
  letter-spacing: 0;
  color: #9aa9ac;
}

.sa_field input
{
  width: 100%;
  height: 42px;
  padding: 0 12px;
  border: 1px solid #dde7e7;
  border-radius: 9px;
  background: #fff;
  color: #16211f;
  font-size: 1em;
}

.sa_field input:focus
{
  border-color: #0f7777;
  outline: none;
}

.sa_send_btn
{
  width: 100%;
  height: 46px;
  border: none;
  border-radius: 10px;
  background: #0f7777;
  color: #fff;
  font-size: 0.98em;
  font-weight: 800;
}

.sa_send_btn.sa_sending
{
  background: #6b9a9a;
}

.sa_send_btn i
{
  margin-right: 6px;
}

.sa_sent
{
  margin-bottom: 12px;
  padding: 10px 12px;
  border-radius: 9px;
  background: #e7f6ef;
  color: #14603f;
  font-size: 0.9em;
  font-weight: 700;
}

.sa_sent i
{
  margin-right: 5px;
}

/* .hide_me loses to a later display rule, so every sa_ block that starts hidden says so here */
.sa_sent.hide_me,
.sa_error.hide_me
{
  display: none;
}

/* ---- what has been sent ---- */

.sa_recent_card
{
  padding: 4px 16px;
}

.sa_recent_row
{
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 0;
  border-bottom: 1px solid #eef3f3;
}

.sa_recent_row:last-child
{
  border-bottom: none;
}

.sa_recent_who
{
  flex: 1;
  min-width: 0;
}

.sa_recent_who b
{
  display: block;
  font-size: 0.94em;
  color: #16211f;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sa_recent_who span
{
  display: block;
  margin-top: 2px;
  font-size: 0.82em;
  color: #6b7b80;
}

.sa_state
{
  flex: none;
  font-size: 0.8em;
  font-weight: 700;
  color: #9aa9ac;
}

.sa_state_open
{
  color: #14603f;
}

.sa_state_open i
{
  margin-right: 3px;
}
