@media (orientation: portrait) {
    #detailsRightContainer {
        border-left: 0px !important;
    }

    #jobTable th:nth-child(3),
    #jobTable td:nth-child(3) {
        display: none;
    }

    #todaysJobsTable th:nth-child(3),
    #todaysJobsTable td:nth-child(3) {
        display: none;
    }

    /* stack Job Details above Customer Details instead of side-by-side */
    #jobDetailsColumnsContainer {
        flex-direction: column;
    }

    #detailsRightContainer {
        border-left: none;
    }

    /* stack the preferred/back-up date label+input pairs instead of side-by-side */
    #datesContainer .row {
        align-items: center;
        flex-direction: column;
    }

    #datesContainer .label {
        background-color: #00000020;
        text-align: center;
        width: 100%;
    }

    input[type="date"] {
        margin: 5px;
        zoom: 1.5;
    }
}
/* Default styles */
*,
*::before,
*::after {
	box-sizing: border-box;
}

html,
body {
	margin: 0;
	padding: 0;
	font-family: 'Roboto Mono', sans-serif;
	line-height: 1.5;
	color: #222;
	background-color: #fafafa;
}

/* tr column 4 should be right aligned */
tr td:nth-child(4) {
	text-align: right;
}
tr th {
    text-align: left;
}
tr th:nth-child(4) {
	text-align: right;
}



/* Page styles */
#autoUpdateText {
    font-size: 18px;
}

#datesContainer {
    margin-top: 20px;
}

#detailsRightContainer {
    border-left: 2px solid #00000080;
}

.engineerName {
    margin-left: 10px;
}

#goToMainPageButton {
    margin-left: 14px;
}

.halfContainer {
    flex: 1 1 0;
    padding: 10px;
    border-bottom: 2px solid #00000080;
}

#jobDetailsButtonBar {
    background-color: #FFA631;
    display: flex;
    font-size: 26px;
    font-weight: bold;
    justify-content: space-between;
    position: fixed;
    left: 0;
    padding: 2px 10px;
    top: 0;
    width: 100%;
}

#jobDetailsContainer {
    background-color: #fafafa;
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    min-height: 0; /* allows this flex child to shrink so overflow-y can scroll it */
    margin-top: 45px;
    overflow-y: auto;
}

#jobDetailsColumnsContainer {
    display: flex;
    flex: 0 0 auto;
}

#reportedFaultsContainer {
    flex: 0 0 auto;
    padding: 10px;
}

#reportedFaultsContent {
    font-family: inherit;
    margin: 0;
    text-transform: none;
    white-space: pre-wrap;
    word-break: break-word;
}

#jobDetailsContent {
    display: flex;
    flex-direction: column;
}

.customerDetailsHeader, .jobDetailsHeader, .reportedFaultsHeader {
    background-color: #00000010;
    font-weight: bold;
}

#jobDetailsOuterContainer {
    background-color: #FFA631;
    display: flex;
    flex-direction: column;
    font-size: 16px;
    height: 100%;
    left: 0;
    position: fixed;
    text-transform: uppercase;
    top: 0;
    transform: translateY(100vh);
    width: 100%;
    z-index: 10;
}

#contactOuterContainer {
    background-color: #FFA631;
    display: flex;
    flex-direction: column;
    font-size: 16px;
    height: 100%;
    left: 0;
    position: fixed;
    text-transform: uppercase;
    top: 0;
    transform: translateY(100vh);
    width: 100%;
    z-index: 11;
}

#contactButtonBar {
    background-color: #FFA631;
    display: flex;
    font-size: 26px;
    font-weight: bold;
    justify-content: space-between;
    position: fixed;
    left: 0;
    padding: 2px 10px;
    top: 0;
    width: 100%;
}

#contactContainer {
    background-color: #fafafa;
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    margin-top: 45px;
    overflow-y: auto;
    padding: 10px;
}

#contactInfoContent {
    display: flex;
    flex-direction: column;
}

#contactMessageInput {
    font-family: inherit;
    margin-top: 10px;
    padding: 10px;
    resize: vertical;
    text-transform: none;
    width: 100%;
}

#sendContactMessageButton {
    background-color: #FFA631;
    border-radius: 3px;
    display: flex;
    font-weight: bold;
    justify-content: center;
    margin-top: 20px;
    padding: 10px;
}

#rejectOuterContainer {
    background-color: #FFA631;
    display: flex;
    flex-direction: column;
    font-size: 16px;
    height: 100%;
    left: 0;
    position: fixed;
    text-transform: uppercase;
    top: 0;
    transform: translateY(100vh);
    width: 100%;
    z-index: 11;
}

#rejectButtonBar {
    background-color: #FFA631;
    display: flex;
    font-size: 26px;
    font-weight: bold;
    justify-content: space-between;
    position: fixed;
    left: 0;
    padding: 2px 10px;
    top: 0;
    width: 100%;
}

#rejectContainer {
    background-color: #fafafa;
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    margin-top: 45px;
    overflow-y: auto;
    padding: 10px;
}

#rejectInfoContent {
    display: flex;
    flex-direction: column;
}

#rejectReasonInput {
    font-family: inherit;
    margin-top: 10px;
    padding: 10px;
    resize: vertical;
    text-transform: none;
    width: 100%;
}

#submitRejectButton {
    background-color: #FFA631;
    border-radius: 3px;
    display: flex;
    font-weight: bold;
    justify-content: center;
    margin-top: 20px;
    padding: 10px;
}

#jobTable {
    line-height: 255%;
    width: 100%;
}

#jobTableButtonBar {
    background-color: #FFA631;
    display: flex;
    font-size: 26px;
    font-weight: bold;
    justify-content: space-between;
    position: fixed;
    left: 0;
    padding: 2px 10px;
    top: 0;
    width: 100%;
}

#jobTableContainer {
    margin-bottom: 38px;
    margin-top: 38px;
    width: 100%;
}

#jobTableOuterContainer {
	display: flex;
    flex-direction: column;
    font-size: 18px;
    height: 100%;
    left: 0;
    padding: 10px 20px;
    position: fixed;
    top: 0;
    transform: translateY(100vh);
    text-transform: uppercase;
    width: 100%;
    z-index: 10;
}

#refreshAvailableJobsButton {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

#todaysJobsOuterContainer {
    display: flex;
    flex-direction: column;
    font-size: 18px;
    height: 100%;
    left: 0;
    padding: 10px 20px;
    position: fixed;
    text-transform: uppercase;
    top: 0;
    transform: translateY(100vh);
    width: 100%;
    z-index: 10;
}

#todaysJobsButtonBar {
    background-color: #FFA631;
    display: flex;
    font-size: 26px;
    font-weight: bold;
    justify-content: space-between;
    left: 0;
    padding: 2px 10px;
    position: fixed;
    top: 0;
    width: 100%;
}

#todaysJobsContainer {
    flex: 1 1 auto;
    margin-bottom: 38px;
    margin-top: 38px;
    overflow-y: auto;
    width: 100%;
}

#todaysJobsTable {
    line-height: 255%;
    width: 100%;
}

#todaysJobsTable th:first-child,
#todaysJobsTable td:first-child {
    width: 30px;
}

.label {
    font-weight: 500;
}

.loggedInAs {
    align-items: center;
    display: flex;
    font-size: 18px;
    font-variant: all-small-caps;
}

#lowerButtonsContainer {
    background-color: #FFA631;
    display: flex;
    justify-content: space-around;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 10px 10px;
}

#todaysJobsLowerButtonsContainer {
    background-color: #FFA631;
    display: flex;
    justify-content: space-around;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 10px 10px;
}

#lowerButtonsContainer div {
    background-color: #00000020;
    border: 1px solid #000000AA;
    border-radius: 3px;
    text-align: center;
    width: 25%;
}

#todaysJobsLowerButtonsContainer div {
    background-color: #00000020;
    border: 1px solid #000000AA;
    border-radius: 3px;
    text-align: center;
    width: 25%;
}

.mainPageButton {
    align-items: center;
    background-color: #00000077;
    border: 2px solid #00000030;
    border-radius: 5px;
    color: #fff;
    cursor: pointer;
    display: flex;
    flex: 1 1 0;
    flex-direction: column;
    font-size: 30px;
    gap: 10px;
    justify-content: center;
    margin: 0;
    padding: 15px 30px;
    text-transform: uppercase;
    width: 100%;
}

.row {
    display: flex;
    justify-content: space-between;
}

#savePreferredDatesButton {
    background-color: #FFA631;
    padding: 10px;
    display: flex;
    justify-content: center;
    font-weight: bold;
    margin-top: 20px;
    border-radius: 3px;
}

.selected {
    background-color: bisque;
}

#selectionPageContainer {
    align-items: stretch;
    background-color: #FFA631;
    color: #000000aa;
    display: flex;
    flex-direction: column;
    gap: 20px;
    height: 100vh;
    justify-content: center;
    left: 0;
    padding: 20px;
    position: fixed;
    text-align: center;
    top: 0;
    width: 100vw;
    z-index: 2222;
}

.updatedJobs {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.newJobSmallInt {
    align-items: center;
    background-color: #4489E4;
    border-radius: 50%;
    color: #fff;
    display: flex;
    font-size: 0.5em;
    height: 22px;
    justify-content: center;
    line-height: 1;
    min-width: 22px;
    padding: 2px;
    position: absolute;
    right: -11px;
    top: -6px;
}














#loginContainer {
    align-items: center;
    background-color: #FFA631;
    color: #000000aa;
    display: flex;
    height: 100vh;
    justify-content: center;
    left: 0;
    position: fixed;
    top: 0;
    transition: none;
    width: 100vw;
    z-index: 99999;
}

#loginContainer.loggedIn {
    transform: translateY(-100vh);
}

#loginForm {
    display: flex;
    flex-direction: column;
    gap: 15px;
    text-align: center;
    width: 260px;
}

#loginForm input {
    background-color: #ffffffcc;
    border: none;
    border-radius: 5px;
    font-size: 18px;
    padding: 10px;
}

#loginForm button {
    background-color: #00000077;
    border: none;
    border-radius: 5px;
    color: #fff;
    cursor: pointer;
    font-size: 20px;
    padding: 12px;
    text-transform: uppercase;
}

#loginError {
    color: #7a0000;
    font-weight: bold;
    min-height: 20px;
}

/*
Loading screen styles
*/
#loadingContainer {
    position: fixed;
    align-items: center;
    background-color: #FFA631;
    color: #000000AA;
    display: flex;
    height: 100vh;
    justify-content: center;
    left: 0;
    text-align: center;
    top: 0;
    width: 100vw;
    z-index: 9999;
}

#loadingText {
    font-size: 24px;
    font-weight: bold;
    line-height: 2;
    text-transform: uppercase;
}

#pleaseWait {
    font-size: 32px;
    font-weight: bold;
    line-height: 2;
}