#left-sidebar {
    display: block;
    position: fixed;
    top: 40px;
    left: 0;
    bottom: 0;
    width: 350px;
    padding: 10px 0;
    overflow-y: auto;
    background: white;
    border-right: 1px solid #b8acea;
}

#left-sidebar .panel-heading {
    display: block;
    background: #38354a;
    color: whitesmoke;
    border-radius: 0;
}
#left-sidebar .panel-heading:hover {
    background: #5c5971;
}

#left-sidebar .panel-heading:hover,
#left-sidebar .panel-heading:visited,
#left-sidebar .panel-heading:focus,
#left-sidebar .panel-heading:active {
    text-decoration: none;
}

#left-sidebar .panel {
    border-radius: 0;
    border: 0;
}

#main-content {
    position: fixed;
    top: 40px;
    left: 350px;
    bottom: 0;
    right: 0;
    background: #eceff4;
    overflow-y: auto;
    padding: 15px;
}

#left-sidebar .groupped-items {
    margin-bottom: 15px;
}

.project-form .form-group {
    margin-bottom: 10px;
}

.project-form input,
.project-form select {
    padding: 2px;
    height: initial;
    display: inline-block;
    font-size: 12px;
    border-radius: 0;
}

.project-form .input-group-addon {
    display: inline-block;
    width: auto;
    padding: 5px;
    height: initial;
}

.project-form label {
    display: block;
    margin-bottom: 0;
    font-size: 12px;
}

.project-form p {
    padding-bottom: 20px;
}

.project-form tr {
    height: 35px;
}

#btnHoliCus, #btnExcpCus {
    text-decoration: underline;
    display: inline;
    cursor: pointer;
    margin-left: 15px;
}

td.nonworking:not([data-override-day='W']) {
    background-color: #DDD;
}

td.working-holiday {
    font-weight: bold;
    box-shadow: inset 0px 0px 0px 0px #000, inset 0px 0px 0px 0px #000;
}

td.holiday:not([data-override-day='W']) {
    background-color: #DDD;
    font-weight: bold;
}

[part-one-ntp] {
    background-color: #DEEBF7;
}
[part-one-start-date] {
    border: 2px solid #2196F3;
}
[start-date] {
    border: 2px solid #FF9800;
}
[part-two-ntp] {
    background-color: #E2F0D9;
}
[part-two-start-date] {
    outline: 2px solid #378c3a;
}
[part-two-req-end-date] {
    border: 2px solid #ff1100;
}
[data-override-day='N'] {
    /*background-color: #DDD !important;*/
}
[damaged-date] {
    background: #ffb8b8 !important;
}
[actual-end-date] {
    outline: 2px solid #673AB7 !important;
}
[current-date] {
    box-shadow: inset 0 0 0 2px black;
}


#tblCalendar td {
    text-align: center;
    font-size: 12px;
}

#tblCalendar .tblDaysWeek td {
    height: 30px;
    vertical-align: top;
    line-height: 12px;
    padding-top: 2px;
    user-select: none;
}

#tblWorkweek {
    border: 1px solid #dedede;
}
#tblWorkweek td {
    width: 45px;
    border: 1px solid #dedede;
    border-collapse: collapse;
    text-align: center;
    border-top: 0;
    border-bottom: 0;
}
#divMoratOptions input[type=checkbox],
#tblExceptions input[type=checkbox],
#tblWorkweek input[type=checkbox] {
    display: block;
    width: 100%;
    height: 10px;
    margin: 0;
    opacity: 0;
}
#divMoratOptions input[type=checkbox] + label,
#tblExceptions input[type=checkbox] + label,
#tblWorkweek input[type=checkbox] + label {
    margin-top: -30px;
    text-align: center;
    pointer-events: none;
    font-size: 16px;
}
#divMoratOptions input[type=checkbox]:checked + label,
#tblExceptions input[type=checkbox]:checked + label,
#tblWorkweek input[type=checkbox]:checked + label {


}
#divMoratOptions input[type=checkbox]:not(:checked) + label,
#tblExceptions input[type=checkbox]:not(:checked) + label,
#tblWorkweek input[type=checkbox]:not(:checked) + label {
    opacity: 0.2;
}

#tblExceptions {
    border: 1px solid #dedede;
}
#tblExceptions td:nth-of-type(1) {
    text-align: center;
}

button.ui-datepicker-trigger {
    border: none;
    text-decoration: underline;
    background-color: #CCC;
}

#dpHolidays, #dpExceptions {
    width: 1px;
    padding: 0;
    visibility: hidden;
}

#sumFormProjectName, #sumFormProjectId {
    text-transform: uppercase;
}

#printProjName {
    word-wrap: break-word;
    text-transform: uppercase;
}

#printProjID {
    text-transform: uppercase;
}

#printContent {
    padding: 40px 20px 30px 20px;
}

#printButtons {
    position: absolute;
    top: 15px;
    right: 20px;
}

#previewModal .modal-content{
    padding: 10px;
}
#previewModal h4 {
    float: left;
    margin: 0 0 5px 0;
}

#previewModal iframe {
    width: 100%;
    height: 80vh;
    margin: 10px auto;
    display: block;
}

#btnPreviewPrint {
    float: right;
    margin: 0 0 5px 0;
}

#iconWorking {
    width: 25px;
    height: 20px;
    border: solid 1px black;
    margin: 20px 12px -5px 20px;
    display: inline-block;
}

#iconNonWorking {
    width: 25px;
    height: 20px;
    background-color: #BBB;
    border: solid 1px black;
    margin: 20px 12px -5px 20px;
    display: inline-block;
}

#iconHoliday {
    width: 50px;
    height: 20px;

    margin: 20px 12px -5px 0px;
    display: inline-block;
    line-height: 18px;
    font-weight: bold;
    text-align: right;
}

.num-alert, .name-alert {
    color: red;
    display: none;
    font-size: 12px;
    margin-bottom: 15px;
}

#divMoratOptions {
    text-align: center;
}

#divMoratOptions table {
    min-width: 100%;
}


#divMoratOptions input[type="text"] {
    width: 100%;
    height: 30px;
    border: none;
    margin: 0;
    background: none;
}
#divMoratOptions input[type="text"] + span {
    margin-left: -20px;
    pointer-events: none;
}

#divMoratOptions td {
    border: 1px solid #dedede;
    white-space: nowrap;
}

.del-morat {
    margin: 0 5px;
    border-radius: 20px;
}

.del-morat:focus {
    outline: 0;
}

#addMorat {
    margin: 5px;
    border-radius: 20px;
    text-align: center;
    padding: 5px 10px;
    font-size: 25px;
    font-weight: bold;
    line-height: 1;
}

#addMorat:focus {
    outline: 0;
}

.ui-datepicker .ui-datepicker-calendar td.holid {
    width: 32px;
}

.ui-datepicker .ui-datepicker-calendar td.holid a {
    width: 32px;
    white-space: nowrap;
    overflow-x: hidden;
    background: #743620 none;
    color: white;
}

.ui-datepicker .ui-datepicker-calendar td.holid a::before {
    content: "\00a0 \00a0 H \00a0 \00a0 ";
}

.ui-datepicker .ui-datepicker-calendar td.holid.dis a {
    border: 1px solid #000000;
    background: #ffffff;
    color: #555555;
}

#divCal {
    background: white;
    padding: 0 15px;
    max-width: 770px;
    margin: 0 auto;
}
#divCal .cal-title {
    text-align: center;
    font-size: 18px;
    margin-bottom: 15px;
    font-weight: bold;
}
#divCal table {
    margin: 0 auto;
    border-color: #bbb;
}

#legendTop {
    background: white;
    margin-bottom: 15px;
    padding: 5px;
}
#legendTop .item {
    display: inline-block;
    margin: 0 10px;
    width: 200px;
    overflow: hidden;
    text-overflow: ellipsis;
}
#legendRight {
    width: 220px;
    background: white;
    position: fixed;
    right: 25px;
    top: 55px;
}
#main-content.legend-right {
    padding-right: 245px;
}
#calendarLegend {
    margin: 0;
}
#calendarLegend .item {
    line-height: 20px;
    padding: 5px 0;
    font-size: 12px;
    white-space: nowrap;
}
#calendarLegend .item .icon {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 1px solid black;
    vertical-align: top;
    margin-right: 5px;
    text-align: center;
    font-weight: bold;
}
#calendarLegend .edit-mode .item {
    color: #cfcfcf;
    cursor: pointer;
}
#calendarLegend .edit-mode .item:hover {
    background: #f4f3f3;
}
#calendarLegend .edit-mode .item.checked {
    color: #757575;
}
#calendarLegend .edit-mode .item:before {
    content: "x";
    display: inline-block;
    border: 1px solid black;
    width: 15px;
    height: 15px;
    vertical-align: middle;
    line-height: 13px;
    text-align: center;
    margin-right: 5px;
    color: white;
}
#calendarLegend .edit-mode .item.checked:before {
    content: "x";
    color: black;
}
#calendarLegend .btn {
    margin-top: 15px;
}
#calendarLegend .btn.block {
    display: block;
    width: 100px;
    margin: 15px auto 0;
}
#calendarLegend .position {
    margin-top: 15px;
    font-size: 10px;
    color: gray;
    text-align: right;
}
#calendarLegend .position .btn {
    height: 20px;
    width: 20px;
    margin: 0;
}
#calendarLegend .position .btn:nth-of-type(1) {
    border-left-width: 7px;
}
#calendarLegend .position .btn:nth-of-type(2) {
    border-top-width: 7px;
}
#calendarLegend .position .btn:nth-of-type(3) {
    border-right-width: 7px;
}

@media (max-width: 767px) {
    #left-sidebar {
        position: relative;
        width: 100%;
        top: 80px;
    }

    #main-content {
        position: relative;
        width: 100%;
        left: 0;
    }

    #legendRight {
        position: initial;
    }

    #main-content.legend-right {
        padding: 5px;
    }
}