/* =========================================================
   MONTHLY SAVINGS TOOL — PAGE SPECIFIC STYLES
   ========================================================= */

/* ---------- Input Card (tool-specific spacing) ---------- */
.input-card {
  width: 100%;
}

/* ---------- Result Panel (Premium Layout) ---------- */
.result-premium {
  width: 100%;
  max-width: 1120px;     /* Align with input card */
  margin: 0 auto;
  padding: 32px 28px;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.result-heading {
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 24px;
  color: var(--text-main);
}

/* Topline number */
.result-topline {
  text-align: center;
  margin-bottom: 32px;
  width: 100%;
}

.topline-label {
  color: var(--text-muted);
  font-size: 0.875rem;
}
.topline-value {
  color: var(--accent);
  font-size: 2.4rem;
  font-weight: 700;
  margin-top: 6px;
}
.topline-sub {
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-top: 4px;
}

/* Two stats columns */
.result-grid {
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  text-align: center;
  margin-bottom: 24px;
}

.result-item {
  min-width: 200px;
}

.result-label {
  color: var(--text-muted);
  font-size: 0.875rem;
}
.result-value {
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--text-main);
  margin: 6px 0;
}
.result-desc {
  color: var(--text-muted);
  font-size: 0.85rem;
}

/* ---------- Insight Box ---------- */
.result-insight {
  max-width: 760px;
  width: 100%;
  background: var(--primary-soft);
  border-left: 3px solid var(--primary);
  padding: 14px 18px;
  border-radius: 10px;
  font-size: 0.875rem;
  color: var(--text);
  margin-top: 24px;
  display: none;
}

/* ---------- Chart Wrapper ---------- */
.chart-wrapper {
  margin: 30px 0;
  padding: 12px;
  border-radius: var(--radius);
  background: var(--surface-2);
  border: 1px solid var(--border);
  min-height: 220px;
}

.chart-wrapper canvas {
  width: 100% !important;
  height: 100% !important;
}

/* ---------- Table Wrapper ---------- */
.table-wrapper {
  border-radius: 14px;
  border: 1px solid rgba(148,163,184,0.5);
  background: rgba(15,23,42,0.96);
  overflow-y: auto;
  max-height: 260px;
  margin-bottom: 32px;
}

.savings-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}

.savings-table th,
.savings-table td {
  padding: 6px 8px;
  border-bottom: 1px solid rgba(51,65,85,0.9);
  white-space: nowrap;
}

.savings-table th {
  color: var(--text-main);
  background: rgba(15,23,42,0.98);
  position: sticky;
  top: 0;
}

.savings-table tbody tr:nth-child(odd) {
  background: rgba(15,23,42,0.96);
}
.savings-table tbody tr:nth-child(even) {
  background: rgba(15,23,42,0.92);
}

/* ---------- Mobile ---------- */
@media (max-width: 768px) {
  .result-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .topline-value {
    font-size: 2rem;
  }
}
.gpw-note {
  font-size: 0.875rem;
  line-height: 1.6;
}

/* Fælles heading-style med ikon */
.gpw-note-heading {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 6px;
  font-size: 1.05rem;
}

/* Ekstra luft før "Vigtigt om skat" */
.gpw-note-heading--tax {
  margin-top: 18px;   /* øg til 22–24px hvis du vil have endnu mere afstand */
}

/* Ikoncontainer */
.gpw-note-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* Lidt farve-kodning hvis du vil variere senere */
.gpw-note-icon--action svg,
.gpw-note-icon--tax svg {
  display: block;
}

/* Links i note-boks */
.gpw-note a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
}

.gpw-note a:hover {
  text-decoration: underline;
}
.gpw-note {
  font-size: 0.875rem;
  line-height: 1.6;
}

/* Fælles heading-style med ikon */
.gpw-note-heading {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 6px;
  font-size: 1.05rem;
}

/* Ekstra luft før "Vigtigt om skat" */
.gpw-note-heading--tax {
  margin-top: 20px;  /* skru op til fx 24px hvis du vil have mere separation */
}

/* Ikon-container */
.gpw-note-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* Sørg for at SVG ikke hopper i højden */
.gpw-note-icon svg {
  display: block;
}

/* Links i note-boks */
.gpw-note a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
}

.gpw-note a:hover {
  text-decoration: underline;
}
.page-wrapper {
  margin-top: 90px;
}
