/* Scoped styles for Cash ISA vs Stocks & Shares ISA Calculator */

.cisa-wrapper {
  margin: 0 auto !important;
  width: 100% !important;
  max-width: 1100px !important;
  box-sizing: border-box;
  padding: 0;
}

/* Override WordPress block layout constraints */
.is-layout-constrained > .cisa-wrapper,
.is-layout-constrained .cisa-wrapper,
[class*="wp-container-core-group-is-layout"] .cisa-wrapper,
[class*="wp-container-core-group-is-layout"] > .cisa-wrapper {
  max-width: 1100px !important;
  margin-left: auto !important;
  margin-right: auto !important;
  width: 100% !important;
}

.cisa-calculator {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #083141;
  background: #ffffff;
  border: 1px solid #d1e7dd;
  border-radius: 16px;
  padding: 1.5rem;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.06);
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.cisa-title {
  font-size: 1.5rem;
  margin: 0 0 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.cisa-title::before {
  font-size: 1.8rem;
}

.cisa-intro {
  margin: 0 0 1.5rem;
  line-height: 1.5;
  color: #394f5a;
}

.cisa-steps {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.cisa-step {
  border: 1px solid #ebf2f4;
  border-radius: 12px;
  padding: 1rem 1rem 1.1rem;
  background: #f9fbfc;
}

.cisa-step-title {
  font-size: 1.1rem;
  margin: 0 0 0.25rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.cisa-step-help {
  margin: 0 0 0.75rem;
  font-size: 0.9rem;
  color: #516773;
}

.cisa-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.75rem 1rem;
}

.cisa-grid-growth {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.25rem 1.5rem;
  align-items: start;
}

.cisa-grid-growth .cisa-field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.cisa-grid-growth .cisa-field label {
  min-height: 2.5em;
  display: flex;
  align-items: flex-start;
}

.cisa-inflation-group {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  align-items: start;
  padding: 1rem 1.25rem;
  background: #f0f9ff;
  border: 1px solid #bae6fd;
  border-radius: 8px;
  margin-top: 0.5rem;
}

.cisa-inflation-group .cisa-field {
  margin: 0;
}

.cisa-inflation-group .cisa-field-checkbox {
  align-items: center;
  justify-content: flex-start;
  padding-top: 0.25rem;
}

@media (max-width: 768px) {
  .cisa-inflation-group {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
}

.cisa-field {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  justify-content: flex-start;
}

.cisa-field label {
  font-size: 0.87rem;
  font-weight: 500;
  color: #083141;
  line-height: 1.4;
  display: block;
}

.cisa-input {
  border-radius: 8px;
  border: 1px solid #cbd5df;
  padding: 0.45rem 0.6rem;
  font-size: 0.95rem;
  outline: none;
  width: 100%;
  box-sizing: border-box;
}

.cisa-input:focus {
  border-color: #59747c;
  box-shadow: 0 0 0 2px rgba(89, 116, 124, 0.25);
}

.cisa-field-checkbox {
  align-items: flex-start;
  justify-content: center;
}

.cisa-input-checkbox {
  margin-right: 0.5rem;
}

.cisa-checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.9rem;
  cursor: pointer;
}

.cisa-checkbox-label-text {
  line-height: 1.4;
}

.cisa-tooltip-icon {
  margin-left: 0.5rem;
  font-size: 0.85rem;
  opacity: 0.7;
  cursor: help;
  vertical-align: middle;
}

/* Buttons */
.cisa-btn-group {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-top: 0.75rem;
}

/* Presets */
.cisa-presets {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.5rem;
  align-items: center;
}

.cisa-preset-btn {
  padding: 0.5rem 0.75rem;
  font-size: 0.85rem;
  background: #fff;
  border: 1px solid #cbd5df;
  color: #083141;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s;
}

.cisa-preset-btn:hover {
  background: #f9fbfc;
  border-color: #59747c;
}

/* Chart */
.cisa-chart-container {
  width: 100%;
  height: 400px;
  margin: 1rem 0;
  border: 1px solid #ebf2f4;
  border-radius: 12px;
  padding: 1.5rem;
  background: #fff;
  position: relative;
  box-sizing: border-box;
  overflow: hidden;
}

.cisa-chart {
  width: 100%;
  height: 100%;
  display: block;
  cursor: crosshair;
}

.cisa-chart-tooltip {
  display: none;
  position: absolute;
  background: #083141;
  color: #fff;
  padding: 0.5rem;
  border-radius: 6px;
  font-size: 0.85rem;
  pointer-events: none;
  z-index: 1000;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  line-height: 1.4;
}

/* Info Box */
.cisa-info-box {
  background: #eaf3f6;
  border: 1px solid #59747c;
  border-radius: 12px;
  padding: 1rem;
  margin: 1rem 0;
  font-size: 0.9rem;
  line-height: 1.6;
  color: #083141;
}

.cisa-info-box h4 {
  margin: 0 0 0.5rem;
  font-size: 1rem;
  color: #083141;
}

.cisa-info-box ul {
  margin: 0.5rem 0;
  padding-left: 1.5rem;
}

.cisa-info-box li {
  margin: 0.25rem 0;
}

/* Tooltip */
.cisa-tooltip {
  position: relative;
  display: inline-block;
  cursor: help;
  border-bottom: 1px dotted #59747c;
}

.cisa-tooltip .cisa-tooltip-text {
  visibility: hidden;
  width: 250px;
  background-color: #083141;
  color: #fff;
  text-align: left;
  border-radius: 6px;
  padding: 0.5rem;
  position: absolute;
  z-index: 1000;
  bottom: 125%;
  left: 50%;
  margin-left: -125px;
  opacity: 0;
  transition: opacity 0.3s;
  font-size: 0.85rem;
  line-height: 1.4;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.cisa-tooltip:hover .cisa-tooltip-text {
  visibility: visible;
  opacity: 1;
}

.cisa-tooltip .cisa-tooltip-text::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  margin-left: -5px;
  border-width: 5px;
  border-style: solid;
  border-color: #083141 transparent transparent transparent;
}

/* VS Comparison */
.cisa-vs-comparison {
  margin: 1.5rem 0;
  background: linear-gradient(135deg, #f8fafc 0%, #eaf3f6 100%);
  border: 2px solid #59747c;
  border-radius: 16px;
  padding: 1.5rem;
}

.cisa-vs-header {
  text-align: center;
  margin-bottom: 1.5rem;
}

.cisa-vs-header h4 {
  margin: 0 0 0.5rem;
  font-size: 1.3rem;
  color: #083141;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.cisa-vs-subtitle {
  margin: 0;
  color: #516773;
  font-size: 0.95rem;
}

.cisa-vs-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 1.5rem;
  align-items: center;
  margin-bottom: 1.5rem;
}

.cisa-vs-card {
  background: #fff;
  border-radius: 12px;
  padding: 1.5rem;
  text-align: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.cisa-vs-card--cash {
  border: 2px solid #059669;
  background: linear-gradient(135deg, #d1fae5 0%, #fff 100%);
}

.cisa-vs-card--invest {
  border: 2px solid #2563eb;
  background: linear-gradient(135deg, #dbeafe 0%, #fff 100%);
}

.cisa-vs-card--vs {
  background: transparent;
  box-shadow: none;
  padding: 0;
  border: none;
}

.cisa-vs-vs-text {
  font-size: 2rem;
  font-weight: 800;
  color: #dc2626;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
  transform: rotate(-5deg);
}

.cisa-vs-card-label {
  font-size: 1rem;
  font-weight: 600;
  color: #083141;
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.cisa-vs-card-value {
  font-size: 1.8rem;
  font-weight: 800;
  color: #083141;
  margin-bottom: 0.5rem;
}

.cisa-vs-card-desc {
  font-size: 0.85rem;
  color: #516773;
}

.cisa-vs-message {
  background: #fff;
  border-radius: 12px;
  padding: 1.25rem;
  text-align: center;
  border: 2px solid #59747c;
}

.cisa-vs-highlight {
  font-size: 1.1rem;
  font-weight: 700;
  color: #083141;
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.cisa-vs-message p {
  margin: 0;
  font-size: 1rem;
  line-height: 1.6;
  color: #083141;
}

/* VS Guidance Section */
.cisa-vs-guidance {
  margin-top: 1.5rem;
  padding: 1.25rem 1.5rem;
  border-radius: 12px;
  border: 2px solid;
  line-height: 1.7;
}

.cisa-vs-guidance--info {
  background: #eff6ff;
  border-color: #3b82f6;
}

.cisa-vs-guidance--success {
  background: #f0fdf4;
  border-color: #10b981;
}

.cisa-vs-guidance--warning {
  background: #fffbeb;
  border-color: #f59e0b;
}

.cisa-vs-guidance-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: #083141;
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.cisa-vs-guidance-content {
  color: #374151;
  font-size: 0.95rem;
  margin-bottom: 0.75rem;
}

.cisa-vs-inflation-warning {
  margin-top: 1rem;
  padding: 0.875rem 1rem;
  background: #fef3c7;
  border: 1px solid #fbbf24;
  border-radius: 8px;
  border-left: 4px solid #f59e0b;
  color: #78350f;
  font-size: 0.9rem;
  line-height: 1.6;
}

.cisa-vs-inflation-warning strong {
  color: #92400e;
  display: block;
  margin-bottom: 0.5rem;
}

@media (max-width: 768px) {
  .cisa-vs-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .cisa-vs-card--vs {
    order: 2;
  }
  
  .cisa-vs-vs-text {
    font-size: 1.5rem;
  }
}

/* Real Returns Notice */
.cisa-real-returns-notice {
  background: #e0f2fe;
  border: 2px solid #0ea5e9;
  border-radius: 12px;
  padding: 1rem 1.25rem;
  margin: 0 0 1.5rem 0;
  font-size: 0.9rem;
  line-height: 1.6;
}

.cisa-real-returns-notice-content {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.cisa-real-returns-notice strong {
  color: #0369a1;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.cisa-real-returns-notice-text {
  color: #0c4a6e;
  line-height: 1.5;
}

/* Allowance Summary */
.cisa-allowance-summary {
  background: #fff3cd;
  border: 1px solid #ffc107;
  border-radius: 12px;
  padding: 1rem;
  margin: 1rem 0;
  font-size: 0.9rem;
  line-height: 1.6;
}

.cisa-allowance-summary strong {
  color: #856404;
}

/* Scenario Comparison */
.cisa-scenario-toggle {
  display: flex;
  gap: 0.5rem;
  margin: 1rem 0;
  align-items: center;
}

.cisa-scenario-buttons {
  display: flex;
  gap: 0.5rem;
  margin-left: auto;
}

.cisa-scenario-active {
  background: #59747c !important;
  color: #fff !important;
}

/* Prominent CSV CTA */
.cisa-csv-cta {
  border: 2px dashed #93c5fd;
  background: linear-gradient(135deg, #eff6ff 0%, #eef2ff 100%);
  margin: 1.5rem 0;
  padding: 1.25rem;
  text-align: center;
  border-radius: 12px;
}
.cisa-btn--csv-cta {
  min-height: 58px;
  max-width: 420px;
  width: 100%;
  font-weight: 800;
  font-size: 1.06rem;
  letter-spacing: 0.01em;
  border-color: #5b21b6;
  background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 55%, #9333ea 100%);
  color: #fff;
  box-shadow: 0 8px 18px rgba(79, 70, 229, 0.24);
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, border-color 0.18s ease;
}
.cisa-btn--csv-cta:hover {
  background: linear-gradient(135deg, #4338ca 0%, #6d28d9 50%, #7e22ce 100%);
  border-color: #4338ca;
  box-shadow: 0 10px 22px rgba(67, 56, 202, 0.3);
  transform: translateY(-1px);
}

/* Modal (MailerLite email gate) */
.cisa-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100000;
}
.cisa-modal {
  background: #fff;
  padding: 1.5rem;
  border-radius: 12px;
  max-width: 400px;
  width: 90%;
  border: 3px solid #9333ea;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}
.cisa-modal-title { margin: 0 0 1rem; font-size: 1.25rem; }
.cisa-modal-subtitle { margin: -0.45rem 0 0.65rem; color: #475569; font-size: 0.92rem; line-height: 1.45; }
.cisa-modal-cta-note { margin: 0 0 0.75rem; padding: 0.55rem 0.65rem; border-radius: 8px; background: #eef2ff; border: 1px solid #c7d2fe; color: #3730a3; font-size: 0.82rem; font-weight: 600; }
.cisa-modal label { display: block; margin-top: 0.75rem; margin-bottom: 0.25rem; font-weight: 600; }
.cisa-modal-input { width: 100%; padding: 0.5rem; box-sizing: border-box; margin-bottom: 0.5rem; border: 2px solid #7c3aed; border-radius: 8px; }
.cisa-modal-error { color: #b91c1c; font-size: 0.9rem; margin-bottom: 0.5rem; display: none; }
.cisa-modal-success-msg { margin: 0; padding: 1.25rem 1rem; text-align: center; color: #059669; font-weight: 700; font-size: 1.05rem; line-height: 1.5; }
.cisa-modal-trust { color: #475569; font-size: 0.85rem; margin-top: 0.5rem; line-height: 1.4; background: #f3e8ff; border: 2px solid #e9d5ff; border-radius: 12px; padding: 0.75rem 0.85rem; }
.cisa-modal-actions { display: flex; gap: 0.75rem; margin-top: 1rem; justify-content: flex-end; }
.cisa-modal-close { background: #f1f5f9; color: #334155; border-color: #cbd5e1; }
.cisa-modal-submit { background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%); border-color: #5b21b6; }
.cisa-modal-submit:hover { background: linear-gradient(135deg, #4338ca 0%, #6d28d9 100%); border-color: #4c1d95; }

/* Action Buttons */
.cisa-actions {
  display: flex;
  gap: 0.75rem;
  margin: 1.5rem 0;
  flex-wrap: wrap;
  justify-content: center;
}

.cisa-btn {
  padding: 0.75rem 1.5rem;
  border-radius: 10px;
  border: 2px solid #59747c;
  background: #59747c;
  color: #fff;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  font-family: inherit;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.cisa-btn:hover {
  background: #4a6169;
  border-color: #4a6169;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.cisa-btn:active {
  transform: translateY(0);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.cisa-btn-secondary {
  background: #fff;
  color: #59747c;
  border-color: #59747c;
}

.cisa-btn-secondary:hover {
  background: #f9fbfc;
  border-color: #4a6169;
  color: #4a6169;
}

/* Results */

.cisa-results {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 3px solid #083141;
}

.cisa-results-title {
  font-size: 1.75rem;
  font-weight: 800;
  margin: 0 0 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: #083141;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, #083141 0%, #234252 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.cisa-summary-bar {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.25rem;
  margin-bottom: 1.5rem;
}

.cisa-summary-card {
  border-radius: 16px;
  border: 2px solid #ebf2f4;
  background: #f9fbfc;
  padding: 1.5rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transition: transform 0.2s, box-shadow 0.2s;
}

.cisa-summary-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
}

.cisa-summary-card--cash {
  border-color: #059669;
  border-width: 3px;
  background: linear-gradient(135deg, #d1fae5 0%, #ecfdf5 100%);
  box-shadow: 0 4px 12px rgba(5, 150, 105, 0.15);
}

.cisa-summary-card--cash:hover {
  box-shadow: 0 6px 16px rgba(5, 150, 105, 0.25);
}

.cisa-summary-card--invest {
  border-color: #2563eb;
  border-width: 3px;
  background: linear-gradient(135deg, #dbeafe 0%, #eff6ff 100%);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.15);
}

.cisa-summary-card--invest:hover {
  box-shadow: 0 6px 16px rgba(37, 99, 235, 0.25);
}

.cisa-summary-card--highlight {
  border-color: #dc2626;
  border-width: 3px;
  background: linear-gradient(135deg, #fee2e2 0%, #fef2f2 100%);
  box-shadow: 0 4px 12px rgba(220, 38, 38, 0.15);
}

.cisa-summary-card--highlight:hover {
  box-shadow: 0 6px 16px rgba(220, 38, 38, 0.25);
}

.cisa-summary-label {
  font-size: 0.95rem;
  font-weight: 600;
  color: #374151;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.25rem;
}

.cisa-summary-value {
  font-size: 1.75rem;
  font-weight: 800;
  color: #083141;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.cisa-note {
  font-size: 0.8rem;
  color: #6b7f8a;
  margin: 0 0 1rem;
}

/* Table */

.cisa-table-wrapper {
  width: 100%;
  overflow-x: auto;
}

.cisa-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.86rem;
  min-width: 720px;
}

/* Table header differentiation */
.cisa-table-header-cash {
  background: #d1fae5 !important;
  border-left: 3px solid #059669 !important;
  color: #065f46;
  font-weight: 600;
}

.cisa-table-header-cash-balance {
  background: #a7f3d0 !important;
  border-right: 3px solid #059669 !important;
}

.cisa-table-header-invest {
  background: #dbeafe !important;
  border-left: 3px solid #2563eb !important;
  color: #1e40af;
  font-weight: 600;
}

.cisa-table-header-invest-balance {
  background: #bfdbfe !important;
  border-right: 3px solid #2563eb !important;
}

.cisa-table-header-neutral {
  background: #f9fafb !important;
  color: #374151;
}

/* Table cell differentiation */
.cisa-table-cell-cash {
  background: #f0fdf4 !important;
  border-left: 2px solid #10b981;
}

.cisa-table-cell-cash-balance {
  background: #dcfce7 !important;
  border-right: 2px solid #10b981;
  font-weight: 600;
  color: #065f46;
}

.cisa-table-cell-invest {
  background: #eff6ff !important;
  border-left: 2px solid #3b82f6;
}

.cisa-table-cell-invest-balance {
  background: #dbeafe !important;
  border-right: 2px solid #3b82f6;
  font-weight: 600;
  color: #1e40af;
}

.cisa-table-cell-neutral {
  background: #ffffff !important;
}

.cisa-table thead {
  background: #ebf2f4;
}

.cisa-table th,
.cisa-table td {
  padding: 0.4rem 0.5rem;
  border-bottom: 1px solid #e1e6ea;
  text-align: right;
  white-space: nowrap;
}

.cisa-table th:first-child,
.cisa-table td:first-child {
  text-align: left;
}

.cisa-table th {
  font-weight: 600;
  color: #083141;
}

.cisa-table tbody tr:nth-child(even) {
  background: #f9fbfc;
}

.cisa-table tbody tr:nth-child(even) .cisa-table-cell-cash {
  background: #ecfdf5 !important;
}

.cisa-table tbody tr:nth-child(even) .cisa-table-cell-cash-balance {
  background: #d1fae5 !important;
}

.cisa-table tbody tr:nth-child(even) .cisa-table-cell-invest {
  background: #e0f2fe !important;
}

.cisa-table tbody tr:nth-child(even) .cisa-table-cell-invest-balance {
  background: #bfdbfe !important;
}

/* Responsive */

@media (max-width: 768px) {
  .cisa-wrapper {
    padding: 1rem 0.5rem;
  }

  .cisa-calculator {
    padding: 1rem;
  }

  .cisa-title {
    font-size: 1.3rem;
  }

  .cisa-results-title {
    font-size: 1.5rem;
  }
  
  .cisa-summary-value {
    font-size: 1.5rem;
  }
  
  .cisa-summary-bar {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .cisa-summary-card {
    padding: 1.25rem 1rem;
  }
}

/* Print */

@media print {
  @page {
    margin: 1.5cm;
  }

  .cisa-wrapper {
    max-width: 100%;
    padding: 0;
    margin: 0;
  }

  .cisa-calculator {
    box-shadow: none;
    border-radius: 0;
    border: 1px solid #000;
    padding: 1rem;
    page-break-inside: avoid;
  }

  /* Hide interactive elements */
  .cisa-steps,
  .cisa-info-box,
  .cisa-presets,
  .cisa-actions,
  .cisa-chart-container,
  .cisa-tooltip,
  .cisa-allowance-summary {
    display: none !important;
  }

  /* Show only results */
  .cisa-results {
    margin-top: 0;
  }

  .cisa-results-title {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    page-break-after: avoid;
  }

  .cisa-summary-bar {
    page-break-inside: avoid;
    margin-bottom: 1rem;
  }

  .cisa-summary-card {
    border: 1px solid #000;
    background: #fff !important;
    page-break-inside: avoid;
  }

  .cisa-vs-comparison {
    border: 2px solid #000;
    background: #fff !important;
    page-break-inside: avoid;
    margin: 1rem 0;
  }

  .cisa-vs-card {
    border: 1px solid #000;
    background: #fff !important;
  }

  .cisa-table-wrapper {
    overflow: visible;
    page-break-inside: avoid;
  }

  .cisa-table {
    min-width: 0;
    font-size: 0.75rem;
    border: 1px solid #000;
  }

  .cisa-table thead {
    background: #f0f0f0 !important;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }

  .cisa-table th,
  .cisa-table td {
    border: 1px solid #000;
    padding: 0.3rem 0.4rem;
  }

  .cisa-table tbody tr:nth-child(even) {
    background: #f9f9f9 !important;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }

  .cisa-note {
    font-size: 0.7rem;
    margin-top: 1rem;
    page-break-inside: avoid;
  }

  /* Ensure colors print */
  .cisa-summary-card--cash {
    border-color: #000 !important;
    background: #f0f0f0 !important;
  }

  .cisa-summary-card--invest {
    border-color: #000 !important;
    background: #f0f0f0 !important;
  }

  .cisa-summary-card--highlight {
    border-color: #000 !important;
    background: #e0e0e0 !important;
  }
}
