﻿html {
  font-size: 135%;
  overflow-y: auto;
  overflow-x: auto;
}


.iconfont {
  font-family: icons, sans-serif;
  font-weight: normal;
}

tr {
  vertical-align: middle;
}

p {
  margin-bottom: 1em;
}

h5 {
  margin-top: 1.8rem;
}

.truckstate-message {
  font-weight: 700;
}

.app .columns + .columns {
  margin-top: 0;
}

.app .main {
  padding-left: 0;
  padding-right: 0;
}

.app .page {
  padding-bottom: 3em;
}

.head-truck svg {
  display: inline-block;
  vertical-align: -0.2em;
  margin: 0;
}

.truckstate-overlay .all {
  padding: 1em 15px;
  max-width: 30em;
}


.no-orders-message {
  text-align: center;
  padding: 20px 15px;
}

.iconcell svg {
  width: 1.4em;
  height: 1.4em;
}

.new-actions-info:after {
  content: attr(title);
  font-family: Arial, Helvetica, sans-serif;
  color: #fff;
  background: #f50;
  display: inline-block;
  font-size: 0.8em;
  font-weight: bold;
  width: 1.4em;
  height: 1.4em;
  line-height: 1.4;
  border-radius: 100%;
  text-align: center;
  position: absolute;
  margin-left: -0.4em;
  margin-top: -1.4em;
}

.new-orders-head {
  font-size: 1em;
  text-transform: uppercase;
  color: #fff;
  background: #f50;
  padding: 0.5em 15px;
  margin: 0.5em 0 0;
}

.new-orders-head svg {
  width: 1.2em;
  height: 1.2em;
  vertical-align: -0.1em;
}

.new-orders {
  margin: 0 0 3.8em;
}

.detail-table thead {
  font-size: 0.8333em;
  white-space: nowrap;
}

.new-orders td:first-child,
.orders td:first-child {
  width: 5em;
}

.new-orders td:nth-child(2),
.orders td:nth-child(2) {
  width: 10em;
}

.new-orders td:nth-child(3),
.orders td:nth-child(3) {
  width: 12em;
}

.tablefull tr.active > td {
  padding-top: 0.45em;
  padding-bottom: 0.45em;
}

.order-data-info {
  max-height: 4.5em
}

tr.active .order-data-info {
  max-height: none;
}

.sec-number {
  background: none repeat scroll 0 0 #fff;
  display: inline-block;
  height: 1.8em;
  min-width: 3em;
  padding: 0 0.45em;
  vertical-align: middle;
  text-overflow: ellipsis;
  overflow: hidden;
}

.overlay {
  display: none;
  z-index: 10;
  position: fixed;
  top: 0;
  bottom: 0;
  left: -100vw;
  width: 100vw;
  overflow: auto;
  background: #f6f7f7;
  transition: 0.5s;
  opacity: 0;
  line-height: 1.4;
}

.overlay.active {
  left: 0;
  opacity: 1;
  display: block;
  padding-top: 30px;
}

.sig-overlay {
  padding-top: 1em;
  padding-left: 1em;
  padding-right: 1em;
}

.sec-info-column {
  padding: 0 1em;
}

.sec-pad-column {
  width: 16em;
  padding: 0 1em;
}

.sec-number.sec-number-input {
  font-weight: 700;
  vertical-align: middle;
  width: 9em;
  margin-left: 1px;
  border: 2px solid #ffffff;
}

.sec-number.sec-number-input-active {
  border-color: #000000;
}

.sec-number.sec-checkbox {
  min-width: 4em;
}

.sec-remove {
  width: 4.5em;
  margin-left: 1px;
  margin-bottom: 1px;
}

.sec-pad {
  clear: both;
  overflow: hidden;
  margin-bottom: 1em;
}

.sec-pad button {
  width: 4.5em;
  height: 3.7em;
  font-weight: bold;
  float: left;
  border: 1px solid;
}

.sec-pad button:nth-child(3n+2) {
  border-left-width: 0;
  border-right-width: 0;
}

.sec-pad button:nth-child(1n+4) {
  border-top-width: 0;
}

.sec-check,
.block.sec-check {
  display: block;
  margin: 1.8em 0 0;
}

.sec-check input {
  display: none;
}

label.sec-checkbox:before {
  border: 1px solid #000;
}

.sec-check-label {
  font-weight: 700;
  text-transform: uppercase;
}


/* Signature */

.sig-view {
  font-size: 0.8333em;
  margin: 0 0 1.8rem;
}

.sig-view p {
  margin-right: 1.8em;
}

.sig-view img {
  background: #fff;
  display: block;
  width: auto;
  height: 3.8em;
  margin: 0 auto;
}

.sig-field {
  display: flex;
  align-items: center;
  margin-bottom: 0.6em;
}

.sig-field span {
  flex: 0 0 8em;
}

.sig-field input,
.sig-field textarea {
  display: block;
  width: 100%;
}

.sig-done {
  font-style: italic;
  position: absolute;
  margin-top: 1em;
  margin-left: 1em;
}

.sig-canvas {
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.15);
  margin: 1.5em 0;
}

.sig-canvas.sig-disabled {
  pointer-events: none;
  border: none;
}

.sig-canvas canvas {
  display: block;
}



.minimap {
  width: 100%;
  height: 0;
}

.details .minimap {
  height: 500px;
  height: 70vh;
  max-height: 700px;
}

.active-detail p {
  margin-bottom: 1em;
}

.active-detail .information {
  margin-bottom: 0;
}

.head {
  margin-bottom: 0;
}

.tablefields {
  display: flex;
}

.tablefields > *:first-child {
  padding-right: 0.9em;
}

.container-and-type {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 4em;
  height: 4em;
  padding-bottom: 0.45em;
  border: 1px solid #eaeaea;
  border-radius: 100%;
}

.container-and-type b {
  font-size: 0.9em;
  white-space: nowrap;
  max-width: 4em;
  overflow: hidden;
}

tr.active .container-and-type {
  border-color: #fff;
}

tr.state-9 .container-and-type,
tr.state-10 .container-and-type {
  color: #fff;
  background: #9c1006;
  border-color: #9c1006;
}

tr.state-4 .container-and-type {
  color: #fff;
  background: #ffa15b;
  border-color: #ffa15b;
}

tr.state-9 > td:first-child {
  border-left: none;
}

.actions.actions {
  margin-top: 1em;
  margin-bottom: 1em;
}

.actions.actions > * {
  flex-grow: 1;
}

.app-materials.app-materials td {
  width: auto;
  padding: 0 0.5em 1px;
}
.app-materials.app-materials td:first-child {
  padding-left: 0;
}
.app-materials.app-materials td:last-child {
  padding-right: 0;
}

.materialsform {
  margin-bottom: 1em;
}


@media (max-width: 599px) {
  .actions.actions,
  .actions > * {
    display: block;
    width: 100%;
  }
}

@media (max-width: 719px) {
  .orders .actions {
    margin-left: -20px;
    margin-right: -20px;
  }

  .app-materials.app-materials tr,
  .app-materials.app-materials td {
    display: block;
  }
}