*,
*:before,
*:after {
  box-sizing: border-box;
  -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
}
body,
html {
  font-family: 'Noto Sans', 'Roboto', Helvetica, Calibri, Arial, sans-serif;
  font-size: 16px;
  font-weight: 400;
  color: #434144;
  background-color: #fefefe;
  margin: 0;
}
h2 {
  margin-bottom: 6px;
}
.nav {
  position: fixed;
  top: 0px;
  right: 0px;
  padding: 4px 8px;
  border-radius: 0 0 0 2px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
  text-align: right;
  background: white;
  z-index: 3;
}
.nav .btn {
  font-size: 18px;
}
.btn {
  font-family: 'Noto Sans', 'Roboto', Helvetica, Calibri, Arial, sans-serif;
  font-size: 14px;
  padding: 4px;
  color: #525252;
  border: none;
  background: transparent;
  cursor: pointer;
}
.btn:hover {
  color: #b9d421;
}
.btn:focus {
  outline: none;
}
.btn.btn-flat {
  margin: 2px 4px;
  padding: 6px;
  border-radius: 2px 2px 0 2px;
}
.btn.btn-flat.btn-success {
  background: #d6d6d6;
}
.btn.btn-flat.btn-success:hover {
  color: #ebebeb;
  background: #b9d421;
}
.btn.btn-flat.btn-delete {
  background: #FFCDD2;
}
.btn.btn-flat.btn-delete:hover {
  color: #ebebeb;
  background: #D32F2F;
}
.btn.btn-flat.btn-primary,
.btn.btn-flat.btn-primary:hover {
  background: #767477;
  color: #f2f2f2;
  cursor: default;
}
.flex {
  display: flex;
  flex-flow: row nowrap;
  align-items: flex-start;
  justify-content: flex-start;
  width: 100%;
}
.flex.flex1 {
  min-width: 100px;
}
.flex.flex1 div {
  flex: 0 1 100%;
  padding: 0 6px;
}
.flex.flex2 {
  min-width: 130px;
}
.flex.flex2 div {
  flex: 0 1 50%;
  padding: 0 6px;
}
.flex.flex3 {
  min-width: 160px;
}
.flex.flex3 div {
  flex: 0 1 33.3%;
  padding: 0 6px;
}
.flex.flex4 {
  min-width: 200px;
}
.flex.flex4 div {
  flex: 0 1 25%;
  padding: 0 6px;
}
.flex.flex5 {
  min-width: 240px;
}
.flex.flex5 div {
  flex: 0 1 20%;
  padding: 0 6px;
}
.value {
  text-align: right;
}
.value div:not(:last-child) {
  border-right: 1px dashed #767477;
}
.tCaption {
  font-size: 12px;
  padding: 4px 8px 2px 6px;
}
.tTotal div:not(:last-child) {
  border-right: 1px dashed #ECEFF1;
}
.pic-upload {
  position: relative;
  width: 300px;
  height: 150px;
  margin: 0 auto;
  z-index: 6;
  cursor: pointer;
  overflow: hidden;
  border-radius: 2px;
  box-shadow: 0 0 0px 3px rgba(0, 0, 0, 0.16);
}
.profile-image {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 40px;
  height: 40px;
  margin-top: -20px;
  margin-left: -20px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 18px;
  text-align: center;
  line-height: 40px;
  background: rgba(0, 0, 0, 0.5);
  box-shadow: 0 0 3px rgba(0, 0, 0, 0.15);
  border-radius: 50%;
  pointer-events: none;
  transform: scale(0);
  opacity: 0;
  z-index: 4;
  cursor: pointer;
  transition: transform .3s ease, opacity .3s ease;
}
.pic-upload:hover .profile-image {
  transform: scale(1);
  opacity: 1;
}
.upload {
  position: absolute;
  top: 0;
  bottom: 0;
  right: 0;
  left: 0;
  height: 100%;
  width: 100%;
  line-height: 0;
  cursor: pointer;
  opacity: 0;
}
.images {
  width: 300px;
  height: 150px;
  display: flex;
  align-content: center;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.images img {
  max-height: 144px;
  max-width: 290px;
}
table {
  table-layout: fixed;
  border-spacing: 0;
}
table thead tr th {
  font-weight: 700;
}
table tbody tr td {
  padding: 2px 0;
  color: #212121;
  background: #f6f4f7;
  white-space: nowrap;
}
table tbody tr:nth-child(even) td {
  background: #efedf0;
}
table.masscontrol {
  min-width: 100%;
}
table.masscontrol tbody tr td:first-child {
  padding: 2px 8px;
}
table.masscontrol tbody tr td:not(:last-child) {
  border-right: 1px solid #B0BEC5;
}
table.masscontrol tbody tr:nth-child(1) td {
  padding-left: 8px;
  font-weight: 700;
  font-size: 120%;
  background: #434144;
  color: #f2f2f2;
}
table.masscontrol tbody tr:nth-child(2) td {
  background: #767477;
  color: #f2f2f2;
  text-align: right;
}
table.edit thead tr th,
table.lines thead tr th {
  padding: 8px 6px 4px;
  background: #767477;
  color: #f2f2f2;
}
table.edit thead tr th .tCaption,
table.lines thead tr th .tCaption {
  padding-right: 0;
}
table.edit tbody tr td {
  padding: 2px 8px;
  text-align: center;
}
table.edit tbody tr td:last-child {
  text-align: left;
}
table.lines {
  min-width: 100%;
}
table.lines thead tr th {
  text-align: right;
}
table.lines tbody tr td {
  padding: 2px 8px;
  text-align: left;
}
table.lines tbody tr td:not(:first-child) {
  text-align: right;
}
.layer {
  max-width: 1400px;
  margin: 24px auto;
  background: white;
  border-radius: 2px;
  border-bottom: 2px solid #d6d6d6;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
}
.layer.editor {
  padding: 24px;
}
.loader {
  display: flex;
  height: calc(100vh - 48px);
  align-content: center;
  align-items: center;
  justify-content: center;
}
@keyframes alertColor {
  from {
    background-color: #BDBDBD;
  }
  to {
    background-color: #EEEEEE;
  }
}
.alert td {
  font-weight: 700;
  color: #D32F2F;
  animation: alertColor 2s ease alternate infinite;
}
