body {
  margin: 0;
  padding: 12px;
  background: #c0c0c0;
  color: #000;
  font-family: "MS Sans Serif", Tahoma, Verdana, Arial, sans-serif;
  font-size: 12px;
}

.page {
  width: 96%;
  max-width: 1600px;
  background: #ffffff;
  border: 2px solid #000080;
}

.titlebar {
  background: #000080;
  color: #ffffff;
  font-weight: bold;
  padding: 6px 8px;
  font-size: 13px;
}

.panel {
  padding: 10px 12px;
  background: #ffffff;
  border-top: 1px solid #808080;
}

.warn {
  background: #ffffcc;
  border: 2px solid #cc0000;
  color: #660000;
  padding: 8px 10px;
  margin: 0;
  font-size: 13px;
}

fieldset {
  border: 1px solid #808080;
  margin: 0 0 12px 0;
  padding: 10px 12px;
}

legend {
  font-weight: bold;
  color: #000080;
  padding: 0 4px;
}

textarea.wide {
  width: 99%;
  box-sizing: border-box;
  font-family: "Courier New", Courier, monospace;
  font-size: 12px;
  border: 1px solid #808080;
  background: #fffff0;
  padding: 6px;
  line-height: 1.35;
}

input[type="text"],
input[type="password"],
input[type="date"],
input[type="time"],
select.picker {
  font-family: "MS Sans Serif", Tahoma, Arial, sans-serif;
  font-size: 12px;
  border: 1px solid #808080;
  padding: 3px 6px;
  background: #ffffff;
}

input.picker,
select.picker {
  min-height: 26px;
}

.range-table td {
  vertical-align: middle;
}

.hint {
  margin-left: 10px;
  color: #444;
}

.ex-table td {
  vertical-align: top;
}

.ex-table textarea.wide {
  min-height: 90px;
}

button {
  font-family: "MS Sans Serif", Tahoma, Arial, sans-serif;
  font-size: 12px;
  padding: 4px 12px;
  margin: 2px 4px 2px 0;
  border: 1px solid #000;
  background: #e0e0e0;
  cursor: pointer;
}

button.go {
  background: #d0e0ff;
  font-weight: bold;
}

button:active {
  background: #b0b0b0;
}

.note {
  background: #ffff99;
  border: 1px solid #999900;
  padding: 8px;
  margin: 4px 0 10px 0;
  line-height: 1.4;
}

.msg {
  margin-left: 8px;
  color: #003399;
}

.msg.err {
  color: #cc0000;
}

.msg.ok {
  color: #006600;
}

code {
  background: #eeeeee;
  border: 1px solid #cccccc;
  padding: 0 3px;
  font-family: "Courier New", Courier, monospace;
}

.pbar {
  border: 2px inset #808080;
  height: 22px;
  background: #ffffff;
  margin: 6px 0;
}

.pbar-fill {
  background: #0000aa;
  height: 18px;
  font-size: 1px;
  line-height: 1px;
}

.pbar-empty {
  background: #ffffff;
  height: 18px;
  font-size: 1px;
  line-height: 1px;
}

#phase-line {
  font-weight: bold;
}

.detail {
  color: #333333;
  margin: 2px 0 4px 0;
}

#overlay {
  position: fixed;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: #000000;
  filter: alpha(opacity=50);
  opacity: 0.5;
  z-index: 100;
}

#popup {
  position: fixed;
  left: 3%;
  top: 3%;
  width: 94%;
  height: 92%;
  background: #ffffff;
  border: 3px solid #000080;
  z-index: 101;
  overflow: hidden;
}

.report-wrap {
  height: 88%;
  overflow: auto;
  max-height: calc(92vh - 40px);
}

/* Report */
.report-summary {
  background: #e8e8ff;
  border: 1px solid #000080;
  padding: 8px;
  margin-bottom: 12px;
}

.batch-block {
  border: 2px solid #808080;
  margin-bottom: 16px;
  background: #fafafa;
}

.batch-head {
  background: #000080;
  color: #fff;
  padding: 6px 8px;
  font-weight: bold;
}

.batch-meta {
  padding: 8px;
  background: #f0f0f0;
  border-bottom: 1px solid #808080;
}

.winner-box {
  margin: 8px;
  padding: 8px;
  border: 3px solid #006600;
  background: #e8ffe8;
}

.winner-box h3 {
  margin: 0 0 6px 0;
  color: #006600;
  font-size: 13px;
}

.winner-tweet {
  font-family: "Courier New", Courier, monospace;
  white-space: pre-wrap;
  background: #fff;
  border: 1px solid #808080;
  padding: 6px;
  margin-top: 6px;
}

.section-title {
  margin: 10px 8px 4px 8px;
  font-weight: bold;
  color: #000080;
}

.moodys-table {
  width: 98%;
  margin: 0 8px 12px 8px;
  border-collapse: collapse;
  font-size: 11px;
}

.moodys-table th {
  background: #d0d0d0;
  border: 1px solid #808080;
  padding: 4px 5px;
  text-align: left;
}

.moodys-table td {
  border: 1px solid #a0a0a0;
  padding: 3px 5px;
  vertical-align: top;
}

.moodys-table tr.row-llm {
  background: #ffff99;
}

.moodys-table tr.row-picked {
  background: #90ee90;
  font-weight: bold;
}

.moodys-table tr.row-other {
  background: #ffffff;
  color: #444;
}

.drafts-block {
  margin: 8px;
  padding: 6px;
  border: 1px solid #808080;
  background: #fffff0;
}

.draft-item {
  margin-bottom: 8px;
  padding-bottom: 6px;
  border-bottom: 1px dotted #808080;
  font-family: "Courier New", Courier, monospace;
  white-space: pre-wrap;
}

.draft-item.draft-winner {
  background: #e8ffe8;
  border: 1px solid #006600;
  padding: 6px;
}
