/* GENERAL */
html, body {
    width: 100%;
    height: 100%;
    border: 0;
    margin: 0;
    padding: 0;
}
body * { font-family: Verdana, Arial, sans-serif !important; }
noscript {
    position: fixed;
    top: 0;
    left: 0;
    display: block;
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    background-color: #d9d9d9;
    z-index: 2001 !important;
}
noscript * { padding: 4% 4% 0 4%; }
div#InitSplash, div#LoadingSplash {
    position: fixed;
    top: 0;
    left: 0;
    display: block;
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    background-color: #000000;
    z-index: 999999999;
}
div#LoadingSplash {
    display: none;
    opacity: 0.4;
}
div#InitSplash img, div#LoadingSplash img {
    position: fixed;
    top: 50%;
    left: 50%;
    margin: -23px 0 0 -23px;
}
input::-ms-clear {
    width: 0;
    height: 0;
    display: none;
}
.NoTopSpace {
    padding-top: 0;
    margin-top: 0;
}
.FirmNoTopSpace {
    padding-top: 0px !important;
    margin-top: 0px !important;
}
.NoRightSpace {
    padding-right: 0;
    margin-right: 0;
}
.NoBottomMargin { margin-bottom: 0; }
.FirmNoBottomMargin { margin-bottom: 0 !important; }
.NoBottomSpace {
    padding-bottom: 0;
    margin-bottom: 0;
}
.FirmNoBottomSpace {
    padding-bottom: 0px !important;
    margin-bottom: 0px !important;
}
.NoLeftSpace {
    padding-left: 0;
    margin-left: 0;
}
/* reduces top space */
.SmallTopMargin { margin-top: 5px; }
.FirmSmallTopMargin { margin-top: 5px !important; }
.SmallTopSpace {
    padding-top: 0;
    margin-top: 3px;
}
.FirmSmallTopSpace {
    padding-top: 0px !important;
    margin-top: 4px !important;
}
/* transfers spacing from left to right */
.SmallSpaceRight {
    padding-right: 0;
    margin-right: 3px;
    padding-left: 0;
    margin-left: 0; 
}
/* reduces bottom space */
.SmallBottomSpace {
    padding-bottom: 0;
    margin-bottom: 10px; 
}
.FirmSmallBottomSpace {
    padding-bottom: 0px !important;
    margin-bottom: 4px !important;
}
/* transfers spacing from right to left */
.SmallSpaceLeft {
    padding-right: 0;
    margin-right: 0;
    padding-left: 0;
    margin-left: 3px; 
}
.NoWordWrap {
    text-wrap: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.WrapWords {
    /*-ms-word-break: break-all;
    word-break: break-all;
    word-break: break-word; *//* non-standard webkit property */
    -webkit-hyphens: auto;
    -moz-hyphens: auto;
    hyphens: auto;
}
.ClearFixGroup:after {
  content: "";
  display: table;
  clear: both;
}
img.LogoSplash {
     max-width: 650px;
     width: 80%;
     padding: 4% 10% 0 10%;
     margin: 0 auto;
     display: block;
}
.AttnBtn {
    font-size: 30px !important;
    padding: 0.06em 0.48em;
    font-family: Courier, monospace !important;
}
.FlipY {
    -moz-transform: scaleX(-1);
    -webkit-transform: scaleX(-1);
    -o-transform: scaleX(-1);
    transform: scaleX(-1);
    -ms-filter: fliph; /*IE*/
    filter: fliph; /*IE*/
}
.FlipX {
    -moz-transform: scaleY(-1);
    -webkit-transform: scaleY(-1);
    -o-transform: scaleY(-1);
    transform: scaleY(-1);
    -ms-filter: flipv; /*IE*/
    filter: flipv; /*IE*/
}
.FlipYAfter::after {
    -moz-transform: scaleX(-1);
    -webkit-transform: scaleX(-1);
    -o-transform: scaleX(-1);
    transform: scaleX(-1);
    -ms-filter: fliph; /*IE*/
    filter: fliph; /*IE*/
}
.FlipXAfter::after {
    -moz-transform: scaleY(-1);
    -webkit-transform: scaleY(-1);
    -o-transform: scaleY(-1);
    transform: scaleY(-1);
    -ms-filter: flipv; /*IE*/
    filter: flipv; /*IE*/
}
div.ui-grid-a.Expansive div.ui-block-a a { margin-left: 0; }
div.ui-grid-a.Expansive div.ui-block-b a { margin-right: 0; }
div.ui-grid-a.Expansive div a { margin-top: 1px; }
.IEBoxModel {
    -webkit-box-sizing: border-box; /* this property is amazing!! it makes padding and border subtract from declared element width/height, instead of adding to it; it implements the IE6 box-model, that was non-spec but awesome all the same!! */
    -moz-box-sizing: border-box;
    box-sizing: border-box;
}
/* STRUCTURE */
img.Logo {
    position: absolute;
    top: 2px;
    left: 6px;
    width: 77px;
    height: 40px;
}
.ui-header .ui-title {
    margin-left: 25%;
    margin-right: 25%;
}
div.AppHeader.Overlay {
    -webkit-box-shadow: 0px 2px 5px 0px rgba(50, 50, 50, 0.25);
    -moz-box-shadow: 0px 2px 5px 0px rgba(50, 50, 50, 0.25);
    box-shadow: 0px 2px 5px 0px rgba(50, 50, 50, 0.25); /* x-shift, y-shift, blur, spread, color*/
    border: none;
}
div.AppContents.BorderlessContent { padding: 0 !important; }
div.AppFooter.Overlay {
    -webkit-box-shadow: 0px -2px 5px 0px rgba(50, 50, 50, 0.25);
    -moz-box-shadow: 0px -2px 5px 0px rgba(50, 50, 50, 0.25);
    box-shadow: 0px -2px 5px 0px rgba(50, 50, 50, 0.25); /* x-shift, y-shift, blur, spread, color*/
    border: none;
}
div.AppFooter.EqualizedNavBar a.ui-btn { padding: 1.05em 0.7em; }
/* ENTRY TOGGLE */
div.EntryGroup { position: relative; }
div.EntryGroup button.ManualEntry,
div.EntryGroup div.ui-input-text { margin: 0 0 7px 0; }
img.LockToggle {
    position: absolute;
    top: 7px;
    right: 5px;
    width: 24px;
    height: 24px;
    cursor: pointer;
}
button.ManualEntry { padding: 0.223em; }
button.ManualEntry img {
    margin: 2px 0 -2px 0;
    width: 24px;
    height: 24px;
}
div.EntryGroup div.SquareButtonLeft { width: 48px; }
div.EntryGroup div.FluidButtonRight {
    margin-left: -48px;
    padding-left: 48px;
}
/* CORNER LABELS */
.LeftCornerLabel, .RightCornerLabel {
    position: absolute;
    top: -1px;
    right: 0;
    font-size: 14px;
    font-family: 'Courier New', monospace !important;
    text-transform: uppercase;
    text-shadow: none;
    padding: 5px 7px 4px 9px;
    color: #ffffff;
    background-color: #ba51e0;
}
.RightCornerLabel span { font-family: 'Courier New', monospace !important; }
.LeftCornerLabel {
    right: initial;
    left: 0;
    background-color: #f2e124;
    color: #000000;
}
.RightCornerLabel[data-lt-type='No Service'] { background-color: #777777; } /* medium gray */
.RightCornerLabel[data-lt-type='complete'] { background-color: #333333; } /* dark grey */
.RightCornerLabel[data-lt-type='Parts Ordered'],
.RightCornerLabel[data-lt-type='delivery'] { background-color: #ff9f09; } /* domenco orange */
.RightCornerLabel[data-lt-type='To be Inspected'],
.RightCornerLabel[data-lt-type='inspection'] { background-color: #ba51e0; } /* purple */
.RightCornerLabel[data-lt-type='Inspection'] { background-color: #ff0000; } /* red */
.RightCornerLabel[data-lt-type='inspected'],
.RightCornerLabel[data-lt-type='Inspected'] { background-color: #641a80; } /* dark purple */
.RightCornerLabel[data-lt-type='not done'] { background-color: #e83333; } /* medium red */
.RightCornerLabel[data-lt-type='To Be Decided'],
.RightCornerLabel[data-lt-type='To Be Serviced'],
.RightCornerLabel[data-lt-type='service'],
.RightCornerLabel[data-lt-type='Service'] { background-color: #f2e124; color: #000000; } /* medium yellow */
.RightCornerLabel[data-lt-type='Serviced'] { background-color: #b3a400; } /* dark yellow */
.RightCornerLabel[data-lt-type='parts ordered'] { background-color: #f418a0; } /* pink */
.RightCornerLabel[data-lt-type='Return Visit'],
.RightCornerLabel[data-lt-type='pickup'] { background-color: #37b5f4; } /* domenco blue */
.RightCornerLabel[data-lt-type='Contacted'],
.RightCornerLabel[data-lt-type='completed'],
.RightCornerLabel[data-lt-type='Completed'],
.RightCornerLabel[data-lt-type='done'] { background-color: #83e051; color: #000000; } /* green */
.RightCornerLabel[data-lt-type='ActiveTask'] { background-color: #caffad; color: #000000; } /* synchronized with .OutcomeHighlight green */
.LeftCornerLabel[data-lt-type='ActiveTask'] { background-color: #caffad; color: #000000; } /* synchronized with .OutcomeHighlight green */
/* FOOTER */
a.ActionFooterButton { margin: 15px 0 15px 15px !important; }
a.ActionFooterButton.RightHanded { margin: 15px 15px 15px 0 !important; }
a.FooterButton { margin: 15px !important; }
a.FooterButtonLeft { margin: 15px 8px 15px 15px !important; }
a.FooterButtonRight { margin: 15px 15px 15px 8px !important; }
div.InlineFooterButtonsLeft, div.InlineFooterButtonsRight {
    display: inline-block;
    clear: none;
}
div.InlineFooterButtonsLeft { float: left; }
div.InlineFooterButtonsRight { float: right; }
div.InlineFooterButtonsLeft a, div.InlineFooterButtonsRight a {
    float: left;
    clear: none;
} /* this keeps the buttons in the original source order, rather than switching the order if floating right; a float seems to be needed to maintain proper margins */
div.InlineFooterButtonsLeft a { margin: 15px 0 15px 15px; }
div.InlineFooterButtonsRight a { margin: 15px 15px 15px 0; }
div.SquareButtonLeft { float: left; }
div.SquareButtonRight { float: right; }
div.SquareButtonLeft, div.SquareButtonRight {
    clear: none;
    width: 55px;
}
div.SquareButtonLeft a { margin: 10px 0 10px 15px; }
div.SquareButtonRight a { margin: 10px 15px 10px 0; }
div.SquareButtonLeft a, div.SquareButtonRight a { padding: 4px !important; }
div.FluidButtonLeft, div.FluidButtonRight {
    clear: none;
    width: 100%;
    -webkit-box-sizing: border-box; /* this property is amazing!! it makes padding and border subtract from declared element width/height, instead of adding to it; it implements the IE6 box-model, that was non-spec but awesome all the same!! */
    -moz-box-sizing: border-box;
    box-sizing: border-box;
}
div.FluidButtonLeft {
    float: left;
    margin-right: -55px;
    padding-right: 55px;
}
div.FluidButtonRight {
    float: right;
    margin-left: -55px;
    padding-left: 55px;
}
div.FluidButtonLeft a, div.FluidButtonRight a {
    margin: 10px 15px 10px 15px;
    padding: 8px;
}
/* the following two rule blocks are for legacy jQuery Mobile apps only (<1.4) */
div.FluidButtonLeft a.ui-btn-block,
div.FluidButtonRight a.ui-btn-block {
    margin: 10px 15px 10px 8px;
    padding: 0;
}
div.FluidButtonLeft a span.ui-btn-inner,
div.FluidButtonRight a span.ui-btn-inner { padding: 6px 20px; }
div.FluidButtonLeft a.ui-btn-a,
div.FluidButtonLeft a.ui-btn-b,
div.FluidButtonRight a.ui-btn-a,
div.FluidButtonRight a.ui-btn-b {
    font-size: 16px !important;
    display: block !important;
}
div.SquareButtonLeft.Expansive a,
div.SquareButtonRight.Expansive a,
div.FluidButtonLeft.Expansive a,
div.FluidButtonRight.Expansive a { margin: 0; }

div.LeftExpandButton, div.RightExpandButton {
    padding-top: 10px;
    padding-bottom: 10px;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
    width: 50%;
    display: inline-block;
}
div.LeftExpandButton {
    padding-right: 7px;
    padding-left: 14px;
    float: left;
}
div.RightExpandButton {
    padding-right: 14px;
    padding-left: 7px;
    float: right;
}
div.LeftExpandButton a, div.RightExpandButton a {
    font-size: 16px !important;
    display: block !important;
    padding: 8px;
    margin: 0;
}
div.LeftExpandButton a.NotReady, div.RightExpandButton a.NotReady {
    display: none !important;
}
/* MAPPING */
div#QueryBox {
    position: absolute;
    top: 61px;
    width: 100%;
    margin: 0;
    padding: 8px 15px 8px 15px;
    left: 0;
    z-index: 99;
    background-color: rgba(255,255,255,0.85);
    -moz-box-sizing: border-box;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
}
div.MapOverlay {
    position: absolute;
    width: 86.5%;
    display: inline-block;
    z-index: 1;
}
@media all and (min-width: 240px) { div.MapOverlay { width: 87.7%; } }
@media all and (min-width: 320px) { div.MapOverlay { width: 90.78%; } }
@media all and (min-width: 480px) { div.MapOverlay { width: 93.85%; } }
@media all and (min-width: 640px) { div.MapOverlay { width: 95.39%; } }
@media all and (min-width: 825px) { div.MapOverlay { width: 96.42%; } }
@media all and (min-width: 1024px) { div.MapOverlay { width: 97.11%; } }
@media all and (min-width: 1136px) { div.MapOverlay { width: 97.4%; } }
@media all and (min-width: 1280px) { div.MapOverlay { width: 97.69%; } }
@media all and (min-width: 1366px) { div.MapOverlay { width: 97.84%; } }
@media all and (min-width: 1918px) { div.MapOverlay { width: 98.46%; } }
div#NavTools {
    margin: 15px 15px 0 15px;
    float: right;
    clear: none;
}
div#NavInfo {
    font-size: 9px;
    display: inline;
    margin: -1px 15px 0 0;
    clear: right;
    float: right;
    letter-spacing: -1px;
}
/* allows panels to appear beside the page content instead of displacing it or being on top of it on wider viewports (above 591px) */
@media (min-width: 37em) { /* 592px: the size of a panel + an iPhone width */
	.SquishForPanel .ui-panel-page-content-open.ui-panel-page-content-position-left {
		margin-right: 17em;
	}
	.SquishForPanel .ui-panel-page-content-open.ui-panel-page-content-position-right {
		margin-left: 17em;
	}
	.SquishForPanel .ui-panel-page-content-open {
		width: auto;	
	}
	.SquishForPanel .ui-panel-dismiss-display-push,
	.SquishForPanel.ui-page-active ~ .ui-panel-dismiss-display-push {
		display: none;
	}
}
/* ICONS */
.ui-icon-lt-question { background-image: url('../images/icons/question18.png'); }
@media only screen and (-webkit-min-device-pixel-ratio: 2) {
    .ui-icon-lt-question {
        background-image: url('../images/icons/question36.png');
        background-size: 18px 18px;
    }
}
.LastClicked { background-color: #ccecff; }

/* Mobiscroll Autocomplete */
div.AutoRecords {
    border: 1px solid lightblue;
    margin-top: -9px;
}
div.AutoRecords div.AutoRecord {
    width: 100%;
    display: inline-block;
    vertical-align: middle;
    letter-spacing: normal;
}
div.AutoRecords div.AutoRecord-MainData,
div.AutoRecord-MainData {
    height: 18px;
    line-height: 18px;
    font-size: 16px;
    overflow: hidden;
    text-overflow: ellipsis;
}
div.AutoRecords div.AutoRecord-SubData,
div.AutoRecord-SubData {
    height: 12px;
    line-height: 12px;
    font-size: 10px;
    overflow: hidden;
    text-overflow: ellipsis;
}
div.OverlayLabelContainer {
    position: relative;
    margin-bottom: 12px;
}
label.OverlayLabel,
label.OverlayLabelNumbers {
    position: absolute;
    bottom: -10px;
    padding: 1px 1px 1px 3px;
    font-size: 9px;
    background-color: #aaaaaa;
    display: inline-block;
    color: white;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: bold;
    z-index: 98;
    /* prevent wrapping; show ellipsis */
    text-wrap: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
    line-height: 11px;
}
span.OverlayHanger {
    display: inline-block;
    width: 4px;
    height: 19px;
    background-color: #aaaaaa;
    position: absolute;
    bottom: 0px;
    z-index: 97;
}
div.OverlayLabelContainer.RequiredField label.OverlayLabel,
div.OverlayLabelContainer.RequiredField label.OverlayLabelNumbers,
div.OverlayLabelContainer.RequiredField span.OverlayHanger { background-color: #e6ad00; }
div.OverlayLabelContainer.GaplessField { margin-top: -14px; }
label.OverlayLabel { right: 0; }
label.OverlayLabel + span.OverlayHanger { right: 0; }
label.OverlayLabelNumbers { left: 0; }
label.OverlayLabelNumbers + span.OverlayHanger { left: 0; }
div.OverlayLabelContainer input,
div.OverlayLabelContainer select,
div.OverlayLabelContainer textarea { width: 100%; }
/* START file upload control */
div.LTImageUploadControl,
div.LTUploadControl {
    padding: 9px 0 9px 9px;
    border: 1px dotted #444444;
    margin: 9px 0 0 0;
    overflow: hidden;
}
div.LTImageUploadControl span.ImagePrompt {
    display: inline-block;
    margin: 0 0 0 5px;
    vertical-align: middle;
    font-weight: bold;
}
div.LTUploadControl span.UploadPrompt {
    display: inline-block;
    margin: -2px 0 0 5px;
    vertical-align: middle;
}
div.LTImageUploadControl div.StyledUploadContainer,
div.LTUploadControl div.StyledUploadContainer {
     float: right;
     margin: 0 7px 0 0;
}
div.StyledUploadContainer {
    position: relative;
    display: inline-block;
    width: 24px;
    height: 24px;
    vertical-align: middle;
}
div.StyledUploadContainer img,
div.StyledUploadContainer input {
    display: inline-block;
    width: 24px;
    height: 24px;
    margin: 0;
    padding: 0;
    position: absolute;
    top: 0;
    left: 0;
    cursor: pointer !important;
}
div.StyledUploadContainer img:nth-of-type(2),
div.StyledUploadContainer input:nth-of-type(2) { left: -29px; }
div.StyledUploadContainer img { z-index: 1; }
div.StyledUploadContainer input {
    opacity: 0;
    z-index: 2;
}
div.StyledUploadContainer input:first-of-type { z-index: 3; }
/* END file upload control */
/* the following swipe indicators are #333333 at 24% opacity, stretching 10% of the width of the background in the direction of the swipe */
.LeftSwipeIndicator {
    background: -moz-linear-gradient(left,  rgba(51,51,51,0.24) 0%, rgba(51,51,51,0) 10%, rgba(51,51,51,0) 100%); /* FF3.6+ */
    background: -webkit-gradient(linear, left top, right top, color-stop(0%,rgba(51,51,51,0.24)), color-stop(10%,rgba(51,51,51,0)), color-stop(100%,rgba(51,51,51,0))); /* Chrome,Safari4+ */
    background: -webkit-linear-gradient(left,  rgba(51,51,51,0.24) 0%,rgba(51,51,51,0) 10%,rgba(51,51,51,0) 100%); /* Chrome10+,Safari5.1+ */
    background: -o-linear-gradient(left,  rgba(51,51,51,0.24) 0%,rgba(51,51,51,0) 10%,rgba(51,51,51,0) 100%); /* Opera 11.10+ */
    background: -ms-linear-gradient(left,  rgba(51,51,51,0.24) 0%,rgba(51,51,51,0) 10%,rgba(51,51,51,0) 100%); /* IE10+ */
    background: linear-gradient(to right,  rgba(51,51,51,0.24) 0%,rgba(51,51,51,0) 10%,rgba(51,51,51,0) 100%); /* W3C */
    filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#3d333333', endColorstr='#00333333',GradientType=1 ); /* IE6-9 */
}
.RightSwipeIndicator {
    background: -moz-linear-gradient(left,  rgba(51,51,51,0) 0%, rgba(51,51,51,0) 90%, rgba(51,51,51,0.24) 100%); /* FF3.6+ */
    background: -webkit-gradient(linear, left top, right top, color-stop(0%,rgba(51,51,51,0)), color-stop(90%,rgba(51,51,51,0)), color-stop(100%,rgba(51,51,51,0.24))); /* Chrome,Safari4+ */
    background: -webkit-linear-gradient(left,  rgba(51,51,51,0) 0%,rgba(51,51,51,0) 90%,rgba(51,51,51,0.24) 100%); /* Chrome10+,Safari5.1+ */
    background: -o-linear-gradient(left,  rgba(51,51,51,0) 0%,rgba(51,51,51,0) 90%,rgba(51,51,51,0.24) 100%); /* Opera 11.10+ */
    background: -ms-linear-gradient(left,  rgba(51,51,51,0) 0%,rgba(51,51,51,0) 90%,rgba(51,51,51,0.24) 100%); /* IE10+ */
    background: linear-gradient(to right,  rgba(51,51,51,0) 0%,rgba(51,51,51,0) 90%,rgba(51,51,51,0.24) 100%); /* W3C */
    filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#00333333', endColorstr='#3d333333',GradientType=1 ); /* IE6-9 */
}
.DualSwipeIndicator {
    background: -moz-linear-gradient(left,  rgba(51,51,51,0.24) 0%, rgba(51,51,51,0) 10%, rgba(51,51,51,0) 90%, rgba(51,51,51,0.24) 100%); /* FF3.6+ */
    background: -webkit-gradient(linear, left top, right top, color-stop(0%,rgba(51,51,51,0.24)), color-stop(10%,rgba(51,51,51,0)), color-stop(90%,rgba(51,51,51,0)), color-stop(100%,rgba(51,51,51,0.24))); /* Chrome,Safari4+ */
    background: -webkit-linear-gradient(left,  rgba(51,51,51,0.24) 0%,rgba(51,51,51,0) 10%,rgba(51,51,51,0) 90%,rgba(51,51,51,0.24) 100%); /* Chrome10+,Safari5.1+ */
    background: -o-linear-gradient(left,  rgba(51,51,51,0.24) 0%,rgba(51,51,51,0) 10%,rgba(51,51,51,0) 90%,rgba(51,51,51,0.24) 100%); /* Opera 11.10+ */
    background: -ms-linear-gradient(left,  rgba(51,51,51,0.24) 0%,rgba(51,51,51,0) 10%,rgba(51,51,51,0) 90%,rgba(51,51,51,0.24) 100%); /* IE10+ */
    background: linear-gradient(to right,  rgba(51,51,51,0.24) 0%,rgba(51,51,51,0) 10%,rgba(51,51,51,0) 90%,rgba(51,51,51,0.24) 100%); /* W3C */
    filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#3d333333', endColorstr='#3d333333',GradientType=1 ); /* IE6-9 */
}

ul#ConsumerDisambiguation li[data-role="list-divider"] {
    font-weight: bold;
    padding: 6px 7px;
    text-transform: uppercase;
    background-color: #e7e7e7;
    font-size: 14px;
}
ul#ConsumerDisambiguation li {
    border-top: 1px dotted black;
    padding: 6px 7px;
    color: black;
    line-height: 21px;
    cursor: pointer;
}

.OutcomeHighlight,
div.Timeslot.OutcomeHighlight,
ul#LocationsByAffiliate li.OutcomeHighlight,
ul#LocationsByAffiliate.ExternalLookup li.OutcomeHighlight,
ul#ConsumerDisambiguation li.OutcomeHighlight { background-color: #caffad; }
.RequiredField { background-color: #feff8c !important; }
/* #AppointmentEntry: flex days */
div#AppointmentEntry,
div#AppointmentEntry div.AppContents,
div#Visualization,
div#Visualization div.AppContents {
    height: 100%;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
}
div#AppointmentEntry div.AppContents,
div#Visualization div.AppContents {
    padding: 15px;
    /* flex properties */
    display: flex;
	flex-direction: row;
	flex-wrap: nowrap;
	justify-content: space-around;
	align-items: stretch;
}
div.FlexGroup {
    width: 33.33%;
    height: 100%;
    /* flex properties */
    display: flex;
	flex-direction: column;
	flex-wrap: nowrap;
	justify-content: space-around;
	align-items: stretch;
}
div#Visualization div.FlexGroup { width: 100%; }
div.FlexHeader { height: 15%; }
div.FlexDay,
div.FlexContent { height: 85%; }
div.FlexDay,
div.FlexHeader {
    width: 100%;
    border: 1px solid #6cb941;
    -webkit-box-sizing: border-box;
	-moz-box-sizing: border-box;
	box-sizing: border-box;
    /* flex properties */
    display: flex;
}
div.FlexContent {
    border: 1px solid #6cb941;
    overflow-y: scroll;
}
div.FlexHeader h4 { margin: auto; }
div.FlexDay {
    flex-direction: column;
	flex-wrap: wrap;
	justify-content: space-between;
	align-items: stretch;
}
div.Timeslot {
	background-color: #feff8c; /* color should be synced with .RequiredField */
	width: 46.25%;
	height: 27%;
	margin: 2.5%;
    cursor: pointer;
	/* child flex properties*/
    flex-grow: 1;
	/* self flex group properties */
    display: flex;
}
div.Timeslot:nth-child(1), div.Timeslot:nth-child(2) { margin-bottom: 0; }
div.Timeslot:nth-child(4) { margin-left: 0; }
div.Timeslot h4 { margin: auto; }
div.Timeslot h4, div.Timeslot.Unavailable:hover h4 { font-weight: normal; }
div.Timeslot:hover { background-color: #98ff5f; }
div.Timeslot.OutcomeHighlight:hover { background-color: #caffad; } /* preserve the .OutcomeHighlight colour, even on hover */
div.Timeslot:hover h4, div.Timeslot.OutcomeHighlight h4 { font-weight: bold; }
div.Timeslot.Unavailable {
    background-color: #fafafa;
    border: 1px solid #dfdfdf;
    cursor: auto;
    -webkit-box-sizing: border-box;
	-moz-box-sizing: border-box;
	box-sizing: border-box;
}
div.Timeslot.OutcomeHighlight {
    border: 1px solid #5ec823;
    -webkit-box-sizing: border-box;
	-moz-box-sizing: border-box;
	box-sizing: border-box;
    -webkit-box-shadow: 0px 0px 10px 0px rgba(50, 50, 50, 0.5);
    -moz-box-shadow:    0px 0px 10px 0px rgba(50, 50, 50, 0.5);
    box-shadow:         0px 0px 10px 0px rgba(50, 50, 50, 0.5);
}
div.DayCall { flex-grow: 3; } /* I seem to have misunderstood flex-grow as this doesn't seem to do anything */
img.OnPageLoadIndicator {
    margin-top: 2px !important;
    border: 1px solid #6cb941;
    -webkit-border-radius: 26px;
    -moz-border-radius: 26px;
    border-radius: 26px;
    opacity: 0.7;
}
table#CostList tr[data-lt-cost-type="Part"],
tr.PartItem { background: #FFDBB9; }
table#CostList tr[data-lt-cost-type="Part"][data-lt-from-primary-warehouse="true"],
tr.PartItem[data-lt-from-primary-warehouse="true"] {
    background: #ffc38c;
    font-weight: bold;
}
table#CostList tr[data-lt-cost-type="Labour"],
tr.LabourItem,
table#CostList tr[data-lt-cost-type="ServiceItem"],
tr.ServiceItem { background: #C8FFCD; }
table#CostList tr[data-lt-cost-type="Mileage"],
tr.MileageItem { background: #C8EBFF; }
table#CostList tr[data-lt-cost-type="Freight"],
tr.FreightItem { background: #cccdff; }
table#CostList tr[data-lt-cost-type="TruckStock"],
tr.TruckStockItem { background: #FFA5FF; }
table#CostList tr[data-lt-cost-replenish-only="true"],
#PickupGrid tr.ReplenishOnlyItem,
#ReceivingGrid tr.ReplenishOnlyItem {
    font-style: italic;
    font-weight: bold;
}
table#CostList tr[data-lt-cost-type="Cancelled"],
tr.CancelledItem { background: #E9E9E9; }
span.DatumLabel {
    display: inline-block;
    width: 101px;
    font-weight: bold;
    float: left;
    clear: none;
}
span.Datum {
    display: inline-block;
    width: 100%;
    margin-left: -101px;
    padding-left: 105px;
    float: left;
    clear: none;
    -webkit-box-sizing: border-box; /* this property is amazing!! it makes padding and border subtract from declared element width/height, instead of adding to it; it implements the IE6 box-model, that was non-spec but awesome all the same!! */
    -moz-box-sizing: border-box;
    box-sizing: border-box;
}
span.Datum textarea { margin-top: -8px; }
span.PanelDatumLabel {
    display: inline-block;
    width: 80px;
    font-weight: bold;
    float: left;
    clear: none;
}
span.PanelDatum {
    display: inline-block;
    width: 100%;
    margin-left: -80px;
    padding-left: 84px;
    float: left;
    clear: none;
    -webkit-box-sizing: border-box; /* this property is amazing!! it makes padding and border subtract from declared element width/height, instead of adding to it; it implements the IE6 box-model, that was non-spec but awesome all the same!! */
    -moz-box-sizing: border-box;
    box-sizing: border-box;
}
div.EditPaneFieldContainer { margin-top: -6px; }
/* START directed conversation counter */
div#DirectedConvCounterContainer {
	position: fixed;
	top: 50%;
	left: 0;
	height: 147px;
	margin-top: -73px;
	display: inline-block;
}
a.DirectedConvCounter {
	display: table;
	max-width: 13px;
    height: 49px;
	padding: 0 3px;
	margin: 0;
	float: left;
	clear: both;
    text-decoration: none;
    word-wrap: break-word;
    text-align: center;
}
span.DirectedConvCount {
    display: table-cell;
    max-width: 8px;
    vertical-align: middle;
    font-size: 14px;
    line-height: 15px;
    color: white;
    font-weight: bold;
	font-family: Courier, monospace !important;
}
/* padding reset */
label.NormalDirectedConvRelated,
label.CCedDirectedConvRelated,
label.RepliedDirectedConvRelated { padding-top: 4px !important; }
/* Directed to Me - red */
a#NormalDirectedConvCounter { background-color: #ED1010; }
label.NormalDirectedConvRelated { border-top: 6px solid #ED1010 !important; }
li.NormalDirectedConvRelated { border-right: 6px solid #ED1010; }
/* CCed to Me - gray */
a#CCedDirectedConvCounter { background-color: #8C8C8C; }
label.CCedDirectedConvRelated { border-top: 6px solid #8C8C8C !important; }
li.CCedDirectedConvRelated { border-right: 6px solid #8C8C8C; }
/* Replied to Me - green */
a#RepliedDirectedConvCounter { background-color: #5ECE18; }
label.RepliedDirectedConvRelated { border-top: 6px solid #5ECE18 !important; }
li.RepliedDirectedConvRelated { border-right: 6px solid #5ECE18; }
/* Directed (in any way) to someone else - black */
li.DirectedConvRelated { border-right: 6px solid #333333; }
/* END directed conversation counter */
.RedLetterEmphasis {
    color: #ff0000;
    font-weight: bold;
    font-style: italic;
}
div.mbsc-lv-cont { overflow: visible; }
tr.SelectedRecord,
li.SelectedRecord {
    -webkit-box-shadow: 0 0 12px #38c;
    -moz-box-shadow: 0 0 12px #38c;
    box-shadow: 0 0 12px #38c;
    z-index: 9999999999 !important;
}
tr.CrossedOutData td { text-decoration: line-through; }
.TextSpacer,
.MiniTextSpacer {
    width: 75px;
    display: inline-block;
    text-align: center;
}
.MiniTextSpacer { width: 25px; }

.AlternatingPanelSection {
    margin: 0 -16px !important;
    padding: 0 16px !important;
    background-color: #eeeeee;
}
.AlternatingPanelSection:nth-child(odd) { background-color: #ffffff; }
a.CustomGridCommandButton,
button.CustomGridCommandButton {
    display: inline-block;
    margin: 0;
    vertical-align: middle;
}

hr.AndRule,
hr.AndThenRule,
hr.OrRule {
    color: black;
    margin: 35px 0 25px 0;
    height: 1px;
    overflow: visible;
}
hr.AndRule::after,
hr.AndRule:after,
hr.AndThenRule::after,
hr.AndThenRule:after,
hr.OrRule::after,
hr.OrRule:after {
    content: attr(data-lt-text);
    font-style: italic;
    font-weight: bold;
    padding: 1px 7px 3px 8px;
    background-color: white;
    position: relative;
    display: block;
    width: 20px;
    margin: -14px auto 0 auto;
    border: 1px solid lightgrey;
    text-align: center;
}
hr.AndRule::after,
hr.AndRule:after { width: 30px; }
hr.AndThenRule::after,
hr.AndThenRule:after { width: 84px; }

p.PriorityEvent,
li.PriorityEvent,
td.PriorityEvent,
tr.PriorityEvent {
    background-color: #ed4747 !important;
    color: #ffffff !important;
}
.PriorityEvent_Scheduler.k-event,
.PriorityEvent_Scheduler.k-task {
    color: #ff0000 !important;
    font-weight: bold;
}
.PriorityEvent_Scheduler.k-event {
    background-color: #ffffff !important;
    border: 1px solid #ff0000 !important;
}

div.OverlayLabelContainer span.k-datepicker { width: 100%; }

div.km-content.km-scroll-wrapper,
div.km-scroll-container,
div.km-pane-wrapper { height: 100% !important; }
div.km-scroll-container {
    position: absolute;
    width: 100%;
}

td.StateCell { cursor: pointer; }

div.LTPaymentReceiver div.km-scroll-container { position: inherit; }

label.LTBigTab {
    font-size: 13px;
    padding: 11px 8px 11px 7px;
    background-color: #effaff;
    border-top: 1px solid #dadada;
    width: auto;
    display: inline-block;
    margin: 0;
}
fieldset label.LTBigTab:first-of-type { border-left: 1px solid #dadada; }
fieldset label.LTBigTab:last-of-type { border-right: 1px solid #dadada; }
input:checked + label.LTBigTab {
    background-color: #29C6FF;
    color: #ffffff;
    border: 2px solid #00b6ff;
    border-bottom: none;
    padding-top: 17px;
    -webkit-border-top-left-radius: 3px;
    -webkit-border-top-right-radius: 3px;
    -moz-border-radius-topleft: 3px;
    -moz-border-radius-topright: 3px;
    border-top-left-radius: 3px;
    border-top-right-radius: 3px;
    font-weight: bold;
}

div.MobileGrid tbody tr[data-uid] td {
    padding: 10px 8px;
    border-bottom: 1px solid #dadada;
}

.RemainingCharacterPrompt {
    color: red;
    font-size: 14px;
    margin-top: -4px;
    display: block;
}

/* CUSTOM WINDOW FOOTER */
.WindowDataSection {
    height: calc(100% - 67px);
    width: 100%;
    overflow-y: auto;
    margin: 0;
    padding: 8px 8px 15px 8px;
    position: absolute;
    top: 0;
    left: 0;
    /* IE Box Model is important to this layout, so we do not depend on developer also implementing .IEBoxModel class */
    -moz-box-sizing: border-box;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
}
.WindowDataSection.ExpandContent .GridContainer,
.WindowDataSection.ExpandContent .k-grid { height: calc(100% - 2px) !important; }
.WindowButtonStrip {
    background-color: #edffee;
    padding: 10px 12px;
    margin: 0;
    height: 67px;
    text-align: right;
    border-top: 1px solid #8ece98;
    width: 100%;
    position: absolute;
    bottom: 0;
    left: 0;
    /* IE Box Model is important to this layout, so we do not depend on developer also implementing .IEBoxModel class */
    -moz-box-sizing: border-box;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
}
@media (max-width: 767px) {
    /* NOTE: There is a bug in the kendo UI stylesheet where the header height
        is not accounted for when setting the content section to 100% height;
        the header is 33px high, so we shorten our custom content section by 33px here. */
    .WindowDataSection { height: calc(100% - 100px); }
    .WindowButtonStrip { bottom: 33px; }
}

.CriticalTaskAlert {
    background-color: #fff9f9;
    color: black;
    border: 1px solid #aa0000;
    padding: 9px 11px 11px 11px;
    position: relative;
}
.CriticalTaskAlert.Direct:after,
.CriticalTaskAlert.Direct::after {
    content: attr(data-lt-direct-text);
    position: absolute;
    top: 0;
    right: 0;
    padding: 3px 6px 3px 7px;
    text-transform: uppercase;
    color: white;
    background-color: #ff3333;
    font-size: 14px;
    border-bottom: 1px solid #aa0000;
    border-left: 1px solid #aa0000;
    font-family: monospace;
    font-weight: bold;
}
.CriticalTaskAlert dl { margin: 0; }
.CriticalTaskAlert dt {
    text-transform: uppercase;
    font-size: 80%;
}
.CriticalTaskAlert dd {
    font-weight: bold;
    margin-left: 25px;
}
.CriticalTaskAlert a.AcceptTask {
    margin-top: 12px;
    width: 100%;
}
.TaskTile {
     border: 1px solid #0000aa;
     background-color: #f9f9ff;
}
.TaskTile.Direct:after,
.TaskTile.Direct::after {
     background-color: #3333ff;
     border-bottom: 1px solid #0000aa;
     border-left: 1px solid #0000aa;
}

.PrimaryButton {
    color: black !important;    
    border: 1px solid #00a105;
    background: #ffffff;
    background: -moz-linear-gradient(top, #ffffff 45%, #d8ffdd 100%);
    background: -webkit-linear-gradient(top, #ffffff 45%,#d8ffdd 100%);
    background: linear-gradient(to bottom, #ffffff 45%,#d8ffdd 100%);
    filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#ffffff', endColorstr='#d8ffdd',GradientType=0 );
    -webkit-border-radius: 2px;
    -moz-border-radius: 2px;
    border-radius: 2px;
}
.PrimaryButton:hover {
    background: #ffffff; /* Old browsers */
    background: -moz-linear-gradient(top,  #ffffff 45%, #a5ffb0 100%); /* FF3.6-15 */
    background: -webkit-linear-gradient(top,  #ffffff 45%,#a5ffb0 100%); /* Chrome10-25,Safari5.1-6 */
    background: linear-gradient(to bottom,  #ffffff 45%,#a5ffb0 100%); /* W3C, IE10+, FF16+, Chrome26+, Opera12+, Safari7+ */
    filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#ffffff', endColorstr='#a5ffb0',GradientType=0 ); /* IE6-9 */
}
.SecondaryButton {
    color: #444444 !important;    
    border: 1px solid #35c638;
    background: #ffffff;
    background: -moz-linear-gradient(top, #ffffff 45%, #f4fff4 100%);
    background: -webkit-linear-gradient(top, #ffffff 45%,#f4fff4 100%);
    background: linear-gradient(to bottom, #ffffff 45%,#f4fff4 100%);
    filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#ffffff', endColorstr='#f4fff4',GradientType=0 );
    -webkit-border-radius: 2px;
    -moz-border-radius: 2px;
    border-radius: 2px;
}
.SecondaryButton:hover {
    color: #222222 !important;
    background: #ffffff; /* Old browsers */
    background: -moz-linear-gradient(top,  #ffffff 45%, #e2ffe5 100%); /* FF3.6-15 */
    background: -webkit-linear-gradient(top,  #ffffff 45%,#e2ffe5 100%); /* Chrome10-25,Safari5.1-6 */
    background: linear-gradient(to bottom,  #ffffff 45%,#e2ffe5 100%); /* W3C, IE10+, FF16+, Chrome26+, Opera12+, Safari7+ */
    filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#ffffff', endColorstr='#e2ffe5',GradientType=0 ); /* IE6-9 */
}

.display-none{
    display: none !important;
}