@use '../../styles/variables.scss';

app-sos .mainSection * {
  display: flex;
}

app-sos .mainSection {
  display: flex;
  flex-grow: 1;
  flex-direction: row;
  align-items: stretch;
  padding-bottom: 0;
  overflow: hidden;
  position: relative;
  margin-top: 5px;
}

app-sos .groupHeaders {
  display: flex;
  font-weight: bold;
}

app-sos .groupHeaders .rowItem-n,
app-sos .groupHeaders .rowItem-nr,
app-sos .groupHeaders .rowItem-g,
app-sos .groupHeaders .rowItem-gr {
  display: flex;
  border-width: 1px 1px 0 0;
  border-color: transparent;
  border-style: solid;
  padding-left: 3px;
  margin: 0;
  order: 99;
}

app-sos .groupHeaders .rowItem-gr {
  padding-left: 0;
  padding-right: 3px;
}

app-sos .groupHeaders .rowItem-nr {
  border-right-color: black;
}

app-sos .groupHeaders .rowItem-g,
app-sos .groupHeaders .rowItem-gr,
app-sos .groupHeaders .rowItem-x {
  display: flex;
  margin: 0;
  align-items: center;
}

app-sos .groupHeaders .swingHeader,
app-sos .groupHeaders .baseloadHeader,
app-sos .groupHeaders .transferHeader {
  padding-left: 3px;
  position: relative;
  border-top-color: black;
}

app-sos .groupHeaders .swingHeader span,
app-sos .groupHeaders .baseloadHeader span,
app-sos .groupHeaders .transferHeader span {
  position: absolute;
  white-space: nowrap;
  z-index: 1;
}

app-sos .headers {
  border-bottom-style: solid;
  border-bottom-width: 3px;
  z-index: 2;
}

app-sos .mainSection .normalCols .linesSection {
  display: flex;
  margin-right: 3px; //should match other K1s
  width: calc(100% - 3px);
  min-width: max-content;
}

app-sos .normalColsTopSection .farRightColumnFillerCell {
  margin-right: 3px; //should match other K1s
}

app-sos .headers .rowItem-g,
app-sos .headers .rowItem-gr,
app-sos .headers .rowItem-x {
  display: flex;
  margin: 0;
  justify-content: flex-end;
  order: 99;
  padding-bottom: 2px;
  border-style: solid;
  border-width: 1px 1px 0 0;
}

app-sos .frozenCols .headers .rowItem-g.last,
app-sos .frozenCols .headers .rowItem-gr.last,
app-sos .frozenCols .headers .rowItem-x.last {
  border-right-style: none;
  border-right-width: 0;
}

app-sos .mainSection .normalCols .headers .rowItem-g,
app-sos .mainSection .frozenCols .headers .rowItem-g {
  border-top-color: black;
}

app-sos .mainSection .normalCols .headers .rowItem-g:not(.last),
app-sos .mainSection .frozenCols .headers .rowItem-g:not(.last) {
  border-right-color: black;
}

app-sos .headers .rowItem-g {
  padding-left: 3px;
  border-top-color: black;
  border-right-color: black;
}

app-sos .headers .rowItem-x {
  padding-left: 0;
}

app-sos .frozenCols,
app-sos .normalCols {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

app-sos .frozenCols {
  min-width: max-content;
}

app-sos .frozenCols .headers {
  border-right-style: solid;
  border-right-width: 3px;
}

app-sos .normalColsTopSection {
  display: flex;
  flex-direction: row;
  overflow-x: hidden;
  overflow-y: scroll;
  align-items: flex-start;
}

app-sos .normalColsTopSection .normalColsTopSectionInner {
  display: flex;
  flex-direction: column;
}

app-sos .values {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  flex-basis: 30%;
}

app-sos .frozenCols .values {
  overflow-x: scroll;
  overflow-y: hidden;
  width: 100%;
}

app-sos .normalCols .values {
  overflow-x: scroll;
  overflow-y: scroll;
  width: 100%;
}

app-sos .linesSection .rowItem-g,
app-sos .linesSection .rowItem-gr,
app-sos .linesSection .rowItem-x {
  display: flex;
  margin: 0;
  height: 1.8em;
  justify-content: center;
  overflow: hidden;
}

app-sos .linesSection .rowItem-g,
app-sos .linesSection .rowItem-gr,
app-sos .linesSection .rowItem-x {
  padding-left: 0;
  align-items: center;
}

app-sos .linesSection .rowItem-x .k-combobox,
app-sos .linesSection .rowItem-x .k-numerictextbox,
app-sos .linesSection .rowItem-x .k-numerictextbox .k-input-inner,
app-sos .linesSection .rowItem-x .k-textbox.k-input {
  border-style: none;
  border-radius: 0;
  padding: 0;
  text-overflow: clip;
}

app-sos .linesSection .rowItem-x .k-textbox.k-input {
  transition: none !important;
}

app-sos .linesSection .k-combobox,
app-sos .linesSection .k-combobox input,
app-sos .linesSection .k-numerictextbox,
app-sos .linesSection .k-numerictextbox input,
app-sos .linesSection .k-textbox.k-input {
  background-color: transparent !important;
  font-weight: normal;
  padding: 0;
}

app-sos .frozenCols .linesSection .rowItem-g,
app-sos .frozenCols .linesSection .rowItem-gr,
app-sos .frozenCols .linesSection .rowItem-x {
  border-right-style: solid;
  border-right-width: 1px;
  white-space: nowrap;
}

app-sos .frozenCols .linesSection .rowItem-g:not(.last),
app-sos .frozenCols .linesSection .rowItem-gr:not(.last),
app-sos .frozenCols .linesSection .rowItem-x:not(.last) {
  border-right: 1px solid black;
}

app-sos .frozenCols .linesSection .rowItem-g.last,
app-sos .frozenCols .linesSection .rowItem-gr.last,
app-sos .frozenCols .linesSection .rowItem-x.last {
  border-right-width: 3px;
}

app-sos .normalCols .linesSection .rowItem-g,
app-sos .normalCols .linesSection .rowItem-gr,
app-sos .normalCols .linesSection .rowItem-x {
  border-right: 1px solid black;
  white-space: nowrap;
}

app-sos #header {
  margin-bottom: 0;
}

app-sos #header .headerItem-g {
  min-width: 250px;
  max-width: 400px;
}

app-sos #header .headerItem-g2 {
  display: flex;
  flex-grow: 1;
}

app-sos #header .headerItem-rc {
  display: flex;
  align-items: center;
}

app-sos #header .headerItem-l.arrow {
  align-items: center;
  justify-content: center;
  margin: 0;
}

app-sos #header .headerItem-l.arrow button {
  margin: 0;
}

app-sos #header .headerItem-l.save,
app-sos #header .headerItem-l.add {
  margin-left: 20px;
}

app-sos #header .headerItem-l.date {
  margin: 0 3px 0 3px;
}

app-sos .bottomFiller {
  display: flex;
  flex-grow: 1;
  width: 100%;
  margin-bottom: 3px;
}

app-sos .bottomFiller.linesSection .cellMain {
  height: auto;
}

app-sos .normalCols .bottomFiller.linesSection .cellMain,
app-sos .frozenCols .bottomFiller.linesSection .cellMain:not(.last) {
  border-right-color: transparent;
}

app-sos .bottomFiller .marketTypeDivider {
  background-color: transparent;
  border-color: transparent;
}

app-sos #header h1 {
  display: flex;
  align-items: center;
}

app-sos #header .newTab {
  box-shadow: 0 0 2px 3px variables.$highlight-color;
  cursor: pointer;
}

app-sos #header .newTab:active h1 {
  color: variables.$highlight-color;
}

app-sos .marketTypeDivider {
  min-width: 3px;
  max-width: 3px;
  border-right: 1px solid black;
  display: flex;
  order: 99;
}

app-sos .marketTypeDivider div {
  margin: 0;
  flex-grow: 1;
}

app-sos .normalCols {
  position: relative;
  flex-grow: 1;
}

app-sos .linesSection span {
  justify-content: flex-end;
}

app-sos .linesSection .k-numerictextbox input {
  text-align: right;
  padding: 0;
}

app-sos .linesSection .nomVol .k-numerictextbox input {
  font-weight: bold;
}

app-sos .linesSection .transferSumVol .cellOverlay {
  justify-content: flex-end;
}

app-sos .linesSection .transferSumVol span {
  padding: 0;
  font-weight: bold;
}

app-sos .linesSection.blackText,
app-sos .linesSection.blackText .k-numerictextbox input,
app-sos .linesSection.blackText .k-combobox input,
app-sos .linesSection.blackText .k-textbox.k-input {
  color: black !important;
}


app-sos .rowItem-g.marketCol,
app-sos .rowItem-gr.marketCol {
  align-items: stretch;
  justify-content: flex-end;
  order: 99;
  overflow-x: hidden;
}

app-sos .marketCol .marketColInnerContainer {
  margin: 0 3px 0 3px;
  height: max-content;
  flex-direction: column;
}

app-sos .marketCol>div {
  margin-bottom: 2px;
  overflow-x: hidden;
}

app-sos .marketCol .marketColInnerContainer>div>div,
app-sos .marketCol .marketColInnerContainer>div>span,
app-sos .marketCol .marketColInnerContainer>div>div>span {
  overflow-x: hidden;
}

app-sos .marketCol .k-dropdownlist {
  min-height: 0;
  height: 1.2em;
  font-size: 1em;
  border-radius: 0;
}

app-sos .marketCol .k-dropdownlist .k-input-inner {
  font-weight: normal;
  padding: 0;
  line-height: 1;
}

app-sos .marketCol .k-dropdownlist .k-input-inner .k-input-value-text {
  text-overflow: clip;
}

app-sos .marketCol .dealNum {
  display: flex;
  font-weight: bold;
  justify-content: center;
}

app-sos .marketCol .delMtr {
  display: flex;
}

app-sos .marketCol .delMtr>div:nth-child(1) {
  display: flex;
  align-items: center;
  white-space: nowrap;
  margin-right: 3px;
  overflow-x: visible;
}

app-sos .marketCol .delMtr>div:nth-child(2) {
  display: flex;
  align-items: center;
  flex-grow: 1;
  max-width: 80px;
}

app-sos .marketCol .delMtr>div:nth-child(2) .k-dropdownlist:hover {
  border-width: 2px;
}

app-sos .marketCol .counterparty,
app-sos .marketCol .contract,
app-sos .marketCol .point {
  display: flex;
  white-space: nowrap;
  margin-right: 3px;
  font-weight: bold;
  justify-content: center;
}

app-sos .marketCol .dealVol,
app-sos .marketCol .nomVol {
  display: flex;
  flex-grow: 1;
}

app-sos .marketCol .totalTransferSumVol {
  flex-direction: column;
  padding-right: 7px;
  padding-left: 5px;
}

app-sos .headers .deliveryVol {
  padding-right: 10px;
  padding-left: 8px;
  flex-direction: column;
  cursor: text;
}

app-sos .marketCol .dealVol>div:nth-child(1),
app-sos .marketCol .nomVol>div:nth-child(1) {
  display: flex;
  flex-basis: 50%;
  white-space: nowrap;
}

app-sos .marketCol .totalTransferSumVol>div:nth-child(1),
app-sos .headers .deliveryVol>div:nth-child(1) {
  display: flex;
  justify-content: center;
  white-space: nowrap;
}

app-sos .marketCol .dealVol>div:nth-child(2),
app-sos .marketCol .nomVol>div:nth-child(2),
app-sos .marketCol .totalTransferSumVol>div:nth-child(2),
app-sos .headers .deliveryVol>div:nth-child(2) {
  display: flex;
  flex-basis: 50%;
  justify-content: flex-end;
  border-style: solid;
  border-width: 1px;
  padding-right: 3px;
}

app-sos .marketCol .nomVol {
  margin-bottom: 0;
}

.app-sos.list-wide.k-popup.k-list-container {
  min-width: 400px;
}

.app-sos.list-medium.k-popup.k-list-container {
  min-width: 250px;
}

.app-sos.list-narrow.k-popup.k-list-container {
  min-width: 150px;
}

app-sos .cellMain {
  position: relative;
  overflow: hidden;
  padding: 0;
}

app-sos .cellOverlay {
  display: flex;
  align-items: center;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

app-sos .cellMain .cellOverlay:has(.isLoading) {
  justify-content: center;
}

app-sos .rowItem-g .cellOverlay {
  justify-content: flex-start;
}

app-sos .rowItem-gr .cellOverlay {
  justify-content: flex-end;
}

app-sos .cellOverlay span {
  display: flex;
  justify-content: flex-start;
}

app-sos .cellMain .cellOverlay .cellOverlayInner {
  background-color: transparent !important;
  overflow: hidden;
  margin: 0 3px 0 3px;
}

app-sos .cellMain .cellOverlay .cellOverlayInner.k-input:focus-within {
  box-shadow: none;
}

app-sos .cellMain .cellOverlay .cellOverlayInner .k-input,
app-sos .cellMain .cellOverlay .cellOverlayInner .k-input-inner {
  font-weight: normal;
}

app-sos .cellMain .cellOverlay.activeOverlay,
app-sos .cellMain .cellOverlay .cellOverlayInner.k-input:focus,
app-sos .cellMain .cellOverlay .cellOverlayInner .k-input-inner:focus {
  font-weight: bold;
}

app-sos .cellMain .cellOverlay.activeOverlay,
app-sos .cellMain .cellOverlay:focus-within,
app-sos .cellMain .cellOverlay:focus-within .k-numerictextbox,
app-sos .cellMain .cellOverlay:focus-within input {
  color: black !important;
  background-color: variables.$highlight-color !important;
  box-shadow: none;
}

app-sos .cellMain .cellOverlay.transferSourceOverlay:not(:focus-within) {
  background-color: rgba(255, 255, 0, 0.2) !important; //transparent yellow
}

app-sos .cellMain .cellOverlay.transferVolOverlay:not(:focus-within) {
  background-color: rgba(128, 128, 128, 0.5) !important; //transparent gray
}

app-sos .cellMain .cellOverlay.changedOverlay span,
app-sos .cellMain .cellOverlay.changedOverlay:not(:focus-within) .k-input,
app-sos .cellMain .cellOverlay.changedOverlay:not(:focus-within) .k-input-inner {
  font-weight: bold;
  color: white !important;
}

app-sos .cellMain .cellOverlay .isKeepWhole,
app-sos .cellMain .cellOverlay .hasNomNote {
  font-weight: bold;
}

app-sos .fastKeyRow.isSelected .cellMain .cellOverlay .isKeepWhole,
app-sos .fastKeyRow.isHovered .cellMain .cellOverlay .isKeepWhole,
app-sos .cellMain .cellOverlay.changedOverlay .isKeepWhole,
app-sos .fastKeyRow.isSelected .cellMain .cellOverlay .hasNomNote,
app-sos .fastKeyRow.isHovered .cellMain .cellOverlay .hasNomNote,
app-sos .cellMain .cellOverlay.changedOverlay .hasNomNote {
  color: black;
}

app-sos .cellMain .cellOverlay.changedOverlay:not(:focus-within) .isKeepWhole,
app-sos .cellMain .cellOverlay.changedOverlay:not(:focus-within) .hasNomNote {
  color: yellow;
}

app-sos .cellMain .cellOverlay.changedOverlay:not(:focus-within) {
  background-color: rgba(0, 0, 255, 0.8) !important; //transparent blue
}

app-sos .cellMain .cellOverlay.supplyCloneOverlay:not(:focus-within) {
  background-color: rgba(255, 0, 255, 0.3) !important; //transparent purple/pink
}

app-sos .cellMain .cellOverlay.missingRequiredOverlay:not(:focus-within) {
  background-color: rgba(255, 0, 0, 0.3) !important; //transparent red
}

app-sos .cellMain .cellOverlay.manualPtrOverlay:not(:focus-within) {
  background-color: rgba(0, 255, 0, 0.3) !important; //transparent green
}

app-sos .cellMain .cellOverlay.enteredFromSosOverlay:not(:focus-within) {
  background-color: rgba(255, 165, 0, 0.7) !important; //transparent orange
}

app-sos .cellMain .cellOverlay.negativeUnscheduledVolOverlay:not(:focus-within) {
  background-color: rgba(255, 105, 180, 0.4) !important; //transparent hotpink
}

app-sos .cellMain .cellOverlay.hiddenOverlay:not(:focus-within) {
  background-color: rgba(100, 100, 100, 0.9); //transparent gray
  color: rgb(22, 25, 29) !important;
}

app-sos .cellMain .cellOverlay.hiddenOverlay:not(:focus-within) .cellOverlayInner,
app-sos .cellMain .cellOverlay.hiddenOverlay:not(:focus-within) .cellOverlayInner .k-input-inner {
  color: rgb(22, 25, 29) !important;
}

app-sos .linesSection.isSelected .cellMain .cellOverlay.hiddenOverlay:not(:focus-within),
app-sos .linesSection.isHovered .cellMain .cellOverlay.hiddenOverlay:not(:focus-within) {
  color: lightgray;
}

app-sos .cellMain .cellOverlay.hiddenOverlay.highlighted:not(:focus-within) {
  color: lightgray;
}

app-sos .marketVolIsOver {
  background-color: rgba(255, 0, 0, 0.6);
  color: white;
}

app-sos .marketVolIsUnder {
  background-color: rgba(255, 255, 0, 0.8);
  color: black;
}

app-sos .farRightColumnFillerCell {
  display: flex;
  order: 99;
  flex-grow: 1;
  align-self: stretch;
}

app-sos .date .k-datepicker .k-dateinput .k-input-inner {
  text-align: center;
}

app-sos .hiddenRows {
  margin-left: 5px;
  margin-right: 5px;
}

app-sos .question,
app-sos .camera {
  margin: 0 5px 0 0;
}

.app-sosTip-8 .k-tooltip-content {
  font-size: 8px;
}

.app-sosTip-9 .k-tooltip-content {
  font-size: 9px;
}

.app-sosTip-10 .k-tooltip-content {
  font-size: 10px;
}

.app-sosTip-11 .k-tooltip-content {
  font-size: 11px;
}

.app-sosTip-12 .k-tooltip-content {
  font-size: 12px;
}

.app-sosTip-13 .k-tooltip-content {
  font-size: 13px;
}

.app-sosTip-14 .k-tooltip-content {
  font-size: 14px;
}

.app-sosTip-15 .k-tooltip-content {
  font-size: 15px;
}

.app-sosTip-16 .k-tooltip-content {
  font-size: 16px;
}

.app-sosTip-17 .k-tooltip-content {
  font-size: 17px;
}

.app-sosTip-18 .k-tooltip-content {
  font-size: 18px;
}

.app-sosTip-19 .k-tooltip-content {
  font-size: 19px;
}

.app-sosTip-20 .k-tooltip-content {
  font-size: 20px;
}

app-sos .supplyHeader {
  cursor: pointer;
  position: relative;
}

app-sos .sortWrapper {
  position: absolute;
  top: 0;
  right: 3px;
}

app-sos .sortWrapper .k-svg-i-sort-asc-small,
app-sos .sortWrapper .k-svg-i-sort-desc-small {
  margin-right: -5px;
}


app-sos .sortWrapper .k-sort-order {
  font-weight: bold;
  font-size: 0.9em;
}