/* layout.css */

html, body {
    margin: 0;
    padding: 0;
    height: 100%;
    font-size: 16px;
    font-family: Verdana, Arial, sans-serif;
    overflow-y: hidden;
    cursor: default;
}

#layout {
    display: grid;
    grid-template-rows: 40px auto 1fr;
    margin: 0 auto;
    width: 100%;
    height: 100vh;
    background: #eee;
}

@media (min-width: 600px) {
    #layout {
        margin-top: 100px;
        max-width: 400px;
        max-height: 620px;
        box-shadow: 0 0 10px 0 #000;
    }
}

/*@media (min-width: 1000px) {
    #layout {
        max-width: 1000px;
    }
}*/

#fixed > div:not(:first-of-type),
#scroll > div:not(:first-of-type) {
    display: none;
}

#scroll {
    overflow-x: hidden;
    overflow-y: auto;
}

.margin20 {
    margin: 20px;
}

.multicol2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-gap: 20px;
}

.menu button {
    width: 100%;
    padding: 8px 16px;
    text-align: left;
}

/* nav and header */

.nav {
    display: grid;
    grid-template-columns: 40px 40px auto 40px 40px;
    text-align: center;
    line-height: 40px;
    background: #bbb;
    color: #000;
}

.nav a {
    display: block;
    font-size: 20px;
    text-decoration: none;
    color: #000;
}

.nav a:hover {
    background: #448BC8;
    cursor: pointer;
}

#header {
    background: #000;
    color: #eee;
}

#header a {
    color: #eee;
}

/* flash messages */

.msg_error {
    margin: 20px 0;
    padding: 8px 12px;
    background: #F8D7DA;
    border: 1px solid #666;
}

.msg_success {
    margin: 20px 0;
    padding: 8px 12px;
    background: #D4EDDA;
    border: 1px solid #666;
}

/* headings and links */

h1, h2, h3, h4, h5, h6 {
    margin: 0 0 20px;
}

a {
    color: #00f;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* tables */

table {
    width: 100%;
    border-collapse: collapse;
}

table th,
table td {
    padding: 0;
    border: none;
    text-align: left;
}

table th {
    font-weight: bold;
    background: #eee;
}

table.basic th,
table.basic td {
    padding: 5px 10px;
    border: 1px solid #999;
}
/* forms.css */

form {
    margin: 0;
    padding: 0;
}

table.form {
    width: 100%;
    border-collapse: collapse;
}

table.form td {
    padding: 8px 4px;
}

input, select, button {
    font-family: Verdana, Arial, sans-serif;
    font-size: 16px;
}

input[disabled],
select[disabled] {
    background: #eee;
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="date"],
input[type="time"],
input[type="number"] {
    display: block;
    box-sizing: border-box;
    width: 100%;
    margin: 0;
    padding: 4px 8px;
    border: 1px solid #666;
    background: #fff;
}

input[type="text"].invalid {
    background: #fdd !important;
}

input[type="checkbox"]
{
    margin: 5px 10px 5px 5px;
}

button,
input[type="submit"],
input[type="button"] {
    margin: 0;
    padding: 6px 18px;
    border: 1px solid #666;
    /*border-radius: 10px;*/
    background: #ddf;
}

button:hover,
input[type="submit"]:hover,
input[type="button"]:hover {
    cursor: pointer;
    background: #ccf;
}

button:disabled,
input[type="submit"]:disabled,
input[type="button"]:disabled {
    cursor: default;
    background: #ddd;
}

select {
    display: block;
    width: 100%;
    margin: 0;
    padding: 3px 4px;
    border: 1px solid #666;
    background: #fff;
}

/* form group */

.form-group {
    margin: 20px 0;
    padding: 0;
}

.form-group label {
    display: block;
    margin: 0 0 6px;
}

.form-buttons {
    margin: 30px 0 0;
}
/* urlaub.css */

#urlaub_werte td {
    padding: 6px 10px;
}

#urlaub_scrollable {
    width: 100vw;
    max-width: 400px;
    overflow-x: scroll;
}

#urlaub_table {
    border-collapse: collapse;
    background: #fff;
}

#urlaub_table span {
    display: inline-block;
    width: 30px;
}

#urlaub_table td {
    width: 30px;
    height: 30px;
    padding: 0;
    border: 1px solid #000;
    text-align: center;
}

#urlaub_table input[type="text"] {
    border: none;
    width: 30px;
    height: 30px;
    margin: 0;
    padding: 0;
    text-align: center;
    font: 16px Arial, sans-serif;
}

#urlaub_table .urlaub { background: #9f9; }
#urlaub_table .geplant { background: #9f9; }
#urlaub_table .ueberstunden { background: #bff; }
#urlaub_table .schule { background: #9bf; }
#urlaub_table .krank { background: #fbf; }
#urlaub_table .wochenende { background: #ddd; }
#urlaub_table .feiertag { background: #ff9; }
#urlaub_table .keintag { background: #666; }

#urlaub_table .cell:focus { outline: 2px solid #000; }
#urlaub_table .cell.today { outline: 2px solid #f33; }

#urlaub_table .geplant {
    background-image: linear-gradient(0, #f96 3px, transparent 3px);
}

/* #urlaub_small_grid */

#urlaub_small_grid {
    display: grid;
    grid-template-columns: repeat(32, 1fr);
    grid-gap: 0;
    font-size: 8px;
    margin-bottom: 10px;
    border-bottom: 1px solid #666;
    background: #fff;
}

#urlaub_small_grid > div {
    line-height: 12px;
    border-top: 1px solid #666;
    border-left: 1px solid #666;
    text-align: center;
}

#urlaub_small_grid > div.noborder {
    border-left: none;
}
/* ausgaben.css */

.button_grid {
    display: grid;
    margin: 0 0 10px;
    grid-template-columns: 1fr 1fr 1fr 1fr 1fr;
    grid-gap: 10px;
}

.button_grid > div {
    padding: 8px 10px;
    font-size: 28px;
    text-align: center;
    background: #ddf;
}

.button_grid > div:hover {
    /*background: #ccf;*/
    cursor: pointer;
}

.button_grid > div.active {
    background: #fe8;
}

select.select_kategorie:not(:first-of-type) {
    display: none;
}

/* #div_filter_text */

#div_filter_text {
    display: grid;
    grid-template-columns: auto 30px 30px;
    grid-gap: 10px;
}

#div_filter_text button {
    width: 30px;
    padding: 4px 6px;
}

/* table.ausgaben */

table.ausgaben {
    table-layout: fixed;
}

table.ausgaben tr {
    height: 40px;
    border-bottom: 1px solid #bbb;
}

table.ausgaben tr:hover {
    background: #ddd;
    cursor: pointer;
}

table.ausgaben tr.active {
    background: #ddd;
}

table.ausgaben td:first-of-type {
    width: 40px;
    text-align: center;
}

table.ausgaben td:nth-of-type(2) {
    font-size: 14px;
    vertical-align: middle;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

table.ausgaben td:last-of-type {
    width: 90px;
    padding-right: 10px;
    text-align: right;
}

.ausgaben_table_header {
    background: #bbb;
}

.ausgaben_table_header div {
    padding: 10px;
}

/* suggest */

.suggest > div {
    padding: 8px 8px;
    border: 1px solid #666;
    border-top: none;
    background: #fff;
    display: none;
}

.suggest > div:hover {
    background: #eee;
    cursor: pointer;
}

.suggest i.fa {
    margin: 0 6px 0 2px;
}
