﻿html {
  font-size: 87.5%;
  overflow: auto;
}

html,
body {
  height: 100%;
}

.dashboard {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.head {
  flex: 0 0 auto;
}

.main {
  flex: 1 1 100%;
  display: flex;
}

.head.head > * {
  padding-top: 0.1em;
  padding-bottom: 0.1em;
}

.head-settings button {
  border: 0;
  padding: 0.3em 1em;
}

.columns-main {
  height: 100%;
}

thead {
  font-size: 0.8571em;
}

@media (min-height: 40em) {

  thead tr,
  thead th {
    background-color: inherit;
  }

  thead th {
    z-index: 200;
    position: sticky;
    top: 0;
  }
}

.filtercaption,
.filtercaption form {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.filtercaption button {
  padding: 0.3em 0;
  background: rgba(0, 0, 0, 0.05);
  border: none;
}



.notifications > div {
  font-weight: 700;
  font-size: 1.25em;
}

.messages {
  max-width: 75%;
  z-index: 3;
  position: relative;
  margin-top: 5px;
}

.button-selectover {
  margin-left: 0;
}

.item-details-close {
  padding-top: 0;
}

.driver-order-done {
  font-weight: normal;
}

.activeFilter {
  opacity: 0.5;
}

.copy-buttons {
  text-align: center;
}

.copy-buttons button {
  padding: 0 1em;
}

.h-width-button {
  display: flex;
  justify-content: space-between;
}

.map,
.minimap {
  width: 100%;
  min-height: 200px;
  height: 300px;
}

.map {
  height: calc(100vh - 10em);
}

@media (orientation: landscape) {
  .map {
    height: calc(100vh - 17em);
  }  
}

.minimap {
  filter: saturate(2);
  opacity: 0;
  pointer-events: none;
  transform: 0.5s;
}

.minimapvisible {
  opacity: 1;
  pointer-events: all;
}

.activemap .minimap {
  position: fixed !important;
  left: auto;
  right: 10px;
  top: auto;
  bottom: 1.5em;
  z-index: 500;
  width: 200px;
  height: 200px;
  box-shadow: 0 0 4px 1px rgba(0, 0, 0, 0.75);
}

.map-plzlabel {
  font-weight: 700;
  color: rgba(0, 0, 0, 0.8);
  text-shadow: 0 0 3px rgba(255, 255, 255, 0.8);
}

.map-container { 
  position: relative;
}

.map-bounds {
  display: block;
  z-index: 2000;
  position: absolute;
  top: 80px;
  left: 10px;
  min-width: 0;
  width: 34px;
  height: 34px;
  background: #fff no-repeat center/contain url(../images/crosshair.svg);
  border: 2px solid #ccc; 
}

.map-bounds-overlay {
  top: 120px;
  background-image: url(../images/maximize.svg);
}


.map-container .selectbuttons {
  z-index: 2000;
  position: absolute;
  top: 10px;
  right: 10px;
}

.maporders-disabled .order-icon,
.maptrucks-disabled .truck-icon,
.mapcontainers-disabled .container-icon,
.mapcontainers1-disabled .container-icon-1,
.mapcontainers2-disabled .container-icon-2,
.mapcontainers3-disabled .container-icon-3 {
  pointer-events: none;
  opacity: 0 !important;
}


.mainfilter {
  display: flex;
  justify-content: flex-end;
}

@media (min-width: 1024px) {
  .mainfilter {
    z-index: 20;
    position: absolute;
    right: 20px;
  }

  .activemap .minimap {
    width: 300px;
    height: 300px;
    right: 20px;
  }
}

@media (min-width: 1200px) {
  .activemap .minimap {
    right: 26%;
  }
}



.shaftfilter {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  height: 3.8em;
}

.shaftfilter:empty {
  display: none;
}

.shaftfilter button {
  font-weight: 700;
  padding: 0.1rem 15px;
  border-bottom: 2px solid;
  margin: 0 0.45em;
}

.shaftfilter :not(.selected) {
  opacity: 0.5;
  border-bottom-color: transparent;
}

.datepicker,
.datetimepicker {
  text-align: left;
  background: none;
}

.filter.flex-container {
  background: #fff;
  padding: 0.45em 0 0.25em;
  align-items: stretch;
}

.tab-content > .filter.flex-container:first-child {
  padding-top: 0.9em;
}

.filter > * {
  margin-bottom: 0.25em;
}

.filter-toggler {
  cursor: pointer;
}

.filter-collapsed .filter-toggler {
  background: url(../images/filter.svg) no-repeat left 10px center;
  padding: 0 10px;
}

.filter.filter-collapsed {
  display: block;
}
.filter-collapsed > * {
  display: none !important;
  margin: 0 !important;
}

.filter-collapsed h3 {
  display: block !important;
  text-align: center;
}


.filter input,
.filter select {
  padding-top: 0;
  padding-bottom: 0;
}
.filter.filter > select,
.filter.filter > .button-3 {
  flex-grow: 0;
}

.filter .filter-filtered {
  font-weight: bold;
}
  
.filter > * + *:not(.filter-clear):not(h3) {
  margin-left: 0.2em;
}

.filter .datepicker {
  min-width: 8ch;
  flex: 0 0 17.5ch; 
}

.filter h3 {
  align-self: center;
  flex: 0 0 auto;
  margin-top: 0;
  margin-right: 0.2em;
}

.filter button {
  flex-grow: 0;
  padding: 0.3em 0.45em;
  border: none;
}

.filter .filter-today.filter-today,
.filter button[type=submit] {
  margin-left: 0;
}
.filter .filter-today.filter-today {
  margin-right: 0.9em;
}

.order-calendar.order-calendar {
  flex: 100%;
  display: flex;
  flex-wrap: wrap;
  line-height: 1.25;
  padding-bottom: 0.2em;
}

.order-calendar h3 {
  margin: 0 1em 0 0;
}

.order-calendar button {
  flex-grow: 0;
  padding: 0 0.45em;
  margin-right: 2px;
}
.order-calendar .order-calendar-day {
  flex-grow: 1;
  border-left: 1px solid rgba(0, 0, 0, 0.1);
}

.order-calendar b {
  display: block;
}

.orders {
  width: 100%;
}

.orders thead th {
  min-width: 5%;
}

.orders thead th:nth-child(5),
.orders thead th:nth-child(6),
.orders thead td:nth-child(5),
.orders thead td:nth-child(6) {
  width: 13%;
}

.orders thead th:nth-child(7),
.orders thead td:nth-child(7) {
  width: 20%;
}

.newstable {
  table-layout: fixed;
}


.orders b[class^='state-'] {
  display: inline-block;
  font-size: 0.8571em;
  max-width: 5em;
  overflow: hidden;
  text-overflow: ellipsis;
}

.nobreak {
  display: block;
  white-space: nowrap;
}


.new-order {
  background: #fff;
  padding: 1em 0;
}

.new-order td {
  vertical-align: middle;
}

.new-order input,
.new-order select {
  width: 90%;
  margin-top: 1px;
  margin-bottom: 1px;
}

.new-order td:last-child input,
.new-order td:last-child select {
  width: 100%;
}

.fields-1-1,
.fields-1-2,
.fields-2-1,
.sideform .fields-1-1,
.sideform .fields-1-2,
.sideform .fields-2-1 {
  display: flex;
  align-items: center;
  vertical-align: baseline;
}

.sideform .fields-1-1 input,
.sideform .fields-1-1 input + input,
.new-order .fields-1-1 input,
.new-order .fields-1-1 input + input {
  flex: 0 1 50%;
  min-width: 5em;
}

.sideform .fields-1-2 input:first-child,
.sideform .fields-2-1 input:last-child,
.new-order .fields-1-2 input:first-child,
.new-order .fields-2-1 input:last-child {
  width: 4em;
}

.sideform .fields-1-2 input + *,
.sideform .fields-2-1 input:first-child,
.new-order .fields-1-2 input + *,
.new-order .fields-2-1 input:first-child {
  flex: auto;
}

.fields-2-1 b {
  flex: 0 0 1em;
  text-align: center;
}

.export-section {
  font-size: 2em;
  padding: 20px 15px 0;
  text-align: center;
}

.signature-view {
  display: block;
  height: 3.6em;
  margin: 0 auto;
}

.calendar {
  margin: 1.8em 0;
}

.zipdistance {
  position: relative;
  top: -1.3em;
  text-align: center;
  font-weight: normal;
}

.fc-toolbar {
  padding: 0;
  margin: 0;
}

.fc-day {
  background-color: #fff;
}

.fc-h-event {
  cursor: pointer;
}

.away-u,
.away-Urlaub {
  background-color: #090;
}

.away-k {
  background-color: #ea0;
}

.away-full {
  width: 100%;
  margin-bottom: 1em;
}

.actions-center button {
  width: 100%;
}