/* Style for the table */
.asset-table {
  width: 100%;
  background-color: #111;
  color: #fff;
  border-collapse: collapse;
  table-layout: fixed;
  font-family: Arial, sans-serif;
  font-size: 14px;
}

/* Style for table headers */
.asset-table th {
  background-color: #333;
  padding: 10px;
  text-align: center;
  font-weight: bold;
  border: 1px solid #666;
  letter-spacing: 0.05em;
}

.asset-table th:first-child {
  white-space: nowrap;
}

/* Style for table cells */
.asset-table td {
  background-color: #444;
  padding-top: 10px;
  padding-bottom: 10px;
  padding-right: 5px;
  padding-left: 5px;
  border: 1px solid #666;
  text-align: right;
  white-space: nowrap;
  font-size: 13px;
  text-decoration: underline;
  text-decoration-style: dashed;
  /* Prevents breaking */
}

/* Style for legend table cells */
.legend-table td {
  padding: 2px 0px 0px 20px;
  text-align: left;
}

/* Style for alternating rows */
.asset-table tr:nth-child(even) {
  background-color: #555;
}

/* Style for tooltip */
.asset-table td[data-tooltip] {
  position: relative;
  overflow: visible;
  cursor: pointer;
  /* Ensure that the tooltip is not clipped by the table cell */
}

.asset-table td[data-tooltip]:hover::after,
.dotted-text:hover::after {
  content: attr(data-tooltip);
  position: absolute;
  background: #e0e0e0;
  color: #333;
  padding: 0.5em;
  border-radius: 3px;
  line-height: 1.2;
  z-index: 100;
  bottom: 100%;
  font-weight: lighter;
  /* Position the tooltip above the cell */
  left: 50%;
  /* Center the tooltip horizontally */
  transform: translateX(-50%);
  margin-bottom: 5px;
  font-size: 1em;
  pointer-events: none;
  width: auto;
  /* Allow the tooltip width to adjust to its content */
  max-width: 400px;
  /* Set a max-width to prevent the tooltip from getting too wide */
  white-space: normal;
  /* Allow the tooltip text to wrap */
  text-align: center;
  /* Center the tooltip text */
  box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
  /* Add a slight shadow for better visibility */
}

/* Div bottom margin */
.mb-20 {
  margin-bottom: 20px;
}

/* Table titles */
.premium-title {
  font-size: 30px;
  line-height: 30px;
  font-weight: 700;
  color: rgb(224, 224, 224);
  text-transform: uppercase;
  margin-top: 10px;
  margin-bottom: 5px;
  letter-spacing: 0.1em;
  opacity: 0.5;
}

.x-button-modal {
  color: #e0e0e0;
  font-size: 30px;
  font-weight: 700;
  line-height: 1;
  background: 0 0;
  border: 0;
  -webkit-appearance: none;
  appearance: none;
}

.x-button-modal:hover {
  color: #fff;
  text-shadow: 0 2px 0 #0069d9;
}

.backgroundForShort {
  background: linear-gradient(to right, #ff5298, #ff2538);
  color: #fff;
}

.backgroundForLong {
  background: linear-gradient(to right, #98f480, #2fd8a7);
  color: #fff;
}

.backgroundForHedge {
  background: linear-gradient(to right, #51d4ee, #3fbff8);
  color: #fff;
}

.modal-position-type-image-container {
  display: flex;
  /* Center horizontally */
  justify-content: center;
  /* Center vertically */
  align-items: center;
}

/* Style for the contract link modal */
.modal-content {
  background-color: #333;
  font-family: Arial, sans-serif;
}

/* Colours for spans and TD backgrounds */
.green {
  color: rgb(35, 190, 14) !important;
}

.white {
  color: #fff !important;
}

.gold {
  color: rgb(255, 246, 51) !important;
}

.orange {
  color: rgb(255, 153, 51) !important;
}

.blue {
  color: rgb(51, 147, 255) !important;
}

.good {
  background-color: rgb(160, 214, 138) !important;
}

.great {
  background-color: rgb(59, 176, 59) !important;
}

.bad {
  background-color: rgb(204, 105, 105) !important;
}

.awful {
  background-color: rgb(176, 59, 59) !important;
}

.estimated-premiums {
  color: white;
  padding: 6px;
  border-radius: 3px;
  margin: 5px;
}

.custom-notification {
  background-color: #4caf50;
  color: #ffffff;
  padding: 15px 20px;
  border-radius: 10px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  margin: 20px 0;
}

.new-badge {
  display: inline-block;
  background-color: #ffffff;
  color: #4caf50;
  font-weight: bold;
  padding: 5px 10px;
  border-radius: 12px;
  margin-right: 10px;
  font-size: 14px;
  text-transform: uppercase;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.custom-notification a.notification-link {
  color: #ffffff;
  font-weight: bold;
  text-decoration: none;
}

.custom-notification a.notification-link:hover {
  color: #ffffff;
  text-decoration: underline;
}

.modal-dialog-centered {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
}

.x-button-modal:focus {
  outline-style: none;
  box-shadow: none;
}

.dotted-text {
  text-decoration: underline;
  text-decoration-style: dashed;
  cursor: pointer;
}
