/*******************************************************
 * CG1 Helper — Submission Wizard
 *******************************************************/


/*******************************************************
 * WIZARD CARD
 *******************************************************/

.wizard-card {
  width: 100%;
  max-width: 1100px;
  margin: 20px auto;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  position: relative;
}


/*******************************************************
 * WIZARD HEADER
 *******************************************************/

.wizard-header {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 22px;
  background: var(--color-bg-light);
  border-bottom: 3px solid var(--color-accent);
}

.wizard-header h2 {
  margin: 0 0 4px;
  color: var(--color-primary);
  font-size: 1.3rem;
}

.wizard-header p {
  margin: 0;
  color: #555;
  font-size: 0.9rem;
}

.wizard-count {
  align-self: center;
  padding: 6px 10px;
  background: #fffbea;
  border: 1px solid var(--color-accent);
  border-radius: 999px;
  color: var(--color-primary);
  font-size: 0.85rem;
  font-weight: 700;
  white-space: nowrap;
}


/*******************************************************
 * WIZARD PROGRESS
 *******************************************************/

.wizard-progress {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 8px;
  margin: 0;
  padding: 16px 22px;
  list-style: none;
  background: #f8fbf9;
  border-bottom: 1px solid #dce8e1;
}

.wizard-progress li {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 8px 6px;
  background: #fff;
  border: 1px solid #d7e7dd;
  border-radius: 999px;
  color: #52635a;
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1.1;
  text-align: center;
  box-sizing: border-box;
}

.wizard-progress li.active,
.wizard-progress li.done {
  background: #e6f9e6;
  border-color: #b2d8b2;
  color: var(--color-primary);
}

.wizard-progress li.jumpable {
  cursor: pointer;
}

.wizard-progress li.jumpable:hover {
  background: #dff5e4;
  border-color: var(--color-primary);
}


/*******************************************************
 * WIZARD FORM SHELL
 *******************************************************/

#stepForm {
  display: flex;
  flex-direction: column;
  min-height: 300px;
  padding: 18px 24px 20px;
  transition: min-height 0.28s ease;
}

#stepForm.upload-step-active {
  min-height: 300px;
}

#stepForm.standard-step-active {
  min-height: 430px;
}


/*******************************************************
 * WIZARD STEPS
 *******************************************************/

.wizard-step {
  position: relative;
  display: none;
  padding-top: 6px;
  animation: stepIn 0.22s ease-out;
}

.wizard-step.active {
  display: block;
}

@keyframes stepIn {
  from {
    opacity: 0;
    transform: translateX(12px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.wizard-step h3 {
  margin: 0 40px 18px 0;
  color: var(--color-primary);
  font-size: 1.15rem;
}

.step-info-btn {
  position: absolute;
  top: 6px;
  right: 0;
}


/*******************************************************
 * FORM FIELDS
 *******************************************************/

.field-label,
.wizard-step label.field-label {
  display: block;
  margin: 0 0 6px;
  color: #222;
  font-weight: 700;
}

.wizard-step input[type="file"],
.wizard-step input[type="number"],
.wizard-step input[type="password"],
.wizard-step input[type="text"],
.wizard-step input[type="date"],
.wizard-step select {
  width: 100%;
  min-height: 46px;
  padding: 0.65rem;
  border: 1px solid #cfd8d3;
  border-radius: var(--radius);
  font-family: var(--font-family-base);
  font-size: 0.95rem;
  box-sizing: border-box;
}

.wizard-step input:disabled,
.wizard-step input[readonly] {
  background: #eef4f1;
  color: #777;
  cursor: not-allowed;
}

.wizard-step input[type="checkbox"],
.wizard-step input[type="radio"] {
  width: auto;
  min-height: auto;
  margin-right: 8px;
}


/*******************************************************
 * FIELD GRIDS
 *******************************************************/

.field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin-top: 18px;
}

.field-grid.single,
.field-grid.single-full {
  grid-template-columns: minmax(0, 320px);
}

.field-grid > div {
  display: flex;
  flex-direction: column;
}


/*******************************************************
 * VALIDATION BADGES
 *******************************************************/

/*
 * Source badge container.
 * JS writes the real validation badges here so the wizard footer can clone them.
 * On Step 1 we only display the initial upload prompt under the file input;
 * validation success/error badges are shown in the footer between Back and Next.
 */
#validationResults {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  min-height: 26px;
  margin-top: 10px;
}

#validationResults:empty {
  display: none;
}

.wizard-step-upload #validationResults .validation-badge:not(#uploadStart) {
  display: none;
}

.wizard-step-upload #validationResults:not(:has(#uploadStart)) {
  display: none;
}

.wizard-step-upload #uploadStart.validation-badge.note {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  background: #fff8e8;
  border: 1px solid #ead7a6;
  border-radius: 8px;
  color: #8a6500;
  font-size: 12px;
  font-weight: 500;
  font-style: normal;
  box-shadow: none;
}

/* Shared badge style */
.validation-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: var(--radius);
  font-size: 0.85rem;
  font-weight: 500;
  line-height: 1.3;
}

.validation-badge.valid {
  background: #e6f2ec;
  color: var(--color-primary);
  border: 1px solid #cde5d8;
}

.validation-badge.invalid {
  background: #fdeaea;
  color: var(--color-error);
  border: 1px solid #f3c2c2;
}

.validation-badge.note {
  background: #fff8e1;
  color: #8a6500;
  border: 1px solid #f0d999;
}

.submit-review-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: flex-start;
  margin-top: 10px;
}

.submit-review-badges .validation-badge {
  width: auto;
  white-space: nowrap;
}


/*******************************************************
 * CHOICE CARDS
 *******************************************************/

.choice-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 20px;
}

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

.fx-grid {
  max-width: none;
}

.choice-card {
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: 10px;
  row-gap: 4px;
  min-height: 100px;
  padding: 14px;
  background: #fff;
  border: 1px solid #d7e7dd;
  border-radius: var(--radius);
  cursor: pointer;
  box-sizing: border-box;
}

.choice-card.selected {
  background: #e6f9e6;
  border-color: #b2d8b2;
}

.choice-card input {
  grid-row: span 2;
  width: 13px;
  height: 13px;
  margin-top: 4px;
  flex-shrink: 0;
}

.choice-card input[type="radio"] {
  appearance: auto;
  -webkit-appearance: radio;
  transform: none;
}

.choice-card input[type="checkbox"] {
  transform: none;
}

.choice-card input[type="radio"]:checked + strong {
  font-weight: 700;
}

.choice-card strong {
  color: var(--color-primary);
}

.choice-card span {
  color: #555;
  font-size: 0.88rem;
  line-height: 1.35;
}



.choice-card {
  position: relative;
  padding-right: 44px;
}

.choice-card .choice-info-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
}

.choice-card .choice-info-btn + * {
  pointer-events: auto;
}

.choice-card.disabled {
  opacity: 0.55;
  cursor: not-allowed;
  background: #f3f3f3;
}

.choice-card.disabled input {
  width: 13px;
  height: 13px;
  margin-top: 4px;
  cursor: not-allowed;
  transform: none !important;
}

.choice-card.disabled input[type="radio"] {
  appearance: auto !important;
  -webkit-appearance: radio !important;
}

.choice-card.disabled strong,
.choice-card.disabled span {
  color: #777;
}

.fx-disabled-note {
  grid-column: 2;
  display: block;
  margin-top: 6px;
  color: #777;
  font-size: 0.78rem;
  line-height: 1.35;
}

.choice-card.locked {
  background: #f3f4f3;
  color: #666;
  cursor: default;
}

.choice-card.locked strong {
  color: #555;
}

.toggle-warning-text {
  color: #8a6500 !important;
  font-weight: normal;
  font-size: 0.82rem;
  line-height: 1.28;
}

.choice-card.warning {
  background: #fff8e6;
  border-color: #f2d27a;
}

/*******************************************************
 * PERSONAL EXEMPTION
 *******************************************************/

.exemption-adjust-row {
  display: none;
  align-items: center;
  gap: 10px;
  justify-content: flex-end;
  max-width: calc(50% - 8px);
  margin-top: 10px;
  margin-left: calc(50% + 8px);
}

.exemption-adjust-row.visible {
  display: flex;
}


/*******************************************************
 * LOSSES / CARRYFORWARD
 *******************************************************/

#bnbCarryforwardFile:disabled {
  background: #f3f4f3;
  color: #777;
  cursor: not-allowed;
}


/*******************************************************
 * PAYMENTS STEP
 *******************************************************/

.payment-layout {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.payment-column {
  display: grid;
  align-content: start;
}

.payment-column:first-child .field-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.payment-column:last-child .field-grid {
  grid-template-columns: 1fr;
}

.payment-input-row {
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
}

.payment-column .field-grid.single-full {
  grid-template-columns: 1fr;
}

.payment-column .field-grid.single-full input {
  width: 100%;
}


/*******************************************************
 * TERMS / SUBMIT STEP
 *******************************************************/

.terms-box {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  width: 100%;
  margin-top: 56px;
  margin-bottom: 2px;
  padding: 12px;
  background: var(--color-bg-light);
  border-left: 4px solid var(--color-accent);
  border-radius: 6px;
  font-size: 0.85rem;
  line-height: 1.45;
  box-sizing: border-box;
}

.terms-box input {
  margin-top: 3px;
}

.submit-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 18px;
  align-items: start;
  margin-top: 14px;
}

.submit-tile {
  padding: 14px;
  background: #f8fbf9;
  border: 1px solid #d7e7dd;
  border-radius: var(--radius);
  box-sizing: border-box;
}

.submit-tile h4 {
  margin: 0 0 12px;
  color: var(--color-primary);
  font-size: 1rem;
}

.submit-layout + .terms-box {
  margin-top: 28px;
}


/*******************************************************
 * WIZARD ACTION BUTTONS
 *******************************************************/

.wizard-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding-top: 16px;
  border-top: 1px solid #e3ece7;
  margin-top: auto;
}

.wizard-right {
  display: flex;
  gap: 10px;
}

.wizard-actions .btn {
  margin: 0;
}

.secondary-btn {
  background: #fff;
  border: 1px solid var(--color-primary);
  color: var(--color-primary);
}

.secondary-btn:hover,
.secondary-btn:focus {
  background: #e6f2ec;
  color: var(--color-primary);
}

#submitBtn.hidden {
  display: none !important;
}

.wizard-step-badge {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  min-height: 40px;
  overflow: hidden;
}

.wizard-step-badge .validation-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  max-width: none;
  padding: 6px 12px;
  font-size: 0.85rem;
  line-height: 1.2;
  white-space: nowrap;
}


/*******************************************************
 * SUBMISSION UPLOAD PROMPT
 *******************************************************/

.wizard-step-upload .validation-badge.note {
  display: inline-flex;
  align-items: center;
  gap: 6px;

  padding: 6px 10px;

  background: #fff8e8;
  border: 1px solid #ead7a6;

  color: #8a6500;
  font-size: 12px;
  font-weight: 500;
  font-style: normal;

  border-radius: 8px;

  box-shadow: none;
}

/*******************************************************
 * SOFT STATUS CALLOUT
 *******************************************************/

.soft-status-callout {
  display: flex;
  align-items: center;
  gap: 8px;

  margin-top: 14px;
  padding: 10px 12px;

  background: #fff8e6;
  border: 1px solid #f2d27a;
  border-left: 4px solid #f0c200;
  border-radius: 6px;

  color: #6f5600;
  font-size: 0.88rem;
  line-height: 1.35;
}

.soft-status-callout .status-icon {
  flex-shrink: 0;
  font-size: 0.95rem;
}

/*******************************************************
 * RESULT NOTES
 *******************************************************/
.broker-fee-note {
  margin: 16px 30px;
}

/*******************************************************
 * FUND CLASSIFICATION MODAL
 *******************************************************/

#fundClassificationModal .modal-content {
  width: min(96vw, 980px);
  max-height: calc(100vh - 48px);
  padding: 0;
  overflow: hidden;
  background: #fff;
}

.fund-classification-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 22px;
  background: var(--color-bg-light);
  border-bottom: 3px solid var(--color-accent);
  border-radius: 8px 8px 0 0;
}

.fund-classification-modal-header h2 {
  margin: 0;
  color: var(--color-primary);
  font-size: 1.25rem;
}

.fund-classification-close {
  border: 0;
  background: transparent;
  color: var(--color-primary);
  cursor: pointer;
  font-size: 1.6rem;
  font-weight: 700;
}

.fund-classification-modal-body {
  padding: 22px 30px 26px;
}

.fund-classification-table-wrap {
  max-height: 58vh;
  margin: 16px 0;
  overflow: auto;
  border-top: 1px solid #d7e7dd;
  border-bottom: 1px solid #d7e7dd;
}

.fund-classification-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.fund-classification-table thead th {
  padding: 11px 12px;
  background: var(--color-bg-light);
  border-bottom: 1px solid #cbded3;
  color: var(--color-primary);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0;
  text-align: center;
  text-transform: none;
}

.fund-classification-table thead th:first-child {
  border-left: 4px solid var(--color-accent);
  text-align: left;
}

.fund-classification-table tbody tr:nth-child(even) td:not(:first-child) {
  background: #fafafa;
}

.fund-classification-table tbody tr:hover td:not(:first-child) {
  background: #eef5f0;
}

.fund-classification-table td {
  padding: 10px 12px;
  border-bottom: 1px solid #d6d6d6;
  vertical-align: middle;
}

.fund-classification-table td:first-child {
  width: 28%;
  background: var(--color-bg-light);
  border-left: 4px solid var(--color-accent);
  color: var(--color-primary);
  font-size: 0.9rem;
  font-weight: 700;
}
/*******************************************************
 * RESPONSIVE
 *******************************************************/

@media (max-width: 760px) {
  .wizard-header {
    flex-direction: column;
  }

  #stepForm {
    padding: 22px 18px;
  }

  .choice-grid,
  .rules-grid,
  .fx-grid,
  .field-grid,
  .payment-layout {
    grid-template-columns: 1fr;
  }

  .exemption-adjust-row {
    justify-content: flex-start;
    max-width: none;
    margin-left: 0;
  }

  .wizard-actions {
    flex-direction: column;
  }

  .wizard-step-badge {
    width: 100%;
    flex-wrap: wrap;
    order: 2;
  }

  .wizard-right {
    width: 100%;
    flex-direction: column;
    order: 3;
  }

  .wizard-actions .btn {
    width: 100%;
    max-width: none;
  }
}

/*******************************************************
 * FUND CLASSIFICATION MODAL — REVIEW TABLE DETAILS
 *******************************************************/
#fundClassificationModal {
  z-index: 3000;
}

#fundClassificationModal .fund-classification-content {
  width: min(96vw, 980px);
}

.fund-classification-intro {
  margin: 0 0 18px;
  color: #222;
  font-size: 1rem;
  line-height: 1.45;
}

.fund-classification-table-wrap {
  border: 1px solid #d7e7dd;
  border-left: 0;
  border-radius: 6px;
}

.fund-classification-table td:first-child strong {
  display: block;
  margin-bottom: 2px;
  color: #071d12;
  font-size: 1rem;
}

.fund-classification-table td:first-child small,
.fund-classification-table td small {
  display: block;
  margin-top: 2px;
  color: #444;
  font-size: 0.8rem;
  font-weight: 500;
}

.fund-asset-name {
  display: block;
  margin-top: 4px;
  color: #3f3f3f;
  font-weight: 500;
  line-height: 1.3;
}

.fund-research-link {
  color: #005bd3;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

.fund-research-link:hover,
.fund-research-link:focus {
  text-decoration: underline;
}

.fund-classification-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 118px;
  padding: 6px 10px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-weight: 600;
  line-height: 1.15;
  white-space: nowrap;
}

.fund-classification-badge.offshore {
  background: #fff8e6;
  border-color: #f2cf75;
  color: #8a5a00;
}

.fund-classification-badge.cgt {
  background: #e6f4ec;
  border-color: #c8e3d4;
  color: var(--color-primary);
}

.fund-classification-badge.review {
  background: #fff3cd;
  border-color: #f0d98b;
  color: #6f5600;
}

.fund-confidence-cell {
  white-space: nowrap;
}

.fund-confidence-bars {
  display: inline-flex;
  gap: 4px;
  margin-right: 8px;
  vertical-align: middle;
}

.fund-confidence-bars span {
  width: 14px;
  height: 14px;
  border-radius: 3px;
  background: #d9d9d9;
  box-shadow: inset 0 0 0 1px rgba(0,0,0,0.04);
}

.fund-confidence-bars span.filled {
  background: var(--color-primary);
}

.fund-classification-override {
  width: 100%;
  min-width: 230px;
  padding: 9px 12px;
  border: 1px solid #cfd7d2;
  border-radius: 8px;
  background: #fff;
  color: #111;
  font-size: 0.92rem;
}

.fund-classification-note {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-top: 18px;
  padding: 14px 18px;
  background: #eef8f3;
  border: 1px solid #d8e9df;
  border-radius: 8px;
  color: #222;
  line-height: 1.45;
}

.fund-classification-note-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 28px;
  height: 28px;
  border: 2px solid var(--color-primary);
  border-radius: 50%;
  color: var(--color-primary);
  font-weight: 700;
}

.fund-classification-actions {
  display: flex;
  justify-content: flex-end;
  gap: 14px;
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid #e2e8e4;
}

.fund-classification-actions .btn {
  width: auto;
  min-width: 160px;
  margin: 0;
}

@media (max-width: 760px) {
  .fund-classification-modal-body {
    padding: 18px 16px 20px;
  }

  .fund-classification-table {
    min-width: 780px;
  }

  .fund-classification-actions {
    flex-direction: column;
  }

  .fund-classification-actions .btn {
    width: 100%;
  }
}

/*******************************************************
 * FUND CLASSIFICATION MODAL — LAYOUT TIGHTENING
 * -----------------------------------------------------
 * Keeps the review table readable when many ETF rows are
 * present while ensuring the note and action buttons remain
 * visible with comfortable padding.
 *******************************************************/
#fundClassificationModal .modal-content,
#fundClassificationModal .fund-classification-content {
  width: min(98vw, 1080px);
  max-height: calc(100vh - 32px);
  display: flex;
  flex-direction: column;
}

.fund-classification-modal-header {
  flex: 0 0 auto;
  padding: 16px 22px;
}

.fund-classification-modal-body {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  min-height: 0;
  padding: 18px 30px 22px;
  overflow: hidden;
}

.fund-classification-intro {
  flex: 0 0 auto;
  margin-bottom: 14px;
  font-size: 0.95rem;
}

.fund-classification-table-wrap {
  flex: 1 1 auto;
  min-height: 230px;
  max-height: none;
  margin: 8px 0 14px;
  overflow: auto;
}

.fund-classification-table {
  table-layout: fixed;
  font-size: 0.84rem;
}

.fund-classification-table th:nth-child(1),
.fund-classification-table td:nth-child(1) {
  width: 25%;
}

.fund-classification-table th:nth-child(2),
.fund-classification-table td:nth-child(2) {
  width: 17%;
}

.fund-classification-table th:nth-child(3),
.fund-classification-table td:nth-child(3) {
  width: 18%;
}

.fund-classification-table th:nth-child(4),
.fund-classification-table td:nth-child(4) {
  width: 14%;
}

.fund-classification-table th:nth-child(5),
.fund-classification-table td:nth-child(5) {
  width: 26%;
}

.fund-classification-table thead th {
  position: sticky;
  top: 0;
  z-index: 1;
  padding: 10px 12px;
  font-size: 0.84rem;
}

.fund-classification-table td {
  padding: 10px 12px;
}

.fund-classification-table td:first-child strong {
  font-size: 0.94rem;
}

.fund-asset-name {
  font-size: 0.82rem;
  line-height: 1.25;
}

.fund-research-link {
  display: inline-block;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  vertical-align: top;
}

.fund-classification-badge {
  min-width: 112px;
  padding: 6px 9px;
  font-size: 0.84rem;
}

.fund-confidence-bars {
  margin-right: 6px;
}

.fund-confidence-bars span {
  width: 13px;
  height: 13px;
}

.fund-classification-override {
  min-width: 0;
  max-width: 100%;
  padding: 8px 10px;
  font-size: 0.84rem;
}

.fund-classification-note {
  flex: 0 0 auto;
  margin-top: 6px;
  padding: 12px 16px;
  font-size: 0.9rem;
}

.fund-classification-note-icon {
  width: 26px;
  height: 26px;
}

.fund-classification-actions {
  flex: 0 0 auto;
  margin-top: 18px;
  padding-top: 16px;
  padding-bottom: 2px;
}

@media (max-height: 760px) {
  #fundClassificationModal .modal-content,
  #fundClassificationModal .fund-classification-content {
    max-height: calc(100vh - 18px);
  }

  .fund-classification-modal-header {
    padding: 12px 20px;
  }

  .fund-classification-modal-body {
    padding: 14px 26px 16px;
  }

  .fund-classification-intro {
    margin-bottom: 10px;
    font-size: 0.9rem;
  }

  .fund-classification-table-wrap {
    min-height: 210px;
    margin-bottom: 12px;
  }

  .fund-classification-table td {
    padding-top: 8px;
    padding-bottom: 8px;
  }

  .fund-classification-note {
    padding: 10px 14px;
    font-size: 0.86rem;
  }

  .fund-classification-actions {
    margin-top: 14px;
    padding-top: 14px;
  }
}



/*******************************************************
 * FUND CLASSIFICATION MODAL — FINAL READABILITY TWEAKS
 *******************************************************/
.fund-classification-intro-card {
  flex: 0 0 auto;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin: 0 0 14px;
  padding: 12px 16px;
  background: #f3faf6;
  border: 1px solid #d9eadf;
  border-left: 4px solid var(--color-accent);
  border-radius: 8px;
  color: #1f2f27;
  font-size: 0.86rem;
  line-height: 1.42;
}

.fund-classification-intro-card strong {
  display: block;
  margin-bottom: 2px;
  color: var(--color-primary);
  font-size: 0.9rem;
  font-weight: 700;
}

.fund-classification-intro-card span:last-child {
  display: block;
}

.fund-classification-intro-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 24px;
  height: 24px;
  border: 2px solid var(--color-primary);
  border-radius: 50%;
  color: var(--color-primary);
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1;
}

.fund-classification-table tbody td {
  font-size: 0.79rem;
  line-height: 1.35;
}

.fund-classification-table thead th {
  font-size: 0.84rem;
  font-weight: 700;
}

.fund-classification-table td:first-child strong {
  font-size: 0.88rem;
}

.fund-classification-table td:first-child small,
.fund-classification-table td small {
  font-size: 0.72rem;
}

.fund-asset-name {
  font-size: 0.77rem;
}

.fund-research-link {
  font-size: 0.8rem;
}

.fund-classification-badge {
  min-width: 106px;
  padding: 5px 8px;
  font-size: 0.78rem;
}

.fund-confidence-cell {
  font-size: 0.78rem;
}

.fund-confidence-bars span {
  width: 12px;
  height: 12px;
}

.fund-classification-override {
  font-size: 0.78rem;
}

@media (max-height: 760px) {
  .fund-classification-intro-card {
    margin-bottom: 10px;
    padding: 10px 14px;
    font-size: 0.82rem;
  }

  .fund-classification-intro-card strong {
    font-size: 0.86rem;
  }
}

/*******************************************************
 * FUND CLASSIFICATION MODAL — ALIGNMENT + ICON POLISH
 *******************************************************/
.fund-classification-intro-card,
.fund-classification-note {
  align-items: center;
}

.fund-classification-card-icon {
  flex: 0 0 auto;
  width: 36px;
  height: 36px;
  object-fit: contain;
}

.fund-classification-table th,
.fund-classification-table td {
  vertical-align: middle;
}

.fund-classification-table th:first-child,
.fund-classification-table td:first-child,
.fund-classification-table th:nth-child(2),
.fund-classification-table td:nth-child(2) {
  text-align: left;
}

.fund-classification-table th:nth-child(3),
.fund-classification-table td:nth-child(3),
.fund-classification-table th:nth-child(4),
.fund-classification-table td:nth-child(4),
.fund-classification-table th:nth-child(5),
.fund-classification-table td:nth-child(5) {
  text-align: center;
}

.fund-classification-table tbody td {
  padding-top: 11px;
  padding-bottom: 11px;
}

.fund-classification-table td:first-child {
  padding-left: 14px;
}

.fund-confidence-cell {
  display: table-cell;
  text-align: center;
}

.fund-confidence-cell > .fund-confidence-bars,
.fund-confidence-cell > span:last-child {
  display: inline-flex;
  align-items: center;
  vertical-align: middle;
}

.fund-confidence-bars {
  justify-content: center;
  margin-right: 7px;
}

.fund-classification-override {
  display: block;
  width: 235px;
  margin: 0 auto;
  text-align: left;
}

.fund-classification-intro-icon,
.fund-classification-note-icon {
  display: none;
}

@media (max-width: 760px) {
  .fund-classification-card-icon {
    width: 30px;
    height: 30px;
  }

  .fund-classification-override {
    width: 220px;
  }
}

/*******************************************************
 * FX CURRENT-YEAR WARNING
 *******************************************************/
.fx-current-year-note {
  grid-column: 2;
  display: block;
  margin-top: 6px;
  color: #8a6500;
  font-size: 0.78rem;
  line-height: 1.35;
}
