:root {
  --primary-color: #5ab2e2;
}

* {
  box-sizing: border-box;
}

html {
  font-family: 'Roboto', sans-serif;
  font-size: 14px;
  color: #333;
  -webkit-font-smoothing: antialiased;
}

body {
  margin: 0;
  padding: 0;
  background: #f2f3f5;
}

.form-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  padding: 24px;
}

.reportform input,
label,
fm-button {
  display: block;
}

.form-space {
  float: left;
  margin: 10px;
}

.form-grid .form-field {
  width: calc(50% - 8px);
}

.form-grid .form-field3 {
  width: calc(31% - 8px);
}

.form-grid .form-field4 {
  width: calc(24% - 8px);
}

.form-grid .form-field5 {
  width: calc(18% - 8px);
}


.form-grid .btn {
  width: 100%;
  margin-top: 8px;
}

.form-field {
  display: block;
  padding: 16px 0;
  font-size: 14px;
  font-weight: 500;
}

.form-space input[type="text"],
.form-space input[type="number"],
.form-space input[type="password"],
.form-space input[type="date"],
.form-space input[type="email"],
.form-space input[type="tel"] {
  font-family: 'Roboto', sans-serif;
  font-size: 16px;
  border: 1px solid #ddd;
  padding: 8px;
  margin-top: 4px;
  width: 100%;
  height: 38px;
  min-width: 140px;
}

.search-input {
  font-family: 'Roboto', sans-serif;
  font-size: 16px;
  border: 1px solid #ddd;
  padding: 8px;
  margin-top: 4px;
  width: 100%;
  height: 38px;
  width: 100%;
  min-width: 200px;
}

.search-input-big {
  font-family: 'Roboto', sans-serif;
  font-size: 16px;
  border: 1px solid #ddd;
  padding: 8px;
  margin-top: 4px;
  width: 100%;
  height: 38px;
  width: 100%;
  min-width: 400px;
}


.form-field input[type="text"],
.form-field input[type="number"],
.form-field input[type="password"],
.form-field input[type="date"],
.form-field input[type="email"],
.form-field input[type="tel"] {
  font-family: 'Roboto', sans-serif;
  font-size: 16px;
  border: 1px solid #ddd;
  padding: 8px;
  margin-top: 4px;
  width: 100%;
  height: 38px;
  min-width: 140px;
}

input.inline {
  font-family: 'Roboto', sans-serif;
  font-size: 12px;
  border: 1px solid #ddd;
  padding: 8px;
  width: 100%;
  height: 38px;
}

input.right {
  text-align: right
}



.form-field input[type="checkbox"] {
  margin: 8px;
}

.form-field select {
  width: 100%;
  font-family: 'Roboto', sans-serif;
  font-size: 16px;
  padding: 8px;
  margin-top: 4px;
  border: 1px solid #ddd;
}

input[data-invalid="true"],
*[data-invalid="true"] {
  border: 1px solid #F44336;
}

.form-field .field-error {
  display: none;
  color: #F44336;
  padding: 8px 0;
}

.form-field *[data-invalid="true"]+.field-error {
  display: block;
}

.form-grid .panel {
  width: 100%;
  display: flex;
  justify-content: space-between;
}

.text-input {
  font-family: 'Roboto', sans-serif;
  font-size: 16px;
  border: 1px solid #ddd;
  padding: 8px;
  width: 100%;
}

.date-input {
  width: 200px;
}

input[type="checkbox"] {
  height: auto;
}

input:required:hover {
  opacity: 1;
}

.button {
  background: var(--primary-color);
  color: white;
  border: none;
  padding: 6px 6px;
  min-width: 100px;
  font-size: 14px;
  font-weight: 500;
  font-family: Roboto, sans-serif;
  text-transform: uppercase;
  text-align: center;
  transition: background-color 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.submit {
  border: 1px solid black;
}


.button-changed {
  background: red;
  color: white;
  border: none;
  padding: 6px 6px;
  min-width: 100px;
  font-size: 14px;
  font-weight: 500;
  font-family: Roboto, sans-serif;
  text-transform: uppercase;
  text-align: center;
  transition: background-color 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}


.button[disabled] {
  background: #ddd;
  color: #666;
}


.button:not([disabled]) {
  cursor: pointer;
}

.button:not([disabled]):hover,
.button:focus {
  opacity: 0.8;
}

.suggest-dropdown {
  position: absolute;
  display: none;
  z-index: 2;
}

.suggest-dropdown,
.suggest-list {
  margin: 0;
  padding: 0;
  border: 1px solid #000;
  width: 400px;
  overflow: hidden;
  text-align: left;
}


.warning {
  background: yellow
}

* {
  box-sizing: border-box;
}

:host {
  display: block;
}

router-link a {
  text-decoration: none;
  color: inherit;
}

router-link[active] a {
  color: var(--primary-color);
}

h1 {
  font-weight: 500;
  font-size: 20px;
  margin: 0;
}

h2 {
  font-weight: 500;
  font-size: 18px;
  margin: 0;
}

.card {
  background: white;
  border: 1px solid #ddd;
  border-radius: 2px;
  margin: 16px;
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px;
  min-height: 56px;
  border-bottom: 1px solid #ddd;
}

.card-block {
  display: flex;
  min-height: 64px;
  border-bottom: 1px solid #ddd;
}

.btn {
  cursor: pointer;
  margin: 0;
  padding: 12px 16px;
  border: none;
  border-radius: 2px;
  background: var(--primary-color);
  color: #fff;
  text-align: center;
  font-family: 'Roboto';
  font-size: 14px;
  font-weight: 500;
  text-transform: uppercase;
  white-space: nowrap;
  transition-duration: 0.3s;
  transition-property: background-color, box-shadow;
  transition-timing-function: cubic-bezier(0.25, 0.8, 0.25, 1);
  box-shadow:
    0 2px 2px 0 rgba(0, 0, 0, 0.14),
    0 1px 5px 0 rgba(0, 0, 0, 0.12),
    0 3px 1px -2px rgba(0, 0, 0, 0.2);
}

.btn:not([disabled]):hover,
.btn:not([disabled]):focus {
  color: black;
  box-shadow:
    0 4px 5px 0 rgba(0, 0, 0, 0.14),
    0 1px 10px 0 rgba(0, 0, 0, 0.12),
    0 2px 4px -1px rgba(0, 0, 0, 0.4);
}

.btn--light {
  /* background: none; 
    color: #111; */
  box-shadow: none;
}

.btn--light:not([disabled]):hover,
.btn--light:not([disabled]):focus {
  background: #f2f2f2;
  box-shadow: none;
}

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

.custody-type-code {
  color: #fff;
  display: flex;
  overflow: hidden;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--primary-color);
  padding: 3px;
  margin: 3px;
}

.horizontal-menu-header {
  display: flex;
  align-items: center;
  height: 48px;
  width: 100%;
  padding: 0 16px;
  background: white;
  border-bottom: 1px solid #ddd;
}

.horizontal-menu-header a {
  color: #666;
  font-size: 15px;
  font-weight: 500;
  margin: 0 8px;
  padding: 6px;
}

@media print {
  .no-print {
    display: none
  }

  .horizontal-menu-header {
    display: none
  }

  router-link {
    display: none
  }

  .search-input {
    display: none
  }
}

table {
  border-collapse: collapse;
  border-bottom: none;
  width: 100%;
}

table a {
  color: #448AFF;
  text-decoration: none;
}

th,
td {
  padding: 12px;
  border-bottom: 1px solid #ddd;
}

.tight {
  padding: 4px;
}


td.separate {
  padding: 12px;
  border-bottom: 2px solid black;
}


th {
  text-align: left;
  color: #333;
  font-size: 13px;
  font-weight: 500;
}

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

td {
  color: #333;
  font-size: 14px;
}

.numeric {
  text-align: right;
}

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

.red {
  background: red
}

.draft-order {
  width: 100%;
  display: grid;
  grid-template-columns: 5% 10% 20% 20% 10% 10% 10% 15%;
  grid-template-rows: auto;
  border-bottom: 1px solid #ddd;
}

.order-detail {
  width: 100%;
  display: grid;
  grid-template-columns: 4% 4% 11% 10% 10% 8% 8% 6% 6% 6% 6% 8% 6% 4%;
  grid-template-rows: auto;
  border-bottom: 1px solid #ddd;
}

fm-file-upload {
  display: block;
  border: 2px dashed #BDBDBD;
  border-radius: 4px;
  margin: 16px 0;
  height: 300px;
  cursor: pointer;
}

.upload-text {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  height: 100%;
  font-size: 20px;
  padding: 32px 16px;
  pointer-events: none;
}

fm-file-upload:not([empty]) .empty {
  display: none;
}

fm-file-upload:not([populated]) + button {
  display: none;
}

fm-file-upload:not([populated]) .populated {
  display: none;
}

fm-file-upload.sent {
  display: none;
}


fm-file-upload:not([uploading]) .uploading {
  display: none;
}

fm-file-upload:not([done]) .done {
  display: none;
}

fm-file-upload[populated] {
  border-color: var(--primary-color);
}

fm-file-upload[dropping] {
  background: #eee;
}

fm-file-upload[populated] fm-icon {
  color: var(--primary-color);
}