/* Temporary to-do list class */
.done {
    text-decoration: line-through;
}

/* Body */
body {
    font-family: 'Helvetica', 'Helvetica Neue', sans-serif;
    font-size: 16px;
}

/* Links */
a {
    text-decoration: underline;
    cursor: pointer;
}
a:hover {
    text-decoration: none;
}

/* Forms */
form {
    max-width: 800px;
}
form p {
    display: flex;
}
form p label {
    flex: 0 0 100px;
}
form p input, form textarea, form select {
    flex: 1 1 200px;
}
form p input[type="checkbox"] {
    flex: 0 0 auto;
}
form p.submit {
    flex-direction: row-reverse;
}
form p.submit button {
    flex: 0 0 auto;
}

/*form button {
    display: inline-block;
    float: right;
}*/


/* Large viewport header */
.header {
    width: 100%;
    display: flex;
    background-color: #f3f3f3;
    border: 1px solid #ccc;
    box-sizing: border-box;
}
.header > a:first-child {
    border: none;
}
.header > a, .header > .current {
    padding: 8px;
    border: 1px solid #ccc;
    border-width: 0 0 0 1px;
}
.header > a {
    flex: 1 0 auto;
    text-align: center;
    background-color: #fff;
    text-decoration: none;
    color: #04f;
}
.header > a:hover {
    background-color: #ccf;
    text-decoration: none;
}
.header > .current {
    flex: 20 0 auto;
    text-align: left;
}
.header > .current a.current-task {
    color: inherit;
    text-decoration: none;
}
.header > .current a.current-task:hover {
    text-decoration: underline;
}
.header > .current .task-start {
    color: #04f;
}
.header > .current .task-stop {
    color: #04f;
}

/* Small viewport header TODO */
.header-small {
    display: none;
    flex-wrap: none;
    width: 100%;
    height: 38px;
    background-color: #f3f3f3;
    border-bottom: 1px solid #ccc;
    padding: 8px;
    margin: 0;
    box-sizing: border-box;
}
.header-small-button {
    display: block;
    flex: 0 0 auto;
    box-sizing: border-box;
    margin: 0;
}
.header-small-text {
    box-sizing: border-box;
    padding-left: 5px;
    padding-top: 2px;
    flex: 1 0 auto;
    overflow: hidden;
    max-width: 95%;
    margin: 0;
}
/* Small viewport menu overlay */
.over {
    display: none;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background-color: #fcfcff;
    z-index: 10000;
}
.over-menu {
    padding: 0;
}
.over-menu > li {
    list-style: none;
    background-color: #e6e6e6;
    margin: 1em;
}
.over-menu > li > a {
    display: block;
    text-decoration: none;
    color: black !important;
    padding: 1em;
}


/* Body */
.body {
    padding: 2px;
}

/* Headers */
h1 > a {
    font-weight: normal;
    color: inherit;
    font-size: 12px;
}
h1 > a:before {
    content: '(';
}
h1 > a:after {
    content: ')';
}

/* Projects */

.projects {
    padding: 0px;
    margin: 0px;
    display: flex;
    flex-flow: row wrap;
}
li.project {
    padding: 6px;
    margin: 6px;
    list-style-type: none;
    flex: 1 0 auto;
    width: 500px;
    box-sizing: border-box;
    background-color: #f6f6f6;
}
.project-name a {
    color: inherit;
    text-decoration: none;
}
.project-name a:hover {
    text-decoration: underline;
}
.project.active .project-name {
    font-weight: bold;
    color: inherit;
}
.project.inactive .project-name {
    font-weight: bold;
    text-decoration: line-through;
    color: #999;
}

.tasks {
    padding-left: 30px;
    box-sizing: border-box;
}
li.task {
    list-style-type: decimal;
    line-height: 22px;
    background-color: #ffffff;
    box-sizing: border-box;
}
li.task.priority {
    background-color: #ffffbb;
}
.task-name a {
    color: inherit;
    text-decoration: none;
}
.task-name a:hover {
    text-decoration: underline;
}
.task.active .task-name {
    font-weight: normal;
}
.task.inactive > .task-name {
    font-weight: normal;
    text-decoration: line-through;
    color: #999;
}
.task.priority > .task-name {
    font-weight: bold;
}

.task .task-start {
    color: #04f;
}
.task .task-stop {
    color: #80d;
    font-weight: bold;
}
.task-add {
    font-size: 12px;
    color: inherit;
}
.task-add:before {
    content: '('
}
.task-add:after {
    content: ')'
}

/* Weeks */
.week-data {
    width: 100%;
}
.week-data .week-project {
    width: 200px;
}
.week-data .week-project a {
    color: inherit;
    text-decoration: none;
}
.week-data .week-project a:hover {
    text-decoration: underline;
}
.week-data .week-hours-wrapper {
    background-color: #f3f3f3;
}
.week-data .week-hours-wrapper .week-hours {
    display: inline-block;
    border: 1px solid #aaa;
    padding: 2px;
}

/* Balance */
.balance-data {
    width: 100%;
    border-spacing: 4px;
}
.balance-data .balance-project {
    width: 250px;
}
.balance-data .balance-project a {
    color: inherit;
    text-decoration: none;
}
.balance-data .balance-project a:hover {
    text-decoration: underline;
}
.balance-data .balance-hours-wrapper {
    background-color: #f3f3f3;
}
.balance-data .balance-hours-wrapper .balance-hours { /* bar */
    display: inline-block;
    border: 1px solid #aaa;
    padding: 4px;
}
.balance-data .balance-hours-wrapper .balance-text {
    display: inline-block;
    padding: 2px;
    height: 1em;
    text-align: middle;
}
.balance-data .balance-hours-wrapper .balance-goals { /* bar */
    display: block;
    background-color: #999;
    border: 1px solid #aaa;
    height: 0px;
    padding: 4px;
    margin: 0;
}

/* Days */
.day-data {
    width: 100%;
}
.day-data .day-task-cell {
    width: 200px;
}
.day-data .day-task-cell .day-task {
    display: inline-block;
    overflow: hidden;
    padding: 4px 0 4px 0;
    height: 1em;
}
.day-data .day-task-cell a.day-task {
    color: inherit;
    text-decoration: none;
}
.day-data .day-task-cell a.day-task:hover {
    text-decoration: underline;
}
.day-data .day-hours-cell {
    position: relative;
    background-color: #f3f3f3;
}
.day-data .day-hours-cell .day-hours {
    position: absolute;
    display: inline-block;
    height: 100%;
    box-sizing: border-box;
    top: 0;
    background-color: #cdf;
    border: 1px solid #aaa;
    padding: 2px 2px 0 2px;
}
.day-data .day-hours-cell a.day-hours {
    color: inherit;
    text-decoration: none;
}
.day-data .day-hours-cell a.day-hours:hover {
    text-decoration: underline;
}

/* Recalculate */
table.recalculate {
    width: 100%;
    border-collapse: collapse;
}
table.recalculate, table.recalculate th, table.recalculate td {
    border: 1px solid black;
}
table.recalculate th {
    background-color: #ddf;
}
table.recalculate tr:nth-child(even) {
    background-color: #eee;
}
