pre code {
  display: block;
  background-color: #111;
  color: #eee;
  padding: 1em;
}

form.http {
  display: grid;
  grid-template-columns: 10em 1fr;
  grid-gap: 8pt;
  max-width: 50em;
}
form.http [name=body] {
  grid-column: 1/3;
}

@media screen and (min-width: 1200px) {
	div.pnls {
	  display: grid;
	  grid-template-columns: repeat(3, 1fr);
	}
	div.pnls table.pnl:nth-child(3n+2) tr th:first-child,
	div.pnls table.pnl:nth-child(3n+3) tr th:first-child {
		display: none;
	}
}
@media screen and (min-width: 760px) {
	div.pnls {
	  display: grid;
	  grid-template-columns: repeat(2, 1fr);
	}
	div.pnls table.pnl:nth-child(2n+2) tr th:first-child {
		display: none;
	}
}
table.pnl {
  border-collapse: collapse;
  margin: 2em 0;
  border: none !important;
}
table.pnl tbody th, table.pnl td {
  border: 1px solid #ccc;
}
table.pnl th {
  padding: 0.25em;
  text-align: right;
}
table.pnl thead th {
  background-color: #333;
  color: #fff;
}
table.pnl thead tr:first-child th {
  text-align: center;
}
table.pnl td {
  padding: 0.5em;
  width: 5em;
  font-size: 150%;
  text-align: right;
}

#wall {
  margin: 1em;
}
#wall nav {
  list-style: none;
  display: flex;
  flex-direction: row;
  overflow: none;

  display: none; /* hide for now */
}
#wall nav li {
  margin: 4pt;
  background-color: #2271b1;
  border-radius: 4pt;
  color: #fff;
  padding: 1em;
}
#wall nav li a {
  color: inherit;
  text-decoration: none;
}
#wall .filter {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  grid-gap: 4pt;
  float: none;
  margin: 1em;
}
#wall .filter > div {
  display: flex;
  flex-direction: column;
}
#wall .band > div {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}
#wall .band h2 {
  text-align: center;
  font-size: 200%;
  line-height: 2.5em;
  margin: 1em 0;
  border-top: 1px solid #ccc;
}
#wall .band h2 span {
  display: block;
  font-family: sans-serif;
  font-size: 12pt;
  color: #000;
  line-height: 1em;
}
#wall .entry {
  text-align: center;
  display: flex;
  flex-direction: column;
  padding: 1em;

  font-size: 120%;
}
#wall .entry span.name {
  font-size: 150%;
  line-height: 2em;
}

.entry-content ul.powsaf-legend,
ul.powsaf-legend {
  list-style: none;
  padding: 0; margin: 1em;
}
ul.powsaf-legend span.badge {
  display: inline-block;
  height: 0.8em; width: 0.8em;
  margin-right: 0.4em;
}

.powsaf-donut {
  position: relative;
}
.powsaf-donut > span {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;

  display: flex;
  flex-direction: column;
  text-align: center;
  padding-top: 33%;
  z-index: 5;
  font-size: 80px;
  line-height: 1em;
}
.powsaf-donut > span > span {
  font-size: 20pt;
  line-height: 20pt;
  border-top: 1px solid #ccc;
  display: inline-block;
  margin: 0 auto;
}


.powsaf-stacks {
  display: flex;
  flex-direction: row;
}
.powsaf-stack {
}
.powsaf-stack .inner-block {
  background-color: navy;
  color: #fff;
  font-size: 20pt;
  text-align: center;
}
.powsaf-stack .inner-block div {
  padding: 1em 0;

}

.powsaf-annotate input,
.powsaf-annotate select {
  display: none;
  width: 100%;
}
.powsaf-annotate a[rel=update] {
  display: block;
  visibility: hidden;
}
.powsaf-annotate:hover a[rel=update] {
  visibility: visible;
}

.powsaf-annotate span {
  display: flex;
  flex-direction: row;
}
.powsaf-annotate.email span {
  flex-direction: column-reverse;
}
.powsaf-annotate[data-value=""][data-override=""] span::before {
  background-color: purple;
  color: #fff;
  padding: 4pt 8pt;
  font-weight: bold;
  content: 'unknown';
}
.powsaf-annotate[data-value=""] span del::before {
  content: 'unknown';
}
.powsaf-annotate ins,
.powsaf-annotate del {
  text-decoration: none;
  display: block;
  margin: 4pt;
}
.powsaf-annotate ins {
  font-weight: bold;
  color: darkgreen;
}
.powsaf-annotate del {
  color: #999;
  font-style: italic;
  text-decoration: line-through;
}


.powsaf-wall-management tr th:nth-child(1) { width: 28%; }
.powsaf-wall-management tr th:nth-child(2),
.powsaf-wall-management tr th:nth-child(3),
.powsaf-wall-management tr th:nth-child(4),
.powsaf-wall-management tr th:nth-child(5),
.powsaf-wall-management tr th:nth-child(6),
.powsaf-wall-management tr th:nth-child(7),
.powsaf-wall-management tr th:nth-child(8) { width: 8%; }

.powsaf-wall-management thead tr:nth-child(1) th {
  font-weight: bold;
  border-bottom-width: 0;
}
.powsaf-wall-management tr th[colspan],
.powsaf-wall-management tr th:nth-child(4), .powsaf-wall-management tr td:nth-child(4),
.powsaf-wall-management tr th:nth-child(5), .powsaf-wall-management tr td:nth-child(5),
.powsaf-wall-management tr th:nth-child(6), .powsaf-wall-management tr td:nth-child(6),
.powsaf-wall-management tr th:nth-child(7), .powsaf-wall-management tr td:nth-child(7),
.powsaf-wall-management tr th:nth-child(8), .powsaf-wall-management tr td:nth-child(8)
{ text-align: center; }

.powsaf-wall-management tr th[colspan],
.powsaf-wall-management tr th:not([colspan]):nth-child(3), .powsaf-wall-management tr td:nth-child(3),
.powsaf-wall-management tr th:not([colspan]):nth-child(6), .powsaf-wall-management tr td:nth-child(6) {
  border-right: 1px solid #ccc;
}


.powsaf-shortcode-example.grid-1x4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  align-items: end;
  text-align: center;
  grid-gap: 1em;
}

form.powsaf-form div {
  display: flex;
  flex-direction: column;
  padding: 0.5em 0;
  max-width: 700px;
}
form.powsaf-form div.buttons {
  display: block;
}
form.powsaf-form.member-update div {
  max-width: 25em;
}

.powsaf-scroller {
  display: flex;
  flex-direction: row;
  position: relative;
  overflow: hidden;
}
.powsaf-scroller .inner {
  display: flex;
  flex-direction: row;
  white-space: pre;
  word-break: keep-all;
}
.powsaf-scroller .inner span {
  margin: 0 1em 0 0;
  white-space: pre;
  word-break: keep-all;
}
.powsaf-scroller .inner {
  /*animation: scroller 90s linear infinite;*/
}
@keyframes scroller {
  0% { transform: translateX(0%); }
  100% { transform: translateX(-100%); }
}
.powsaf-bar-container {
  background-color: #59A2AA;
  color: #fff;
    margin-bottom: 10px;
    overflow: hidden;
    position: relative;
    display: block;
}
.powsaf-bar-container .number {
  padding: 0 10px;
  white-space: pre;
  font-weight: bold;
}
.powsaf-bar-container .amount,
.powsaf-bar-container .overlay {
  padding: 12px 0;
  display: inline-block;
  text-align: right;
}
.powsaf-bar-container .amount {
  background-color: #D7C4AB;
  z-index: 2;
  overflow: hidden;
  display: block;
  position: relative;
}
.powsaf-bar-container .overlay {
  color: #D7C4AB;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
}


svg .grid line {
  stroke: lightgrey;
  stroke-opacity: 0.7;
  shape-rendering: crispEdges;
}

[data-show][rel^=powsaf-show-] { cursor: help; }
.debuggable { display: none; }
.debuggable.visible { display: block; }
tr.debuggable.visible { display: table-row; }
th.debuggable.visible { display: table-cell; }
td.debuggable.visible { display: table-cell; }


.invalid-txn .amount { text-decoration: line-through; color: #8008; font-style: italic; }
.valid-txn .amount { color: #080; }

.settings-donor-tiers tbody th {
  text-align: right;
}
.settings-donor-tiers thead th:nth-child(2),
.settings-donor-tiers thead th:nth-child(3),
.settings-donor-tiers thead th:nth-child(4),
.settings-donor-tiers tbody td:nth-child(2) input,
.settings-donor-tiers tbody td:nth-child(3) input,
.settings-donor-tiers tbody td:nth-child(4) input {
  width: 6em;
}
.settings-donor-tiers thead th:nth-child(5),
.settings-donor-tiers tbody td:nth-child(5) input {
  text-align: left;
  width: 100%;
}
.settings-donor-tiers tbody td:nth-child(2) input,
.settings-donor-tiers tbody td:nth-child(3) input,
.settings-donor-tiers tbody td:nth-child(4) input {
  text-align: right;
}
.settings-donor-tiers td em {
  display: block;
  text-align: center;
}
