@import "../index.css";

input#today {
    float: left;
    border: none;
    background: none;
    box-shadow: none;
}
body>header>div.thisweek_weeknrblock {
    background-color:var(--bg-verystrong);
}
body>header>div.thisweek_weeknrblock>div {
    font-size: 10pt;
    text-align: center;
    width: 100%;
}
main>header>div.thisweek_dayblock {
    float: left;
    width: calc( 100% / 7 );
    padding-bottom: 0.2em;
    border-bottom: solid var(--bg-strong) 2pt;
    cursor: pointer;
}

main>header>div {
    float: left;
    width: 14.28%;
    padding-bottom: 0.2em;
    border-bottom: solid var(--bg-strong) 2pt;
    cursor: pointer;
}
main>header>div>div {
    font-size: 10pt;
    text-align: center;
}
main>header>div.today {
    background-color: var(--bg-strong);
}

div.block {
    overflow: hidden;
    
    width: auto;
    padding: 0.4em 0.2em;
    border-bottom: solid var(--bg-strong) 2pt;
    display: grid;
    grid-template-columns: calc(100% - 140px) 30px 80px 30px;
}
div.block>div{
    display: table;
    height: 100%;
    text-align: center;
}
div.block>div>i {
    display: table-cell;
    vertical-align: middle;
}
div.block>div.block_tx {
    text-align: left;
}
div.block_tx span {
    font-size: 10pt;
    display: block;
}

div.block_tx span.kunde {
    font-size: 12pt;
    font-weight: 600;
}

div.block_zeit span {
    display: table-cell;
    vertical-align: middle;
    text-align: center;
    width: 100%;
    font-size: 24pt;
    font-weight: 600;
}

div.block i.fa {
    cursor: pointer;
}

.btn.running-clock {
    background-image: url("../pix/running-clock.gif");
    background-size: 1.2em;
    background-repeat: no-repeat;
    background-position: center;
    height: 1em;
    width: 1em;
    cursor: pointer;
}

form[name="edit"], form[name="beleg"] {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-gap: 8px;
    padding: 0.4em;
}

div.erfassart {
    overflow: hidden;
    width: 100%;
    border-collapse: collapse;
}
div.erfassart div {
    font-size: 12pt;
    float: left;
    width: 50%;
    text-align: center;
    padding: 0em;
    margin: 0;
    background-color: var(--bg);
    color: black;
    border-collapse: collapse;
    cursor: pointer;
}
div.erfassart div:nth-child(2) {
    float:left;
}
div.erfassart div.aktiv {
    background-color: var(--bg-strong);
}

input[name="startzeit"], input[name="endzeit"], input[name="zeit"] {
    font-size: 24pt;
    text-align: center;
}
input[name="startzeit"], input[name="endzeit"] {
    width: 3em;
}
input[name="auftrag"] {
    grid-column: auto / span 3;
}
form[name="login"] input {
    margin-left: auto;
    margin-right: auto;
}


select[name="zeit_eintrag_art_id"] {
    grid-column: auto / span 3;
}
select[name="auftrag_projekt"] {
    grid-column: auto / span 3;
}
div#bis {
    text-align: center;
    vertical-align: middle;
    font-size: 24pt;
    margin-top: 0.2em;
    height: 100%;
}
input[name="endzeit"] {
    grid-column: 3;
}
div#zeit {
    grid-column: 1 / span 3;
    width: auto;
}
div#zeit>table {
    display: table;
    width: auto;
    margin-left: auto;
    margin-right: auto;
}
div#zeit select {
    display: inline-block;
    width: 3em;
    text-align:center;
}
textarea[name="bemerkungen"] {
    grid-column: auto / span 3;
    font-size: 10pt;
    height: auto;
    min-height: 5em;
    max-height: 8em;
    overflow: auto;
}
input[name="save"] {
    grid-column: 3;
    grid-row: span 2;
}

input[name="close"] {
    grid-column: 1;
}
input[name="delete"] {
    grid-column: 1;
}
input[name="delete"]:hover {
    color: var(--fg-button-hover-negative);
}

input[type="button"], input[type="submit"] {
    padding: 0.2em 0.6em;
    width: 80%;
}

div#auswertungform {
    display: flex;
    flex-direction: column;
    height: 100%;
    max-width: 400px;
}
div#auswertungenform {
    display: flex;
    flex-direction: column;
    height: 400px;
    max-width: 250px;
}
div#auswertungenform div.menubox {
    width: 100%;
    display: flex;
    justify-content: center;
    flex-direction: column;
}
div#auswertungenform button {
    width: 230px;
}

div#auswertungform > div.scrollbox {
    height: 100%;
}

div#auswertungform table {
    background-color: lightyellow;
}
div#auswertungform tr > * {
    padding: 0 0.3em;
    font-size: 10pt;
}

div#auswertungform tr td.td-hours {
    text-align: right;
    min-width: 5em;
}

div#auswertungform tr.lvl0 {
    font-weight: 700;
    background-color: khaki;
}
div#auswertungform tr.lvl1 {
    font-weight: 600;
    background-color: khaki;
    cursor: pointer;
}
div#auswertungform tr.lvl2 {
    display: none;
}
div#auswertungform tr.lvl2 td {
    font-size: 8pt;
}
div#auswertungform tr.lvl2.opened {
    display: table-row;
}

div#auswertung tr:hover td {
    color: darkblue;
}
