.time-schedule {
    border: 1px solid #ccc;
    position: relative;
    display: flex;
    align-items: stretch;
}
.time-schedule table {
    margin-bottom: 0;
    position: relative;
}
.time-schedule tbody {
    position: relative;
}
.time-schedule .background {
    display: flex;
    flex-direction: column;
    position: absolute;
    height: 100%;
    width: 100%;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    justify-items: flex-end;
    /* align-items: center; */
    justify-content: space-evenly;
    overflow: hidden;
    /* z-index: -1; */
}
.time-slot {
    padding: 0.25em;
    flex: 1;
}
.background .time-slot:nth-child(even) {
    background: #f4f4f4;
}
.time-schedule thead th {
    border-bottom: 1px solid #000;
}
.time-schedule tr > [data-dow="0"] {
    background: rgba(0,0,0,0.1);
}
.time-schedule tr > [data-dow="6"] {
    background: rgba(0,0,0,0.05);
}
td.times {
    min-width: 5em;
    text-align: right;
}
.time-schedule .times .time-slot {
    display: block;
}
.time-schedule .day {
    position: relative;
    /* height: 100%; */
    width: 250px;
    /* top: 0; */
}
.time-schedule td + td {
    border-left: 1px solid #ccc;
}
.time-schedule .time-block {
    background: blue;
    /* opacity: 0.5; */
    position: absolute;
    left: 0;
    right: 0;
    color: #FFF;
    display: block;
    padding: 3px;
    box-sizing: border-box;
    font-size: 0.8em;
    cursor: pointer;
    transition: 0.3s;
    box-shadow: 0 0 3px rgba(0,0,0,0.5);
}
.time-schedule .time-block > .project {
    max-height: 100%;
    overflow: hidden;
}
.time-schedule .time-block:hover {
    opacity: 1;
    z-index: 2;
    transform: scale(1.1);
}
.time-schedule .time-block .details {
    position: absolute;
    background: #fff;
    border: 1px solid #ccc;
    padding: 0.5em;
    z-index: 3;
    color: #000;
    box-shadow: 1px 2px 4px rgba(0,0,0,0.5);
    left: 10px;
}
.time-schedule .time-block .details .project {
    font-weight: bold;
}
.time-schedule .time-block .details .project,
.time-schedule .time-block .details .time-stamp {
    white-space: nowrap;
}
.time-schedule .time-block .details .elapsed-time:before {
    content: 'Hours: ';
}
.time-schedule .time-block .project .class-name:before {
    content: ': ';
}
.time-schedule .time-block .time-stamp .time-out:before {
    content: ' - ';
}
.time-schedule .time-block .details > * {
    display: block;
    margin-bottom: 0.5em;
}
.time-schedule .time-block:not(:hover) .details {display: none; }
.time-schedule .time-block .project {
    display: block;
}
.time-schedule .time-block .class_logo,
.time-schedule .time-block .class_icon {
    max-height: 30px;
    max-width: 100px;
    margin: 0 0 0 auto;
    display: block;
}

.time-schedule tr th.day > * {
    display: block;
}
.time-schedule tr th.day > .dow {
    display: none;
}
.day h2 {
    position: absolute;
    transform: translateX(-100%);
    top: 0;
}

.class-keys {
    column-count: 3;
    padding-top: 2em;
}
.class-key {
    -webkit-column-break-inside: avoid;
    break-inside: avoid-column;
    display: table;
}
.class-key a {
    padding: 0.25em;
    display: block;
    text-decoration: none;
}
.class-key > a {
    font-weight: bold;
}
.class-key a:hover {
    text-decoration: underline;
}
.class-key .projects {
    font-size: 0.9em;
    padding-left: 2.25em;
}
.class-key .color {
    display: inline-block;
    width: 1.5em;
    height: 1.5em;
    margin-right: 0.5em;
    background-color: blue;
    border-color: 1px solid #f4f4f4;
}
.class-key:hover .color {
    -webkit-transform: scale(1.1);
    transform: scale(1.1);
}
#content .total-time {
    font-size: 2em;
    text-align: right;
    max-width: none;
    padding: 1em 0;
}
.total-time:before {
    content: 'Total Tracked Time: ';
    font-size: 0.8em;
    text-transform: uppercase;
    display: block;
}

.categorized-totals {
    display: flex; 
    padding: 0 1em;
    align-items: center;
    margin-top: 2em;
    border-top: 1px solid #ccc;
}
.categorized-totals > * {
    width: 33% !important;
}
.categorized-totals table.entity td.key {
    width: auto;
    width: 11em;
}

#time_card_entry_form.overlay-form input[class*="time_"] {
    max-width: 9em;
    display: inline-block;
}
#time_card_entry_form.overlay-form select {
    max-width: 300px;
}
[data-hour="7"] + [data-hour="8"] {
    border-top: 2px solid green;
    margin-top: -2px;
}
[data-hour="16"] + [data-hour="17"] {
    border-top: 2px solid red;
    margin-top: -2px;
}
[data-hour="12"] {
    background: #E4E4E4 !important;
}
.time-schedule tfoot td {
    text-align: center;
}

.now-mark {
    opacity: 0;
    display: block;
    position: absolute;
    height: 3px;
    background: red;
    width: 110%;
    margin-left: -4%;
}

/* Month-to-date stats load via AJAX after the page renders. Show a loading GIF
   in the placeholder until the report comes back (the .loading class is added/removed
   by load_mtd_stats() in time-schedule.js). This rule lives here rather than in the
   AJAX payload so it is present before the response arrives. */
#mtd_stats.loading {
    min-height: 120px;
    background-image: url(/images/loading-bar.gif);
    background-position: center;
    background-repeat: no-repeat;
    border-top: 1px solid #ccc;
    margin-top: 2em;
}

@media print {
    .time-schedule {
        /* transform: scaleY(0.45) translateY(-55%); */
    }
    .time-schedule .time-block {
        opacity: 1;
    }
    /* Don't print the loading placeholder/GIF */
    #mtd_stats.loading {
        display: none;
    }
}