/* A conversation's print page (Conversations::PrintsController, layouts/print): one column of paper, the bar with the
   choice and the Print button on screen only. Loaded with the rest of the app's styles, so everything is scoped here. */

.printout-page {
  background: #fff;
  color: #1d1d1f;
}

.printout__bar {
  position: sticky;
  top: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 16px;
  padding: 10px max(16px, calc((100% - 760px) / 2));
  border-bottom: 1px solid var(--rule);
  background: var(--surface);
}
.printout__choice { margin: 0; color: var(--muted); }
.printout__bar .button { display: inline-flex; align-items: center; gap: 6px; }

.printout {
  max-width: 760px;
  margin: 0 auto;
  padding: 24px 16px 48px;
}
.printout__head { padding-bottom: 12px; border-bottom: 2px solid #1d1d1f; }
.printout__subject { margin: 4px 0; font: 24px/1.25 var(--font-heading); }
.printout__meta { margin: 0; color: #5e5a52; }

.printout__entry {
  padding: 14px 0;
  border-bottom: 1px solid #d8ccb0;
}
.printout__entry--note,
.printout__entry--forward { padding-left: 12px; border-left: 3px solid #d9b860; }
.printout__who { display: flex; flex-wrap: wrap; gap: 0 8px; align-items: baseline; margin-bottom: 6px; }
.printout__what { color: #5e5a52; }
.printout__when { margin-left: auto; color: #5e5a52; font-size: 13px; }
.printout__entry { overflow-wrap: anywhere; }
.printout__entry pre { white-space: pre-wrap; } /* a long log line wraps on paper, in an email, a reply, a note or a translation */
.printout__body img { max-width: 100%; height: auto; }
.printout__body blockquote { margin: 0.5em 0; padding-left: 12px; border-left: 2px solid #d8ccb0; color: #5e5a52; }
.printout__body table { max-width: 100%; border-collapse: collapse; }
.printout__translation { margin-top: 8px; padding-top: 8px; border-top: 1px dashed #d8ccb0; }
.printout__aside { margin: 8px 0 0; color: #5e5a52; font-size: 13px; }
.printout__empty { color: #5e5a52; }
.printout__foot { margin-top: 24px; color: #5e5a52; font-size: 12px; }

/* What a rep clicks on the conversation page (Call back, Open in Birdie, Translate again) means nothing on paper. */
.printout .call-strip__action,
.printout .recording__open,
.printout .recording__play,
.printout .translation__again-form { display: none; }

@media print {
  @page { margin: 16mm 14mm; }
  .printout__bar { display: none; }
  .printout { max-width: none; padding: 0; }
  .printout__entry { break-inside: auto; }
  .printout__who { break-after: avoid; }
  .printout a { color: inherit; }
}
