html {
    font-family: sans-serif;
    background: #eee;
}
body {
    margin: 0 auto;
    background: white;
}
h1 {
    font-family: serif;
    color: #377ba8;
    margin: 1rem 0;
}
a { color: #377ba8; }
hr { border: none; border-top: 1px solid lightgray; }

nav {
    background: lightgray;
    display: flex;
    align-items: center;
    padding: 0 0.5rem;
    position: fixed;
    width: 100%;
    height: 2.6em;
    border-bottom: 1px solid black;
    z-index: 10;
}
nav h1 { flex: auto; margin: 0; }
nav h1 a { text-decoration: none; padding: 0.25rem 0.5rem; }
nav ul  { display: flex; list-style: none; margin: 0; padding: 0; }
nav ul li a, nav ul li span, header .action { display: block; padding: 0.5rem; }

actionbar {
    background: lightgray;
    display: flex;
    padding-top: 3em;
    width: 100%;
    position: fixed;
    height: 2em;
    z-index: 2;
    padding-left: 1em;
}

.content {
    padding: 5em 1rem 1rem;
}
.content > header { border-bottom: 1px solid lightgray; display: flex; align-items: flex-end; }
.content > header h1 { flex: auto; margin: 1rem 0 0.25rem 0; }

.flash {
    margin: 1em 0;
    padding: 1em;
    background: #cae6f6;
    border: 1px solid #377ba8;
}

th {
    text-align: left;
    border-bottom: 1px solid #000;
}

.chip {
    display: inline-block;
    padding: 0 0.7em;
    height: 1.5em;
    font-size: 1em;
    line-height: 1.5em;
    border-radius: 0.75em;
    background-color: #e6e6e6;
}

.warnchip {
    display: inline-block;
    padding: 0 0.7em;
    height: 1.5em;
    font-size: 1em;
    line-height: 1.5em;
    border-radius: 0.75em 0 0 0.75em;
    background-color: gold;
    width: 100%;
}

.chip {
  display: inline-block;
  padding: 0 6px;
  border-radius: 12px;
  font-size: 0.85em;
  line-height: 1.6;
  margin-left: 4px;
}

.chip-diff {
  display: inline-block;
  padding: 2px 6px;
  margin: 2px 0;
  font-size: 0.85em;
  font-weight: 500;
  border-radius: 12px;
  background-color: rgba(0,0,0,0.05); /* dezente Grundfläche */
  white-space: nowrap;
}

.chip-diff .mdi {
  vertical-align: middle;
  margin-right: 2px;
}

.chip-up {
  background-color: #d4edda; /* hellgrün */
  color: #155724;
}

.chip-down {
  background-color: #f8d7da; /* hellrot */
  color: #721c24;
}

.chip-mod {
  background-color: #d1ecf1; /* hellblau */
  color: #0c5460;
}

.warn_warn {
  color: #721c24;
}

.saved {
  color: #777;
  font-size: 0.75em;
}

.inlineicon {
    width: 1.2em;
    height: 1.2em;
}

.inlineicon-ok {
    width: 1.2em;
    height: 1.2em;
    fill: green;
}

table {
    border-collapse: collapse;
}

.abrechnung th,td {
    padding-left: 0.5em;
    padding-right: 0.5em;
}

.tabelle th,td {
    padding-top: 0.2em;
    padding-bottom: 0.2em;
    padding-left: 0.5em;
    padding-right: 0.5em;
}

tr.heutemarker {
    border-top: 1px solid #000;
    border-bottom: 1px solid #000;
    text-align: center;
    /* background-color: #eee; */
    background-color: unset;
    font-weight: lighter;
    font-style: italic;
}

td.heutemarker {
    padding-top: 1em;
    padding-bottom: 1em;
}

tr.even {
    background-color: #eee;
}

li.active {
    font-weight: bold;
}

.content:last-child { margin-bottom: 0; }
.content form { margin: 1em 0; display: flex; flex-direction: column; }
.content label { font-weight: bold; margin-bottom: 0.5em; }
.content input, .content textarea { margin-bottom: 1em; }
.content textarea { min-height: 12em; resize: vertical; }
input.danger { color: #cc2f2e; }
input[type=submit] { align-self: start; min-width: 10em; }

.form-table {
  display: grid;
  grid-template-columns: 15em 30em;
  gap: 10px;
  width: auto;
}

.form-table label {
  font-weight: bold;
  text-align: right;
  padding-right: 10px;
}

.form-table input,
.form-table select,
.form-table button {
  padding: 5px;
  height: fit-content;
}

input[type="submit"].modalsubmit {
    float: right;
    margin-top: 1em;
    padding: 0.5em;
}

.modal {
    display: none;
    position: fixed;
    z-index: 1;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.4);
    overflow: auto;
}
.modal-content {
    background-color: white;
    margin: 10vh auto;
    border: 2px solid #888;
    max-height: 80vh;
    overflow-y: auto;
    width: max-content;
    border-radius: 1em;
}
.regelmodal-content {
    background-color: white;
    margin: 10vh auto;
    border: 2px solid #888;
    max-height: 80vh;
    overflow-y: auto;
    max-width: 80vw;
    border-radius: 1em;
}
.modal-sidebar {
    float: left;
    padding-top: 1em;
    padding-right: 1em;
    overflow-y: auto;
}
.modal-content h2 {
    float: left;
    margin-top: 0.5em;
    margin-bottom: 0em;
}
.regelmodal-content h2 {
    float: left;
    margin-top: 0.5em;
    margin-bottom: 0em;
}
.modal-window {
    padding-left: 2em;
    padding-right: 2em;
}
.modal-header {
    background-color: cornflowerblue;
    overflow: hidden;
    padding: 10px;
}
.modal-footer {
    overflow: hidden;
}
.modal-footer-right {
    float: right;
}
.modal-footer-left {
    float: left;
}
.close {
    float: right;
    font-size: 28px;
    cursor: pointer;
}

.list-item {
    padding: 10px;
    cursor: pointer;
    border-bottom: 1px solid #ddd;
}

.list-item:hover {
    background: #ddd;
}

.selected {
    background: #bbb !important;
}