/* RESET */
* {
    margin: 0;
    padding: 0;
    font-size: 1em;
    font-weight: normal;
}

/* top level defs */
html {
    --primary-fg: #000;
    --primary-bg: #EFF1F3;
    font-size: 0.75em;
    /* 12px base size */
    scroll-padding-top: 4rem;
}

.debug,
.debug * {
    border: 1px solid red;
}

html {
    background-color: var(--primary-bg);
    color: var(--primary-fg);
}

/* Typography */
:root {
    font-family: 'Inter', sans-serif;
}

@supports (font-variation-settings: normal) {
    :root {
        font-family: 'Inter var', sans-serif;
    }
}

* {
    font-family: 'Inter var';
}

/* Generic headers and typographic spacings etc */
h1,
h2,
h3,
h4,
h5,
h6 {
    margin-bottom: 1em;
}

h1 {
    font-size: 1.8em;
    font-weight: 300;
}

h2 {
    font-size: 1.6em;
    font-weight: 300;
}

h2 {
    font-size: 1.2em;
    font-weight: 300;
}


ul {
    margin-left: 1.5em;
}

ul,
p {
    margin-bottom: 1em;
}

a {
    color: var(--primary-fg);
}


/* Common elements */
button {
    border-radius: .2em;
    padding: .2em;
}

form {}

/* Index-tables */
table.index th,
table.index td {
    padding: .2em .4em;
}

table.index {
    width: 100%;
    border-collapse: collapse;
}

table.index thead th:first-child {
    width: 1em;
}

table.index thead th:last-child {
    width: 1em;
}

table.index thead {
    border-bottom: 1px solid black;
}

table.index form {
    display: inline;
}

table.index tbody tr {
    border-bottom: 1px solid #0004;
}

table.index th {
    font-weight: bold;
    background: #CFE0EA;
    position: sticky;
    top: 0;
    z-index: 2;
}


/* utils */


/* layout */
.container {
    width: 100%;
}

header {}

.site-title {
    font-size: 2em;
    font-weight: 200;
    letter-spacing: -.04em;
}

.site-title img {
    max-width: 100%;
}

.content {}

footer {}

header nav {
    float: right;
}

/* Components */
.panel {
    position: relative;
    background: #CFE0EA;
    padding: .5em;
    padding-top: 3.5em;
    width: 100%;
    box-sizing: border-box;
    margin-bottom: 1em;
    box-shadow: 1em 1em 1em -1.5em rgba(0, 0, 0, 0.75);
}

.panel h2 {
    background: white;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2.5em;
    padding: .5em;
    box-sizing: border-box;
    border-bottom: 1px solid #CFE0EA;
}

.panel.critical h2 {
    background: rgb(125, 33, 33);
    color: white;
}



/* Main layout */
@media screen and (min-width: 720px) {
    .admin-grid {
        display: grid;
        grid-template-columns: minmax(14em, 15%) minmax(calc(100vw - 24em), 85%);
        grid-template-rows: 6em auto;
        min-height: 100vh;
    }
}

.admin-grid>* {
    padding: 1em;
}

.navside {
    --primary-fg: #ddd;
    --primary-bg: #223843;
    background: var(--primary-bg);
    color: var(--primary-fg);
    box-shadow: inset -1em 0 1em -1em black;
}

.contentside {
    background: #EFF1F3;
    /* box-shadow: inset 1em 0 1em -1em black; */
}



nav.list-nav {}

nav.list-nav ul {
    list-style: none;
}

nav.list-nav ul li {}

nav.list-nav a {
    text-decoration: none;
}

nav.list-nav a:hover {
    text-decoration: underline;
}

.form-row {
    margin-bottom: 1em;
    width: 100%;
    clear: both;
}

.form-row label {
    float: left;
    width: 12em;
}

/* .form-actions { text-align: right;} */



.nobreak {
    white-space: nowrap;
}



.grid-2x {
    display: grid;
    grid-template-columns: 50% 50%;
}

.grid-2x-auto {
    display: grid;
    grid-template-columns: auto auto;
}

label.inline {
    display: inline;
    float: none;
}

.hidden {
    display: none;
}

.fixed-head {
    height: 30em;
    overflow: auto;
}



:target {
    background-color: #ffa;
}


@media print {

    html,
    body,
    .contentside {
        background: none;
    }

    h1 {
        display: none;
    }

    .navside {
        display: none;
    }

    .noprint { display: none;}
}

.statement-overview {
    --fg-focus: #494C90;
    width: 19cm;
    background: white;
    box-sizing: border-box;
    padding: 1em 1.5em;
}

.statement-overview .statement-header {
    width: 100%;
    float: left;
    clear: both;
    margin-bottom: 4em;
}

.statement-overview h2 {
    margin-bottom: 2em;
}

.statement-overview .notice {
    background: #F5F5F5;
    border: 1px solid #b0b0b0;
    padding: 2em;
    border-radius: .5em;
    margin-bottom: 4em;
}

.statement-overview .statement-header .label-address {
    float: left;
    width: 60%;
}

.statement-overview .statement-header .summary {
    float: right;
    padding: 1em;
    width: 35%;

    border: 2px solid #F5F5F5;
    line-height: 1.5em;
}

.statement-overview .statement-header img.logo {
    width: 240px;
}

.statement-overview .label-address {
    white-space: pre-line;
}

.statement-overview h2 {
    color: var(--fg-focus);
}

.statement-overview table.horizontal {}

.statement-overview table.horizontal th {
    text-align: left;
    color: var(--fg-focus);
    width: 45%;
}

.statement-overview table.revenue {
    width: 100%;
    border-collapse: collapse;
    line-height: 3em;
    text-indent: 1em;
}

.statement-overview h3 {
    background: #494C8F;
    color: white;
    line-height: 3em;
    text-indent: 1em;
    margin-bottom: 0;
}

.statement-overview table.revenue thead {
    border-bottom: 1px solid #494C8F;
}

.statement-overview table.revenue {}

.statement-overview table.revenue tbody tr:nth-child(odd) {
    background: #F5F5F5;
}

.statement-overview table.revenue .section-sum {
    border-top: 1px solid black;
}

.statement-overview .footnote {
    color: #555;
    font-style: italic;
}

.inline {
    display: inline;
}

.disabled {
    cursor: not-allowed;
    pointer-events: none;
    color: #666;
}

/* Prevent table foot to show on every print page */
@media print {
    .statement-overview tfoot {
        display: table-row-group;
    }
}