/* ==========================================================================
   Base styles: opinionated defaults
   ========================================================================== */

html {
  color: #222;
  font-size: 16px;
}

/*
 * Remove text-shadow in selection highlight:
 * https://twitter.com/miketaylr/status/12228805301
 *
 * Vendor-prefixed and regular ::selection selectors cannot be combined:
 * https://stackoverflow.com/a/16982510/7133471
 *
 * Customize the background color to match your design.
 */

::-moz-selection {
  background: #b3d4fc;
  text-shadow: none;
}

::selection {
  background: #b3d4fc;
  text-shadow: none;
}

/*
 * A better looking default horizontal rule
 */

hr {
  display: block;
  height: 1px;
  border: 0;
  border-top: 1px solid #ccc;
  margin: 1em 0;
  padding: 0;
}

/*
 * Remove the gap between audio, canvas, iframes,
 * images, videos and the bottom of their containers:
 * https://github.com/h5bp/html5-boilerplate/issues/440
 */

audio,
canvas,
iframe,
img,
svg,
video {
  vertical-align: middle;
}

/*
 * Remove default fieldset styles.
 */

fieldset {
  border: 0;
  margin: 0;
  padding: 0;
}

/*
 * Allow only vertical resizing of textareas.
 */

textarea {
  resize: vertical;
}

input#image {
  height: 100%;
}

/* ==========================================================================
   Browser Upgrade Prompt
   ========================================================================== */

.browserupgrade {
  margin: 0.2em 0;
  background: #ccc;
  color: #000;
  padding: 0.2em 0;
}

/* ==========================================================================
   Author's custom styles
   ========================================================================== */

/* ==========================================================================
   Helper classes
   ========================================================================== */

/*
 * Hide visually and from screen readers
 */

.hidden {
  display: none !important;
}

i.far.faded,
i.fas.faded {
  opacity: 0.3;
}


/*
 * CUSTOM CHECKBOX LIKELY ELEMENTS
 */
p.check-square,
span.check-square {
  display: block;
}

p.check-square::before,
span.check-square::before {
  content: "";
  display: inline-block;
  width: 40px;
  height: 40px;
  border: 2px solid black;
  vertical-align: middle;
}

p.check-square.has-label::before,
span.check-square.has-label::before {
    margin-right: 25px;
}

p.check-square-sm::before,
span.check-square-sm::before {
    width: 20px;
    height: 20px;
    border: 1px solid black;
}

p.check-square.checked::before,
span.check-square.checked::before {
    content: "\2713";
    font-size: 45px;
    color: green;
    padding-left: 1px;
    line-height: 0.8em;
}

p.check-square-sm.checked::before,
span.check-square-sm.checked::before {
    padding: 0;
    font-size: 25px;
}

p.check-square.crossed::before,
span.check-square.crossed::before {
    content: "\2717";
    font-size: 40px;
    color: red;
    padding-left: 1px;
    line-height: 1.0em;
}

p.check-square-sm.crossed::before,
span.check-square-sm.crossed::before {
    font-size: 20px;
    line-height: 1.05em;
    padding: 0;
}

.mh-420 {
    min-height: 420px;
}

/*
* Hide only visually, but have it available for screen readers:
* https://snook.ca/archives/html_and_css/hiding-content-for-accessibility
*
* 1. For long content, line feeds are not interpreted as spaces and small width
*    causes content to wrap 1 word per line:
*    https://medium.com/@jessebeach/beware-smushed-off-screen-accessible-text-5952a4c2cbfe
*/

.sr-only {
  border: 0;
  clip: rect(0, 0, 0, 0);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  white-space: nowrap;
  width: 1px;
  /* 1 */
}

/*
* Extends the .sr-only class to allow the element
* to be focusable when navigated to via the keyboard:
* https://www.drupal.org/node/897638
*/

.sr-only.focusable:active,
.sr-only.focusable:focus {
  clip: auto;
  height: auto;
  margin: 0;
  overflow: visible;
  position: static;
  white-space: inherit;
  width: auto;
}

/*
* Hide visually and from screen readers, but maintain layout
*/

.invisible {
  visibility: hidden;
}

/*
* Clearfix: contain floats
*
* For modern browsers
* 1. The space content is one way to avoid an Opera bug when the
*    `contenteditable` attribute is included anywhere else in the document.
*    Otherwise it causes space to appear at the top and bottom of elements
*    that receive the `clearfix` class.
* 2. The use of `table` rather than `block` is only necessary if using
*    `:before` to contain the top-margins of child elements.
*/

.clearfix:before,
.clearfix:after {
  content: " ";
  /* 1 */
  display: table;
  /* 2 */
}

.clearfix:after {
  clear: both;
}

/* ==========================================================================
   EXAMPLE Media Queries for Responsive Design.
   These examples override the primary ('mobile first') styles.
   Modify as content requires.
   ========================================================================== */

@media only screen and (min-width: 35em) {
  /* Style adjustments for viewports that meet the condition */
}

@media print,
  (-webkit-min-device-pixel-ratio: 1.25),
  (min-resolution: 1.25dppx),
  (min-resolution: 120dpi) {
  /* Style adjustments for high resolution devices */
}

/* ==========================================================================
   Print styles.
   Inlined to avoid the additional HTTP request:
   https://www.phpied.com/delay-loading-your-print-css/
   ========================================================================== */

@media print {
  *,
  *:before,
  *:after {
    background: transparent !important;
    color: #000 !important;
    /* Black prints faster */
    box-shadow: none !important;
    text-shadow: none !important;
  }
  a,
  a:visited {
    text-decoration: underline;
  }
  a[href]:after {
    content: " (" attr(href) ")";
  }
  abbr[title]:after {
    content: " (" attr(title) ")";
  }
  /*
     * Don't show links that are fragment identifiers,
     * or use the `javascript:` pseudo protocol
     */
  a[href^="#"]:after,
  a[href^="javascript:"]:after {
    content: "";
  }
  pre {
    white-space: pre-wrap !important;
  }
  pre,
  blockquote {
    border: 1px solid #999;
    page-break-inside: avoid;
  }
  /*
     * Printing Tables:
     * https://web.archive.org/web/20180815150934/http://css-discuss.incutio.com/wiki/Printing_Tables
     */
  thead {
    display: table-header-group;
  }
  tr,
  img {
    page-break-inside: avoid;
  }
  p,
  h2,
  h3 {
    orphans: 3;
    widows: 3;
  }
  h2,
  h3 {
    page-break-after: avoid;
  }
}

/*! Customized CSS */
.container.fullscreen {
  max-width: 95% !important;
}


.btn-group-xs > .btn, .btn-xs {

  padding: 0rem .20rem !important;
  font-size: .675rem !important;
  line-height: 1.2 !important;
  border-radius: .1rem !important;

}

.btn-green { background-color: darkgreen; color: #fff; border-color: darkgreen; }
.btn-green:hover {
  background-color: green !important;
  border-color: green !important;
  color: #fff !important;
  box-shadow: 0 5px 11px 0 rgba(6, 111, 6, 0.28), 0 4px 15px 0 rgba(6, 111, 6, 0.15) !important;
}
.btn-green.active { background-color: green; color: #fff; }

.btn-red { background-color: darkred; color: #fff; border-color: darkred; }
.btn-red:hover {
  background-color: red !important;
  border-color: red !important;
  color: #fff !important;
  box-shadow: 0 5px 11px 0 rgba(200, 35, 51, 0.28), 0 4px 15px 0 rgba(200, 35, 51, 0.15) !important;
}
.btn-red.active { background-color: red; color: #fff; }
.btn-danger:hover { box-shadow: 0 5px 11px 0 rgba(200, 35, 51, 0.28), 0 4px 15px 0 rgba(200, 35, 51, 0.15) !important; }

.btn-grey { background-color: grey; color: #fff; border-color: grey; }
.btn-grey:hover {
  background-color: darkgray !important;
  border-color: darkgray !important;
  color: #fff !important;
  box-shadow: 0 5px 11px 0 rgba(144, 151, 146, 0.28), 0 4px 15px 0 rgba(33, 33, 33, 0.15) !important;
}
.btn-grey.active { background-color: darkgray; color: #fff; }

.color-grey { color: grey; }
.color-green { color: green; }
.color-yellow { color: yellow; }
.color-orange { color: orange; }
.color-red { color: red; }

/* main.css */
/*
 * User defined styles
 */
.h1, .h2, .h3, .h4, .h5, .h6,
h1, h2, h3, h4, h5, h6 {
    font-weight: 400;
}

.h1, h1 {
    font-size: 1.8rem;
}

.h2, h2 {
    font-size: 1.6rem;
}

.h3, h3 {
    font-size: 1.4rem;
}

.h4, h4 {
    font-size: 1.2rem;
}

.h5, h5 {
    font-size: 1rem;
}

a {
  outline: 0;
}

.clickable {
  cursor: pointer;
}

main {
  padding-top: 80px;
}

.table th,
.table td {
    vertical-align: middle;
}

.alert[role="alert"] ul {
    margin: 0;
    padding: 0;
}


/* ==========================================================================
   Mobile devices /responsive
   ========================================================================== */
@media only screen and (max-width: 768px) {
  .h1, h1 { font-size: 1.5rem; }
  .h2, h2 { font-size: 1.4rem; }
  .h3, h3 { font-size: 1.3rem; }
  .h4, h4 { font-size: 1.2rem; }
  .h5, h5 { font-size: 1.1rem; }
}


/* ==========================================================================
   GENERAL
   ========================================================================== */
.w-20 { width: 20%; }
.w-80 { width: 80%; }

.inline-label {
  float: left;
  margin: 4px 20px 0 0;
}

.btn.focus,
.btn:focus,
.btn:not(:disabled):not(.disabled).active:focus,
.btn:not(:disabled):not(.disabled):active:focus,
.show > .btn.dropdown-toggle:focus {
    box-shadow: none !important;
}



/* ==========================================================================
   Table Layouts
   ========================================================================== */
.table-white {
    background-color: unset !important;
}

.table.table-pocket {
  font-size: 0.8rem;
}

.table.table-pocket td,
.table.table-pocket th {
  padding: .25rem;
}

.table-cell-selected {
  font-weight: bold;
}


/* ==========================================================================
   Navigation
   ========================================================================== */
.navbar {
  padding: .2rem 1rem !important;
  position: fixed;
  width: 100%;
  z-index: 100;
  background: white;
}

.navbar-brand {
  padding: 0 !important;
}

.navbar-dark .bg-grey .navbar-nav .nav-link {
  color: #343A40;
}

.navbar-brand .logo-img {
  max-width: 180px;
}

.navbar-nav .nav-item {
  padding: 0 10px;
  margin-top: auto;
  margin-bottom: auto;
}

.navbar-nav .nav-link {
  font-size: 18px;
}

.nav-icon-banner a.nav-link {
  display: inline-block;
  font-size: 1.5em;
  padding-right: .5rem;
  padding-left: .5rem;
}

.dropdown-item i.fa {
  width: 20px;
}


/* ==========================================================================
   Calendar
   ========================================================================== */
#calendar {
  width: 100%;
  max-width: 100%;
  margin: 5px auto;
}

.fc-toggleGarage-button.fc-button-active,
.fc-toggleBodywork-button.fc-button-active,
.fc-togglePostal-button.fc-button-active {
  background-color: darkgreen !important;
  border-color: darkgreen !important;
  color: white !important;
}

.fc-timegrid-event .fc-event-main,
.fc-event-main {
  padding: 1px 3px 0;
  overflow: hidden;
}

.fc-event-text-color {
  color: black;
}

.fc-timegrid-slot[data-time="09:30:00"] span.fc-bg-slottime,
.fc-timegrid-slot[data-time="12:00:00"] span.fc-bg-slottime,
.fc-timegrid-slot[data-time="12:30:00"] span.fc-bg-slottime {
  visibility: hidden;
}

.fc-content .tagbox {
  overflow: visible !important;
}

.fc .fc-button {
  line-height: 1;
}

.fc .fc-button .fc-icon-fa {
  font-family: "Font Awesome 5 Pro", serif !important;
}

.fc .fc-button .fc-icon-fa.fas {
  font-weight: 900 !important;
}

.fc .fc-button .fc-icon {
  font-size: 1em !important;
}

.fc .fc-button-primary:not(:disabled).fc-button-active,
.fc .fc-button-primary:not(:disabled):active {
  background-color: darkgreen !important;
  border-color: darkgreen !important;
  color: white !important;
}

.fc-non-axis colgroup col {
  width: 0 !important;
}

.fc-non-axis .fc-timegrid-slot-label-frame {
  display: none;
}

.fc .fc-button-primary:focus,
.fc .fc-button-primary:not(:disabled).fc-button-active:focus,
.fc .fc-button-primary:not(:disabled):active:focus {
  box-shadow: none !important;
}

.fc-event,
.fc-event-title {
  font-size: 0.9em !important;
}

.fc-bg-slottime {
  display: inline-block;
  text-align: center;
  color: grey;
  font-size: smaller;
}

.fc .fc-non-business {
  background: rgba(119,119,119,.3);
}

.fc-header-toolbar.fc-toolbar {
  justify-content: flex-end;
  flex-wrap: wrap;
}

.fc-header-toolbar.fc-toolbar .fc-toolbar-chunk {
  margin-left: 20px;
  flex: 0 0 auto;
  flex-shrink: 0;
}

.fc-header-toolbar.fc-toolbar .fc-toolbar-chunk:first-child {
  margin-left: 0;
  margin-right: auto;
}

@media only screen and (max-width: 1500px) {
  .fc-header-toolbar.fc-toolbar .fc-toolbar-chunk:first-child {
    page-break-after: always;
    break-after: always;
  }
}

@media only screen and (max-width: 1024px){
  #calendar {
    width: 100%;
    margin: 0 auto;
    font-size: 10px;
  }
  .fc-toolbar {
    width: 100%;
    margin: 0 auto;
    font-size: .9em;
    display: inline-block !important;
    text-align: center;
  }
  .fc-toolbar-chunk {
    margin-top: 10px;
  }
  .fc-toolbar h2 {
    font-size: 12px;
    white-space: normal !important;
  }
  /* click +2 more for popup */
  .fc-more-cell a {
    display: block;
    width: 85%;
    margin: 1px auto 0 auto;
    border-radius: 3px;
    background: grey;
    color: transparent;
    overflow: hidden;
    height: 4px;
  }
  .fc-more-popover {
    width: 100px;
  }
  .fc-view-agendaWeek .fc-event-vert {
    font-size: 0;
    overflow: hidden;
    width: 2px !important;
  }
  .fc-agenda-axis {
    width: 20px !important;
    font-size: .7em;
  }

  .fc-button-content {
    padding: 0;
  }
}

.client-stat-icons li i,
.client-stat-icons li span {
  color: #6c757d;
}

@media only screen and (min-width: 1200px){
  #calendar .fc-toolbar .fc-toolbar-title {
    min-width: 400px;
  }
}

.tooltip {
  opacity: unset;
  z-index: 50;
}

.tagged {
  padding-right: 20px;
}

.tagbox {
  display: flex;
  flex-direction: column;
  flex-wrap: wrap;
  align-items: flex-end;
  position: absolute;
  right: 0;
  top: 2px;
  float: right;
}

.event-tasks {
  display: block;
  position: relative;
  color: #333;
  font-size: 0.85em;
}

.event-status {
  margin-right: 5px;
  font-size: 0.85em;
  float: right;
  display: block;
  position: relative;
  line-height: 1.0;
}

.tooltip-block {
  display: block;
  position: relative;
  color: #333;
  font-size: 0.85em;
}

.event-status.status-tuev { color: darkblue; font-weight: bold }
.event-status.status-tirechange { color: darkorange; font-weight: bold }
.event-status.status-au { color: blue; }
.event-status.status-lw { color: darkred; }
.event-status.status-available { color: green; font-weight: bold }
.event-status.status-direct { color: darkred; }
.event-status.status-tireorder { color: grey; margin-top: 2px; }


/* ==========================================================================
   Forms
   ========================================================================== */
.form-control.invalid {
  border-color: red;
}

/* ==========================================================================
   Components: Modal Form
   ========================================================================== */
.form-elegant .font-small {
  font-size: 0.8rem; }

.form-elegant .z-depth-1a {
  -webkit-box-shadow: 0 2px 5px 0 rgba(55, 161, 255, 0.26), 0 4px 12px 0 rgba(121, 155, 254, 0.25);
  box-shadow: 0 2px 5px 0 rgba(55, 161, 255, 0.26), 0 4px 12px 0 rgba(121, 155, 254, 0.25); }

.form-elegant .z-depth-1-half,
.form-elegant .btn:hover {
  -webkit-box-shadow: 0 5px 11px 0 rgba(85, 182, 255, 0.28), 0 4px 15px 0 rgba(36, 133, 255, 0.15);
  box-shadow: 0 5px 11px 0 rgba(85, 182, 255, 0.28), 0 4px 15px 0 rgba(36, 133, 255, 0.15); }

.form-elegant .modal-header {
  border-bottom: none; }

.modal-dialog .form-elegant .btn .fab {
  color: #2196f3!important; }

.form-elegant .modal-body, .form-elegant .modal-footer {
  font-weight: 400; }

.modal-body {
  overflow: visible;
}

.modal-dialog-scrollable .modal-content {
  overflow-y: auto;
}


/* ==========================================================================
   Components: Autocomplete Combobox
   ========================================================================== */
.autocomplete-combobox {
  position: relative;
  display: inline-block;
}

.autocomplete-combobox-toggle {
  position: absolute;
  top: 0;
  bottom: 0;
  margin-left: -1px;
  padding: 0;
}

.autocomplete-combobox-input {
  margin: 0;
  padding-top: 2px;
  padding-bottom: 5px;
  padding-right: 5px;
}

.autocomplete-mark {
  position: absolute;
  top: 0;
  right: 3px;
  font-size: 13px;
  color: red;
  margin-top: 5px;
}


/* ==========================================================================
   Components: Index Tiles
   ========================================================================== */
.tile-container .card-body {
  background-color: #007bff;
  color: #dddddd;
}

.tile-container .card-header {
  background-color: #878787;
  color: #FFFFFF;
  font-size: 1.3em;
}

.tile-container .tile-entry a:hover {
   text-decoration: none;
 }

.tile-container .card-body:hover {
   background-color: #0069db;
}

.tile-entry .badge {
  position: absolute;
  font-size: 18px;
  top: -15px;
  right: -10px;
  padding: 10px 13px;
  border-radius: 50%;
  background: red;
  color: white;
}

.document-entry .card-header {
  background: none;
  color: rgba(0,0,0,.5);
  padding: 0.25rem;
  min-height: 10em;
}

.document-entry .card-body {
  padding: 0.5rem;
}

.document-entry .card-body .h6 {
  margin: 0;
}


/* ==========================================================================
   Components: Tasks Status
   ========================================================================== */
.status-green { color: #ffffff; background-color: green; }
.status-yellow { color: #ffffff; background-color: yellow; }
.status-cyan { color: #ffffff; background-color: aqua; }
.status-orange { color: #ffffff; background-color: orange; }
.status-red { color: #ffffff; background-color: red; }
.status-blue { color: #ffffff; background-color: blue; }
.status-grey { color: #ffffff; background-color: grey; }
.status-lime { color: #ffffff; background-color: lime; }


/* ==========================================================================
   Calendar / Tasks
   ========================================================================== */

#taskMenu .custom-control-input:checked ~ .custom-control-label::before {
  border-color: #25bb00;
  background-color: #25bb00;
}


/* ==========================================================================
   Tasklist
   ========================================================================== */
.tasklist-header {
  margin: 10px auto;
  font-weight: bold;
}

.tasklist li.list-group-item {
  padding:16px;
  background-color: #f9f9f9;
  cursor: grab;
}

.tasklist li.list-group-item.active {
   z-index: 9;
 }

.tasklist .btn {
  padding: 0;
}

.tasklist .list-group-item {
  border: 1px solid gray;
  background-color: #f2f2f2;
}

.tasklist .list-group-item + .list-group-item {
  border-top-width: 1px;
}

.tasklist .list-group-item.warning {
  /*background-color: #efe24b;*/
}

.tasklist .list-group-item.pending {
  background-color: #ffd164;
}

.tasklist .list-group-item.success {
  background-color: #bfff7f;
}

.tasklist .list-group-item.warning.active {
  /*background-color: #f4eeab;*/
}

.tasklist .list-group-item.active {
  color: #000000;
  background-color: #e8e8e8;
  cursor: grabbing;
}

.tasklist .list-group-item .tasklist-btn-task-edit,
.tasklist .list-group-item .tasklist-btn-vehicle-edit,
.tasklist .list-group-item .tasklist-btn-client-edit {
  cursor: pointer;
}

.tasklist ul.dropdown-menu li {
  padding: 5px 16px;
}

.tasklist .plate-note {
  font-size: 0.7em;
  white-space: nowrap;
}

.tasklist-group-toggle label.active {
  font-weight: bold;
}

.noselect {
  -webkit-touch-callout: none; /* iOS Safari */
  -webkit-user-select: none; /* Safari */
  -khtml-user-select: none; /* Konqueror HTML */
  -moz-user-select: none; /* Old versions of Firefox */
  -ms-user-select: none; /* Internet Explorer/Edge */
  user-select: none; /* Non-prefixed version, currently supported by Chrome, Opera and Firefox */
}


/* ==========================================================================
   Tirechange
   ========================================================================== */
#tirechangeMenu .modal-dialog {
  max-width: 750px;
}

#tirechangeMenu .modal-dialog .modal-body {
  display: flex;
}

#tirechangeMenu .comment-col textarea {
  min-height: 95px;
}

.tirechange-option .btn-group .btn {
  min-width: 50px;
}

.tireimages-qr-link {
  display: inline-block;
}


/* ==========================================================================
   Tireorder
   ========================================================================== */
.tireorder-table ul.dropdown-menu li {
  padding: 5px 16px;
}

.tireorder-table .btn.btn-status {
  padding: 0;
}

.tireorder-table tr.entered {
  background-color: #edffdc;

}

.tireorder-table tr.entered:nth-of-type(2n+1) {
  background-color: #dcf9c0;
}


/* ==========================================================================
   Leave
   ========================================================================== */
.toggle-leave-view {
  padding: 10px 0 20px;
}

.ooh-days-row {
  display: none;
}


/* ==========================================================================
   Data Filter
   ========================================================================== */
.btn-toggle-filter.fc-button-active {
  background-color: darkgreen !important;
  border-color: darkgreen !important;
  color: white !important;
}


/* ==========================================================================
   Autocomplete
   ========================================================================== */
.autocomplete-suggestions {
  text-align: left;
  cursor: default;
  border: 1px solid #ccc;
  border-top: 0;
  background: #fff;
  box-shadow: -1px 1px 3px rgba(0,0,0,.1);

  /* core styles should not be changed */
  position: absolute;
  display: none;
  z-index: 9999;
  max-height: 254px;
  overflow: hidden;
  overflow-y: auto;
  box-sizing: border-box;
}

.autocomplete-suggestion {
  position: relative;
  padding: 0 .6em;
  line-height: 23px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 1.02em; color: #333;
}

.autocomplete-suggestion b {
  font-weight: normal;
  color: #1f8dd6;
}

.autocomplete-suggestion.selected {
  background: #f0f0f0;
}


/* ==========================================================================
   Detail View
   ========================================================================== */
.form-details-view input {
  border: none;
  background: none;
}


/* ==========================================================================
   Taskinfo Panel on Replace Page
   ========================================================================== */
.modal-content #taskinfo {
  border: 1px solid cornflowerblue;
  border-radius: 5px;
  background: lightblue;
  color: darkslateblue;
  padding: 15px;
  margin: 0 0 2em;
}

.modal-content #taskinfo.no-taskinfo {
  border: 1px solid bisque;
  background: lemonchiffon;
  color: firebrick;
}

.modal-content #taskinfo h4 {
  font-size: 1.2rem;
}

.modal-content #taskinfo p {
  font-size: 0.8rem;
  padding: 0;
  margin: 0;
}

/* ==========================================================================
   Custom Switches / Checkboxes
   ========================================================================== */
div.custom-control.custom-switch {
  padding-top: 5px;
  padding-bottom: 5px;
}


/* ==========================================================================
   Storage Edit modal label hack
   ========================================================================== */
@media only screen and (min-width: 760px) {
  .storage-tire-label {
    position: absolute;
    bottom: 0;
  }
}


/* ==========================================================================
   Display input as span
   ========================================================================== */
.input-as-span {
  border: none;
  background: none;
  padding: 0;
  margin: 0;
  height: auto;
}


/* ==========================================================================
   Whole Page Loading Spinner Overlay
   ========================================================================== */
.page-overlay{
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  position: fixed;
  background: rgba(255,255,255,0.7);
  width: 100%;
  height: 100% !important;
  z-index: 1050;
}

.page-overlay .center-loader {
  top: calc(50% - 75px);
  left: calc(50% - 75px);
  position: absolute;
  color: white;
}


/* ==========================================================================
   JQuery Taggle
   ========================================================================== */
.taggle_list {
  float: left;
  padding: 0;
  margin: 0;
  width: 100%;
}

.taggle_input {
  border: none;
  outline: none;
  font-size: 16px;
  font-weight: 300;
}

.taggle_list li {
  float: left;
  display: inline-block;
  white-space: nowrap;
  font-weight: 500;
  margin-bottom: 5px;
}

.taggle_list .taggle {
  margin-right: 8px;
  background: #E2E1DF;
  padding: 5px 10px;
  border-radius: 3px;
  position: relative;
  cursor: pointer;
  transition: all .3s;
  -webkit-animation-duration: 1s;
  animation-duration: 1s;
  -webkit-animation-fill-mode: both;
  animation-fill-mode: both;
}

.taggle_list .taggle_hot {
  background: #cac8c4;
}

.taggle_list .taggle .close {
  font-size: 1.1rem;
  position: absolute;
  top: 10px;
  right: 3px;
  text-decoration: none;
  padding: 0;
  line-height: 0.5;
  color: #ccc;
  color: rgba(0, 0, 0, 0.2);
  padding-bottom: 4px;
  display: none;
  border: 0;
  background: none;
  cursor: pointer;
}

.taggle_list .taggle:hover {
  padding: 5px;
  padding-right: 15px;
  background: #ccc;
  transition: all .3s;
}

.taggle_list .taggle:hover > .close {
  display: block;
}

.taggle_list .taggle .close:hover {
  color: #990033;
}

.taggle_placeholder {
  position: absolute;
  color: #CCC;
  top: 12px;
  left: 8px;
  transition: opacity, .25s;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

.taggle_input {
  padding: 8px;
  padding-left: 0;
  float: left;
  margin-top: -5px;
  background: none;
  width: 100%;
  max-width: 100%;
}

.taggle_sizer {
  padding: 0;
  margin: 0;
  position: absolute;
  top: -500px;
  z-index: -1;
  visibility: hidden;
}


/* ==========================================================================
   Storage & Tireorder Notes
   ========================================================================== */
.storage-note {
  padding: 0.2rem 1.25rem;
}

.form-row.tireorder-note {
  justify-content: center;
  cursor: pointer;
}


/* ==========================================================================
   Images
   ========================================================================== */
#imageMenu input[name="image"] {
  height: auto;
}

.thumbnail-container .thumbnail {
  position: relative;
  width: auto;
  min-width: 57px; /* 16:9 portrait */
  height: 100px;
  overflow: hidden;
  background: lightgrey;
  border: 1px solid grey;
  border-radius: 5px;
  text-align: center;
  z-index: 100;
}

.thumbnail-container .thumbnail.placeholder-image {
  z-index: 0;
}

.thumbnail-container .thumbnail.placeholder-image:after {
  position: absolute;
  text-decoration: none;
  content: "\f067";
  font-family: "Font Awesome 5 Pro" !important;
  font-style: normal;
  font-weight: normal;
  font-size: 60px;
  color: darkgray;
  top: 50%;
  left: 50%;
  margin: -46px 0 0 -23px;
  z-index: 0;
  cursor: pointer;
}

.thumbnail-container .thumbnail img {
  width: 100%;
  min-height: 100%;
  z-index: 100;
}

.thumbnail-container .thumbnail .image-count,
.thumbnail-container .thumbnail .delete-image,
.thumbnail-container .thumbnail .add-image {
  position: absolute;
  text-decoration: none;
  color: white;
}

.thumbnail-container .thumbnail .image-count {
  bottom: 3px;
  right: 3px;
  line-height: 15px;
  font-size: 15px;
  background-color: #3e3e3e;
  border: 1px solid white;
  border-radius: 5px;
  padding: 1px 3px;
}

.thumbnail-container .thumbnail .add-image {
  top: 3px;
  left: 3px;
  width: 21px;
  height: 21px;
  padding: 1px 5px;
  font-size: 13px;
  background-color: green;
  border-radius: 10px;
  z-index: 1000;
  cursor: pointer;
}

.thumbnail-container .thumbnail .delete-image {
  top: 3px;
  right: 3px;
  width: 21px;
  height: 21px;
  padding: 1px 5px;
  font-size: 13px;
  background-color: red;
  border-radius: 10px;
  z-index: 1000;
  cursor: pointer;
}

.thumbnail-container .thumbnail .upload-progress {
  position: absolute;
  width: 0;
  height: 10px;
  bottom: 0;
  background: green;
}


/* ==========================================================================
   Images
   ========================================================================== */
.tireimage-control {
  opacity: 0.0;

  /* IE 8 */
  -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=0)";

  /* IE 5-7 */
  filter: alpha(opacity=0);

  /* Netscape or and older firefox browsers */
  -moz-opacity: 0.0;

  /* older Safari browsers */
  -khtml-opacity: 0.0;

  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
  width: 100%;
  height:100%;
}


/* ==========================================================================
   Messenger
   ========================================================================== */
.attachment-options .form-group {
  margin-bottom: 0;
}


/* ==========================================================================
   Queue
   ========================================================================== */
.queue-container {
  position: fixed;
  bottom: 20px;
  right: 40px;
  z-index: 10000;
}

.queue-container .queue-item {
  background-color: lightgrey;
  border-radius: 5px;
  padding: 2px 5px;
  margin-top: 5px;
  font-size: 12px;
}

.queue-container .loader {
  display: inline-block;
  float: left;
  border: 3px solid #ff0000;
  border-top: 3px solid #000000;
  border-radius: 50%;
  width: 14px;
  height: 14px;
  animation: spin 2s linear infinite;
  margin-right: 5px;
  margin-top: 2px;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}



/* ==========================================================================
   Bars
   ========================================================================== */
.bar { background-color: lightgrey; }

.bar-green { background-color: green; }
.bar-yellow { background-color: yellow; }
.bar-orange { background-color: orange; }
.bar-red { background-color: red; }

.container td .bar { max-width: 50%; }



/* ==========================================================================
   Clients Contact Switcher
   ========================================================================== */
.clients-contact-group {
  width: 100%;
}

.clients-contact-switch {
  position: absolute;
  top: 0;
  right: 0;
}

.clients-contact-switch ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.clients-contact-switch ul li.ccs-button {
  color: lightslategrey;
  float: left;
  padding-left: 5px;
  padding-right: 5px;
}

.clients-contact-switch ul li.ccs-button.active {
  background-color: darkgreen;
  border-radius: 6px;
}

.clients-contact-switch ul li.ccs-button.filled {
  color: #25bb00;
}


/* ==========================================================================
   Appointments
   ========================================================================== */
table.appointment-table button.list-link {
  display: block;
  min-width: 250px;
}


/* ==========================================================================
   Settings
   ========================================================================== */
select.select-roles {
  overflow-y: auto;
  min-height: 400px;
}


/* ==========================================================================
   Changelogs
   ========================================================================== */
div.changelog-container h3 {
  font-size: 1.3em;;
}


/* ==========================================================================
   Logger
   ========================================================================== */
.modal-header .logger:not(:disabled):not(.disabled) {
  cursor: pointer;
}

.modal-header button.logger {
  float: left;
  padding: 1rem 1rem;
  margin: -1rem auto -1rem -1rem;
  background-color: transparent;
  border: 0;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1;
  color: #000;
  text-shadow: 0 1px 0 #fff;
  opacity: .5;
}

#loggerMenu.modal div.logger-container {
  max-height: 65vh;
}

#loggerMenu.modal table {
  overflow-x: auto;
  overflow-y: auto;
  scrollbar-width: thin;
  font-size: 0.8em;
}

#loggerMenu.modal table td p {
  margin-bottom: 0;;
}

.changelog-container h2 {
  color: red;
  margin-top: 50px;
}


.tox-tinymce {
  border: 1px solid #ced4da !important;
  border-radius: .25rem !important;

  height: auto !important;
  min-height: 250px !important;
}

.autocomplete-results-wrapper {
    margin: auto auto auto 5px;
    width: 90%;
 }

.autocomplete-results {
    position: absolute;
    background-color: whitesmoke;
    margin: 0 auto;
    padding: 0;
    border: 1px #e8e8e8 ;
    list-style: none;
    z-index: 1;
    width: 95%;
    width: calc(100% - 20px);
}

.autocomplete-results .result{
    padding: 5px;
    border: 1px #e8e8e8;
}

.autocomplete-results .result.active {
    color: black;
    background-color: #c5c5c5;
}


/* ==========================================================================
   Signature Pad
   ========================================================================== */
.signature-pad {
    border: 2px dashed #f0f0f0;
    border-radius: 20px;
    background: #fefefe;
}

/* ==========================================================================
   QR code tags
   ========================================================================== */
.qr-container svg {
    display: inline-block;
}
