/*
 * Copyright (c) Maximilian Köstler
 * 3-clause BSD license
 * https://license.koestler.hamburg
 */

html, body, div, span, h1, h2, h3, h4, h5, h6, p, a, i, img, ol, ul, li, form, label, table, tbody, tfoot, thead, tr, th, td, canvas, footer, header, nav {
    border: 0;
    font-size: 100%;
    margin: 0;
    outline: 0 none;
    padding: 0;
    vertical-align: baseline;
}

main, footer, header, nav {
    display: block;
}

html {
    overflow-y: scroll; /* prevent jumping when switching between pages of different length */
}

body {
    background: linear-gradient(#03BCC0, #02C18D);
    background-attachment: fixed;
    color: #333;
    font-family: 'Roboto', 'Segoe UI', sans-serif;
    font-size: 1em;
    line-height: 1.45;
}

input, select, textarea, button {
    font-family: inherit;
    font-size: inherit;
}

a, a:visited {
    color: inherit;
    text-decoration: inherit;
}

.centered {
    margin-left: auto;
    margin-right: auto;
    max-width: 960px;
}

.content-row {
    background-color: #FFF;
    background-color: rgba(255, 255, 255, 0.9);
    border: 1px solid #DDD;
    border-radius: 5px;
    float: left;
    margin-top: 30px;
    min-width: 300px;
    width: calc(100% - 2px); /* subtracting border width */
}

.content-row > .content-row__heading {
    background-color: #F8F8F8;
    font-size: 1.17em;
    padding: 1rem;
}

.content-row > .content-row__heading--error {
    background-color: #FFC8C8;
}

.content-row > div {
    padding: 1rem;
}

input {
    background: none;
    border-bottom: solid 1px #049DDD;
    border-left: none;
    border-right: none;
    border-top: none;
    padding: .1rem 0;
}

input[type='submit'] {
    background-color: inherit;
}

.form-input {
    margin: 0 0 .5em;
}

.form-input--padded {
    margin-top: 1em;
}

.form-input > label {
    font-weight: 800;
}

.form-input > .error {
    color: red;
    font-weight: 400;
    margin-left: 2rem;
}

form {
    margin-bottom: 1em;
    margin-top: 1em;
}

td > .form-input > input[type=text] {
    width: 100%;
}

header, footer {
    background-color: #222;
}

.navigation-row {
    align-content: center;
    align-items: center;
    display: flex;
    flex-flow: row nowrap;
    height: 52px;
    justify-content: space-between;
    margin-left: auto;
    margin-right: auto;
    max-width: none;
    overflow: hidden;
    padding-left: 20px;
    padding-right: 20px;
    position: relative;
    width: auto;
}

.navigation-list {
    list-style: none;
}

a, a:visited, a:hover {
    color: inherit;
    text-decoration: underline;
}

@media (min-width: 1000px) {
    .navigation-top {
        align-content: center;
        align-items: stretch;
        display: flex;
        flex-flow: row nowrap;
        justify-content: space-between;
        left: 20px;
        position: absolute;
        top: 0;
        width: calc(100% - 40px);
    }

    .navigation-primary {
        text-align: center;
        width: 100%;
    }

    .navigation-list {
        align-content: center;
        align-items: center;
        display: flex;
        flex-flow: row nowrap;
        height: 52px;
        justify-content: center;
    }

    .navigation-list > li > a {
        color: #FFF;
    }

    .navigation-list > li > .active, .navigation-list > li > a:hover {
        color: #AAA;
        color: rgba(255, 255, 255, 0.7);
    }
}

@media (max-width: 999px) {
    .navigation-top {
        background-color: #FFF;
        clear: both;
        display: block;
        height: 100vh;
        min-width: 160px;
        padding-right: 0;
        position: fixed;
        right: -200%;
        top: 0;
        transform: translateZ(0);
        transition: right 300ms ease-in-out;
        width: 50%;
        z-index: 1500;
    }

    .navigation-top::before {
        content: '';
        display: block;
        height: 32px;
    }

    .navigation-list {
        font-size: 13px;
        line-height: 18px;
    }

    .navigation-list > li > a {
        border-bottom: 1px solid #DDD;
        color: #222;
        font-size: 13px;
        margin: 0 20px;
        padding: 20px 10px;
    }

    .navigation-list > li > .active, .navigation-list > li > a:hover {
        color: #222;
        font-weight: 800;
    }

    input[id='navigation-top-trigger']:checked ~ .navigation-top {
        right: 0;
    }

    .navigation-state-bars, .navigation-state-bars::before, .navigation-state-bars::after {
        background-color: #FFF;
    }

    input[id='navigation-top-trigger']:checked ~ label[for='navigation-top-trigger'] .navigation-state-bars {
        background-color: transparent;
    }

    input[id='navigation-top-trigger']:checked ~ label[for='navigation-top-trigger'] .navigation-state-bars::before, input[id='navigation-top-trigger']:checked ~ label[for='navigation-top-trigger'] .navigation-state-bars::after {
        animation: fade-transition ease-in-out, 300ms;
        animation-iteration-count: 1;
        background-color: #222;
        top: 0;
        transform-origin: 50% 50%;
    }

    input[id='navigation-top-trigger']:checked ~ label[for='navigation-top-trigger'] .navigation-state-bars::before {
        transform: rotate(45deg);
    }

    input[id='navigation-top-trigger']:checked ~ label[for='navigation-top-trigger'] .navigation-state-bars::after {
        transform: rotate(-45deg);
    }
}

.navigation-list > li > a {
    cursor: pointer;
    display: block;
    font-weight: 400;
    height: 100%;
    line-height: 1.25;
    margin: 0 20px;
    overflow: hidden;
    text-decoration: none;
    text-overflow: ellipsis;
    white-space: nowrap;
}

label[for='navigation-top-trigger'] {
    align-items: center;
    cursor: pointer;
    display: flex;
    height: 30px;
    justify-content: center;
    order: 2;
    width: 30px;
    z-index: 1550;
}

.navigation-state-icon {
    display: block;
    height: 18px;
    opacity: 1;
    position: relative;
    width: 18px;
}

.navigation-state-bars {
    text-indent: 2000px;
    top: 38%;
}

.navigation-state-bars::before {
    top: -5px;
}

.navigation-state-bars::after {
    top: 5px;
}

.navigation-state-bars, .navigation-state-bars::before, .navigation-state-bars::after {
    content: '';
    display: block;
    height: 2px;
    left: 0;
    position: absolute;
    transition: all 300ms ease-in-out;
    width: 100%;
    z-index: 10;
}

.page-number {
    width: 2rem;
}

.navigation-icon {
    height: 1.8rem;
    margin-left: .5rem;
}

.note {
    font-style: italic;
}

.list {
    border-collapse: collapse;
    float: left;
    margin-top: 30px;
    width: 100%;
}

.list th {
    background-color: #fafafa;
    border-bottom: 0;
    font-weight: 800;
}

.list td {
    background-color: #fff;
    background-color: rgba(255, 255, 255, 0.9);
}

.list tr {
    border-bottom: 1px solid #e0e0e0;
    border-top: 1px solid #e0e0e0;
    line-height: 21px;
}

.list th, .list td {
    padding: 10px 16px;
    text-align: left;
}

.inline-list {
    border-collapse: collapse;
    width: 100%;
}

input[type='submit'] {
    background-color: #80e2d2;
    background-color: rgba(2, 190, 156, 0.3);
    border-bottom: solid 1px #049DDD;
    border-left: solid 1px #049DDD;
    border-radius: 2px;
    border-right: solid 1px #049DDD;
    border-top: solid 1px #049DDD;
    cursor: pointer;
    padding: .2rem .5rem;
}

.amount--positive {
    color: inherit;
}

.amount--negative {
    color: red;
}

.list__row--total td {
    background-color: #FAFAFA;
    border-bottom: 0;
}

table .limited {
    max-width: 300px;
    word-wrap: break-word;
}

a > img.small {
    height: 1rem;
}

.inline {
    display: inline;
}

.center {
    text-align: center!important;
}

img.arrow {
    padding: 0 6px;
}

.content-row div.handle {
    padding: .5rem 1rem;
}

.content-row div.fold {
    box-sizing: border-box; /* csslint allow: box-sizing*/
    display: none;
    float: left;
    padding: 1rem 1rem .5rem;
    width: 100%;
}

.dense {
    margin-top: 10px;
}

select {
    appearance: none;
    -moz-appearance: none;
    -webkit-appearance: none;
    background-color: #fff;
    background-image: url(/img/select-arrow.png);
    background-position: right;
    background-repeat: no-repeat;
    border: 1px solid #bbb;
    border-radius: 0;
    box-shadow: 0 2px 1px 0 rgba(0, 0, 0, 0.2);
    box-sizing: border-box; /* csslint allow: box-sizing*/
    font-size: 1em;
    min-width: 80px;
    padding: .5rem .5rem .5rem 1rem;
    width: 100%;
}

select.plain {
    background-image: none;
}

select:hover {
    box-shadow: 0 1px 1px 0 rgba(0, 0, 0, 0.1);
}

div.justify {
    text-align: justify;
}

.url {
    font-family: 'Courier New', Courier, monospace;
}

.left-floating {
    float: left;
}

.right-floating {
    float: right;
}

input.number {
    width: 2rem!important;
}

a.disabled {
    color: #666;
    cursor: default;
    text-decoration: none;
}

a.breadcrumb::before {
    content: "▶";
    display: inline-block;
    margin-right: .5rem;
}

a.breadcrumb {
    margin-left: 1rem;
}

.wide {
    width: 100%;
}

table .text-right, table td.amount, table th.amount {
    text-align: right;
}

form.background-submit, .no-margin {
    margin: 0;
}

a {
    cursor: pointer;
}

.navigation-state, .hidden, a.breadcrumb-category-1, a.breadcrumb-category-2 {
    display: none;
}

@media (max-width: 1399px) {
    .wide {
        overflow-x: auto;
    }
}

.filter-container {
    box-sizing: border-box; /* csslint allow: box-sizing*/
}

.content-row ul, .content-row ol {
    padding: inherit;
}

.warning {
    color: red;
    font-weight: bold;
}
