﻿/* Windows 8 IE10 temp fix from MS */
@-webkit-viewport {
    width: device-width;
}

@-moz-viewport {
    width: device-width;
}

@-ms-viewport {
    width: device-width;
}

@-o-viewport {
    width: device-width;
}

@viewport {
    width: device-width;
}

.ui-select-container.ui-select-bootstrap .ui-select-toggle {
    box-shadow: none !important;
}

.ui-select-container.ui-select-bootstrap .ui-select-toggle:hover {
    background: #fff !important;
}

.ui-select-container.ui-select-bootstrap .ui-select-choices {
    background: #fff !important;
    max-height: 300px !important;
}

.ui-select-container.ui-select-bootstrap .ui-select-choices-group-label {
    color: var(--secondaryText) !important;
    padding-bottom: 12px;
}

.ui-select-container.ui-select-bootstrap .ui-select-choices-row>span {
     color: var(--text) !important;
 }

.ui-select-container.ui-select-bootstrap .ui-select-choices-row.active>span {
    background-color: var(--interaction) !important;
    color: var(--white) !important;
}

.ui-select-container.ui-select-bootstrap .ui-select-choices .ui-select-choices__item {
    display: flex;
    flex-direction: column;
}

.ui-select-container.ui-select-bootstrap .ui-select-choices .ui-select-choices__secondary {
    font-size: 10px;
    color: var(--secondaryText);
}

.ui-select-container.ui-select-bootstrap .ui-select-choices-row.active>span .ui-select-choices__secondary {
    color: var(--white) !important;
}

.ui-select-container.ui-select-bootstrap .ui-select-match {
    box-shadow: none !important;
}

.ui-select-container.ui-select-bootstrap .ui-select-match {
    box-shadow: none !important;
}

.ui-select-container.ui-select-bootstrap .ui-select-match .ui-select-match__text {
    display: inline;
    overflow: auto;
}

.ui-select-container.ui-select-bootstrap .btn-default-focus .ui-select-toggle {
    box-shadow: none !important;
}

@media print {
    #ProjTransReport .table>tbody>tr>td {
        font-size: 10px !important;
    }

    .progress {
        background-color: #F5F5F5 !important;
        -ms-filter: "progid:DXImageTransform.Microsoft.gradient(GradientType=0,startColorstr='#F5F5F5', endColorstr='#F5F5F5')" !important;
    }

    .progress-bar {
        display: block !important;
        background-color: #428bca !important;
        -ms-filter: "progid:DXImageTransform.Microsoft.gradient(GradientType=0,startColorstr='#428bca', endColorstr='#5BC0DE')" !important;
    }

    .progress,
    .progress>.progress-bar {
        display: block !important;
        -webkit-print-color-adjust: exact !important;
        box-shadow: inset 0 0 !important;
        -webkit-box-shadow: inset 0 0 !important;
    }

    .form-control {
        border: none;
        border-radius: 0;
        -webkit-box-shadow: none;
        box-shadow: none;
        -webkit-transition: none;
        transition: none;
    }

    .input-group-addon {
        border: none;
    }

    .col-sm-1,
    .col-sm-2,
    .col-sm-3,
    .col-sm-4,
    .col-sm-5,
    .col-sm-6,
    .col-sm-7,
    .col-sm-8,
    .col-sm-9,
    .col-sm-10,
    .col-sm-11,
    .col-sm-12 {
        float: left;
    }

    .col-sm-12 {
        width: 100% !important;
    }

    .col-sm-11 {
        width: 91.66666666666666% !important;
    }

    .col-sm-10 {
        width: 83.33333333333334% !important;
    }

    .col-sm-9 {
        width: 75% !important;
    }

    .col-sm-8 {
        width: 66.66666666666666% !important;
    }

    .col-sm-7 {
        width: 58.333333333333336% !important;
    }

    .col-sm-6 {
        width: 50% !important;
    }

    .col-sm-5 {
        width: 41.66666666666667% !important;
    }

    .col-sm-4 {
        width: 33.33333333333333% !important;
    }

    .col-sm-3 {
        width: 25% !important;
    }

    .col-sm-2 {
        width: 16.666666666666664% !important;
    }

    .col-sm-1 {
        width: 8.333333333333332% !important;
    }

    .col-print-1 {
        width: 8% !important;
        float: left;
    }

    .col-print-2 {
        width: 16% !important;
        float: left;
    }

    .col-print-3 {
        width: 25% !important;
        float: left;
    }

    .col-print-4 {
        width: 33% !important;
        float: left;
    }

    .col-print-5 {
        width: 42% !important;
        float: left;
    }

    .col-print-6 {
        width: 50% !important;
        float: left;
    }

    .col-print-7 {
        width: 58% !important;
        float: left;
    }

    .col-print-8 {
        width: 66% !important;
        float: left;
    }

    .col-print-9 {
        width: 75% !important;
        float: left;
    }

    .col-print-10 {
        width: 83% !important;
        float: left;
    }

    .col-print-11 {
        width: 92% !important;
        float: left;
    }

    .col-print-12 {
        width: 100% !important;
        float: left;
    }
}

#DevHint {
    text-align: center;
    height: 7px;
    width: 100%;
    position: fixed;
    top: 33px;
    z-index: 1500;
}

#DevHint span {
    color: white;
    font-weight: bold;
}

#topnavbar .badge {
    padding: 2px 4px;
    background-color: #dd4b39;
    position: absolute;
    top: 7px;
    right: 0;
    font-weight: normal;
    font-size: 10px;
}

body {
    /*background-color: #f5f5f5;*/
}

.toast-top-right {
    top: 45px;
    right: 12px;
}

.toast-top-left {
    top: 45px;
    left: 12px;
}

.popover-wide {
    max-width: 320px;
    width: 100%;
}

fieldset {}

legend {
    text-align: center;
    color: var(--secondaryText);
    /*border-bottom-color: var(--secondaryText);*/
}

h4.mtd-no-top-margin {
    margin-top: 0;
}

#ui-datepicker-div {
    z-index: 2000 !important;
}

label.mtd-above-checkbox {
    /*    text-align: center;
    width: 100%;*/
}

input.mtd-filter-checkbox {
    margin: 0 0.3em 0 1em;
}

label.mtd-filter-label-last {
    margin-right: 15px;
}

a.sign-again-link {
    text-decoration: underline;
}

#TopPaddingDiv {
    padding-top: 0px;
}

a.mtd-bookmark {
    padding-top: 20px;
}

a.mtd-thumbnail {
    /*display: inline-block;*/
    display: block;
    padding: 4px;
    line-height: 1.428571429;
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    -webkit-transition: all .2s ease-in-out;
    transition: all .2s ease-in-out;
    height: 80px;
    width: 80px;
    /*height: auto;*/
    /*max-width: 100%;*/
}

#content {}

th.header {
    text-align: left;
}

th.header.center {
    text-align: center;
}

.mtd-panel-title-fullwidth {
    width: 100%;
}

a.mtd-panel-title {
    /*color: white;*/
    text-decoration: none;
    width: 100%;
    display: block;
}

.reset-button {
    background: none;
    cursor: pointer;
    padding: 0;
    margin: 0;
    border: 0;
}

/* Navbar */
a.top-menu-item {
    font-size: 16px;
}

/* Font size adjusters */
.font-size-sm {
    font-size: 12px;
}

.font-size-xs {
    font-size: 11px;
}

/* text colors */
.text-red {
    color: red;
}

.text-red-bold {
    color: red;
    font-weight: bold;
}

/* Dashboard */
a.mtd-ice-button-dashboard {
    float: left;
    font-weight: bold;
}

.mtd-btn-navbar {
    float: left;
    /*font-weight: bold;*/
    margin-left: 15px;
    margin-top: 5px;
    font-size: 18px;
}

.mtd-btn-navbar-ice {
    color: white;
}

button.mtd-dashboard-btn {
    font-size: 16px;
    padding: 10px 15px;
    text-align: left;
}

/* ICE */
h2.mtd-ice-panel-title {
    font-size: 18px;
    font-weight: bold;
    text-align: center;
}

p.mtd-ice-proj-name {
    font-weight: bold;
    font-size: 16px;
    text-align: center;
    text-decoration: underline;
}

p.mtd-ice-instruction {
    font-weight: bold;
    text-align: center;
}

a.mtd-ice,
a.mtd-ice:hover {
    color: white;
    font-weight: bold;
}

a.mtd-ice-local {
    background-color: orange;
}

a.mtd-ice-ambulance {
    background-color: #008807;
}

a.mtd-ice-fire {
    background-color: #CD1919;
}

a.mtd-ice-police {
    background-color: #1228C4;
}

a.mtd-ice-labourinspection {
    background-color: grey;
}

a.mtd-ice-contractor {
    background-color: grey;
}

select.mtd-proj-change {
    font-size: 18px;
    font-weight: bold;
}

select.notValid {
    color: var(--danger);
}

select.notValid option:not([disabled]) {
    color: initial;
}

.mtd-data-type-count-wrapper td {
    padding: 40px 5px 20px 5px !important;
}

.mtd-data-type-count-wrapper td a {
    display: inline-block !important;
}

.mtd-data-type-count-wrapper td>div {
    display: flex;
    justify-content: flex-start;
    gap: 34px;
}

/* File upload */
#file_progress_bar {
    margin: 10px 0;
    padding: 3px;
    border: 1px solid #000;
    font-size: 14px;
    clear: both;
    opacity: 0;
    -moz-transition: opacity 1s linear;
    -o-transition: opacity 1s linear;
    -webkit-transition: opacity 1s linear;
}

#file_progress_bar.loading {
    opacity: 1.0;
}

#file_progress_bar .percent {
    background-color: #99ccff;
    height: auto;
    width: 0;
}

.mtd-avatar-control {
    position: absolute;
    right: 115px;
    top: 0;
}

.mtd-avatar {
    position: absolute;
    top: -3px;
    left: -3px;
    /*width: 100px;*/
}

.mtd-avatar-control-project {
    /*top: 145px;*/
    position: relative;
    right: auto;
    top: auto;
}

.mtd-avatar-control-resource {
    /*top: 145px;*/
    position: relative;
    right: auto;
    top: auto;
}

/*.mtd-avatar-control-activity {
    top: -17px;
}*/

.mtd-avatar-control img {
    cursor: pointer;
    /*height: 100px;
    width: 100px;*/
    width: 46px;
    height: 46px;
}

.mtd-avatar-control img:hover {
    cursor: pointer;
    height: 100px;
    width: 100px;
}

.mtd-avatar img {
    height: 75px;
    width: 75px;
}

blockquote.diary-entry {
    font-size: 16px;
    margin-bottom: 0;
}

blockquote .moment-stamp {
    font-style: italic;
    position: absolute;
    top: -5px;
    right: 11px;
    font-size: 14px;
}

div.well-white {
    background-color: #fff;
}

div.well-deep {
    box-shadow: inset 8px 8px 17px rgb(0 0 0 / 5%);
}

/* ProjTransEditTable */
#ProjTransEditTable input.mtd-extra-wide,
#ProjTransEditTable textarea.mtd-extra-wide {
    /* width: 400px; */
}

#ProjTransEditTable textarea.form-control {
    padding: 2px;
    height: 24px;
}

#ProjTransEditTable input.form-control {
    padding: 2px;
    height: auto;
}

#ProjTransEditTable input.mtd-wide {
    width: 200px;
}

#ProjTransEditTable input.mtd-small {
    width: 100px;
}

#ProjTransEditTable input.mtd-date-field {
    width: 80px;
}

#ProjTransEditTable input.mtd-work-shift-setting-name {
    width: 190px;
}

#ProjTransEditTable input.mtd-extra-small {
    width: 50px;
}

#ProjTransEditTable input.mtd-number {
    width: 85px;
    text-align: right;
    letter-spacing: 1px;
}

#ProjTransEditTable input.mtd-amount {
    font-weight: bold;
}

#ProjTransEditTable.table-striped>tbody:nth-child(odd)>tr>td,
#ProjTransEditTable.table-striped>tbody:nth-child(odd)>tr>th {
    background-color: var(--grayBackgroundDark);
}

#ProjTransEditTable .person-wrapper {
    display: flex;
    align-items: center;
}

#ProjTransEditTable .person-wrapper button {
    background: none;
    border: 0;
    padding: 8px;
}

#ProjTransEditTable .selected-users {
    list-style: none;
    padding: 0;
    margin: 12px 0 0 0;
}

#ProjTransEditTable .selected-users li {
    margin-bottom: 0;
}

#ProjTransEditTable .selected-users li button {
    border: 0;
    padding: 4px 8px;
    background: none;
}

#ProjTransEditTableWrapper {
    width: 100%;
    margin: auto;
    /*background-color: white;*/
    padding-left: 25px;
    padding-right: 25px;
    margin-bottom: 50px;
}

#ProjTransEditTableWrapper .preloading-info>span>span {
    margin-left: 8px;
}

#ProjTransEditTable.table thead>tr>th,
#ProjTransEditTable.table tbody>tr>th,
#ProjTransEditTable.table tfoot>tr>th,
#ProjTransEditTable.table thead>tr>td,
#ProjTransEditTable.table tbody>tr>td,
#ProjTransEditTable.table tfoot>tr>td {
    border: none;
}

#ProjTransEditTable.table tbody:hover tr td,
.table tbody:hover tr th {
    background-color: var(--grayBackgroundDark);
}

#ProjTransEditTable input,
#ProjTransEditTable textarea {
    background-color: inherit;
    border: none;
}

#ProjTransEditTable .input-group.break {
    display: grid;
    grid-template-columns: 1fr 85px;
    align-items: center;
}

#ProjTransEditTable .input-group.break span {
    padding: 0 5px;
}

#ProjTransEditTable.table tbody.mtd-active-row tr td {
    background-color: var(--grayBackgroundDark);
}

.mtd-approve-trans:hover:before {
    content: "\f046";
    color: var(--success);
}

#ProjTransEditTable tbody.mtd-active-row tr textarea:focus {
    height: 68px;
}

#ProjTransEditTable tbody.mtd-active-row input,
#ProjTransEditTable tbody.mtd-active-row textarea {
    background-color: white;
    border: 2px inset;
}

#ProjTransEditTable tbody.mtd-active-row input[disabled],
#ProjTransEditTable tbody.mtd-active-row input[readonly],
#ProjTransEditTable tbody.mtd-active-row textarea[disabled],
#ProjTransEditTable tbody.mtd-active-row textarea[readonly] {
    background-color: var(--disabledBackground);
}

#ProjTransEditTable tbody.mtd-new-row {
    border-top: 2px dashed var(--divider) !important;
    background-color: var(--disabledBackground);
}

#ProjTransEditTable tbody.mtd-new-row>.mtd-data-record {
    opacity: 0.7;
}

#ProjTransEditTable tbody.mtd-new-row.mtd-active-row>.mtd-data-record {
    opacity: 1;
}

#ProjTransEditTable tbody.mtd-new-row.mtd-active-row {}

#ProjTransEditTable tbody.mtd-new-row input,
#ProjTransEditTable tbody.mtd-new-row textarea {
    background-color: white;
    border: 2px inset;
}

#ProjTransEditTable tr.mtd-autocompleted input,
#ProjTransEditTable tr.mtd-autocompleted textarea {
    color: var(--interaction);
    font-style: italic;
}

#ProjTransEditTable input.mtd-negative-qty {
    color: var(--danger);
}

#ProjTransEditTable input.mtd-temp-activity {
    color: var(--danger);
    font-style: italic;
    font-weight: bold;
}

#ProjTransEditTable .proj-trans-btn-footer-active {
    display: block !important;
}

#ProjTransEditTable .proj-trans-btn-footer {
    display: none;
    text-align: center;
    padding-top: 10px;
    position: fixed;
    height: 50px;
    background-color: #fcf8f2;
    bottom: 0;
    left: 0;
    right: 0;
    margin-bottom: 0;
    z-index: 1000;
}

/* waiting time */
#ProjTransEditTable .waiting-times {
    list-style: none;
    padding: 0;
    margin: 0;
}

#ProjTransEditTable .waiting-times li {
    display: flex;
    margin-bottom: 12px;
}

#ProjTransEditTable .waiting-times li>* {
    margin-right: 12px;
}

#ProjTransEditTable .waiting-times li>*:last-child {
    margin-right: 0;
}

#ProjTransEditTable .waiting-time-label {
    font-weight: 600;
    margin-bottom: 12px;
}

/* Project planning */
#ProjectTabs {
    display: none;
    border-bottom: 1px solid var(--secondaryText);
    margin-bottom: 5px;
}

#ProjectTabs .nav-tabs a {
    font-weight: bold;
}

#ProjectTabs .nav-tabs>li.active>a,
#ProjectTabs .nav-tabs>li.active>a:hover,
#ProjectTabs .nav-tabs>li.active>a:focus {
    border-bottom: 1px solid var(--secondaryText);
    border: 1px solid var(--secondaryText);
}

#ProjectTabs .nav-tabs>li>a:hover {
    background-color: #fff;
    border-bottom: 1px solid var(--secondaryText);
}

#ProjectPlanning legend {
    font-size: 16px;
}

#ProjectDetail fieldset {
    border: 1px solid #e5e5e5;
    padding: 10px;
}

#ProjectDetail legend {
    border: none;
    margin-bottom: 0;
    width: auto;
    padding-left: 5px;
    padding-right: 5px;
}

/* ProjTransReport */

.mtd-report-logo,
#ProjTransReport .mtd-report-logo,
#ResourceWeekReport .mtd-report-logo,
#ProjResourceReport .mtd-report-logo {
    position: absolute;
    margin: inherit;
    padding: inherit;
    left: 0;
    max-height: 113px;
    max-width: 150px !important;
}

#ProjTransReport.proj-trans-report--pdf {
    padding: 0px 12px;
}

#ProjTransReport.proj-trans-report--pdf .mtd-report-logo {
    left: 12px;
}

#ReportCompanyName {
    display: inline-block;
    font-size: 16px;
    margin-bottom: 8px;
}

#ProjTransReport legend,
#ResourceWeekReport legend,
#ProjTransReportWrapper legend {
    display: flex;
    justify-content: center;
}

.proj-trans-documentation__panel-wrapper,
.proj-trans-documentation__panel {
    position: relative;
}

.proj-trans-documentation__panel:not(:first-child).proj-trans-documentation__panel--images {
    break-before: page;
}

.proj-trans-documentation__panel--no-images {
    break-inside: avoid;
}

.proj-trans-documentation__header {
    display: flex;
    align-items: flex-start;
    max-width: 320px;
}

.proj-trans-documentation__header>*:first-child {
    flex: 1 1 60%;
}

.proj-trans-documentation__header>*:last-child {
    flex: 1 1 40%;
}

@media print {
    .proj-trans-documentation__header>*:first-child {
        flex: 1 1 50%;
    }

    .proj-trans-documentation__header>*:last-child {
        flex: 1 1 50%;
    }
}

.proj-trans-documentation--pdf .proj-trans-documentation__header>*:first-child {
    flex: 1 1 50%;
}

.proj-trans-documentation--pdf .proj-trans-documentation__header>*:last-child {
    flex: 1 1 50%;
}

.proj-trans-documentation__note-wrapper>* {
    max-width: 550px;
}

.proj-trans-documentation__images {
    padding-top: 24px;
    position: relative;
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
}

@media print {
    .proj-trans-documentation__images {
        display: block;
    }
}

.proj-trans-documentation--pdf .proj-trans-documentation__images {
    display: block;
}

.proj-trans-documentation__image-wrapper {
    padding-bottom: 12px;
    display: block;
    break-inside: avoid;
    break-after: page;
    position: relative;
}

.proj-trans-documentation__image-wrapper>div {
    display: inline-flex;
    flex-flow: column;
    align-items: center;
    position: relative;
}

.proj-trans-documentation__image-wrapper__time {
    font-size: 14px;
    margin-bottom: 4px;
    display: block;
    width: 100%;
    text-align: center;
}

.proj-trans-documentation__image-wrapper img {
    display: block;
    max-height: 60vh;
}

@media print {
    .proj-trans-documentation__panel:first-child .proj-trans-documentation__image-wrapper img {
        max-height: 6.5in;
    }

    .proj-trans-documentation__image-wrapper img {
        max-height: 7.5in;
    }
}

.proj-trans-documentation--pdf .proj-trans-documentation__panel:first-child .proj-trans-documentation__image-wrapper img {
    max-height: 6.5in;
}

.proj-trans-documentation--pdf .proj-trans-documentation__image-wrapper img {
    max-height: 7.5in;
}

.proj-trans-documentation__image-wrapper a:after {
    font-size: 12px;
    color: var(--secondaryText);
}

/* End ProjTransReport */

tbody.tbody-striped:nth-child(odd) {
    background: #f5f5f5;
    border: solid 1px #ddd;
}

tbody.tbody-striped:nth-child(even) {
    background: #e5e5e5;
    border: solid 1px #ddd;
}

.table tbody.tbody-striped td {
    border: none;
    font-size: 12px;
}

.table tbody.tbody-striped td.number,
.table th.number {
    text-align: right;
}

tbody.tbody-striped tr.header {
    border: dotted 1px #ddd;
}

#ProjTransReport .panel {
    margin-bottom: 6px;
}

#ProjTransReport .panel-title {
    font-size: 12px;
}

#ProjTransReport .panel-body {
    padding: 8px 0;
}

#ProjTransReport .form-group {
    margin-bottom: 0;
}

#ProjTransReport label {
    font-size: 10px;
    margin-bottom: 0;
}

#ProjTransReport span.description {
    min-height: 68px !important;
    height: auto !important;
}

#ProjTransReport .report-image-container {
    display: block;
    padding-top: 24px;
}

#ProjTransReport .report-image-container:empty {
    display: none;
}

#ProjTransReport .report-image-container img {
    break-inside: avoid;
    display: inline-block;
    margin-bottom: 12px;
    margin-right: 12px;
}

#ProjTransReport span.description-large {
    height: 110px !important;
    font-size: 14px !important;
}

#ProjTransReport input.form-control,
#ProjTransReport span.form-control {
    font-size: 10px;
    height: 24px;
    padding: 3px 5px;
    border: none;
}

#ProjTransReport .report-row-inner {
    margin-right: -5px;
    margin-left: -5px;
}

#ProjTransReport .report-col {
    padding: 0;
    padding-left: 5px;
}

#ProjTransReport .no-pad-left {
    padding-left: 0;
}

#ProjTransReport .no-pad-right {
    padding-right: 0;
}

#ProjTransReport .report-col-last {
    padding-right: 5px;
}

#ProjTransReport .report-col-nopad {
    padding: 0;
}

#ProjTransReport .panel-details {
    page-break-inside: avoid;
}

#ProjTransReport .summation-panel {
    page-break-inside: avoid;
    width: 100%;
    margin: auto;
    margin-bottom: 20px;
}

#ProjTransReport span.input-group-addon {
    padding: 0 6px;
    font-size: 12px;
}

#ProjTransReport .table>tbody>tr>td {
    padding: 4px;
}

#ProjTransReport .table>thead>tr>th {
    font-size: 14px;
}

#ProjTransReport.proj-trans-report--pdf .table>thead>tr>th {
    font-size: 12px;
}

#ProjTransReport.proj-trans-report--pdf .table>tbody>tr>td {
    font-size: 10px !important;
}

#ProjTransReport td.timeandmaterial {
    font-size: 10px;
    font-weight: 900;
    padding-right: 0;
}

#ProjTransReport .table th.summation {
    font-size: 10px;
}

#ProjTransReport .table th.summation-number {
    font-size: 10px;
    text-align: right;
}

#ProjTransReport .table td.summation {
    font-size: 10px;
}

#ProjTransReport .table td.summation-number {
    font-size: 10px;
    text-align: right;
}

#ProjTransReport textarea.form-control,
#ProjTransReport textarea.form-control[disabled] {
    font-size: 12px;
    padding: 3px 5px;
    border: none;
    background-color: white;
}

#ProjTransReport div.mtd-money-column {
    padding-left: 0;
    width: 12%;
}

.mtd-money {
    text-align: right;
}

.mtd-money-total {
    font-weight: bold;
}

.mtd-bold {
    font-weight: bold;
}

tr.disabled {
    color: #ccc;
}

#ProjTransReportSum span.mtd-attested {
    background-color: inherit;
    border: none;
    border-bottom: 2px solid black;
}

#ProjTransReportSum div.panel-footer {
    padding-top: 25px;
}

#ProjTransReport div.mtd-first-no-padding-left {
    padding-left: 0;
}

#ResourceWeekReport .panel-default {
    page-break-inside: avoid;
    width: 100%;
    margin: auto;
    margin-bottom: 20px;
}

@media all {
    .page-break {
        display: none;
    }
}

@media print {
    .page-break {
        display: block;
        page-break-before: always;
    }

    @page {
        size: auto;
        /* auto is the current printer page size */
        margin-top: 40px;
        /* this affects the margin in the printer settings */
        margin-bottom: 40px;
    }

    footer {
        display: none;
    }

    body {
        /*background-color:#FFFFFF;
            border: solid 1px black ;*/
        /*margin: 0;  /* the margin on the content before printing */
    }
}

#loading-indicator {
    position: absolute;
    left: 10px;
    top: 10px;
}

/* Mobile forms */
textarea.mtd-mobile {
    font-size: 20px;
}

#ProjNotificationMobilePanel {}

#ProjNotificationMobilePanel .panel-body {
    background-color: #f5f5f5;
}

#ProjNotificationMobilePanel label,
#ProjNotificationMobilePanel legend {
    color: #428bca;
}

#ProjTransRegForm div.panel-heading {
    /*background-color: #f5f5f5;*/
}

#ProjTransRegForm a.mtd-ice-button {
    margin-top: -7px;
    float: left;
    font-weight: bold;
}

#ProjTransRegForm h3.panel-title {
    /*color: white;*/
    font-size: 20px;
    text-align: center;
}

#ProjTransRegPanelBody {
    background-color: #f5f5f5;
}

#ProjTransRegForm label,
#ProjTransRegForm legend {
    color: #428bca;
}

#ProjTransRegForm div.form-group {
    margin-bottom: 5px;
}

#ProjTransRegForm select {
    margin-top: 30px;
    margin-bottom: 20px;
}

#ProjTransRegForm select.mtd-user-id {
    margin-top: 0;
    margin-bottom: 0;
}

#ProjTransRegForm input.mtd-mobile-qty {
    background-color: white;
    color: black;
}

#ProjTransRegForm span.mtd-static-value {
    font-size: 16px;
    font-weight: bold;
    background-color: #E6E6E6;
}

#ProjTransRegForm a.mtd-static-value {
    font-size: 16px;
    font-weight: bold;
    background-color: #E6E6E6;
    text-decoration: underline;
    cursor: pointer;
}

#ProjTransRegForm span.mtd-edit-value-icon {
    cursor: pointer;
    background-color: white;
}

#ProjTransRegForm input.mtd-start-time,
#ProjTransRegForm input.mtd-stop-time {
    text-align: center;
    color: red;
    cursor: pointer;
    background-color: white;
}

#ProjTransRegForm label.mtd-start-time,
#ProjTransRegForm label.mtd-stop-time {
    text-align: center;
    width: 100%;
    color: red;
}

#ProjTransRegForm div.start-time-group-edit,
#ProjTransRegForm div.stop-time-group-edit {
    margin-top: 20px;
}

#ProjTransRegForm span.mtd-expenses-button {
    font-weight: bold;
    color: red;
    font-size: 16px;
    cursor: pointer;
}

#ProjTransRegForm span.descriptionlabel {
    position: absolute;
    top: 0;
    left: 1px;
    color: #777;
}

#ProjTransRegForm span.descriptioninternallabel {
    position: absolute;
    top: 100px;
    left: 1px;
    color: red;
}

/* Admin user online */
.admin-user-list tr.active-company {
    background-color: #03a9f4 !important;
    color: white;
}

input.mtd-mobile,
select.mtd-mobile {
    font-size: 30px;
    height: 50px;
}

label.mtd-mobile-label {
    font-size: 18px;
}

button.mtd-btn-mobile {
    font-size: 30px;
    height: 50px;
}

a.mtd-btn-mobile {
    font-size: 30px;
    height: 50px;
}

button.mtd-btn-save-note {
    height: 97px;
}

/*
input.mtd-mandatory {
    border-color:red;
}
*/
button.mtd-mobile-start,
button.mtd-mobile-stop {
    font-size: 15px;
    width: 115px;
    padding-left: 0;
}

button.mtd-mobile-adjust-time {
    width: 80px;
}

button.start-save-button {
    height: 65px;
    /*
        float:right;
        width:59%;
    */
}

#RUHButtonGroup {
    margin-top: 40px;
}

button.ruh-button {
    /*height: 65px;
    float: left;
    width: 40%;*/
}

button.mtd-new-job {
    height: 65px;
    float: left;
    width: 40%;
}

button.change-error-button,
button.mtd-existing-job {
    height: 65px;
    float: right;
    width: 40%;
}

button.finish-registration-button {
    /*height: 65px;*/
    /*
        float:right;
        width:40%;
    */
}

.toast-message {
    font-size: 20px;
}

.btn-primary.blue {
    background-color: #3949AB !important;
    border-color: #3949AB;
    border-radius: 0;
}

/* ActivityTree */
div.mtd-tree-button-menu {
    border: 1px solid #CCC;
    background: #F0F0EE;
    position: relative;
    margin-bottom: 1px;
    padding: 0 4px;
    font-size: 16px;
}

div.mtd-tree-button-menu.fixed {
    height: 32px;
    line-height: 32px;
}

div.mtd-tree-button-menu>.separator {
    color: rgb(199, 199, 199);
    padding: 0 4px;
}

div.mtd-tree-activity-menu a {
    padding-right: 10px;
    padding-left: 10px;
}

div.mtd-tree-activity-menu a:hover {
    text-decoration: none;
}

div.mtd-tree-activity-menu a i {
    font-size: 120%;
    padding-top: 4.5px;
}

div.mtd-tree-activity-menu .dropdown {
    float: left;
    margin-top: 1px;
}

div.mtd-activity-panel-body {
    padding: 0;
    padding-bottom: 15px;
}

#UserPlanningGroups .searchinput,
#ActivityTreeColumn .searchinput {
    width: auto;
    height: 31px;
    margin-top: -6px;
    margin-top: -8px;
    float: right;
    display: inline-block;
    margin-left: 10px;
    width: 150px;
}

#UserPlanningGroups button.clear-search {
    position: absolute;
    right: -2px;
    top: -1px;
    cursor: pointer;
    color: #717171;
    background: none;
    border: none;
}

#UserPlanningGroups .dropdown-menu button.clear-search {
    right: 11%;
    top: 6px;
}

#UserPlanningGroups button.close-search {
    cursor: pointer;
    color: #717171;
    background: none;
    border: none;
    position: absolute;
    right: 0px;
    top: 0px;
}

/* JSTree */

.jstree-default .jstree-themeicon-custom {
    width: 16px !important;
}

.jstree-default .jstree-node,
.jstree-default .jstree-icon {
    width: 20px !important;
}

.jstree-default .jstree-node .user-info-icon {
    display: none;
    color: #333;
}

.jstree-default .jstree-node .jstree-hovered .user-info-icon {
    display: inline-block;
}

.jstree-default .jstree-node .jstree-clicked .user-info-icon {
    display: inline-block;
}

.jstree-default a.jstree-search {
    color: #414042 !important;
    /*font-weight: bold;*/
}

div.jstree li a.root-node {
    font-weight: bold;
}

div.jstree li.disabled a {
    color: grey;
}

div.jstree li.eov>a {
    color: var(--accent);
    font-weight: bold;
    /*border-left:2px dotted var(--accent);*/
    /*padding-left:0;*/
}

div.jstree li.eov-parent>a {
    color: var(--accent);
    /*border-bottom:2px solid var(--accent);*/
    /*padding-left:0;*/
}

div.jstree li.eov-sent>a {
    color: var(--accent);
    /*border-bottom:2px solid var(--accent);*/
    /*padding-left:0;*/
}

div.jstree li.deactivated>a {
    text-decoration-line: line-through;
    color: grey;
    /*font-weight: bold;
    color: var(--success);*/
    /*border-bottom:1px solid black;*/
}

div.jstree li.finished>a {
    text-decoration-line: line-through;
    color: var(--success);
    /*font-weight: bold;
    color: var(--success);*/
    /*border-bottom:1px solid black;*/
}

div.jstree li.default>a {
    color: black;
}

div.jstree li.default-parent>a {
    color: black;
    padding-left: 2px;
}

/* Activity detail */
#ProjActivityDetail .form-group {
    margin-bottom: 5px;
}

#ProjActivityDetail fieldset {
    margin-bottom: 15px;
}

#ProjActivityDetail legend {
    font-weight: bold;
    text-align: left;
    border-bottom: 5px solid var(--secondaryText);
}

#ProjActivityDetail legend.eov {
    font-weight: bold;
    text-align: left;
    border-bottom: 5px solid var(--accent);
    color: var(--accent);
}

/* Footer */
@media (min-width: 768px) {
    footer {
        position: fixed;
        bottom: 0;
    }
}

footer {
    text-align: right;
    padding-top: 20px;
    padding-right: 20px;
    width: 100%;
}

/* Images Mobile */


/* Bootstrap extensions */
.has-warning .form-control {
    border-color: var(--accent) !important;
    -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, .075);
    box-shadow: inset 0 1px 1px rgba(0, 0, 0, .075);
}

.text-success-light {
    color: var(--success);
}

.text-warning-light {
    color: var(--accent);
}

.text-danger-light {
    color: var(--danger);
}

input[type="checkbox"].mtd-mobile-checkbox:disabled+label {
    opacity: 0.5;
}

.panel-heading .accordion-toggle {
    color: white;
    color: inherit;
    text-decoration: none;
    width: 100%;
    display: block;
}

div.mtd-checkbox-mobile {
    font-size: 1.3em;
}

.mtd-help-po {
    padding-left: 3px;
    color: #428bca;
}

/* Bootstrap overrides */
input[type="radio"].form-control,
input[type="checkbox"].form-control {
    margin: 0;
}

.timeDivWrapper {
    min-width: 165px;
}

@media (min-width: 768px) {
    .table-responsive {
        overflow: visible;
    }
}

.form-inline.spacing .form-group {
    margin-right: 8px;
}


/*@media (max-width: 767px) {
    .table-responsive .dropdown-menu,
    .table-responsive .dropdown-toggle {
        position: static !important;
    }
}*/

@media screen and (max-width: 1700px) {
    .modal-body {
        padding: 2px;
    }

    #ProjTransEditTable th {
        font-size: 12px;
    }

    #ProjTransEditTable td {
        padding-right: 2px;
        padding-left: 2px;
    }

    #ProjTransEditTable .fa-2x {
        font-size: 1.5em !important;
    }

    #ProjTransEditTable label {
        font-size: 12px;
    }

    #ProjTransEditTable .input-group.break span {
        font-size: 12px;
    }

    #ProjTransEditTable .input-group.break input {
        border-radius: 4px;
    }

    #ProjTransEditTable input.mtd-extra-wide,
    #ProjTransEditTable textarea.mtd-extra-wide {
        width: 350px;
    }

    #ProjTransEditTable input.mtd-wide {
        width: 175px;
    }

    #ProjTransEditTable input.mtd-work-shift-setting-name {
        width: 175px;
    }
}

@media screen and (max-width: 1500px) {

    #ProjTransEditTable input.mtd-extra-wide,
    #ProjTransEditTable textarea.mtd-extra-wide {
        /* width: 300px; */
    }

    #ProjTransEditTable input.mtd-wide {
        width: 150px;
    }

    #ProjTransEditTable input.mtd-work-shift-setting-name {
        width: 150px;
    }
}


@media screen and (max-width: 1500px) {

    #ProjTransEditTable input.mtd-extra-wide,
    #ProjTransEditTable textarea.mtd-extra-wide {
        width: 200px;
    }

    #ProjTransEditTable input.mtd-wide {
        width: 125px;
    }

    #ProjTransEditTable input.mtd-work-shift-setting-name {
        width: 125px;
    }
}

@media screen and (max-width: 1200px) {
    #ProjTransEditTable input {
        font-size: 12px !important;
        margin-bottom: 2px;
    }

    #ProjTransEditTable input.mtd-extra-wide,
    #ProjTransEditTable textarea.mtd-extra-wide {
        width: 175px;
    }

    #ProjTransEditTable input.mtd-wide {
        width: 100px;
    }

    #ProjTransEditTable input.mtd-work-shift-setting-name {
        width: 100px;
    }
}

/* Absence registration modal */
.absence-registration-edit-form {
    padding: 15px;
}

/* User tags */
.tag-in-other-company {
    display: inline-block;
    min-width: 10px;
    padding: 3px 7px;
    font-size: 14px;
    font-weight: bold;
    line-height: 1;
    color: #fff;
    text-align: center;
    white-space: nowrap;
    vertical-align: middle;
    background-color: #777;
    border-radius: 10px;
    margin-bottom: 3px;
    margin-right: 3px;
}

.tag-in-own-company {
    display: inline-block;
    min-width: 10px;
    padding: 3px 7px;
    font-size: 14px;
    font-weight: bold;
    line-height: 1;
    color: #fff;
    text-align: center;
    white-space: nowrap;
    vertical-align: middle;
    background-color: midnightblue;
    border-radius: 10px;
    margin-bottom: 3px;
    margin-right: 3px;
}

/* project planning and resources 188px */
#UserPlanningGroups .activity-panel .jstree,
#ProjPlanningResourcesGroups .activity-panel .jstree {
    height: calc(100% - 64px);
    overflow-y: auto;
    position: relative;
}

#UserPlanningGroups .activity-panel {
    position: relative;
}

#UserPlanningGroups .panel-body,
#ProjPlanningResourcesGroups .panel-body {
    height: calc(100% - 16px) !important;
    padding-bottom: 0;
}


.userplanning-dropdown-search {
    width: 100%;
}

.userplanning-dropdown-search input {
    margin-left: 20px;
    width: 85%;
    margin-bottom: 10px;
}

.userplanning-dropdown-search .submenu {
    padding: 0px;
}

.userplanning-dropdown-search .submenu li {
    list-style: none;
}

.userplanning-dropdown-search .submenu li a {
    display: block;
    padding: 3px 20px;
    color: inherit;
}

.userplanning-dropdown-search .submenu li a:hover,
.userplanning-dropdown-search .submenu li a:focus {
    text-decoration: none;
    background-color: #beebff;
}

.userplanning-dropdown-search .submenu>*+*:not(.divider) {
    padding-top: 5px;
}


@media (min-width: 768px) {
    #ProjPlanningResourcesGroups .activity-panel {
        height: calc(100vh - 343px);
    }
}

@media (min-width: 768px) and (max-width: 991px) {
    #UserPlanningGroups .activity-panel {
        height: 500px;
    }
}


@media (min-width: 992px) {
    #UserPlanningGroups .activity-panel {
        height: calc(100vh - 278px);
    }
}

@media (min-width: 1090px) {
    #UserPlanningGroups .activity-panel {
        height: calc(100vh - 260px);
    }
}

@media (min-width: 1135px) {
    #ProjPlanningResourcesGroups .activity-panel {
        height: calc(100vh - 313px);
    }
}

@media (min-width: 1240px) {
    #UserPlanningGroups .activity-panel {
        height: calc(100vh - 240px);
    }
}

@media (min-width: 1270px) {
    #ProjPlanningResourcesGroups .activity-panel {
        height: calc(100vh - 293px);
    }
}

@media (min-width: 1390px) {
    #ProjPlanningResourcesGroups .activity-panel {
        height: calc(100vh - 275px);
    }
}

@-webkit-keyframes saveButtonFadeIn {
    0% {
        display: block;
        opacity: 0;
    }

    1% {
        opacity: 0;
        transform: translate3d(0, 100%, 0);
    }

    100% {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

.period-planning-save-bar {
    position: fixed;
    left: 0;
    bottom: 0;
    display: none;
    padding: 24px 15px;
    background: white;
    z-index: 9999;
    width: 100%;
    box-shadow: rgba(0, 0, 0, 0.25) 0 4px 16px;
    transform: translate3d(0, 100%, 0);
    opacity: 0;
}

.period-planning-save-bar.open {
    display: block;
    animation: saveButtonFadeIn 0.5s normal forwards cubic-bezier(0.895, 0.03, 0.685, 0.22);
}

#UserPlanningMachine .viewtypes {
    margin-top: 4px;
}


/* payroll */
#payroll_report_table {
    position: relative;
}

#payroll_report_table .table-content-row td {
    border-bottom: 1px solid #adacac;
}

#payroll_report_table thead {
    position: sticky;
    top: -20px;
    z-index: 10;
    background: var(--grayBackground);
}



/* formgroup overrides */
.form-group.mtd-min-height {
    min-height: 88px;
}


/* max height and scrollbar on autocomplete (jquery ui autocomplete) */
.ui-autocomplete,
.dropdown-menu {
    max-height: calc(70vh - 100px); /* 80% of viewport height minus some padding */
    overflow-y: auto !important;
    overflow-x: hidden;
    scrollbar-width: thin;
    scrollbar-color: rgba(0, 0, 0, 0.3) transparent;
}


.dropdown-menu .dropdown-menu__item-with-secondary {
    display: flex;
    flex-direction: column;
    align-items: flex-start !important;
}

.dropdown-menu .dropdown-menu__item-with-secondary span {
    margin-left: 0 !important;
}

.dropdown-menu .dropdown-menu__item-with-secondary > span:first-child {
    display: flex;
    align-items: center;
    gap: 10px;
}

.dropdown-menu .dropdown-menu__secondary-text {
    color: var(--secondaryText);
}

/* fix scroll bar on hover */
.ui-autocomplete .ui-menu-item:last-child.ui-state-focus {
    margin-bottom: 0;
}

@media (min-height: 1200px) {

    .ui-autocomplete,
    .dropdown-menu {
        max-height: 700px;
    }
}

@media (min-height: 1400px) {

    .ui-autocomplete,
    .dropdown-menu {
        max-height: 900px;
    }
}

.horizontal-radio-filter input {
    margin-right: 2px;
    position: absolute;
    clip: rect(0, 0, 0, 0);
    pointer-events: none;
}

/* add external machine dialog */

#ExternalResourceDialogModelForm,
#ExternalMachineEquipmentDialogModel {
    padding: 24px;
}

.machine-header {
    padding-bottom: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.machine-header>* {
    display: flex;
    align-items: center;
    flex: 1 1 auto;
}

.machine-header>*:last-child {
    justify-content: flex-end;
}

.machine-header>*>* {
    margin-right: 12px;
}

.machine-header>*:last-child {
    margin-right: 0;
}

.machine-header label {
    margin-bottom: 0;
}

.new-machine-equipment-form {
    padding: 24px 0;
}