#profitabilnostView {
  --hub-module-header-min-height: calc(16px + var(--control-height) + 4px + 14px);
}

#profitabilnostView .customersLayout {
  container-type: inline-size;
  --ponude-pane-w: calc((100cqw - 18px) * 0.38);
  --hub-filter-col: calc((2 * (var(--ponude-pane-w) - 34px) - 80px) / 12);
}

#profitabilnostView .customersBody {
  grid-template-columns: calc(2 * var(--hub-filter-col) + 8px + 32px) minmax(0, 1fr);
  position: relative;
}

#profitabilnostView .customersHeader {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-rows: var(--control-height) 14px;
  gap: 4px 10px;
  align-items: stretch;
  min-height: var(--hub-module-header-min-height);
  padding: 16px 16px 0;
  border-bottom: 0;
  background: #fafaf8;
  box-sizing: border-box;
}

#profitabilnostView .customersHeader > .panelHeading {
  grid-column: 1;
  grid-row: 1 / span 2;
  align-self: start;
}

#profitabilnostView .customersHeader h2 {
  font-size: 18px;
  font-weight: 700;
  line-height: 1.2;
}

#profitabilnostView .customersHeader #profitabilnostCount {
  margin-top: 4px;
  font-size: 14px;
  line-height: 1.3;
  min-height: 0;
}

#profitabilnostView .customersListPane {
  border-right: none;
  gap: 8px;
  padding: calc(
      (var(--control-height) + 1px)
      + (8px + var(--control-height) + 8px)
      + 8px
      - var(--hub-module-header-min-height)
    )
    16px 16px;
  overflow: hidden;
}

#profitabilnostView select {
  -webkit-appearance: none;
  appearance: none;
  background-color: #fff;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12' fill='none'%3E%3Cpath d='M2.5 4.5 6 8l3.5-3.5' stroke='%2366706a' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 12px 12px;
  padding-right: 32px;
}

#profitabilnostView .customerListFilters {
  display: grid;
  grid-template-columns: repeat(2, var(--hub-filter-col));
  gap: 6px 8px;
  width: auto;
  max-width: none;
  align-self: stretch;
  flex: 0 0 auto;
  min-height: 0;
  align-items: start;
  justify-content: start;
  position: relative;
  z-index: 1;
  box-sizing: border-box;
  margin-left: -16px;
  margin-right: -16px;
  padding: 0 16px 8px;
  border-bottom: 1px solid var(--line);
}

#profitabilnostView .customerListFilters .catalogueFilterField {
  display: grid;
  grid-template-rows: 14px 36px;
  gap: 4px;
  margin: 0;
  min-width: 0;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.2;
  color: var(--muted);
}

#profitabilnostView .customerListFilters .catalogueFilterField span {
  display: flex;
  align-items: center;
  min-height: 14px;
  margin: 0;
  padding: 0;
}

#profitabilnostView .customerListFilters select,
#profitabilnostView .customerListFilters input[type="search"],
#profitabilnostView .customerListFilters input[type="date"] {
  width: 100%;
  height: 36px;
  min-height: 36px;
  font-size: 13px;
  box-sizing: border-box;
}

#profitabilnostView .customerListFilters select {
  display: block;
  min-width: 0;
  max-width: 100%;
  padding: 0 32px 0 8px;
  line-height: 34px;
}

#profitabilnostView .customerListFilters input[type="search"],
#profitabilnostView .customerListFilters input[type="date"] {
  padding: 0 8px;
  line-height: 34px;
}

#profitabilnostView .customerListFilters .filterSearchField {
  grid-column: 1 / -1;
  grid-row: 4;
  box-sizing: border-box;
  padding-right: calc(82px + 8px);
  grid-template-rows: 14px 36px;
}

#profitabilnostView .customerListFilters .customerResetField {
  grid-column: 2;
  grid-row: 4;
  justify-self: end;
  width: 82px;
  grid-template-rows: 14px 36px;
}

#profitabilnostView .customerListFilters .customerResetField .resetFilters,
#profitabilnostView button.quoteActionBtn {
  width: 82px;
  min-width: 82px;
  max-width: 82px;
  height: 36px;
  min-height: 36px;
}

#profitabilnostView .supplierRightPane {
  margin-top: calc(-1 * var(--hub-module-header-min-height));
  min-height: calc(100% + var(--hub-module-header-min-height));
  border-left: 1px solid var(--line);
  background: #fafaf8;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

#profitabilnostView .supplierSubTabs {
  height: calc(var(--control-height) + 1px);
  min-height: calc(var(--control-height) + 1px);
  align-items: stretch;
  background: #fafaf8;
  flex-shrink: 0;
}

#profitabilnostView .supplierSubTab {
  min-height: 0;
  height: 100%;
  padding-top: 0;
  padding-bottom: 0;
  display: inline-flex;
  align-items: center;
}

#profitabilnostView .supplierSubTab.is-active {
  background: transparent;
}

#profitabilnostView .customerForm.supplierSubPanel {
  overflow: hidden;
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

#profitabilnostView .customerFormActions--quotes {
  flex-shrink: 0;
}

#profitabilnostView .profitabilnostOffersWrap {
  flex: 1;
  min-height: 0;
  overflow: auto;
}

#profitabilnostView .profitabilnostOffersTable tfoot td {
  font-weight: 600;
  border-top: 1px solid var(--line);
}

#profitabilnostView .profitabilnostSub {
  color: var(--muted);
  font-size: 12px;
  font-weight: 400;
}

#profitabilnostView .profitabilnostPct {
  color: var(--muted);
  font-weight: 400;
  white-space: nowrap;
}

#profitabilnostView .profitabilnostStatus {
  margin: 0;
  padding: 0 0 8px;
  color: var(--muted);
  font-size: 13px;
  flex-shrink: 0;
}

#profitabilnostView .profitabilnostStatus.hidden,
#profitabilnostView .profitabilnostStatus:empty {
  display: none;
}

#profitabilnostView .profitabilnostStatus.is-error {
  color: #8a3a32;
}

#profitabilnostView #profitabilnostSplitSupplier.is-active {
  background: var(--navy, #0c1c36);
  color: #fff;
}
