﻿:after.debug {
  opacity: 0.5;
}

.debug:hover {
  opacity: 1;
}

.debug-head {
  z-index: 2000;
  position: absolute;
  top: 12px;
  left: 300px;
}

html {
  font-size: 100%;
  /* for rem */
}

body {
  font: normal 1em/1.8 -apple-system, system-ui, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-feature-settings: 'liga';
  -moz-font-feature-settings: 'liga';
  font-feature-settings: 'liga';
  color: #000;
  background: #F2F2F2;
  min-height: 100vh;
}

thead,
.button,
button,
input[type=submit] {
  -webkit-hyphens: none;
  -moz-hyphens: none;
  -ms-hyphens: none;
  hyphens: none;
}

h1,
h2 {
  font-weight: normal;
  line-height: 1.25em;
  margin-bottom: 1em;
}

h1 {
  font-size: 2.4em;
  margin-bottom: 0.3em;
}

h2 {
  font-size: 1.308em;
  margin-bottom: 0.35em;
}

h3,
caption {
  font-size: 1em;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

h3.normal,
button.normal {
  text-transform: none;
  letter-spacing: normal;
}


h3,
h4 {
  margin: 0.9em 0 0.45em;
}

caption {
  padding: 0.9em 10px 0.45em;
  margin: 0;
}

.h-caption {
  padding: 0.45em 10px 0.45em;
  margin: 0 0 0.4em;
}

input[type="file"] {
  width: 100%;
}

.normalweight {
  font-weight: normal;
}

h5 {
  opacity: 0.7;
  font-size: 0.8333em;
  font-weight: normal;
  margin-bottom: 0.3em;
}

.h-sub {
  font-size: 1em;
}

h1.h-sub {
  font-size: 1.308em;
}

p {
  margin-bottom: 1.8em;
}

a,
button,
input[type=submit] {
  cursor: pointer;
  color: inherit;
}

a:hover,
a:focus {
  color: inherit;
}

a:active {}

::-moz-selection {
  color: #fff;
  background: #888;
}

::selection {
  color: #fff;
  background: #888;
}

.ellipsis {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.loadingindicator {
  transition: 0.2s;
}

.loading .loadingindicator,
.silentloading .loadingindicator {
  opacity: 0.3;
}

.tablebox {
  overflow: auto;
}


/* form */
button:not(.base-button).selected {
  background: #fff;
}

input,
select,
textarea {
  padding: 0.3em;
  border: 1px solid rgba(0, 0, 0, 0.15);
}

.button-line {
  padding: 0.3em;
  line-height: normal;
}

:required {
  box-shadow: none;
}

.required-alias {
  display: none;
}

.invalid,
.invalid ~ input[type=button] {
  border-color: rgb(220, 0, 0);
}

textarea {
  width: 100%;
  height: 5.5em;
}

.select-focussed {
  color: #9fa9a9;
}

.select-focussed:hover,
.select-focussed:focus {
  color: inherit;
}

.icon-inline {
  width: 1.4em;
  height: 1.4em;
  vertical-align: -0.3em;
}

.button,
button,
input[type=submit] {
  font-weight: 700;
  text-transform: uppercase;
  min-width: 2em;
  padding: 0.55em 0.9em;
  border: 1px solid;
  transition: 0.02s;
}

.button,
.button-2 {
  text-align: center;
}

.button-3 {
  font-weight: normal;
}

.button-small {
  padding-top: 0.1em;
  padding-bottom: 0.1em;
  margin-left: 0.5em;
}

.button.button-image {
  padding: 0;
}

.button-image svg {
  width: 2.1em;
  height: 2.1em;
}

.buttonicon svg {
  display: block;
  width: 1.6em;
  height: 1.6em;
  margin: 0 auto;
}

.buttonicon-simple {
  border: none;
  background: none;
  padding: 0;
}

.button-action {
  text-align: center;
  padding: 0;
  min-width: 0;
  width: 1.8rem;
  height: 1.8rem;
  line-height: 1;
  padding-bottom: 0.2em;
  border-radius: 100%;
}

.selectbuttons {
  display: flex;
  padding: 0.2em 0;
}

.selectbuttons-sub {
  display: flex;
  flex-direction: column;
  background-color: #fff;
  width: 3em;
}

.selectbuttons-sub button {
  min-width: 0;
  opacity: 0.5;
  filter: saturate(0.5);
  margin: 0;
}

button.selectbutton-sub-active {
  opacity: 1;
  filter: saturate(1);
}

.selectbutton {
  stroke: currentColor;
  min-width: 0;
  margin: 0;
  opacity: 0.4;
  white-space: nowrap;
}

.selectbutton-active {
  opacity: 1;
}

.selectbutton svg {
  display: block;
  width: 3em;
  height: 2em;
  margin: 0 auto;
}

.selectbutton-square svg {
  width: 2em;
}

input[readonly]:not(.datepicker) {
  background-color: #f6f7f7;
  border-color: #f6f7f7;
  cursor: default;
  pointer-events: none;
}

select:disabled {
  opacity: 0.3;
}

button svg {
  height: 100%; 
}

a[data-type="image/png"]::before,
a[data-type="image/jpeg"]::before,
a[data-type="image/gif"]::before,
a[data-type="application/pdf"]::before {
  content: '';
  background: url(../images/image.svg) no-repeat center;
  background-size: contain;
  opacity: 0.5;
  width: 1em;
  height: 1em;
  margin-right: 0.4em;
  margin-top: 0.3em;
}

a[data-type="application/pdf"]::before {
  background-image: url(../images/file.svg);
}


label.disabled,
button.disabled,
button:disabled {
  cursor: default;
  opacity: 0.2 !important;
  border-color: transparent;
}

@keyframes action-loading {
  0% {
    content: ''
  }

  33% {
    content: '·'
  }

  66% {
    content: '··'
  }

  100% {
    content: '···'
  }
}

.action-loading.action-loading {
  pointer-events: none;
  overflow: hidden;
  position: relative;
  cursor: default;
  filter: grayscale(100%);
  opacity: 0.5;
  border-color: transparent;
}

.action-loading.action-loading:after {
  color: #000;
  content: '···';
  position: absolute;
  font-size: 2em;
  line-height: 0.7em;
  right: 5px;
  bottom: 0;
  animation: action-loading alternate 0.5s infinite linear;
}

.pika-lendar button {
  min-width: 0;
}

.pika-time tr td:first-child {
  text-align: right;
  padding-right: 0.5em;
}

.base-button {
  color: inherit;
  background: none;
  padding: 0;
  border-color: transparent;
}

.base-button.active {
  background-color: rgba(255, 255, 255, 0.4);
}

.base-button.active:focus {
  outline: 2px solid;
}

.base-button svg {
  display: block;
  width: 1.4em;
  height: 1.4em;
  margin: 0 auto;
}


.line-button {
  vertical-align: middle;
  min-width: 0;
  padding: 0 0.1em;
  height: 1.8em;
}

table .line-button {
  height: 1.5em;
}

.line-button img {
  height: 100%;
}

.base-button-spaced {
  margin-left: 1.8em;
}

.full-button {
  display: block;
  width: 100%;
  margin-bottom: 3px;
}

.button:focus,
.button:hover,
button:focus,
button:hover {
  outline: 2px solid rgba(0, 0, 0, 0.5);
}

.button-nooutline:hover {
  outline: none;
  opacity: 0.6;
}

button:active {}

.buttonselected {
  border: 1px solid;
}

.background-field {
  display: table;
  width: 100%;
  background: #fff;
  padding: 0.3em 0;
  margin-bottom: 3px;
  border-radius: 4px;
}

.background-field > * {
  display: table-cell;
  width: 50%;
  padding: 0 2%;
}

.background-field > * input,
.background-field > * select {
  width: 100%;
}



.simplelist {
  list-style: none;
  padding: 0;
}



/* tables */

.activehidden,
tr.active .activeshow {
  display: block;
}

tr.active .activehidden,
.activeshow,
.activeshow.nobreak {
  display: none;
}

th[data-what] span {
  display: flex;
}

th[data-what] span:after {
  content: '↕';
  margin-left: 0.5em;
  display: inline-block;
}

th.sorted-1 span:after {
  content: '▾';
}

th.sorted--1 span:after {
  content: '▴';
}

table {
  width: 100%;
  line-height: 1.5;
}

th {
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

tr.itemdeactivated td { 
  opacity: 0.5;
}

tr.itemdeleted td { 
  font-style: italic;
  opacity: 0.25;
}

tr.materialdeleted .materialdeletedhere {
  opacity: 0.5; 
}

.tablefull > thead > tr > th,
.tableside > tbody th,
.tablefull > tbody > tr > td {
  padding: 0.9rem 10px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.tablefull > thead > tr > th,
.tableside > tbody th {
  padding: 0.8rem 10px;
}

.tablefull > tfoot td {
  padding: 0.9rem 10px;
}

@media (max-width: 40em) {
  .tablefull > thead > tr > th,
  .tableside > tbody th,
  .tablefull > tbody > tr > td,
  .tablefull > thead > tr > th,
  .tableside > tbody th,
  .tablefull > tfoot td {
    padding-left: 5px;
    padding-right: 5px;
  }
}

.tableside > thead > tr > th,
.tableside > tbody th,
.tableside > tbody > tr > td,
.tabledata2 > tbody > tr > td {
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
}

.tableside > tbody th {
  font-size: 0.8571rem;
  line-height: 1.9em;
  letter-spacing: 0.05em;
  width: 30%;
}

.tablefull > thead > tr > th,
.tablefull > thead > tr > td {
  border-bottom-color: #fff;
}

.tablefull tr.active > td {
  background: rgba(0, 0, 0, 0.05);
  border-bottom-color: transparent;
  padding-top: 1.8em;
  transition: 0.2s;
}

.tablefull-small tr.active > td {
  padding-top: 1.8em;
  padding-bottom: 0.9em;
  background-color: rgba(0, 0, 0, 0.1);
}


.tablefull > tbody > tr.details > td {
  padding: 0;
  background: rgba(0, 0, 0, 0.05);
}

.tablefull-small > tbody > tr.details > td {
  background: #fff;
}

tr.details > td > form {
  display: block;
  max-height: 0;
  overflow: hidden;
  transition: 0.3s;
  transition-delay: 0.3s;
  opacity: 0;
}

tr.active-details > td > form {
  overflow: hidden;
  max-height: 100vh;
  opacity: 1;
}

.tablefull-small {
  margin-bottom: 1.8em;
}

.tablefull > tbody,
.detail-table > tbody {
  background-color: #fff;
}

.detail-table > tbody > tr > td {
  cursor: pointer;
}

.row-table > tbody > tr:not(.details):hover,
.detail-table > tbody > tr:hover:not(.details):not(.active),
.tabledata2 > tbody > tr:hover:not(.details):not(.active) {
  outline: 2px solid;
}

.tabledata2details > tbody > tr:hover:not(.details):not(.active) {
  outline: none;
}

.detail-table > tbody > tr.details > td {
  cursor: default;
}

.table-highlight {
  font-weight: bold;
}

.detail-table-inner {
  border-bottom: 10px solid;
}

.td-centered {
  vertical-align: middle;
}

.td-right {
  text-align: right;
}

.td-center {
  text-align: center;
}

.iconcell {
  width: 3em;
}

.tabledata {
  margin-bottom: 1.5em;
}

.tabledata-nomargin {
  margin-bottom: 0;
}

.tabledata td {
  padding: 0.3em 0;
  border-bottom: 1px solid transparent;
}

.new-order .tabledata td {
  padding-top: 1px;
  padding-bottom: 1px;
}


.tabledata td:first-child {
  padding-right: 5px;
  width: 8.5em;
}

.tabledata td:not(:first-child) {
  font-weight: 700;
  background: #fff;
  background-clip: padding-box;
  padding-left: 5px;
  padding-right: 5px;
}

.tabledata td:not(:first-child) b:not(.weight-bold),
.tabledata td:not(:first-child) .weight-normal {
  font-weight: normal;
}

.tabledata td:not(:first-child) i {
  font-weight: normal;
}

.columns > div:last-child .tabledata td:not(:first-child) {
  border-right: 0;
}

.tabledata2,
.tabledata2 th {
  background-color: #f2f2f2;
}

.tabledata2 th,
.tabledata2 td {
  padding: 0.45rem 5px;
}

.tabledata2 th:first-child,
.tabledata2 td:first-child {
  padding-left: 9px;
}

.tabledata2 td {
  border-top: 1px solid #e4e5e7;
}

.tabledata2 .td-empty {
  font-weight: bold;
  background: #f1f1f1;
}

.simpletable {
  width: auto;
}

.simpletable.simpletable td {
  width: auto;
  padding-right: 0;
}

.simpletable.simpletable td + td {
  padding-left: 0.5em;
}

.readonlytable {
  width: 100%;
}

.readonlytable.readonlytable td {
  width: auto;
  background: #f6f7f7;
  background-clip: padding-box;
  padding-left: 5px;
  padding-right: 5px;
}




th[data-sortby] {
  cursor: pointer;
}

tr.state-done,
tr.state-removed {
  opacity: 0.5;
}

.order-message {
  height: 6em;
  margin-bottom: 1em;
}

.order-message-display {
  background: #fff;
  padding: 5px;
}


.items-with-action {
  max-width: 90vw;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.items-with-action .button {
  margin-left: 0.5em;
}





/*.state-cell {
  border-left: 2px solid transparent;
}
.tablefull-small .state-cell {
  border-left: 5px solid transparent;
}*/

b.state-1 {
  /* new */
  display: inline-block;
  font-size: 0.8461em;
  color: #fff;
  background-color: #df4718;
  /* TODO: */
  padding: 0.3em 1em;
  ;
  border-radius: 0.75em;
}

b.state-9 {
  /* pending */
  color: #4d5256;
}

tr.state-9 > td:first-child {
  border-left-color: #4d5256;
}

b.state-2,
b.state-10 {
  /* send */
  color: #707173;
}

tr.state-2 > td:first-child,
tr.state-10 > td:first-child {
  border-left-color: #707173;
}

b.state-4 {
  /* working */
  color: #df4718;
}

tr.state-4 > td:first-child {
  border-left-color: #df4718;
}

b.state-12 {
  /* driving */
  color: #a33413;
}

tr.state-12 > td:first-child {
  border-left-color: #a33413;
}

b.state-5 {
  /* failed */
  font-weight: bold;
  color: #d00;
}

tr.state-5 > td:first-child {
  border-left-color: #d00;
}

b.state-6 {
  /* done */
  color: #1a0;
}

.tablefull-small tr.state-6 > td:first-child {
  border-left-color: #1a0;
}


.state-7 {
  /* removed */
  display: none;
  /* opacity: 0.5; */
}


.information {
  font-style: italic;
}


/* tableform */

.tableform {
  display: table;
  width: 100%;
}

.tableform label {
  display: table-row;
}

.tableform label > * {
  display: table-cell;
}


.awayform {
  text-align: right;
  margin: 0.9em 10px 1.8em;
}

.flexform,
.flexform-group {
  background: #f6f7f7;
  display: flex;
  flex-flow: row wrap;
  align-items: center;
  justify-content: space-between;
}

.flexform-group-center {
  justify-content: center;
}

.flexfield {
  display: flex;
  flex-flow: row wrap;
  align-items: center;
  justify-content: space-between;
}

.flexfield-line {
  flex-wrap: nowrap;
}

.flexform > * {
  flex: 1 1 auto;
}

.flexform-group {
  flex: 100%;
  background-color: #fff;
}

.flexform-group:last-child {
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}


.flex-bottom {
  align-self: flex-end
}

.dataform,
.sideform {
  margin-bottom: 0.9em;
}

.sideform label,
.dataform label {
  display: block;
  padding: 0.5em 10px;
  background: #fff;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.flexform-group label {
  border-bottom: 0;
}

.dataform label {
  display: -webkit-flex;
  display: flex;
  -webkit-flex-flow: row wrap;
  flex-flow: row wrap;
  align-items: center;
}

.dataform label > * {
  -webkit-flex: 0 auto;
  flex: 0 auto;
}

.sideform label > span {
  display: block;
}

.sideform input,
.sideform select,
.dataform input,
.dataform select {
  font-weight: bold;
}

.sideform input,
.sideform select {
  width: 100%
}

.dataform > label > *:nth-child(1) {
  float: left;
  width: 10em;
}

.flexform .labeltext {
  padding-right: 0.5em;
}

.dataform .datepicker { 
  width: 100%; 
}


.offline .head-settings {
  border-left: 3px solid #fb0;
}

.online .head-settings {
  border-left: 3px solid rgba(0, 0, 0, 0.5);
}


.logo-head,
.logo-login {
  background-size: contain;
  background-repeat: no-repeat;
}

.logo-head {
  background-position: left center;
  width: 150px;
  height: 1em;
  margin-right: 15px;
}

.logo-login {
  background-position: center;
  width: 100%;
  height: 2.8em;
  margin: 1.8em 0;
}

.head-content,
.head-settings {
  display: flex;
  align-items: center;
  padding: 0 15px;
}

.head-content {
  flex: 1 1 auto;
  justify-content: space-between;
}

.head-content a {
  color: #fff;
  border: 1px solid;
  padding: 0 0.5em;
  margin-right: 1em;
}

.head-settings {
  text-align: center;
  white-space: nowrap;
  padding: 0;
  -webkit-justify-content: space-around;
  justify-content: space-around;
}

.head-settings button,
.head-settings .button {
  min-width: 0;
  padding: 0 15px;
}

.messages:empty {
  display: none;
}

.messages div:before {
  float: right;
  content: '×';
  margin-right: 10px;
}

.messages > * {
  cursor: pointer;
  font-weight: 600;
  color: #fff;
  padding: 0.45em 10px;
}

.message-ok {
  background-color: rgba(0, 136, 0, 0.7);
}

.message-info {
  color: #fff;
  background-color: rgba(0, 0, 0, 0.8);
}

.message-warn {
  background-color: rgba(255, 132, 0, 0.8);
}

.message-,
.message-error {
  background-color: rgba(204, 0, 0, 0.8);
}


.item-details {
  position: relative;
  padding: 0.9em 10px 1.8em;
}

.item-details-close {
  position: absolute;
  font-size: 1.5em;
  top: 0;
  right: 0;
  min-width: 0;
  padding: 0.45em 10px 0.45em 2em;
}

.order-data-info {
  max-height: 3em;
  overflow: hidden;
  font-style: italic;
}

.shorttype {
  text-transform: uppercase;
}

.order-type:before {
  display: block;
}

.container-state {
  display: block;
  position: relative;
  padding-right: 1.4em;
}

.container-state:before {
  position: absolute;
  right: 0;
  top: 0.2em;
}

.truck-status:before,
.container-state:before {
  content: '';
  display: inline-block;
  background: #eee;
  width: 1em;
  height: 1em;
  border-radius: 100%;
}

.truck-status-1:before {
  background: #ff9100;
  /* OK */
}

.container-state-2:before,
.select-container-state-2 {
  background: #fc0;
  /* OK */
}

.truck-status-2:before,
.container-state-3:before,
.select-container-state-3 {
  background: #df4718;
  /* REPAIR */
}


.truck-status-no-driver:before {
  background: #dddee0;
}

.truck-status-no-orders:before,
.container-state-1:before,
.select-container-state-1 {
  background: #1a0;
}


/* map */
.leaflet-marker-icon:hover {
  z-index: 1100 !important;
}

.point-icon:after {
  display: block;
  content: '';
  background: #fff;
  width: 11px;
  height: 11px;
  border-radius: 100%;
  border: 3px solid #0069b4;
}

.container-icon span {
  text-align: center;
  color: #fff;
  display: block;
  width: 30px;
  border: 2px solid;
}

.container-icon:hover span {
  border-color: #999;
}

.container-icon.marker-active span {
  border-color: #000;
}

.container-icon-3 span {
  background-color: #df4718;
}

.container-icon-2 span {
  background-color: #ff9100;
}

.container-icon-1 span {
  background-color: rgb(0, 150, 0);
}

.truck-icon:after {
  content: attr(title);
  background: rgba(0, 105, 180, 0.5);
  border-radius: 2px;
  color: #fff;
  padding: 0.3em;
  font-weight: bold;
  white-space: nowrap;
  border: 1px solid;
}

.truck-icon:hover:after {
  background: #ccc;
  color: #333;
}

.truck-icon.marker-active:after {
  background: #fff;
  color: #000;
}

.order-icon span {
  text-align: center;
  content: attr(title);
  display: block;
  color: inherit;
  background: #fff;
  border-radius: 100%;
  width: 2.4em;
  height: 2.4em;
  line-height: 2.2em;
  overflow: hidden;
  font-weight: 900;
  white-space: nowrap;
  border: 0.2em solid;
}

.order-icon:hover span {
  background: #333;
  color: #fff;
}

.order-icon.marker-active span {
  background: #000;
  color: #fff;
}

.target-icon {
  background: rgba(255, 0, 0, 0.8);
  border-radius: 100%;
}

.paging {
  padding: 0 15px;
  text-align: center;
}

.paging span {
  display: inline-block;
  margin: 0 2em;
}

.invisible {
  visibility: hidden;
}

.minimapIcon {
  font-size: 3em;
  margin-top: 1em;
  text-align: center;
}

.minimapIcon b {
  font-size: 4em;
}


.order-isnew {
  z-index: 1000 !important;
}

.order-isnew.marker-active {
  z-index: 10000 !important;
}

.order-isnew:after {
  content: '*';
  display: block;
  text-align: center;
  color: #eee;
  background: #df4718;
  opacity: 1;
  border-radius: 0.4em;
  width: 2em;
  line-height: 1.5em;
  height: 1.1em;
  position: absolute;
  top: -0.25em;
  left: -0.25em;
}

.order-isnew:hover::after {
  opacity: 0.1;
}


.order-icon span[data-count]::after {
  content: attr(data-count);
  position: absolute;
  line-height: 1.2;
  padding: 0 0.15em;
  border: 2px solid;
  
  background: inherit;
}

.order-icon span[data-count="1"]::after {
  display: none;
}

.order-icon:hover span[data-count]::after {
  opacity: 0.1
}


.orderfiles-item {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 0.5em;
}

.orderfiles-item a {
  display: flex;
  word-break: break-all;
  word-wrap: break-word;
}

.formline {
  max-width: 90vw;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
}

.formline.formline.formline input {
  width: auto;
  min-width: 0;
}

.formline .autowidth {
  flex: auto;
}

.formline select.autowidth {
  width: 100%;
  flex: auto;
}

@media (min-width: 720px) {
  .formline {
    flex-wrap: nowrap;
  }
}

.autocomplete-suggestions {
  border: 1px solid #999;
  background: #FFF;
  overflow: auto;
}

.autocomplete-suggestion {
  padding: 0.4em 5px;
  line-height: 1.3;
  overflow: hidden;
}

.autocomplete-selected {
  background: #F0F0F0;
}

.autocomplete-suggestions strong {
  font-weight: 700;
  color: #df4718;
}

.autocomplete-group {
  padding: 0.4em 5px;
}

.autocomplete-group strong {
  display: block;
  border-bottom: 1px solid #000;
}

.sec-checkbox:before {
  content: '';
  display: inline-block;
  width: 1.5em;
  height: 1.5em;
  vertical-align: middle;
  margin-right: 0.45em;
  background: #fff;
}

.sec-checked:before {
  background: #fff url(../images/check-circle.svg) no-repeat center;
  background-size: contain;
}


.sec-not-checked:before {
  background: none;
  vertical-align: 0.1em;
  content: '×';
}

.sec-not-checked {
  color: #c00;
}


.svg-symbols {
  display: none;
}

.vanillabox-html {
  padding: 0 17px 0 0;
}

.vanillabox-item iframe {
  display: block;
  width: calc(100vw - 10em);
  height: 90vw
}