.marquee {
    position: relative;
    width: 100%;
}
.cr-body {
  opacity: 1;
  position: relative;
}

.cr-body.loading {
  opacity: 0;
}

#loading-animation {
  text-align: center;
}

.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.4);
}

.modal-content {
    background-color: #fff;
    margin: 20px auto;
    padding: 20px 20px 0;
    border: 1px solid #888;
    width: 96%;
    max-width: 640px;
    max-height: calc(100vh - 40px);
    overflow-y: scroll;
}

.cr-body header {
  position: sticky;
  top: 0;
  left: 0;
  width: 100%;
  border-bottom: solid 1px #d0d0d0;
  background-color: #ffffff;
  z-index: 10000;
  max-width: none !important;
}

.cr-body header .header-buttons .header-button {
  display: none;
  pointer-events: none;
}

.cr-body header .header-buttons.header-buttons-show .header-button {
  opacity: 1;
  pointer-events: auto;
  display: inline-block;
}

.training-video-link {
  padding-right: 0;
  padding-left: 0;
}

.cr-body header .header-buttons.header-buttons-show .training-video-link {
  margin-right: 16px;
}

.cr-body .header-inner {
  padding: 16px 35px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 72px;
}

.cr-body .cr-body-inner {
  max-width: 1140px !important;
}

.cr-body .new-report-button {
  margin-right: 12px;
}

.cr-body-content.cr-body-content-hidden {
  display: none;
}

.cr-body h1 {
  font-size: 42px;
  text-align: center;
  font-weight: bold;
  margin: 0 0 12px;
}

.cr-body-content-description {
  font-size: 14px;
  color: #555555;
}

.cr-body-inner-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 24px 0;
}

.time-frame p {
  margin-bottom: 0;
  font-weight: 300;
  text-align: center;
  font-size: 24px;
  color: #333333;
}

#product-details-container {
  display: flex;
  width: 100%;
  justify-content: flex-start;
  flex-wrap: wrap;
}

#product-details-container > p {
  flex-basis: 25%;
  font-size: 18px;
  margin-bottom: 8px;
}

.product-details-ambest {
  text-transform: uppercase;
}

#index-info-container {
  max-width: 1140px !important;
}

#indexalyzer-table-container {
	max-width: 1140px;
  margin: 36px auto;
}

.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 36px;
  margin-bottom: 120px;
}

.empty-state iframe {
  margin-top: 20px;
}

.empty-state h3 {
  margin-top: 24px;
}

.empty-state h4 {
  margin: 0 0 12px;
}

.empty-state.empty-state-hidden {
  display: none;
}

.indexalyzer-data-table .Return {
  font-weight: bold;
}

.indexalyzer-parameters-form {
  background-color: #ffffff;
  box-shadow: 4px 0 8px rgba(0,0,0,0.12);
  border-radius: 0;
  max-width: 340px !important;
  position: absolute;
  top: 0;
  left: 0;
  height: 100vh;
  transition: 0.5s;
  z-index: 10000000;
}

.panel-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  max-width: none !important;
  height: 100vh;
  background-color: rgba(0,0,0,0.3);
  margin: 0;
  padding: 0;
  z-index: 10000000;
}

.panel-overlay.panel-overlay-hide {
  display: none;
}

.indexalyzer-parameters-form.indexalyzer-parameters-form-hide {
  left: -340px;
  transition: 0.5s;
  height: 50vh;
}

.indexalyzer-parameters-form .indexalyzer-parameters-form-toggle {
  position: absolute;
  top: 120px;
  right: -36px;
  background-color: #2335e6;
  color: #ffffff;
  box-shadow: 4px 0 8px rgba(0,0,0,0.12);
  padding: 24px 12px;
  border-radius: 0px 8px 8px 0px;
  font-size: 32px;
  cursor: pointer;
}

.indexalyzer-parameters-form.indexalyzer-parameters-form-hide .indexalyzer-parameters-form-toggle {
  border-radius: 4px 0px 0px 4px;
  transform: rotate(180deg);
}


.indexalyzer-parameters-form #retroPricingToggle,
.indexalyzer-parameters-form #qualifiedToggle{
  display: none;
}


.indexalyzer-parameters-form .indexalyzer-parameters-form-inner {
  padding: 24px;
}

.indexalyzer-parameters-form h4 {
  padding: 0;
  margin: 0;
  font-weight: bold;
}

.indexalyzer-parameters-form .indexalyzer-parameters-form-description {
  margin-top: 4px;
  font-size: 14px;
  color: #777777;
  line-height: 18px;
}

.indexalyzer-parameters-form .form-wrapper {
  display: flex;
  flex-direction: column;
}

.indexalyzer-parameters-form .form-full {
  width: 100%;
  display: flex;
  gap: 0 12px;
}

.indexalyzer-parameters-form .form-combo {
  display: flex;
  justify-content: space-between;
}

.indexalyzer-parameters-form .form-control {
  display: flex;
  flex-direction: column;
  margin-bottom: 12px;
  flex-grow: 1;
  flex-basis: 0;
}

.indexalyzer-parameters-form .form-combo .form-control {
  max-width: 48%;
}

.indexalyzer-parameters-form .form-control:last {
  margin-bottom: 0;
}

.indexalyzer-parameters-form label {
  font-weight: bold;
}

.indexalyzer-parameters-form select,
.indexalyzer-parameters-form input {
  font-size: 16px;
  border-radius: 4px;
  line-height: 1.5em;
  padding: 0.5em 0.5em 0.5em 1em;
  margin: 0;      
  -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
  box-sizing: border-box;
  -webkit-appearance: none;
  -moz-appearance: none;
  border: solid 1px #767676;
  cursor: pointer;
}

.indexalyzer-parameters-form input {
  cursor: text;
}

.indexalyzer-parameters-form select:hover,
.indexalyzer-parameters-form input:hover {
  opacity: 0.7;
}

.indexalyzer-parameters-form select {
  background-image:
    linear-gradient(45deg, transparent 50%, gray 50%),
    linear-gradient(135deg, gray 50%, transparent 50%);
  background-position:
    calc(100% - 20px) calc(1em + 2px),
    calc(100% - 15px) calc(1em + 2px),
    calc(100% - 2.5em) 0.5em;
  background-size:
    5px 5px,
    5px 5px,
    1px 1.5em;
  background-repeat: no-repeat;
}

.indexalyzer-parameters-form select:focus {
  background-image:
    linear-gradient(45deg, gray 50%, transparent 50%),
    linear-gradient(135deg, transparent 50%, gray 50%);
  background-position:
    calc(100% - 15px) 1em,
    calc(100% - 20px) 1em,
    calc(100% - 2.5em) 0.5em;
  background-size:
    5px 5px,
    5px 5px,
    1px 1.5em;
  background-repeat: no-repeat;
  outline: 0;
}

.indexalyzer-parameters-form .submit-button {
  width: 100%;
  cursor: pointer;
  margin-top: 8px;
  border: none;
}

.indexalyzer-parameters-form .submit-button:hover {
  opacity: 1;
}

/* The switch - the box around the slider */
.switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 34px;
}

/* Hide default HTML checkbox */
.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.switch input:hover {
  appearance: none;
}

/* The slider */
.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
    border-radius: 34px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 26px;
    width: 26px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

input:checked + .slider {
    background-color: #2196F3;
}

input:checked + .slider:before {
    transform: translateX(26px);
}


.index-name-wrapper h3 {
  margin-bottom: 0;
  font-size: 24px;
  font-weight: bold;
}

.index-name-description {
  font-size: 14px;
  color: #333333;
}

#indexalyzer-table-container #chart {
  margin: 36px 0;
}

.do-header-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.do-header-wrapper .diversification-title {
  margin-bottom: 0;
}

.do-card-wrapper {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 24px;
}

.do-card {
  width: calc(50% - 12px); 
  background-color: #ffffff;
  box-shadow: 0 4px 8px rgba(0,0,0,0.12);
  border-radius: 4px;
}

.do-card.hidden-card {
  display: none;
}

.do-card-inner {
  padding: 24px;
}

.do-card h5 {
  font-weight: bold;
  font-size: 18px;
  margin: 0 0 8px;
}

.do-card .do-card-percentage {
  font-weight: bold;
}

.do-card .do-card-rate-wrapper {
  display: flex;
  flex: 1 0 auto;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.do-card .do-card-rate-wrapper canvas {
  max-width: 50%;
}

.do-card .do-card-rate-percentage-wrapper {
  display: flex;
  flex-direction: column;
  text-align: center;
}

.do-card .do-card-rate-percentage-title {
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.25px;
}

.do-card .do-card-rate-percentage {
  font-size: 32px;
  font-weight: bold;
}

/* Overall table layout and borders */
table {
  width: 100%; /* Make the table fill its container */
  border-collapse: collapse; /* Collapse borders for a cleaner look */
  font-family: Arial, sans-serif; /* Set a basic font */
}

/* Table header */
th {
  background-color: #f0f0f0; /* Light gray background */
  text-align: left; /* Align text to the left */
  padding: 10px;        /* Cell padding */
  border: 1px solid #ddd; /* Subtle border */
}

/* Table rows and data cells */
td {
  padding: 10px;  /* Cell padding */
  border: 1px solid #ddd; /* Subtle border */
}

/* Zebra-striping rows */
tbody tr:nth-child(odd) { 
  background-color: #fafafa; /* Very light gray */
}

.indexalyzer-data-table .CarrierID,
.indexalyzer-data-table .Carrier,
.indexalyzer-data-table .ProductID,
.indexalyzer-data-table .Product,
.indexalyzer-data-table .AMBest,
.indexalyzer-data-table .IndexID,
.indexalyzer-data-table .Reset,
.indexalyzer-data-table .Unknown,
.indexalyzer-data-table .CreditingMethod,
.indexalyzer-data-table .Boost,
.indexalyzer-data-table .MaxAge,
.indexalyzer-data-table .NQMaxAgeRange,
.indexalyzer-data-table .NQMinPrem,
.indexalyzer-data-table .FreeWD,
.indexalyzer-data-table .SurCharge,
.indexalyzer-data-table .MVA,
.indexalyzer-data-table .RMDWaive,
.indexalyzer-data-table .CSID,
.indexalyzer-data-table .PremType,
.indexalyzer-data-table .NQMaxPrem,
.indexalyzer-data-table .QMinPrem,
.indexalyzer-data-table .QMaxPrem {
  display: none;
}

.affidavit-container {
  margin: 0 auto 60px;
  max-width: 1140px !important;
}

.affidavit-signature {
  display: flex;
  gap: 36px;
  width: 100%;
  margin-top: 60px;
}

.affadavit-signature-box {
  border-top: solid 2px #000000;
}

.affidavit-content h4 {
  margin-bottom: 8px;
}

.affidavit-content p {
  font-size: 13px;
}

.indexalyzer-disclaimer {
  display: none;
}

#customAllocationForm .input-field {
  position: relative;
}

#customAllocationForm .input-field label::after {
  content: '%';
  display: inline-block;
  position: absolute;
  top: 36px;
  right: 6px;
}

hr {
  margin: 60px 0;
}

.allocation-btn-wrapper {
  margin-top: 20px;
  display: flex;
  gap: 16px;
  justify-content: flex-end;
  background-color: white;
  position: sticky;
  bottom: 0;
  padding: 20px 0;
}

.allocation-close-btn {
  background-color: #f0f0f0;
  color: #1e293b;
}

.indexalyzer-review-disclaimer {
  display: none;
}

@page {
  margin-bottom: 72px;
}


@media print {
  * {
    color: black !important;
  }
  @page {
    margin: 0.5in;
  }
  .ast-primary-header-bar,
  .site-footer {
    display: none !important;
  }
  .indexalyzer-disclaimer {
    display: block;
    font-size: 12px;
    line-height: 1.5;
    clear: both;
    page-break-before: always;
  }
  .indexalyzer-review-disclaimer {
    display: block;
    font-size: 10px;
    font-style: italic;
    text-align: center;
  }
  .indexalyzer-parameters-form *,
  #indexalyzer-table-container *,
  #index-info-container *,
  .cr-body * {
    zoom: 90%;
  }
  #index-info-container {
    clear: both;
    page-break-after: always;
    align-items: center;
  }
  .indexalyzer-parameters-form {
    display: none;
  }
  .cr-body header {
    display: none;
  }
  #indexalyzer-table-container #chart {
    clear: both;
    page-break-after: always;
    max-width: 100%;
  }
  .do-card-wrapper {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* Two columns layout */
    gap: 8px;
    padding-top: 0px;
    margin-bottom: 0;
  }
  .do-card {
    width: auto;
    border: solid 1px #999999;
    box-shadow: none;
    break-inside: avoid;
  }
  .do-card-inner {
    padding-top: 6px;
    padding-bottom: 6px;
  }
  .do-card h5 {
    margin-bottom: 0px;
  }
  hr {
    display: none;
  }
  .table-title {
    padding-top: 24px;
  }
  .indexalyzer-data-table {
    page-break-after: always;
  }
  #indexalyzer-customAllocationButton {
    display: none;
  }
}
