/* Investment Analysis Styles */
.investment-analysis {
  padding: 20px 0 40px;
}

.investment-analysis__header {
  background: #fff;
  border: 1px solid #eef0f4;
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 24px;
  box-shadow: 0 10px 24px rgba(16, 24, 40, 0.06);
}

.investment-analysis__title {
  font-size: 28px;
  font-weight: 800;
  color: #0f172a;
  margin: 0 0 12px;
}

.investment-analysis__desc {
  color: #475569;
  font-size: 14px;
  margin: 0 0 16px;
  line-height: 1.6;
}

.investment-analysis__features {
  list-style: none;
  padding: 0;
  margin: 0;
  color: #475569;
  font-size: 14px;
}

.investment-analysis__features li {
  margin-bottom: 8px;
  line-height: 1.6;
}

/* Chart Section */
.investment-analysis__chart-section {
  background: #fff;
  border: 1px solid #eef0f4;
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 24px;
  box-shadow: 0 10px 24px rgba(16, 24, 40, 0.06);
}

.investment-analysis__section-title {
  font-size: 20px;
  font-weight: 700;
  color: #0f172a;
  margin: 0 0 20px;
}

/* Legend Boxes */
.investment-analysis__legends {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.investment-analysis__legend-box {
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 16px;
  background: #f9fafb;
  position: relative;
}

.investment-analysis__legend-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.investment-analysis__legend-title {
  font-weight: 700;
  font-size: 14px;
  color: #0f172a;
}

.investment-analysis__legend-toggle-all {
  padding: 4px 12px;
  background: #93c5fd;
  color: #fff;
  border: none;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  gap: 4px;
}

.investment-analysis__legend-toggle-all:hover {
  background: #60a5fa;
}

.investment-analysis__legend-items {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.investment-analysis__legend-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #475569;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  padding: 8px 12px;
  cursor: pointer;
  transition: all 0.2s;
  text-align: left;
  width: 100%;
}

.investment-analysis__legend-item:hover {
  background: #f1f5f9;
  border-color: #cbd5e1;
}

.investment-analysis__legend-item.is-active {
  background: #eff6ff;
  border-color: #3b82f6;
  color: #1e40af;
  font-weight: 600;
}

.investment-analysis__legend-item:not(.is-active) {
  opacity: 0.5;
}

.investment-analysis__legend-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  display: inline-block;
  flex-shrink: 0;
}

/* Chart Container */
.investment-analysis__chart-container {
  position: relative;
  height: 400px;
  margin-bottom: 24px;
}

/* Comparison Table */
.investment-analysis__comparison {
  margin-top: 24px;
}

.investment-analysis__history-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #2563eb;
  font-size: 14px;
  text-decoration: none;
  margin-bottom: 16px;
  transition: color 0.2s;
}

.investment-analysis__history-link:hover {
  color: #1d4ed8;
}

.investment-analysis__comparison-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.investment-analysis__comparison-table thead {
  background: #f9fafb;
}

.investment-analysis__comparison-table th {
  padding: 12px 16px;
  text-align: left;
  font-weight: 700;
  font-size: 14px;
  color: #374151;
  border-bottom: 2px solid #e5e7eb;
}

.investment-analysis__comparison-table td {
  padding: 12px 16px;
  font-size: 14px;
  color: #111827;
  border-bottom: 1px solid #e5e7eb;
}

.investment-analysis__comparison-table tbody tr:last-child td {
  border-bottom: none;
}

.investment-analysis__help {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #e2e8f0;
  color: #64748b;
  font-size: 11px;
  font-weight: 700;
  margin-left: 4px;
  cursor: help;
}

/* Action Buttons */
.investment-analysis__actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  padding-top: 24px;
}

.investment-analysis__btn {
  padding: 12px 24px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
  border: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.investment-analysis__btn--primary {
  background: linear-gradient(90deg, #FF9800 0%, #FFC107 100%);
  color: #fff;
  box-shadow: 0 8px 18px rgba(47, 79, 230, 0.20);
}

.investment-analysis__btn--primary:hover {
  box-shadow: 0 12px 24px rgba(47, 79, 230, 0.30);
  transform: translateY(-1px);
}

.investment-analysis__btn--secondary {
  background: #fff;
  color: #2563eb;
  border: 1px solid #2563eb;
}

.investment-analysis__btn--secondary:hover {
  background: #2563eb;
  color: #fff;
}

/* Form Sections */
.investment-analysis__forms {
  margin-top: 24px;
}

.block-flex {
  gap: 20px 0;
}

.block-item {
  background: #fff;
  border: 1px solid #eef0f4;
  border-radius: 12px;
  box-shadow: 0 10px 24px rgba(16, 24, 40, 0.06);
  overflow: hidden;
}

.block-item__title {
  font-size: 18px;
  font-weight: 700;
  color: #0f172a;
  padding: 18px 20px;
  margin: 0;
  background: #f9fafb;
  border-bottom: 1px solid #eef0f4;
}

.block-item__body {
  padding: 20px;

}

.block-item__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  gap: 16px;
}

.block-item__row:last-child {
  margin-bottom: 0;
}

/* Width variables support for nested rows */


@media (max-width: 992px) {
 
}

.block-item__label {
  font-size: 14px;
  font-weight: 500;
  color: #475569;
  flex: 0 0 auto;
  min-width: 180px;
  display: flex;
  align-items: center;
}

.block-item__label--checkbox {
  gap: 8px;
  cursor: pointer;
}

.block-item__checkbox {
  width: 18px;
  height: 18px;
  cursor: pointer;
  flex-shrink: 0;
  accent-color: #3b82f6;
}

.block-item__help {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #e2e8f0;
  color: #64748b;
  font-size: 11px;
  font-weight: 700;
  margin-left: 4px;
  cursor: help;
}

.block-item__field-group {
  display: flex;
  align-items: center;
  flex: 1;
  max-width: 300px;
  background: #f9fafb;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  overflow: hidden;
}

.block-item__input {
  flex: 1;
  padding: 10px 12px;
  border: none;
  background: white;
  font-size: 14px;
  color: #0f172a;
  outline: none;
  min-width: 0;
  &:disabled {
    background: #9e9e9e1c;
    color: #64748b;
    cursor: not-allowed;
  }
}

.block-item__input:focus {
  background: #fff;
}

.block-item__select {
  flex: 1;
  max-width: 300px;
  padding: 10px 12px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #f9fafb;
  font-size: 14px;
  color: #0f172a;
  outline: none;
  cursor: pointer;
}

.block-item__select:focus {
  background: #fff;
  border-color: #3b82f6;
}

.block-item__suffix {
  padding: 6px 12px;
  background: #e2e8f0;
  color: #64748b;
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
  flex-shrink: 0;
}

.block-item__address-btn {
  flex: 1;
  max-width: 300px;
  padding: 10px 12px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #f9fafb;
  font-size: 14px;
  color: #0f172a;
  text-align: left;
  cursor: pointer;
  transition: all 0.2s;
  outline: none;
}

.block-item__address-btn:hover {
  background: #fff;
  border-color: #3b82f6;
}

.block-item__dual-input {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  max-width: 300px;
}

.block-item__dual-input .block-item__field-group {
  max-width: none;
}

.block-item__dual-input .block-item__field-group:first-child {
  flex: 0 0 100px;
}

.block-item__dual-input .block-item__field-group:last-child {
  flex: 1;
}

/* Details Table */
.investment-analysis__details-table-wrapper {
  overflow-x: auto;
  max-height: 70vh;
  overflow-y: auto;
}

.investment-analysis__details-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  background: #fff;
}

.investment-analysis__details-table thead {
  position: sticky;
  top: 0;
  background: #f9fafb;
  z-index: 10;
}

.investment-analysis__details-table th {
  padding: 12px 8px;
  text-align: center;
  font-weight: 700;
  color: #0f172a;
  border: 1px solid #e2e8f0;
  background: #f9fafb;
  white-space: nowrap;
}

.investment-analysis__details-table th:first-child {
  text-align: left;
  min-width: 200px;
  position: sticky;
  left: 0;
  z-index: 11;
  background: #f9fafb;
}

.investment-analysis__details-table td {
  padding: 10px 8px;
  text-align: right;
  border: 1px solid #e2e8f0;
  color: #475569;
}

.investment-analysis__details-table td:first-child {
  text-align: left;
  font-weight: 500;
  position: sticky;
  left: 0;
  background: #fff;
  z-index: 1;
}

.investment-analysis__details-section-row {
  background: #f1f5f9;
}

.investment-analysis__details-section-header {
  font-weight: 700;
  font-size: 14px;
  color: #0f172a;
  padding: 12px 8px;
  background: #f1f5f9;
  position: sticky;
  left: 0;
  z-index: 2;
}

.investment-analysis__details-label {
  font-weight: 500;
  color: #475569;
  min-width: 200px;
}

.investment-analysis__details-value {

  color: #0f172a;
}

.investment-analysis__details-table tbody tr:hover {
  background: #f8fafc;
}

/* Responsive */
@media (max-width: 768px) {
  .block-item__row {
    flex-direction: column;
    align-items: flex-start;
  }

  .block-item__label {
    min-width: auto;
    width: 100%;
  }

  .block-item__field-group,
  .block-item__select,
  .block-item__address-btn,
  .block-item__dual-input {
    max-width: 100%;
    width: 100%;
  }

  .investment-analysis__details-table {
    font-size: 11px;
  }

  .investment-analysis__details-table th,
  .investment-analysis__details-table td {
    padding: 8px 4px;
  }
}