/* ==========================================================================
   14-healthedit.css — THE EDITING HALF OF SPEAKER HEALTH

   The table itself is the crew table (css/04-components.css) and is left
   alone. This is the sixth column, the row that opens underneath it, and the
   switch that lets the healthy pictures be seen.
   ========================================================================== */

.ah-tr { cursor: pointer; transition: background .15s; }
.ah-tr:hover { background: rgba(255, 255, 255, .04); }
.ah-tr.is-open { background: rgba(0, 180, 216, .12); }

.ah-act { white-space: nowrap; text-align: right; }
.ah-open { font-size: 10px; color: var(--cyan); font-weight: bold; }
.ah-tr:hover .ah-open { text-decoration: underline; }

.ah-showall {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 11px; color: var(--muted); margin-left: 10px; cursor: pointer;
  white-space: nowrap;
}
.ah-showall input { cursor: pointer; }

/* ---- the panel ---------------------------------------------------------- */
.ah-edit-row td { padding: 0 !important; }
.ah-edit {
  display: flex; gap: 14px; align-items: flex-start;
  padding: 12px 14px; border-left: 3px solid var(--cyan);
  background: rgba(0, 180, 216, .05);
}
@media (max-width: 760px) { .ah-edit { flex-direction: column; } }

.ah-pic { flex: 0 0 150px; text-align: center; }
.ah-pic img {
  width: 150px; height: 100px; object-fit: cover;
  border-radius: 5px; border: 1px solid var(--c-border); background: var(--navy2);
  display: block;
}
/* A picture that will not load leaves a labelled hole rather than a broken
   icon, because "gone" is the single most useful thing this screen says. */
.ah-pic img.is-gone {
  width: 150px; height: 100px;
  border: 1px dashed var(--red);
  background: repeating-linear-gradient(45deg,
    rgba(239, 68, 68, .08) 0 7px, transparent 7px 14px);
}
.ah-pic-say { font-size: 9px; color: var(--muted); margin-top: 5px; letter-spacing: .3px; }

.ah-form { flex: 1 1 auto; min-width: 0; }
.ah-which {
  font-size: 11px; color: var(--white); line-height: 1.5; margin-bottom: 9px;
  padding-bottom: 8px; border-bottom: 1px solid rgba(255, 255, 255, .08);
}
.ah-q {
  display: block; font-size: 9px; font-weight: bold; color: var(--cyan);
  text-transform: uppercase; letter-spacing: .4px; margin-bottom: 4px;
}
.ah-url {
  width: 100%; box-sizing: border-box; padding: 7px 9px; border-radius: 5px;
  border: 1px solid var(--c-border); background: var(--navy2); color: var(--white);
  font-size: 12px; font-family: monospace;
}
.ah-url:focus { outline: none; border-color: var(--cyan); }
.ah-why { font-size: 10px; color: var(--muted); margin-top: 5px; line-height: 1.5; }
.ah-why code {
  background: rgba(0, 0, 0, .35); padding: 1px 4px; border-radius: 3px; color: var(--cyan);
}
.ah-btns { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; align-items: center; }
.ah-sm { font-size: 10px; padding: 5px 11px; min-height: 30px; }

@media print {
  .ah-act, .ah-th-act, .ah-edit-row, .ah-showall { display: none !important; }
}
