.shortPremiumPanel {
  margin-top: 16px;
  border: 1px solid #d7dfdc;
  background: #fff;
}

.shortPremiumHeader {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding: 16px 18px;
  border-bottom: 1px solid #d7dfdc;
}

.shortPremiumTitleRow,
.shortPremiumActions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.shortPremiumHeader h2 {
  margin: 0;
  font-size: 20px;
}

.shortPremiumHeader p,
.shortPremiumHeader small {
  margin: 5px 0 0;
  color: #65716e;
}

.shortPremiumBadge {
  padding: 3px 7px;
  border: 1px solid #d98d2b;
  color: #8a5108;
  background: #fff8ec;
  font-size: 12px;
  font-weight: 700;
}

.shortPremiumActions button {
  min-height: 36px;
  border: 1px solid #c9d3cf;
  background: #fff;
  color: #202725;
  cursor: pointer;
}

.shortPremiumSummary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-bottom: 1px solid #d7dfdc;
}

.shortPremiumSummary > div {
  min-width: 0;
  padding: 13px 14px;
  border-right: 1px solid #d7dfdc;
}

.shortPremiumSummary > div:nth-child(4n) {
  border-right: 0;
}

.shortPremiumSummary span {
  display: block;
  color: #65716e;
  font-size: 12px;
}

.shortPremiumSummary strong {
  display: block;
  margin-top: 5px;
  overflow-wrap: anywhere;
  font-size: 16px;
}

.shortPremiumReturnBar {
  display: grid;
  grid-template-columns: minmax(210px, 1.3fr) repeat(5, minmax(145px, 1fr));
  border-bottom: 1px solid #d7dfdc;
  background: #fbfcfc;
}

.shortPremiumReturnBar > div,
.shortPremiumCapitalControl {
  min-width: 0;
  padding: 12px 14px;
  border-right: 1px solid #d7dfdc;
}

.shortPremiumReturnBar > div:last-child {
  border-right: 0;
}

.shortPremiumReturnBar span,
.shortPremiumCapitalControl > span:first-child {
  display: block;
  color: #65716e;
  font-size: 12px;
}

.shortPremiumReturnBar strong {
  display: block;
  margin-top: 6px;
  overflow-wrap: anywhere;
  font-size: 16px;
}

.shortPremiumReturnBar small {
  display: block;
  margin-top: 4px;
  color: #65716e;
  font-size: 11px;
  line-height: 1.3;
}

.shortPremiumCapitalInput {
  display: grid !important;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 7px;
  margin-top: 5px;
  color: #202725 !important;
}

.shortPremiumCapitalInput b {
  font-size: 14px;
}

.shortPremiumCapitalInput input {
  width: 100%;
  min-height: 34px;
  padding: 6px 8px;
  border: 1px solid #bfcac6;
  background: #fff;
  color: #202725;
  font: inherit;
  font-variant-numeric: tabular-nums;
}

.shortPremiumReturnBar .positive {
  color: #087f5b;
}

.shortPremiumReturnBar .negative {
  color: #c63f3f;
}

.shortPremiumReturnNote {
  padding: 8px 14px;
  border-bottom: 1px solid #d7dfdc;
  color: #65716e;
  background: #fbfcfc;
  font-size: 11px;
  line-height: 1.35;
}

.shortPremiumTables {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
}

.shortPremiumTableBlock {
  min-width: 0;
  overflow-x: auto;
}

.shortPremiumTableBlock + .shortPremiumTableBlock {
  border-left: 1px solid #d7dfdc;
}

.shortPremiumTableBlock h3 {
  margin: 0;
  padding: 12px 14px;
  border-bottom: 1px solid #e6ebe9;
  font-size: 15px;
}

.shortPremiumTable {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.shortPremiumTable th,
.shortPremiumTable td {
  padding: 9px 10px;
  border-bottom: 1px solid #e6ebe9;
  text-align: left;
  white-space: nowrap;
}

.shortPremiumTable th {
  color: #596561;
  background: #f7f9f8;
  font-size: 12px;
}

.shortPremiumTable .ceLeg {
  color: #186c58;
  font-weight: 700;
}

.shortPremiumTable .peLeg {
  color: #a54f21;
  font-weight: 700;
}

.shortPremiumTable .positive,
.shortPremiumSummary .positive {
  color: #087f5b;
}

.shortPremiumTable .negative,
.shortPremiumSummary .negative {
  color: #c63f3f;
}

.shortPremiumEmpty {
  height: 56px;
  color: #65716e;
  text-align: center !important;
}

.shortPremiumPanel[data-state="open"] .shortPremiumBadge {
  border-color: #16836a;
  color: #12614f;
  background: #effaf6;
}

.shortPremiumPanel[data-state="error"] .shortPremiumBadge {
  border-color: #c63f3f;
  color: #9f2f2f;
  background: #fff4f4;
}

@media (max-width: 1100px) {
  .shortPremiumSummary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .shortPremiumSummary > div:nth-child(4n) {
    border-right: 1px solid #d7dfdc;
  }

  .shortPremiumSummary > div:nth-child(even) {
    border-right: 0;
  }

  .shortPremiumTables {
    grid-template-columns: 1fr;
  }

  .shortPremiumReturnBar {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .shortPremiumReturnBar > div:nth-child(3n),
  .shortPremiumReturnBar > label:nth-child(3n) {
    border-right: 0;
  }

  .shortPremiumTableBlock + .shortPremiumTableBlock {
    border-left: 0;
    border-top: 1px solid #d7dfdc;
  }
}

@media (max-width: 640px) {
  .shortPremiumHeader {
    flex-direction: column;
  }

  .shortPremiumActions {
    width: 100%;
    justify-content: space-between;
  }

  .shortPremiumSummary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .shortPremiumSummary > div:nth-child(even) {
    border-right: 0;
  }

  .shortPremiumReturnBar {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .shortPremiumReturnBar > div,
  .shortPremiumCapitalControl {
    border-right: 1px solid #d7dfdc;
  }

  .shortPremiumReturnBar > div:nth-child(even),
  .shortPremiumReturnBar > label:nth-child(even) {
    border-right: 0;
  }
}
