@import url('https://fonts.googleapis.com/css?family=Crimson+Text');

html, body {
   font-family: 'Crimson Text', serif;
   font-size: 11pt;
}

#capital h2:first-child, #rates>h2:first-child {
   margin-top: 0;
}

#capital div.cap {
   background-color: #FFC;
   border: 1px solid #000;
   border-radius: 4px;
   display: inline-block;
   font-size: 14pt;
   font-weight: bold;
   padding: 18px 0 21px;
   position: relative;
   text-align: center;
   width: 175px;
}

#capital div.cap p {
   bottom: 2px;
   color: #000;
   font-size: 8pt;
   left: 0;
   margin: 0;
   position: absolute;
   right: 0;
}

#capital div.cap.pos {
   color: #0F7014;
}

#capital div.cap.neg {
   color: #A60A12;
}

#capital div.cap ul.details {
   background-color: inherit;
   border: 1px solid #000;
   border-radius: 0 0 4px 4px;
   color: #000;
   display: none;
   font-size: 10pt;
   font-weight: normal;
   left: -1px;
   list-style-type: none;
   margin: 0;
   padding: 0 2px 1px;
   position: absolute;
   right: -1px;
   text-align: left;
   top: 65px;
}

#capital div.cap:hover {
   border-radius: 4px 4px 0 0;
}

#capital div.cap:hover ul.details {
   display: block;
}

#capital div.cap ul.details li {
   position: relative;
}

#capital div.cap ul.details li span {
   position: absolute;
   right: 0;
}

#rates {
   border: 1px solid #000;
   border-style: none none solid solid;
   max-height: 100%;
   overflow-y: auto;
   padding: 0 2px 2px 2px;
   position: fixed;
   right: 0;
   top: 0;
}

#marketplaces>input {
   margin: 1px 0 0 0;
   position: relative;
   z-index: 1;
}

#marketplaces>input+label {
   margin: 0 2px 0 -18px;
   padding: 3px 3px 2px 18px;
}

#marketplaces>table {
   margin-top: 5px;
}

table {
   border-spacing: 0;
}

table#trades, #synchronize table {
   width: 100%;
}

table tr:hover {
   background-color: #DDD;
}

table#trades tr:target {
   background-color: #9CF;
}

tbody th:first-child {
   padding: 2px;
}

#trades {
   margin-left: 15px;
}

#trades.disabled tbody tr {
   color: #AAA;
}

#trades.disabled tbody tr.uptoEnd, #trades.disabled tbody tr.uptoEnd ~ tr {
   color: #000;
}

#trades.disabled tbody tr.uptoStart ~ tr {
   color: #AAA;
}

#trades.disabled.select tbody tr.uptoStart ~ tr th:first-child>a {
   display: none;
}

#trades tbody th:first-child {
   position: relative;
}

#trades tbody th:first-child>a {
   cursor: pointer;
   display: block;
   font-size: 22pt;
   font-weight: normal;
   height: 24px;
   left: -17px;
   line-height: 20pt;
   position: absolute;
   text-decoration: none;
   top: 0;
   width: 17px;
}

#trades tbody th:first-child>a:hover, #trades tbody th:first-child>a:focus {
   color: #00F;
}

#trades tbody th:first-child+th, #rates tbody th:first-child+th+td {
   position: relative;
   text-align: right;
}

span.price {
   display: inline-block;
}

span.price.frac {
   text-align: left;
   width: 60px;
}

span.price.curr {
   min-width: 28px;
}

div.fee {
   background-color: #DDD;
   border: 1px solid #000;
   border-radius: 0 7px 7px 0;
   display: none;
   padding: 1px 4px 2px;
   position: absolute;
   text-align: center;
   right: 100%;
   top: -7px;
   width: 115px;
   z-index: 1;
}

div.fee::before {
   content: "Fee";
   display: block;
   font-size: 8pt;
}

div.fee::after {
   border-right: 2px solid #DDD;
   bottom: 8px;
   content: "";
   position: absolute;
   right: -1px;
   top: 6px;
}

th:hover div.fee {
   display: block;
}

a.followup {
   text-decoration: none;
   color: #00F;
}

#synchronize>input[type="checkbox"],
#synchronize>input[type="checkbox"]:not(:checked)+h2+form {
   display: none;
}

#synchronize>h2>label {
   cursor: pointer;
   display: block;
   position: relative;
}

#synchronize>h2>label:hover {
   background-color: #DDD;
}

#synchronize>input[type="checkbox"]:not(:checked)+h2>label::after {
   content: "\25bc";
   position: absolute;
   right: 0;
   top: 0;
}

#synchronize>input[type="checkbox"]:checked+h2>label::after {
   content: "\25b2";
   position: absolute;
   right: 0;
   top: 0;
}

#synchronize input[type="text"], #synchronize textarea {
   border: 1px solid #999;
   display: block;
   margin: 2px 0 0 0;
   padding: 0;
   resize: none;
   width: 100%;
}

#overlay {
   background: transparent url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAADUlEQVQI12NgYGDwBwAAVABQ3SxJWwAAAABJRU5ErkJggg==') repeat scroll 0 0;
   bottom: 0;
   display: none;
   left: 0;
   position: fixed;
   right: 0;
   top: 0;
   z-index: 100;
}

#overlay.show {
   display: block;
}

#overlayContent {
   background-color: #FFF;
   border: 1px solid #777;
   border-radius: 9px;
   left: 50%;
   height: 400px;
   margin: -200px 0 0 -250px;
   overflow: auto;
   padding: 4px;
   position: absolute;
   top: 50%;
   width: 500px;
}

#overlayContent>:first-child {
   margin-top: 0;
}