/* Define theme variables before importing any MDC Web component styles */
:root {
  --mdc-theme-primary: #ba2649;
  --mdc-theme-secondary: #1a6b54;
  --mdc-theme-tertiary: #ffa7ca;
  --mdc-theme-background-light: #e2e2e2;
  --mdc-theme-background-rgb: 186, 38, 73;
  --mdc-theme-background: rgb(186, 38, 73);
  --pageMax: 1124px;
  --pageMaxExtended: 1424px;
  --articleMax: 800px;
}

/* Base */

html, body {
  min-width: 350px;
  width: 100%;
}

body {
  display: block; 
  margin: 0; 
}

img {
  width: 100%;
}

main {
  padding: 32px;
}

h1 {
  font-size: 2.2rem !important;
}

h2 {
  font-size: 2rem !important;
}

h3 {
  font-size: 1.8rem !important;
}
h4 {
  font-size: 1.65rem !important;
}

.mdc-typography--headline1,
.mdc-typography--headline2,
.mdc-typography--headline3,
.mdc-typography--headline4,
.mdc-typography--headline5,
.mdc-typography--headline6 {
  text-transform: capitalize;
  margin-top:0;
}

.detail-label {
  color: var(--mdc-theme-primary);
  display: inline-block;
  width:80px;
}

.menu-bar {
  display: flex;
}

.menu-bar a {
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 14px;
  white-space: nowrap;
}
.menu-bar a span {
  font-size: 16px;
  margin-right:5px;
}

.menu-anchor {
  margin-top: 55px;
}

a:hover, a:visited, a:link, a:active {
  text-decoration: none;
  color: var(--mdc-theme-primary);
}

.logo {
  color:white !important;
}

.menu-item {
  margin: 0 10px 0 10px;
  text-decoration: none;
}
/* Typography */

.mdc-typography--overline {
  color: #555
}

.mdc-typography--body1 {
  line-height: 1.8
}

.mdc-top-app-bar__title {
  color: white;
  display:flex;
  align-items: center;
  font-size: 1.2rem;
}

.mdc-top-app-bar__title img {
  margin-right:5px;
}

.contained-section {
  max-width: var(--pageMax);
  padding: 16px;
  margin: 0 auto;
}

.contained-section.extended {
  max-width: var(--pageMaxExtended);

}

.header-section {
  display: flex;
  justify-content: space-between;
  padding: 0;
  margin-top: -16px;
}

/* // Navigation */
.mdc-top-app-bar {
  background-color: var(--mdc-theme-primary);
  border-bottom: 1px solid #ddd;
  position: absolute;
  color: inherit;
  min-width:350px;
}

.nav-drawer {
  height: 100vh !important;
  position: sticky !important;
  top: 0 !important;
  width:210px;
  -webkit-transition: width 0.5s ease-in-out;
  -moz-transition: width 0.5s ease-in-out;
  -o-transition: width 0.5s ease-in-out;
  transition: width 0.5s ease-in-out;
}

.nav-drawer .material-symbols-outlined {
  width: 24px;
  max-width: 24px;
}

.nav-drawer.min {
  width:65px;
}

.nav-drawer .menu-text {
  white-space: nowrap;
}

.nav-drawer.min .menu-text {
  display: none;
}


.nav-drawer .mdc-drawer__content {
  display:flex;
  flex-flow: column;
}

.nav-drawer .mdc-drawer__content .mdc-list {
  flex: 1;
  padding-top:16px;
}

.mdc-top-app-bar--fixed-adjust {
  margin: 0 auto;
}

.mdc-data-table {
  width: 100%;
  max-width: 1100px;
  overflow-x: auto;
  margin-bottom:10px;
}

.extended .mdc-data-table {
  max-width: 1400px;
}

.mdc-data-table th.border-left,
.mdc-data-table td.border-left {
  border-left-width: 1px;
  border-left-style: solid;
  border-left-color: rgba(0,0,0,.12);
}

.mdc-data-table th.center,
.mdc-data-table td.center {
  text-align: center;
}

.mdc-data-table th.dense,
.mdc-data-table td.dense {
  padding-left: 4px;
  padding-right: 4px;
}

table tr td.numeric,
table tr th.numeric {
  text-align: right;
}

table tfoot {
  border-top: 1px solid silver;
}

table .mdc-data-table__footer-row td {
  border-bottom:none;
  border-top: 0.5px solid rgba(0,0,0,.12);
}

.headline {
  display:flex;
  align-items: center;
  margin-bottom:30px;
}
.headline .headline-center {
  margin-left:auto;
  margin-right:auto;
}
.headline .link {
  font-weight: 300;
  font-size: 16px;
  margin-left:20px;
  color: var(--mdc-theme-primary);
  cursor: pointer;
}

.headline .form-field {
  margin-bottom:0;
  height: 40px;
  display:flex;
  align-items: center;
}

.headline .form-field .mdc-text-field__icon--leading {
  margin-left:0px;
  margin-top:2px;
}

.headline .print {
  margin-left:30px;
}

.mdc-data-table .mdc-data-table__table-container {
  overflow: visible;
}

.mdc-data-table .action-row {
  display:flex;
  align-items: center;
  padding-top:5px;
  padding-bottom:5px;
  border-top:1px solid rgba(0,0,0,.12);
}

.mdc-data-table .sub-table {
  width:100%
}

.mdc-data-table .sub-row {
  display: table-row;
  padding:6px;
}

.mdc-data-table .sub-row .sub-cell {
  display: table-cell;
}

.mdc-data-table .sub-row .sub-cell.numeric {
  min-width: 60px;
  text-align: right;
}

.mdc-data-table .sub-row .sub-cell.code {
  width: 150px;
}

.mdc-data-table__cell.wrap {
  white-space: normal !important;
}

.mdc-data-table__cell.low {
  color: var(--mdc-theme-primary);
}

#searchField {
  width: 100%;
  max-width: 1100px;
  display: flex;
  align-items: center;
}

#searchField .mdc-text-field {
  flex:1;
}

.mdc-text-field.long {
  max-width: 800px;
  width:100%;
}

.mdc-text-field.double {
  max-width: 560px;
  width:100%;
}

.field-row {
  display:flex;
  width:100%;
  justify-content: flex-start;
  align-items: flex-start;
}

.field-row .form-field {
  margin-right:20px;
}

.mdc-data-table__row.opening,
.mdc-data-table__row.closing {
  background-color: var(--mdc-theme-background-light);
}

.mdc-card {
  padding: 16px;
  margin-bottom: 10px;
  margin-top:10px;
  max-width: 1100px;
}
.section-header {
  margin-bottom: 10px;
  margin-top:10px;
}

form .mdc-typography--caption {
  margin-top:-5px;
  margin-bottom:20px;
}
.form-field .mdc-typography--caption {
  margin-top:5px;
  margin-bottom:20px;
}

.mdc-select {
  margin-top:5px;
  margin-bottom:5px;
}

.mdc-select.dense .mdc-select__anchor {
  height: 40px;
}

.mdc-button.cancel-button {
  background-color: var(--mdc-theme-tertiary);
  color:white;
}
.mdc-button.confirm-button {
  background-color: var(--mdc-theme-secondary);
  color:white;
}

.mdc-button--raised.alt {
  background-color: white;
  color:var(--mdc-theme-primary);
}

.mdc-button--outlined {
  border: 1.5px solid var(--mdc-theme-primary) !important;
}

.category-tag {
  padding:3px;
  padding-left:6px;
  padding-right:6px;
  margin-left:5px;
  color: var(--mdc-theme-primary); 
  font-size:16px; 
  border: 1px solid var(--mdc-theme-primary);
  border-radius: 6px;
}

.flex-buttons {
  display: flex;
  flex: 1;
  flex-wrap: wrap;
}

.flex-buttons .mdc-button {
  margin-right:10px;
  white-space: nowrap;
}

.flex-buttons .flex-spacer {
  flex:1;
}

.highlight-text {
  color: var(--mdc-theme-primary);
  font-size: 1.1em;
}

/* Image upload */
.drop-area {
  padding:50px;
  border: 2px dashed rgba(var(--mdc-theme-background-rgb), 1);
  border-radius: 4px;
  background-color:rgba(var(--mdc-theme-background-rgb), 0.10) !important;
  color: var(--mdc-theme-background) !important;
  width: calc(100% - 100px) !important;
  line-height: 25px !important;
}
.drop-area.loading {
  background:rgba(var(--mdc-theme-background-rgb), 0.50) !important;
}
.drop-area .label-text {
  pointer-events: none;
}
.drop-area.loading .label-text {
  opacity:0;
  visibility: hidden;
}

.drop-area.dragover {
  background:rgba(var(--mdc-theme-background-rgb), 0.50) !important;
  color: white !important;
}

.form-field .preview {
  max-width: calc(100% - 12px);
}

.form-field .preview-wrapper {
  border: 1px solid silver;
  padding:10px;
  margin: 10px;
  margin-left: 0;
}

.form-field .file-image-preview {
  max-width: 100%;
  min-width:100px;
  width:auto;
}

.form-field .preview .file-input {
  display:none;
}

.form-field .preview .file-label {
  display:block;
  height:45px;
  margin-left: 0px;
  line-height:50px;
  text-align:center;
  background: var(--mdc-theme-primary);
  color:#fff;
  font-size:15px;
  text-transform:Uppercase;
  font-weight:600;
  border-radius:5px;
  cursor:pointer;
  width: 200px;
}

.form-field .preview .hint {
  color: #999999;
}

/* Circular progress */
.mdc-button .mdc-circular-progress {
  display:none;
}

.form-field .mdc-circular-progress {
  display:none;
}

.form-field .loading {
  position: relative;
}

.form-field .loading .mdc-circular-progress {
  display:inline-block;
  position: absolute;
  left: calc(50% - 12px);
}

.form-field-suggestions-loading.loading {
  width:30px;
  height:30px;
  position: absolute;
  right:32px;
}

.form-field-suggestions-clear {
  position: absolute;
  right:12px;
  cursor: pointer;
  color: rgba(0, 0, 0, 0.38);
}

.form-field-suggestions-loading.loading .mdc-circular-progress {
  display:inline-block !important;
  position: relative !important;
  left: unset !important;
}

.readonly-form-field {
  margin-bottom:5px;
  margin-top:5px;
  height:60px;
  display: flex;
  max-width: 1100px;
  align-items: center;
}

.readonly-form-field .form-label {
  font-weight: 600;
  margin-right:20px;
  min-width: 80px;
  display: inline-block;
}

.mdc-button.loading .mdc-circular-progress {
  display:inline-block;
}

.mdc-button.loading .mdc-button__label {
  display:none;
}

.mdc-button.loading .material-icons, .mdc-button.loading img {
  display:none;
}

.form-field {
  margin-bottom: 10px;
  align-items: center;
}

.form-field .invalid .mdc-notched-outline__leading,
.form-field .invalid .mdc-notched-outline__trailing,
.form-field .validation-message.invalid {
  border-color: var(--mdc-theme-primary);
}
.form-field .validation-message.invalid {
  color: var(--mdc-theme-primary);
}

hr {
  width:95%;
  margin-top:50px;
  margin-bottom:50px;

}

.form-button.loading .mdc-circular-progress__indeterminate-circle-graphic, 
.signin-button.loading .mdc-circular-progress__indeterminate-circle-graphic, 
.form-field .loading .mdc-circular-progress__indeterminate-circle-graphic {
  stroke: white !important;
}

#searchField .loading .mdc-circular-progress__indeterminate-circle-graphic  {
  stroke: var(--mdc-theme-primary) !important;
}

.form-field-suggestions-loading.loading .mdc-circular-progress__indeterminate-circle-graphic {
  stroke: var(--mdc-theme-primary) !important;
}

.title-caption {
  margin-top: -10px;
  display: block;
  margin-bottom: 30px;
}

.form-field .clear-button {
  display: none;
  position: absolute;
  right: 5px;
  top: 5px;
}

.form-field.has-value .clear-button {
  display: inline-block;
}

.add-section {
  display:inline-block;
}

input .hidden-number {
  -webkit-text-security: disc;
}

input.upper-input {
  text-transform:Uppercase;
}

input.upper-input::placeholder {
  text-transform: none;
}
.mdc-text-field.dense {
  padding-left:10px !important;
  padding-right: 10px !important;
  height: 40px !important;
}
input.dense-number {
  padding-left: 4px;
  padding-right: 4px;
  padding-top: 0px;
  padding-bottom: 0px;
  height: 40px !important;
  width:40px;
}
.mdc-text-field.dense .mdc-icon-button {
  padding-top:0px;
  padding-bottom:0px;
  height:32px;
}

.mdc-icon-button--capsule .mdc-icon-button__ripple::after,
.mdc-icon-button--capsule .mdc-icon-button__ripple::before {
  border-radius: 24px;
}

.visibility-toggle {
  position: absolute;
  right: 0;
  z-index: 9;
  opacity: 0.8;
  cursor: pointer !important;
  pointer-events: visible !important;
}

.hidden {
  display:none !important;
  width: 0;
}

.animate-slide {
  transition: all 0.5s ease-out;
  flex:1;
}

.animate-slide.hide {
  width: 0;
  flex: 0 !important;
}

.animate-slide.hide .clear-button {
  display: none;
}

#message {
  font-size: 16px;
  margin-top: 0;
  margin-left:102px;
  color:#a11414;
}

/* DEMO stuff - todo: remove */
.demo-menu.mdc-top-app-bar__navigation-icon {
  color: #555;
}

.nav-title {
  margin: 16px 0 0 16px;
}

.topic-section {
  display: none;
}

.topics {
  padding: 0 0 0 8px;
}

.topic {
  display: inline-block;
}

.topic a {
  color: var(--mdc-theme-primary);
  font-weight: 500;
  margin-left: 16px;
}

.mdc-top-app-bar--fixed-adjust {
  padding-top: 64px;
}

/* Activities */
.activity-image-wrapper {
  height: 90px;
  width: 90px;
  text-align: center;
}
.activity-table {
  border: 1px solid silver;
  padding: 10px;
  margin-bottom:10px;
}

.activity-table .activity {
  display:flex;
  width:100%;
}

.activity-table  .activity .activity-lines {
  border: 1px solid silver;
  padding: 10px;
  padding-top:5px;
  padding-bottom:5px;
  margin-bottom:10px;
}

.activity-table  .activity-header {
  padding-top: 10px;
  padding-bottom: 10px;
  padding-left:10px;
  padding-right: 10px;
  background-color: var(--mdc-theme-primary);
  color: white;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
}

.activity-table .activity-header .count {
  padding: 5px;
  border-radius: 4px;
  display: inline-block;
  color: var(--mdc-theme-primary);
  background-color: white;
}

.activity-table .activity-lines {
  transition: all 0.5s ease-out;
}

.activity-detail {
  flex:1;
}

.activity-table  .activity.collapsed .activity-lines {
  max-height: 38px;
  overflow: hidden;
  position: relative;
}
.activity-table  .activity.collapsed .activity-lines div{
  margin-right:20px;
}
.activity-table  .activity.collapsed .activity-lines::after {
  content: '...';
  display: inline;
  position: absolute;
  bottom:10px;
  right:10px;
}

.activity-table .label {
  color: var(--mdc-theme-primary);
  margin-right:20px;
}

.activity-table .match {
  margin-right:10px;
  padding:5px;
  border: 1px solid silver;
  min-height: 38px;
  align-items: center;
  display: flex;
}

/* Stocktakes */
.stocktake-table {
  border: 1px solid silver;
  padding: 10px;
  margin-bottom:10px;
}

.stocktake-table  .stocktake .stocktake-lines {
  border: 1px solid silver;
  padding: 10px;
  margin-bottom:10px;
}

.stocktake-table  .stocktake-header {
  padding-top: 10px;
  padding-bottom: 10px;
  padding-left:10px;
  padding-right: 10px;
  background-color: var(--mdc-theme-primary);
  color: white;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
}

.stocktake-table .stocktake-header .count {
  padding: 5px;
  border-radius: 4px;
  display: inline-block;
  color: var(--mdc-theme-primary);
  background-color: white;
}

.stocktake-table .stocktake-lines {
  transition: all 0.5s ease-out;
}

.stocktake-table  .stocktake.collapsed .stocktake-lines {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
}

.stocktake-table .stocktake-lines table {
  width: 100%;
}
.stocktake-table .stocktake-lines table th {
  color: var(--mdc-theme-primary);
  font-weight: normal;
  text-align: left;
}
.stocktake-table .stocktake-lines table th.numeric, 
.stocktake-table .stocktake-lines table td.numeric {
  text-align: right;
}


/* Sales */
.sales-order-table {
  border: 1px solid silver;
  padding: 10px;
  margin-bottom:10px;
}


.sales-order-table .user-orders .order-lines {
  border: 1px solid silver;
  padding: 10px;
  margin-bottom:10px;
}

.sales-order-table .user-header {
  padding-top: 10px;
  padding-bottom: 10px;
  padding-left: 10px;
  color: var(--mdc-theme-primary);
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
}

.sales-order-table.collapsed .user-orders {
  transition: all 0.5s ease-out;
}

.sales-order-table.collapsed .user-orders {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
}

.sales-order-table .user-header .count {
  padding: 8px;
  display: inline-block;
  border-radius: 4px;
  background-color: var(--mdc-theme-primary);
  color: white;
}

.sales-order-table .order-header {
  padding-top: 10px;
  padding-bottom: 10px;
  padding-left:10px;
  padding-right: 10px;
  background-color: var(--mdc-theme-primary);
  color: white;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
}

.sales-order-table .order-header .count {
  padding: 5px;
  border-radius: 4px;
  display: inline-block;
  color: var(--mdc-theme-primary);
  background-color: white;
}

.sales-order-table .order-lines {
  transition: all 0.5s ease-out;
}

.sales-order-table .user-order.collapsed .order-lines {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
}

.sales-order-table .order-lines table {
  width: 100%;
}
.sales-order-table .order-lines table th {
  color: var(--mdc-theme-primary);
  font-weight: normal;
  text-align: left;
}
.sales-order-table .order-lines table th.numeric, 
.sales-order-table .order-lines table td.numeric {
  text-align: right;
}

.summary-table table {
  width:100%;
}

.summary-table table th {
  color: var(--mdc-theme-primary);
  font-weight: normal;
  padding-bottom:6px;
  border-bottom: 1px solid var(--mdc-theme-primary);
}

.summary-table table td {
  padding-top:6px;
}

.summary-table table th,
.summary-table table td {
  text-align: left;
 }

 .summary-table table th.numeric,
.summary-table table td.numeric {
  text-align: right;
 }

/* Select */
.mdc-select {
  min-width: 180px;
  width:100%;
}
.mdc-select:not(.mdc-select--disabled).mdc-select--focused .mdc-floating-label {
  color: var(--mdc-theme-primary);
}

a.mdc-button.disabled {
  filter: grayscale() opacity(0.4);
}

/* // Cards on Homepage */
.horizontal-card {
  display: flex;
  flex-direction: row;
}

.main-intro .horizontal-card .demo-card__primary {
  width: calc(100% - 150px);
}

.demo-card__meta {
  display: flex;
  justify-content: space-between;
  margin: 0;
}

.demo-card__media.mdc-card__media--square {
  width: 150px;
}

.demo-card__primary {
  padding: 8px;
  color: black;
}

.mdc-card + .mdc-card {
  margin-top: 16px;
}

.demo-card,
.demo-card a {
  text-decoration: none;
  color: inherit;
}

.mdc-card__primary-action {
  height: 100%;
}

.demo-card .mdc-typography--subtitle1,
.demo-card .mdc-typography--headline2 {
  margin: 0;
}

.just-added,
.headline-title {
  color: var(--mdc-theme-primary);
}

.headline-section {
  margin: 0 auto;
  text-align: center;
  padding-top: 32px;
}

.archive-image {
  min-width: 400px;
}

.archive-section .demo-card__primary {
  padding: 16px;
}

.left {
  margin-bottom: 16px;
}

/* Date picker */
.flatpickr-calendar {
  margin-top: 15px;
  margin-left: 10px;
}
.flatpickr-calendar .flatpickr-day.selected {
  background-color: var(--mdc-theme-primary) !important;
}

/* // Article Page */

.article {
  max-width: var(--articleMax);
}

.article-meta {
  display: flex;
  justify-content: space-between;
}

.article-title {
  margin: 0;
}

.article-preview {
  max-width: 340px;
  line-height: 1.8;
}

/* .article-body p:first-child::first-letter {
  font-size: 86px;
  font-style: italic;
  font-weight: 800;
  initial-letter: 2;
  float: left;
  line-height: 1;
  padding-right: 16px;
} */

.author {
  color: var(--mdc-theme-primary);
}

.author-meta {
  display: flex;
  align-items: center;
  margin-top: -16px;
  text-decoration: none;
}

.author-image {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  margin-right: 16px;
}

.hero-caption {
  max-width: 500px;
}

.nav-drawer .mdc-list-item__text {
  display: flex;
  align-items: center;
  padding-top:6px;
  padding-bottom: 6px;
}

.nav-drawer .mdc-list-divider {
  margin-top:10px;
  margin-bottom:10px;
}

.nav-drawer .mdc-list-item__text  .material-symbols-outlined {
  margin-right:10px;
}

.top-menu .mdc-list-item__text {
  display:flex !important;
  align-items: center;
  padding-top:4px;
  padding-bottom:4px;
  padding-left:10px;
  padding-right:10px;
  font-size: 14px;
}
.top-menu .mdc-list-item__text span {
  font-size: 16px;
  width: 16px;
  padding-right:10px;
}
.top-menu .mdc-list-item__text span.icon-spacer {
  width:26px;
  padding-right: 0px;
}

.mono .mdc-list-item__text {
  font-family: 'roboto mono';
}
.mono {
  font-family: 'roboto mono';
}

.tabs a,
.tabs span {
  padding:5px;
}

/* Upload */
.upload {
  flex-wrap: wrap;
}

.upload input {
  width: 0.1px;
  height: 0.1px;
  opacity: 0;
  overflow: hidden;
  position: absolute;
  z-index: -1;
}

.stat-card {
  margin-top:10px !important;
  margin-bottom:5px;
  padding-top:5px;
  padding-bottom:5px;
}

.stat-line {
  display:flex;
  align-items: center;
  margin-left:10px;
  text-transform: none;
}

.stat-value {
  font-size: 1.3em;
  height: 1.5em;
  margin-left:auto;
}

.stat-table .reference {
  font-size: 0.8em;
  margin-top:5px;
}

.stat-table {
  margin-top:0px;
  margin-bottom:5px;
  display:flex;
  flex-direction: column;
  overflow-x: auto;
}

.stat-header {
  display:flex;
  flex-direction: row;
  text-align: center;
}

.stat-header-cell {
  width:140px;
  min-width: 140px;
  padding:10px;
  color: var(--mdc-theme-primary);
}

.stat-body {
  display:flex;
  flex-direction: row;
}

.stat-body-column {
  display:flex;
  flex-direction: column;
  width:160px;
  min-width: 160px;
}

.stat-body-item-head {
  margin-bottom:5px;
}

.stat-body-item {
  width:140px;
  min-width: 140px;
  height: 70px;
  background-color: var(--mdc-theme-primary);
  color:white;
  text-align: center;
  padding:2px;
  padding-top:10px;
  margin:10px;
  margin-top:0;
  display: flex;
  flex-flow: column;
  align-items: center;
  justify-content: center;
}

.stat-more {
  width:140px;
  min-width: 140px;
  height: 40px;
  display: flex;
  flex-flow: column;
  align-items: center;
  justify-content: center;
  color:var(--mdc-theme-primary);
  cursor: pointer;
}

#stat-picking-table .stat-body-item-content {
  background-color:white;
  color: var(--mdc-theme-primary);
  width:140px;
  height: 80px;
  display:flex;
  align-items: center;
  justify-content: center;
  animation: none;
  background-image: none;
}

#stat-picking-table .stat-body-item-content.picking {
  background-color:white;
  background-image: 
    repeating-linear-gradient(
      -45deg, 
      transparent, 
      transparent 0.3rem,
      #ddd 0.1rem,
      #ddd 0.4rem
    );
  background-size: 200% 200%;
  width:140px;
  height: 80px;
  animation: barberpole 10s linear infinite;
  display:flex;
  align-items: center;
  justify-content: center;
}

#stat-packing-table .stat-body-item-content {
  background-color:white;
  color: var(--mdc-theme-primary);
  width:140px;
  height: 80px;
  display:flex;
  align-items: center;
  justify-content: center;
}

#stat-packing-table .stat-body-item-content.packing {
  background-color:white;
  background-image: 
    repeating-linear-gradient(
      -45deg, 
      transparent, 
      transparent 0.3rem,
      #ddd 0.1rem,
      #ddd 0.4rem
    );
  background-size: 200% 200%;
  width:140px;
  height: 80px;
  animation: barberpole 10s linear infinite;
  display:flex;
  align-items: center;
  justify-content: center;
}

.scan-table {
  opacity: 0.5;
  border: 1px solid gray;
  margin-bottom:20px;
}
.scan-table thead tr {
  border-bottom: 1px solid gray;
}
.scan-table tr th, .scan-table tr td {
  text-align: left !important;
  padding:6px;
}
.scan-table.nutrition {
  opacity: 1;
  border: 1px solid var(--mdc-theme-primary);
  margin-bottom:40px;
}
.scan-table.nutrition thead tr {
  border-bottom: 1px solid var(--mdc-theme-primary);
}
.scan-table.nutrition::after {
  position:absolute;
  margin-top:10px;
  content: '*Nutrition detected';
  color: var(--mdc-theme-primary);
}

@keyframes barberpole {
  0% {
    background-position: 100% 100%;
  }
  100% {
    background-position: 0% 0%;
  }
}

@media screen and (max-width: 350px) {
  .contained-section {
    max-width: 330px;
    padding-left: 10px;
    padding-right:10px;
    display: flex;
    flex-flow: column;
  }
}

@media screen and (max-width: 600px) {
  .headline {
    flex-flow: column;
    align-items: flex-start;
    justify-content: center;
  }
  .flex-buttons {
    margin-top: 6px;
    width:100%;
  }
}

@media screen and (max-width: 1100px) {
  .menu-bar a.shrinkable span.text {
    display:none;
  }
}

.create-btn, .import-btn, .export-btn, .search-btn, .back-btn, .icon-btn {
  padding-left: 2px;
  padding-right: 2px;
  min-width: 40px;
}

.create-btn .material-icons, .create-btn .material-symbols-outlined, 
.import-btn .material-icons, .import-btn .material-symbols-outlined,
.export-btn .material-icons, .export-btn .material-symbols-outlined,
.search-btn .material-icons, .search-btn .material-symbols-outlined,
.back-btn .material-icons, .back-btn .material-symbols-outlined, 
.icon-btn .material-icons, .icon-btn .material-symbols-outlined {
  width:24px;
  overflow: hidden;
}

.create-btn .label-text, .import-btn .label-text, .export-btn .label-text {
  display: none;
}

.van-controls {
  display:flex;
  justify-content: center;
  align-items: center;
  margin-right:10px;
}
.van-controls .mdc-button {
  background-color: white;
}
.van-controls .mdc-select .mdc-notched-outline {
  background-color: white;
  border-radius: 4px;
}

.form-field-suggestions-up {
  position: absolute;
  background: white;
  bottom: 55px;
  padding: 12px;
  border: 0.5px solid rgba(0, 0, 0, 0.38);
  border-radius: 4px;
  width: calc(100% - 26px);
  max-height: 200px;
  overflow-y: auto;
  color:rgba(0, 0, 0, 0.38);
}

.form-field-suggestions-up .suggestion {
  padding:5px;
  cursor: pointer;
  display:flex;
}

.form-field-suggestions-up .suggestion .right {
  margin-left:auto;
  flex:0;
}

.form-field-suggestions-up .suggestion:hover {
  color: var(--mdc-theme-primary);
}

@media screen and (min-width: 800px) {
  .create-btn .label-text,
  .import-btn .label-text,
  .export-btn .label-text {
    display: block;
    margin-left:5px;
  }

  .create-btn, .import-btn, .export-btn, .search-btn, .back-btn {
    padding-left: 12px;
    padding-right: 12px;
  }

  .article {
    min-width: 800px;
  }

  .mdc-card + .mdc-card {
    margin-top: 32px;
  }

  .main-intro {
    display: flex;
    flex-flow: column;
  }

  .left {
    margin-bottom: 0;
  }

  .left,
  .right {
    display: flex;
    width: 100%;
  }

  .right {
    flex-direction: column;
    margin-left: 32px;
  }

  .topic-section {
    display: flex;
    align-items: center;
  }

}

.printable {
  display:none;
}

.print-grid {
  width:100%;
  display:grid;
  grid-template-columns: repeat(2, 1fr);
  grid-template-rows: repeat(auto, 1fr);
  grid-column-gap: 20px;
  grid-row-gap: 20px;
}

.print-grid svg {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-left:auto;
  margin-right:auto;
  height: 125px;
}

.addLineForm {
  display:flex;
}

.invoice-sub tbody .mdc-data-table__row,
.invoice-sub tfoot .mdc-data-table__footer-row {
  height: 32px !important;
}

.print-only {
  display:none !important;
}

/** pulse ***/
@-webkit-keyframes pulse {
  0% { -webkit-transform: scale(0.9); opacity: 0.2; }
  50% { -webkit-transform: scale(1); opacity: 1; }
  100% { -webkit-transform: scale(0.9); opacity: 0.2; }
}

@keyframes pulse {
  0% { transform: scale(0.9); opacity: 0.2; }
  50% { transform: scale(1); opacity: 1; }
  100% { transform: scale(0.9); opacity: 0.2; }
}

.pulse {
  -webkit-animation: pulse 3s infinite ease-in-out;
  -o-animation: pulse 3s infinite ease-in-out;
  -ms-animation: pulse 3s infinite ease-in-out; 
  -moz-animation: pulse 3s infinite ease-in-out; 
  animation: pulse 3s infinite ease-in-out;
}


@media print {

  table { page-break-after:auto !important }
  tr    { page-break-inside:avoid !important; page-break-after:auto !important }
  td    { page-break-inside:avoid !important; page-break-after:auto !important }
  thead { display:table-header-group !important }
  tfoot { display:table-footer-group !important }

  .mdc-data-table {
    overflow-x: hidden;
  }

  body .mdc-top-app-bar--fixed-adjust > div, body > header {
    display: none !important;
  }
  body .mdc-top-app-bar--fixed-adjust {
    margin-top:0 !important;
    padding-top:0 !important;
  }
  body .mdc-top-app-bar--fixed-adjust > div.can-print {
    display: block !important;
    width:100%;
    margin-top:0px !important;
    margin-bottom: 0px !important;  
  }

  .mdc-button {
    display:none !important;
  }

  .collapsed .user-orders, .collapsed .order-lines {
    max-height: unset !important;
    overflow: visible !important;
    opacity: 1 !important;
  }

  .printable {
    display: block !important;
    width:100%;
    margin-top:0px !important;
  }
  .non-printable {
    display:none !important;
  }
  .non-printable * {
    display: none !important;
  }
  .print-hidden {
    display:none !important;
  }
  .print-only {
    display: flex !important;
  }
  .print-format {
    background-color: white !important;
    color: black !important
  }
  .mdc-notched-outline {
    display: none !important;
  }

  .mdc-data-table__cell.print-wrap {
    white-space: normal;
    max-width:200px;
    font-size: 10px;
  }

  .contained-section {
    padding-top:0 !important;
  }

  .invoice-sub {
    padding:10px !important;
    margin-top: 0 !important;
    page-break-after:always;
  }

  .invoice-sub .mdc-data-table__cell {
    font-size: 10px;
  }

  .invoice-sub .mono{
    font-size: 10px;
  }

  .page-break {
    page-break-after:always !important;
  }

  .invoice-sub .mdc-data-table__cell {
    font-size: 12px;
  }
}
