html {
    font-size: 14px;
    background-color: #369;
    line-height: 1.4;
}

html, .pure-g [class *= "pure-u"] {
    font-family: 'Liberation Sans', 'Droid sans', 'Verdana', sans-serif !important;
}

body > nav,
main {
    max-width: 1200px;
    margin: auto;
}

#mainnav .pure-menu-link {
    color: #ccc;
}

#mainnav .pure-menu-link:hover,
#mainnav .pure-menu-link:focus {
    background-color: #246;
}
#mainnav .pure-menu-selected {
    background-color: #2a557f;
}

.shadow {
    box-shadow: 0.2em 0.2em 0.6em 0 #036;
    margin: 0.5em;
    padding: 0.5em;
    background-color: #fff;
}

.shadow header {
    margin: -0.5em -0.5em 1em;
    background-color: #eee;
    border-bottom: 1px solid #ccc;
    padding: 0.5em 0.5em;
}
.shadow header span {
    float: right;
    margin-top: -2em;
    padding: 0.1em;
}
.shadow header span a {
    padding: 0.3em 0.4em;
    background-color: #258;
}
.shadow header h1 {
    margin: 0;
    padding: 0;
    color: #258;
    font-size: 1.5em;
    font-weight: bold;
}
.shadow header h2 {
    margin: 0;
    padding: 0;
    color: #258;
    font-size: 1.2em;
    font-weight: bold;
}

.flash-notice {
    margin: 0.5em;
    padding: 0.5em;
    border: 2px solid rgb(28, 184, 65);
    background-color: #ddffe5;
}

.pure-table {
    width: 100%;
    margin-bottom: 1em;
}
.pure-table th, .pure-table td {
    padding: 0.25em;
}

.pure-table thead {
    /*background-color: cornflowerblue;*/
}

.pure-table tbody tr.header td {
    background-color: #eee;
}

.pure-table .amount {
    text-align: right;
}

.amount.negative {
    color: #900;
}
.amount.positive {
    color: #090;
}

.pure-menu-heading {
    font-weight: bold;
    text-transform: none;
}
.pure-menu-item {
    height: auto;
}
.pure-form-aligned .pure-control-checkbox {
    margin: 0 1em 0.5em 11em;
}
.pure-form input[type=text] {
    max-width: 90%;
}

.pure-form select:focus:invalid {
    color: inherit;
}
.pure-button.pure-button-submit {
    background-color: #48c;
    color: #fff;
}
.pure-button.pure-button-danger {
    background-color: #c44;
    color: #fff;
}
.pure-button.pure-button-warning {
    background-color: #e92;
    color: #fff;
}
.pure-button.pure-button-success {
    background-color: #5b5;
    color: #fff;
}

ul.prevnext {
    margin: 0;
    padding: 0;
    height: 2em;
    list-style: none;
}
ul.prevnext li.prev {
    float: left;
}
ul.prevnext li.next {
    float: right;
}

/** FINANCE **/
.finance-cat {
    padding-left: 1em;
    margin-right: 0.25em;
}
.graph-bar {
    background-color: #9cf;
    display: block;
    overflow: visible;
    white-space: nowrap;
}
th.percentage-bar {
    width: 90%;
}
/** END FINANCE **/

/** ENERGY **/
section.meter-detail {
    float: left;
}

section.meter-detail canvas {
    width: 300px;
    height: 300px;
}
/** END ENERGY **/

/** HORSE **/
table.horse-calendar th {
    width: 14%;
    text-align: center;
}
table.horse-calendar td {
    vertical-align: top;
}
table.horse-calendar {
    font-size: 85.7%;
}
/** END HORSE **/

table.full-width-last-column th,
table.full-width-last-column td {
    white-space: nowrap;
}
table.full-width-last-column th:last-child,
table.full-width-last-column td:last-child {
    width: 100%;
}

@media only screen and (max-width : 480px) {
    .pure-form-aligned .pure-control-checkbox {
        margin-bottom: 0.3em;
        margin-left: 0;
        text-align: left;
        display: block;
        width: 100%;
    }
}

.show-small {
    display: none;
}
@media only screen and (max-width : 480px) {
    .hide-small {
        display: none;
    }
    .show-small {
        display: inline;
    }
}

/* Debug info */
div.timer {
    margin: 16px auto;
    max-width: 1200px;
    background-color: #ccc;
}

div.timer td, div.timer th {
    vertical-align: top;
    border-bottom: 1px solid #999;
    padding: 3px 5px;
    text-align: left;
}
div.timer td:first-child, div.timer th:first-child {
    text-align: right;
}
