html {

    @import url('https://fonts.googleapis.com/css2?family=Open+Sans:ital,wght@0,400;0,700;1,400;1,700&display=swap');

    --lumo-font-family: Calibri,
    "Calibri W01 Regular_904604",
    Segoe,
    "Segoe UI",
    "Open Sans",
    sans-serif;
    ;

    --sale-font-head: "Conduit ITC W02 Regular",
    Calibri,
    "Calibri W0Regular_904604",
    Segoe,
    "Segoe UI",
    "Open Sans",
    sans-serif;

    --lumo-line-height-m: 1.8;
    --lumo-line-height-s: 1.5;
    --lumo-line-height-xs: 1.3;

    --lumo-font-size-m: 0.95rem;
    --lumo-font-size-l: 1.2rem;
    --lumo-font-size-xl: 1.3rem;
    --lumo-font-size-s: 0.95rem;
    --lumo-font-size-xs: 0.875rem;
    --lumo-font-size-xxs: 0.75rem;

    --lumo-border-radius: calc(var(--lumo-size-m) / 2);
    --lumo-border-radius: 2px;

    --lumo-primary-text-color: rgb(40, 172, 112);
    --lumo-primary-color-50pct: rgba(40, 172, 112, 0.5);
    --lumo-primary-color-10pct: rgba(40, 172, 112, 0.1);
    --lumo-primary-color: #009a49;

    --lumo-error-text-color: rgb(169, 76, 71);
    --lumo-error-color-50pct: rgba(169, 76, 71, 0.5);
    --lumo-error-color-10pct: rgba(169, 76, 71, 0.1);
    --lumo-error-color: hsl(3, 41%, 47%);

    --lumo-success-text-color: rgb(40, 172, 112);
    --lumo-success-color-50pct: rgba(40, 172, 112, 0.5);
    --lumo-success-color-10pct: rgba(40, 172, 112, 0.1);
    --lumo-success-color: #28AC70;

    --lumo-shade-5pct: rgba(109, 146, 162, 0.05);
    --lumo-shade-20pct: rgba(109, 146, 162, 0.2);
    --lumo-shade-10pct: rgba(109, 146, 162, 0.1);
    --lumo-shade-30pct: rgba(109, 146, 162, 0.3);
    --lumo-shade-40pct: rgba(109, 146, 162, 0.4);
    --lumo-shade-50pct: rgba(109, 146, 162, 0.5);
    --lumo-shade-60pct: rgba(109, 146, 162, 0.6);
    --lumo-shade-70pct: rgba(109, 146, 162, 0.7);
    --lumo-shade-80pct: rgba(109, 146, 162, 0.8);
    --lumo-shade-90pct: rgba(109, 146, 162, 0.9);

    --lumo-shade: #6D92A2;
    --lumo-header-text-color: #336776;
    --lumo-body-text-color: rgba(51, 103, 118, 0.9);
    --lumo-secondary-text-color: rgba(51, 103, 118, 0.7);
    --lumo-disabled-text-color: rgba(51, 103, 118, 0.4);

    --_lumo-button-background-color: rgba(109, 146, 162, 0.08);

    --navi-item-indentation: 0;

    --c-corporate: var(--lumo-primary-text-color);

}

/*******************************************/
/*
/*  Overwrites
*/

.root {
  background-color: var(--lumo-shade-5pct);
}

.navi-drawer .brand-expression label {
    display: none;
}

.navi-drawer .brand-expression img {
  margin: 10px;
}

h1,
h2,
h3,
.app-bar__title {
  font-family: var(--sale-font-head);
  text-transform: uppercase;
}

.navi-drawer,
.app-bar {
  margin: 10px 0 10px 10px;
}

.draggable>div:first-child {
  background: var(--lumo-shade) !important;
  font-size: var(--lumo-font-size-l);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.3em 0.8em;
}

.draggable>div:first-child iron-icon {
  float: none;
}

.navi-item__link iron-icon:not([highligh]) {
  color: var(--lumo-shade);
}

table.saleTable {
  width: 100%;
  border-collapse: collapse;
  border: solid 2px #EBEFF1;
}

table.saleTable tr:not(:first-child) {
  border-top: solid 1px #E5ECEE;
}

table.saleTable tr:nth-child(odd) {
  background: #F8F9FA;
}

table.saleTable td {
  padding: 0.5em;
  border: 1px solid #E5ECEE;
}

.saleAccordion {
}

.saleAccordion .saleVertical {
  align-items: start;
}

@media(min-width: 1024px) {
  .saleAccordion .saleVertical:has(.mediumGrid) {
    grid-template-columns: 3fr 2fr;
  }
  .saleAccordion .saleVertical:has(.longGrid) {
    grid-template-columns: 1fr;
  }
  .saleAccordion .saleVertical:has(.longGrid) .chart-container  {
    grid-template-columns: 1fr;
  }
}

.saleAccordion .saleVertical > label {
  font-weight: bold;
}

.saleAccordion .saleVertical > div {
  width: 100%;
  display: grid !important;
  grid-template-columns: 1fr 1fr;
  grid-gap: 0.5em;
  align-items: start;
}

@media (max-width: 600px) {
  .saleAccordion .saleVertical > div {
    grid-template-columns: 1fr;
  }
}

.saleAccordionPanel {
  overflow: hidden;
  background: white;
  margin-bottom: 2em;
  border-radius: 10px;;
  box-shadow: 0px 9px 9px rgba(0, 0, 0, 0.1);
}

.saleAccordionPanel[openend]::part(content) {
  max-height: auto;
}

.saleAccordionPanel.root::part(content) {
  transition: max-height 0.2s ease-in-out;
}

.saleAccordionPanel.root > vaadin-details-summary[slot="summary"] {
  cursor: pointer;
  background: var(--c-corporate);
  text-transform: uppercase;
  color: white !important;
  font-weight: bold;
  flex-direction: row-reverse;
  justify-content: space-between;
  align-items: center;
  padding: 0.7em 1.43em;
}

.saleAccordionPanel.root > vaadin-details-summary[slot="summary"]:hover {
  background: var(--lumo-primary-color);
}

.saleAccordionPanel.root > vaadin-details-summary[slot="summary"]::part(toggle) {
  color: white !important;
}

.saleProgress .ruler-cell {
  margin-top: 1em;
  background-size: 100% 1px,1px 50%, 1px 50%,1px 50%,1px 50%;
  background-position: 0 center, 20% bottom, 40% bottom, 60% bottom, 80% bottom;
}

.saleProgress span {
    font-size: 0.86em;
}

.saleProgress .zero {
    transform: translateX(0);
}

.saleProgress span:last-child {
    transform: translateX(-100%) !important;
}

.saleProgress .progress {
    background: #E9EFF2;
    border: none;
    color: white;
    font-weight: bold;
    text-shadow: 0 0 12px rgba(0,0,0,0.2);
}

.saleChart svg .highcharts-legend {
  display: none;
}

.chart-container {
  grid-template-columns: 1fr;
}

.saleChart:host,
.saleChart :host {
  --vaadin-charts-color-8: #2bad70;
}

.saleTable .head,
.saleGrid::part(header-cell) {
  background: var(--lumo-header-text-color);
  color: white;
  font-weight: bold !important;
}

.saleGrid::part(header-cell)::slot[name~="content"],
.saleGrid::part(header-cell)::slot[part~="content"] {
    font-weight: bold
 }

:where([styled-mode]) .highcharts-color-0 {
   fill: #2bad70 !important;
}
