/* BODY */
html {
    position: relative;
}
body {
    box-sizing: border-box;
    min-width: 600px;
    margin: 0 30px;
    color: #535c69;
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-size: 14px;
    overflow-x: auto;
    overflow-y: visible;
}
h2 {
    font-size: 2rem;
    font-weight: 300;
    margin-top: 42px;
}
h3 {
    float: left;
    font-size: 1.5rem;
    font-weight: 300;
    text-transform: uppercase;
}
h4 {
    text-transform: uppercase;
    text-align: center;
    font-size: 1.5rem;
}
a {
    color: #535c69;
    text-decoration: none;
}
a:hover {
    color: #535c69;
    text-decoration: underline;
}
.left {
    text-align: left !important;
}
.bold {
    font-weight: bold;
}
.light-grey {
    background-color: #f6f8f9;
}
.hide {
    height: 0;
    margin: 0 !important;
}
#displayedPeriod i {
    font-size: 1.35rem;
    padding: 10px 20px;
}
#displayedPeriod i.active-chevron {
    cursor: pointer;
}
#displayedPeriod i.active-chevron:hover {
    color: #000;
}
i.inactive-chevron {
    color: transparent;
    cursor: default;
}

/* TOP */
/* PERIOD */
#period select {
    height: 34px;
    margin-right: 5px;
    color: #535c69;
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-size: 14px;
    background-color: transparent;
    border: 1px solid rgba(83,92,105,.2);
    border-radius: 2px;
    outline: none;
}
#period input.submit {
    height: 34px;
    padding: 5px 20px;
    color: #fff;
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-size: 14px;
    text-transform: uppercase;
    border-radius: 5px;
    border: none;
    background-color: #3bc8f5;
    cursor: pointer;
    outline: none;
}
#period input.submit:hover {
    background-color: #3eddff;
}

/* TOP BUTTONS */
.report-buttons {
    position: relative;
}
.top-button {
    float: right;
    color: #333;
    margin-top: 22px;
    margin-left: 15px;
    border: 1px solid #d5dbdf;
    border: 1px solid #eef2f4;
    border-radius: 5px;
    cursor: pointer;
    transition: 0.2s;
}
.top-button:hover {
    background-color: #f0f2f4;
    border: 1px solid #f0f2f4;
    color: #000;
}
.top-button-inner {
    padding: 10px 30px;
}
.top-button i {
    font-size: 16px;
}

/* SETTINGS */
#popup-bg, #screen-bg, #mini-prescreen-bg, #prescreen-bg, #big-screen {
    display: none;
    position: absolute;
    box-sizing: border-box;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background-color: #d5dbdf;
    background-image: linear-gradient(rgba(172, 182, 191, 0.9), rgba(172, 182, 191, 0.9));
    background-size: contain;
    background-size: cover;    
    background-repeat: no-repeat;
    cursor: pointer;
}
#popup-bg {
    z-index: 3;
}
#screen-bg,
#mini-prescreen-bg, 
#prescreen-bg {
    z-index: 2;
}
#big-screen {
    z-index: 3;
}
#close-screens {
    display: none;
    position: absolute;
    top: 0;
    right: 0;
    z-index: 4;
    color: #f00;
    width: 28px;
    height: 28px;
    padding: 0px;
    cursor: pointer;
}
#close-screens::before,
#close-screens::after {
    content: '';
    position: absolute;
    top: 39%;
    left: 61%;
    width: 100%;
    height: 1px;
    background-color: #9ba4ac;
    background-color: #535c69;
}
#close-screens::before {
    transform: translate(-50%, -50%) rotate(45deg);
}
#close-screens::after {
    transform: translate(-50%, -50%) rotate(-45deg);
}
#close-screens:hover::before,
#close-screens:hover::after {
    background-color: #f00; 
}

.popup {
    display: none;
    position: absolute;
    box-sizing: border-box;
    width: 500px;
    border-radius: 5px;
    padding: 30px;
    background-color: #fff;
    //box-shadow: 0 0 15px rgb(225 229 230);
    z-index: 4;
}
.button-popup {
    top: 77px;
    right: 0;
}
.close {
    position: absolute;
    top: 0;
    right: 0;
    color: #535c69;
    padding: 30px;
    cursor: pointer;
    transition: 0.2s;
}
.close:hover {
    color: #000;
}
.popup-field {
    margin-bottom: 15px;
}
.popup-field-name {
    margin-bottom: 5px;
}
.popup-field-title {
    font-size: 1.25rem;
    margin-bottom: 5px;
}
.popup-field-input {
    border: 1px solid #f0f2f4;
    background-color: #f0f2f4;
    border-radius: 5px;
    padding: 5px 15px;
    margin-bottom: 5px;
    outline: none;
}
.popup-field-employee-selection {
    width: 100%;
    line-height: 2rem;
    margin-bottom: 10px;
}
.popup-field-input-number {
    width: 60px;
    text-align: center;
}
.delete-icon {
    padding: 5px 30px;
    cursor: pointer;
    transition: 0.2s;
}
.delete-icon:hover {
    color: #f00;
}
.popup-field-default-time {
    margin-bottom: 10px;
}
.plus-icon {
    margin-right: 5px;
}
.popup-field-add {
    margin-top: 5px;
}
.popup-field-add-span {
    color: #004C65;
    cursor: pointer;
    border-bottom: 1px dashed #535c69;
    transition: 0.2s;
}
.popup-field-add-span:hover {
    color: #00f;
}
.popup-field-submit {
    box-sizing: border-box;
    width: 100%;
    background-color: #3bc8f5;
    font-size: 1rem;
    font-weight: bold;
    color: #fff;
    line-height: 2rem;
    text-transform: uppercase;
    padding: 5px 15px;
    margin-top: 20px;
    margin-bottom: 0;
    border-radius: 5px;
    border: none;
    cursor: pointer;
    outline: none;
    transition: 0.2s;
}
.popup-field-submit:hover {
    background-color: #00b2ed;
    border-color: #00b2ed;
}

/* MONTH REPORT */
#month-report h2 {
    text-align: center;
}
table {
    border-collapse: collapse;
    font-size: 14px;
    margin-bottom: 50px;
    clear: both;
}
th, td {
    border: 1px #eef2f4 solid;
    padding: 5px;
    text-align: center;
}
td input {
    color: #535c69;
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-size: 14px;
    border: none;
    outline: none;
}
.td-link {
    cursor: pointer;
}
.td-link:hover {
    text-decoration: underline;
}
.td-input {
    padding: 0 5px;
}
.width-2num {
    width: 30px;
}
thead tr:last-child th,
thead th[rowspan="2"] {
    border-bottom-width: 3px;
}
#month-report-wrapper {
    width: 100%;
}
.month-report-wrapper-td {
    padding: 0;
    border: none;
}
table#month-report-table-days {
    width: 100%;
}
table#month-report-table-days th, 
table#month-report-table-days td {
    min-width: 0;
    max-width: 0;
    color: transparent;
}
table#month-report-table-days th.first-td,
table#month-report-table-days td.first-td {
    max-width: 50%;
    color: inherit;
    padding: 5px 20px;
}
th.first-td,
td.first-td {
    min-width: 150px;
    max-width: 50%;
    color: inherit;
    padding: 5px 20px;
}
table#month-report-table-days th.total-time-td,
table#month-report-table-days td.total-time-td {
    max-width: 25%;
    color: inherit;
}
.kpi-table .first-td {
    min-width: 150px;
}
#month-report-table-days th.holiday,
#month-report-table-days td.holiday {
    background: url(../img/weekend-bg.jpeg) repeat #f6f8f9;
}
#month-report-table-days th.vacation,
#month-report-table-days td.vacation {
    background: url(../img/weekend-bg.jpeg) repeat #f6f8f9;
}
#month-report-table-days td.low {
    background-color: #fdd;
    /background-color: #ffea9c;
}
#month-report-table-days td.high {
    /background-color: #dfd;
}
th.right-line,
td.right-line {
    border-right-width: 3px;
}
.content table td {
    min-width: 50px;
}

/* SHORT TABLE LAYOUT */
table.short-table-layout th.month-report-table-number,
table.short-table-layout td.month-report-table-number {
    color: transparent;
    cursor: pointer;
}
#month-report-table-days th.today-cell,
#month-report-table-days td.today-cell,
#month-report-table-days th.focus-cell,
#month-report-table-days td.focus-cell {
    max-width: 10%;
    min-width: 50px;
    color: inherit;
} 
#month-report-table-days td.today-cell {
    background-color: #fff;
    opacity: 0.5;
}
#month-report-table-days th.today-cell,
#month-report-table-days th.yesterday-cell {
    cursor: auto;
}
table#salary-report {
    width: 100%;
    margin-bottom: 50px;
}
.exceeded-time {
    background-color: #fdd;
}

/* REPORT DETAILS */
#report-details {
}
#report-timeline-wrap {
    clear: both;
    position: relative;
    margin-bottom: 28px;
    z-index: 3;
}
#report-timeline-cover {
    display: none;
    position: absolute;
    top: 0;
    left: 0;
    box-sizing: border-box;
    width: 100%;
    height: 100%;
    background-image: linear-gradient(rgba(172, 182, 191, 0.9), rgba(172, 182, 191, 0.9));
    border-radius: 5px;
    z-index: 91;
}
#report-timeline-cover-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    width: 100%;
    height: 100%;
}
#report-timeline-cover-text {
    color: #fff;
    text-align: center;
    line-height: 100%;
    font-size: 1.5rem;
    font-weight: 300;
    margin: 0;
}
#report-timeline-invisible-cover {
    position: absolute;
    top: 0;
    left: 0;
    box-sizing: border-box;
    width: 100%;
    height: 100%;
    border-radius: 5px;
    cursor: pointer;
    z-index: 92;
}
#report-timeline-bg {
    clear: both;
    width: 100%;
    box-sizing: border-box;
    border: 1px #eef2f4 solid;
    border-radius: 5px;
}
#report-timeline-bg-th {
    width: 100%;
    height: 28px;
    margin-bottom: 0;
}
.report-timeline-bg-th-margin, 
.report-timeline-bg-th-label {
    float: left;
    text-align: center;
    padding-top: 5px;  
}
.report-timeline-bg-th-margin {
    width: 4.1667%;
    box-sizing: border-box;
}
.report-timeline-bg-th-label {
    width: 8.3333%;
    box-sizing: border-box;
}
#report-timeline-bg-td {
    width: 100%;
    height: 53px;
}
.report-timeline-bg-td-cell {
    float: left;
    width: 8.3333%;
    box-sizing: border-box;
    height: 53px; 
    border: 1px #eef2f4 solid;
    border-right: 0;
    border-bottom: 0;
}
.report-timeline-bg-td-cell-first {
    border-left: 0;
}
#report-timeline {
    clear: both;
    position: absolute;
    top: 1px;
    width: 100%;
    height: 28px;
    margin-bottom: 28px;
}
#report-timeline-ranges {
    position: relative;
    height: 81px;
}
.report-timeline-item {
    position: absolute;
    box-sizing: border-box;
    height: 100%;
    padding: 41px 0 15px 0;
    cursor: none;
}
.timelinetask-inner {
    box-sizing: border-box;
    height: 28px;
    border-radius: 2px;
}
#cursor-line {
    position: absolute;
    width: 1px;
    height: 384px; 
    bottom: 0;
    left: 0;
    background-color: red;
    z-index: 99;
    pointer-events: none;
    display: none;
}
.ui-resizable {
    position: relative;
}
.ui-resizable-handle {
    position: absolute;
    font-size: 0.1px;
    display: block;
    -ms-touch-action: none;
    touch-action: none;
}
.ui-resizable-e {
    cursor: e-resize;
    width: 7px;
    right: 0px;
    top: 0;
    height: 100%;
}
.ui-resizable-w {
    cursor: w-resize;
    width: 7px;
    left: 0px;
    top: 0;
    height: 100%;
}

.report-timeline-item-work-online .timelinetask-inner {
    background-color: #0a0;
}
.report-timeline-item-work-online:hover .timelinetask-inner,
.report-timeline-item-work-online.focus .timelinetask-inner,
.report-timeline-item-work-online.select .timelinetask-inner {
    background-color: #080;
}
.report-timeline-item-work-offline .timelinetask-inner {
    background-color: #dfd;
}
.report-timeline-item-work-offline:hover .timelinetask-inner,
.report-timeline-item-work-offline.focus .timelinetask-inner,
.report-timeline-item-work-offline.select .timelinetask-inner {
    background-color: #aea;
}
.report-timeline-item-private-online .timelinetask-inner {
    background-color: #d00;
    background-color: #acb6bf;
}
.report-timeline-item-private-online:hover .timelinetask-inner, 
.report-timeline-item-private-online.focus .timelinetask-inner, 
.report-timeline-item-private-online.select .timelinetask-inner {
    background-color: #b00;
    background-color: #9ba4ac;
}
.report-timeline-item-private-offline .timelinetask-inner {
    background-color: #fdd;
    background-color: #eef2f4;
}
.report-timeline-item-private-offline:hover .timelinetask-inner, 
.report-timeline-item-private-offline.focus .timelinetask-inner, 
.report-timeline-item-private-offline.select .timelinetask-inner {
    background-color: #fbb;
    background-color: #d5dbdf;
}
.report-timeline-item-uncategorized-online .timelinetask-inner {
    background-color: #acb6bf;
    background-color: #ffc800;
}
.report-timeline-item-uncategorized-online:hover .timelinetask-inner, 
.report-timeline-item-uncategorized-online.focus .timelinetask-inner, 
.report-timeline-item-uncategorized-online.select .timelinetask-inner {
    background-color: #9ba4ac;
    background-color: #f5c000;
} 
.report-timeline-item-uncategorized-offline .timelinetask-inner {
    background-color: #eef2f4;
    background-color: #fff4cb;
}
.report-timeline-item-uncategorized-offline:hover .timelinetask-inner, 
.report-timeline-item-uncategorized-offline.focus .timelinetask-inner, 
.report-timeline-item-uncategorized-offline.select .timelinetask-inner {
    background-color: #d5dbdf;
    background-color: #ffea9c;
}
#report-timeline .unfocus .timelinetask-inner, 
#report-timeline :not(.focus).unselect .timelinetask-inner {
    background-color: transparent;
    background-color: #eef2f4;
    border: 1px solid #fff;
}

/* SCREENSHOTS */
#screenshots {
    clear: both;
    position: absolute;
    bottom: 56px;
    box-sizing: border-box;
    width: 100%;
    background-color: #fff;
    border: 28px solid #fff;
    border-radius: 5px;
    overflow: hidden;
    display: none;
}
#screenshots-task {
    clear: both;
    text-align: center;
    width: 100%;
}
#screenshots-task-time {
    font-size: 2.5rem;
    line-height: 1em;
    margin-top: 0;
    margin-bottom: 0;
    font-weight: 200;
}
#screenshots-task-text {
    margin-bottom: 0;
}
#screenshots-task i.fa-clock {
    margin-left: 6px;
    margin-right: 5px;
}
#screenshots-slider {
    width: 100000px;
    margin-bottom: 28px;
    overflow: hidden;
}
.screen {
    float: left;
    padding-right: 14px;
    padding-left: 14px;
    cursor: pointer;
}
.new-task-first-screen {
    border-left: 1px dashed #535c69;
    padding-left: 13px;
}
.screen-header {
    font-size: 2em;
    font-weight: 200;
    text-align: center;
    margin-bottom: 7px;
}
.screen-img {
    width: 240px;
    border: 1px solid #eef2f4;
    border-radius: 5px;
}
.screenshots-task-work {
    color: #080;
}
.screenshots-task-private {
    color: #535c69;
}
.screenshots-task-uncategorized {
    color: #f80;
}
#screenshot-view {
    position: fixed;
    height: 100%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 100;
    display: none;
}

/* TASK LIST */
#report-table-details {
}
.report-table-details-tr.select {
    background-color: #eef2f4;
}
#report-table-details th {
    padding: 5px 20px;
}
#report-table-details > tbody > tr:hover {
    background-color: #eef2f4;
}

/* SALARIES */
td.unapproved-value {
    opacity: 0.3;
}
td.editable-cell {
    background-color: #ff0;
    cursor: pointer;
}
td.paid-cell {
    background-color: #8f8;
    cursor: pointer;
}
td.unpaid-cell {
    cursor: pointer;
}
.salary-table-input {
    background-color: #ff0;
    cursor: pointer;
    text-align: center;
    width: 70px;
}
input[type="number"].salary-table-input {
    padding-left: 15px;
}
input[type="text"].salary-table-input {
    padding-left: 15px;
    padding-right: 15px;
}


/* FOOTER */
footer {
    margin-top: 50px;
    text-align: center;
}
.timeline-deep-bg {
    background-color: #d5dbdf;
}
.timeline-deep-opacity {
    opacity: 0.1;
}
#report-timeline-bg.timeline-active-window {
    background-color: #fff;
    border: none;
}
#report-timeline.timeline-active-window {
    top: 0;
}


/* MEDIA */
@media (min-width: 1200px) and (max-width: 1600px) {
    #month-report-table, 
    #month-report-table th {
        width: 15%;
    }
    #content-month-report-table-days {
        width: 85%;
    }
}
@media (min-width: 1000px) and (max-width: 1200px) {
    #month-report-table, 
    #month-report-table th {
        width: 20%;
    }
    #content-month-report-table-days {
        width: 80%;
    }
}
@media (min-width: 800px) and (max-width: 1000px) {
    #month-report-table, 
    #month-report-table th {
        width: 25%;
    }
    #content-month-report-table-days {
        width: 75%;
    }
}
@media (min-width: 600px) and (max-width: 800px) {
    #month-report-table, 
    #month-report-table th {
        width: 30%;
    }
    #content-month-report-table-days {
        width: 70%;
    }
}
@media (min-width: 400px) and (max-width: 600px) {
    #month-report-table, 
    #month-report-table th {
        width: 50%;
    }
    #content-month-report-table-days {
        width: 50%;
    }
}