/* ==========================================================================
   31-embargo.css — EMBARGO MANAGEMENT

   The screen wears the Maintenance Schedule's bones (the mm-* rules in
   16-maintmanage.css): the same card, sticky heading, pills and opened-out
   row. Only what that screen has no need of is here -- the three ways of
   saying when a link lifts, the live line that says when it will, and the
   small Manage button beside the lock on the note.
   ========================================================================== */

.em-sub { font-size: 9.5px; color: var(--muted); font-weight: normal; margin-top: 2px; }

.em-when {
  display: flex; flex-direction: column; gap: 8px;
  background: var(--navy2); border: 1px solid var(--c-border);
  border-radius: 6px; padding: 10px 12px;
}
.em-q {
  font-size: 9.5px; color: var(--cyan); text-transform: uppercase;
  letter-spacing: .5px; font-weight: bold;
}
.em-q2 { font-size: 11px; color: var(--muted); }
.em-line { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.em-opt { display: inline-flex; align-items: center; gap: 6px; font-size: 11px; color: var(--white); cursor: pointer; }
.em-opt strong { color: var(--gold); }
.em-opt { flex: 0 0 auto; }
/* A radio button is a button, not a box to fill: the phone layout's rule
   that stretches every input to the full width would otherwise squeeze the
   words beside it until "standard" broke in two. */
.em-opt input[type="radio"] {
  accent-color: var(--cyan); width: auto !important; min-width: 0; flex: 0 0 auto;
  margin: 0; min-height: 0;
}

@media (max-width: 760px) {
  .em-line > .em-opt { flex-basis: 100%; }
  .em-line .em-in { flex: 1 1 120px; }
  .em-line .xp-t12 { flex: 1 1 100%; }
}

.em-in {
  background: var(--navy); border: 1px solid var(--c-border); color: var(--white);
  border-radius: 4px; padding: 6px 8px; font-size: 11px; min-height: 32px; font-family: inherit;
}
.em-num { width: 70px; }

.em-preview { font-size: 11px; color: #86efac; font-weight: bold; min-height: 15px; }
.em-preview.is-past { color: var(--gold); }
.em-preview.is-bad  { color: #fca5a5; }

/* THE LOCK ON THE NOTE WRAPS. It sits in column three, which on a laptop is
   barely 400px wide; held on one line it ran off the edge and cut the
   release time off -- the one thing it is there to say. */
.su-embargo { white-space: normal; flex-wrap: wrap; max-width: 100%; }
td:has(> div > .su-embargo) { white-space: normal !important; width: auto !important; }

/* Beside the lock on the note, for an administrator. Quiet: the lock is the
   message, this is only the way to it. */
.su-emb-manage {
  background: transparent; border: 1px solid rgba(201, 168, 76, .45);
  color: var(--brand); border-radius: 4px; padding: 5px 9px;
  font-size: 10px; font-weight: bold; cursor: pointer; white-space: nowrap;
}
.su-emb-manage:hover { border-color: var(--brand); color: var(--white); }

@media print {
  .su-emb-manage { display: none !important; }
}
