/* Loan EMI Calculator: the printed report ("Print / Save as PDF").
 *
 * Loaded with media="print" only. Prints a clean, light report: title and
 * date, the inputs, the summary and charts, the prepayment comparison and the
 * FULL schedule with every year expanded. The site header and footer, the
 * form (sliders, buttons) and the explanatory content are left out.
 */

@page {
  margin: 14mm 12mm;
}

html,
body.emi-body {
  background: #ffffff !important;
  color: #111111 !important;
  font-size: 10.5pt;
}

.emi-body {
  --auth-text: #111111;
  --auth-muted: #3d3d3d;
  --auth-subtle: #5c5c5c;
  --auth-line: #d4d4d4;
  --auth-line-strong: #a3a3a3;
  --auth-gold: #8a6d00;
  --auth-gold-strong: #8a6d00;
  --auth-gold-soft: #faf3d6;
  --emi-surface: #ffffff;
  --emi-surface-raised: #ffffff;
  --emi-interest: #3557c9;
  --emi-good: #11734a;
}

.skip-link,
.site-header,
.site-footer,
.emi-hero,
.emi-form,
.emi-content,
.emi-motif,
.auth-stage__backdrop,
.emi-card__glow,
.emi-schedule__toggle,
.emi-bars__table,
.emi-year__chevron,
[data-emi-status] {
  display: none !important;
}

.emi-main,
.emi-container {
  padding: 0 !important;
  max-width: none !important;
}

.emi-calc__grid {
  display: block !important;
}

.emi-print-only {
  display: block;
}

.emi-report-head {
  margin-bottom: 8mm;
  padding-bottom: 4mm;
  border-bottom: 2px solid #111111;
}

.emi-report-head__title {
  font-size: 18pt;
  font-weight: 700;
}

.emi-report-head__date {
  color: #5c5c5c;
}

.emi-report-inputs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2mm 8mm;
  margin: 0 0 6mm;
}

.emi-report-inputs div {
  display: flex;
  justify-content: space-between;
  gap: 4mm;
  border-bottom: 1px dotted #c4c4c4;
}

.emi-report-inputs dt {
  color: #5c5c5c;
}

.emi-report-inputs dd {
  margin: 0;
  font-weight: 600;
}

.emi-panel {
  position: static !important;
  margin: 0 0 7mm;
  padding: 0 !important;
  border: 0 !important;
  background: none !important;
  box-shadow: none !important;
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
  opacity: 1 !important;
  transform: none !important;
}

.emi-card,
.emi-chart,
.emi-saving {
  background: #ffffff !important;
  break-inside: avoid;
  transform: none !important;
  animation: none !important;
  opacity: 1 !important;
}

.emi-card--hero .emi-card__value {
  color: #111111 !important;
}

.emi-charts {
  break-inside: avoid;
}

.emi-donut__ring {
  width: 38mm;
}

.emi-year {
  border: 0 !important;
  break-inside: auto;
}

.emi-year__button {
  min-height: 0 !important;
  padding: 3mm 0 1mm !important;
}

.emi-year__panel,
.emi-js .emi-year[data-collapsed] .emi-year__panel {
  display: block !important;
  padding: 0 !important;
}

.emi-table-wrap {
  overflow: visible !important;
  border: 0 !important;
}

.emi-table {
  min-width: 0 !important;
  font-size: 9pt;
}

.emi-table th,
.emi-table td {
  padding: 1.2mm 2mm !important;
}

.emi-table thead {
  display: table-header-group;
}

.emi-table tr {
  break-inside: avoid;
}
