/* cjw_newsletter.css */

.newsletter table.list td {
    padding:0.5em;
}

.icon32 {
  width: 32px;
  height: 32px;
}
.icon16 {
  width: 16px;
  height: 16px;
}
.icon12 {
  width: 12px;
  height: 12px;
}
.icon_s_pending {
  background:left top;
}
.icon_s_confirmed {
  background:-32px top;
}
.icon_s_approved {
  background:-64px top;
}
.icon_s_removed, .icon_s_removed_self {
  background:-96px top;
}
.icon_s_removed_by_admin {
  background:-128px top;
}
.icon_s_bounced, .icon_s_bounced_hard, .icon_s_bounced_soft {
  background:-160px top;
}
.icon_s_blacklisted {
  background:-192px top;
}
.icon32 {
  background-image: url(../images/newsletter/icons/subscription_status_icons_32x32.png);
  background-repeat: no-repeat;
}
.icon16 {
  background-image: url(../images/newsletter/icons/subscription_status_icons_16x16.png);
  background-repeat: no-repeat;
}
.icon12 {
  background-image: url(../images/newsletter/icons/subscription_status_icons_12x12.png);
  background-repeat: no-repeat;
}

/* The preview frame of an edition (HTML / Text and Text tabs, and the archive preview). It shows the newsletter
   as it is mailed, so its canvas stays light in the dark admin theme too: a mail has a white page, and the text
   version sets no background of its own. The edge and the radius follow the admin tokens. */
.cjwnl-preview-frame {
  display: block;
  box-sizing: border-box;
  width: 100%;
  height: 70vh;
  min-height: 24em;
  margin: 0.5em 0 1em;
  border: 1px solid var(--a4-line, #d5d9df);
  border-radius: var(--a4-radius, 4px);
  background: #fff;
  color-scheme: light;
}

/* A preview tab's panel grows with its frame: the admin designs' tab panels are fixed 20em boxes that scroll
   (div.tab-content in pagelayout.css), which cut the 70vh frame to a strip. */
div.tab-content.cjwnl-preview-panel {
  height: auto;
  overflow-y: visible;
}

/* Utilities of the admin2 templates, instead of style="" attributes (a Content-Security-Policy without
   'unsafe-inline' for style-src-attr drops those): the language flag next to the translation name, and a form
   that sits inline next to other buttons. */
img.cjwnl-flag { vertical-align: middle; }
form.cjwnl-inline-form { display: inline; }
