/* ==========================================================================
   Mortgage Payoff Calculator Stylesheet
   Exact Visual Replication of Reference Screenshot
   ========================================================================== */

/* Base Page Container */
.mp-page-container {
  max-width: 980px;
  margin: 0 auto;
  padding: 10px 15px 40px;
  font-family: Arial, Helvetica, sans-serif;
  color: #333333;
  background-color: #ffffff;
}

/* Breadcrumb & Top Bar */
.mp-breadcrumb-row {
  font-size: 12px;
  color: #0844a4;
  margin-bottom: 8px;
}

.mp-breadcrumb-row a {
  color: #0844a4;
  text-decoration: none;
}

.mp-breadcrumb-row a:hover {
  text-decoration: underline;
}

.mp-breadcrumb-row .current {
  color: #0844a4;
}

/* Top Bar (Breadcrumbs + Top Search + Action Buttons) */
.mp-top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  padding: 4px 0 10px;
  margin-bottom: 8px;
  border-bottom: 1px solid #e2e8f0;
}

.mp-breadcrumbs {
  font-size: 12px;
  color: #0844a4;
  display: flex;
  align-items: center;
  gap: 4px;
}

.mp-breadcrumbs a {
  color: #0844a4;
  text-decoration: none;
}

.mp-breadcrumbs a:hover {
  text-decoration: underline;
}

.mp-breadcrumbs .sep {
  color: #94a3b8;
  margin: 0 2px;
}

.mp-breadcrumbs .current {
  color: #475569;
  font-weight: 500;
}

.mp-top-right-group {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.mp-top-search-wrap {
  position: relative;
  min-width: 210px;
}

.mp-top-search-form {
  display: flex;
  align-items: center;
  position: relative;
}

.mp-top-search-input {
  width: 100%;
  height: 27px;
  border: 1px solid #cbd5e1;
  border-radius: 4px;
  padding: 0 28px 0 8px;
  font-size: 12px;
  color: #1e293b;
  outline: none;
  background: #ffffff;
  box-sizing: border-box;
}

.mp-top-search-input:focus {
  border-color: #2b619e;
  box-shadow: 0 0 0 2px rgba(43, 97, 158, 0.15);
}

.mp-top-search-btn {
  position: absolute;
  right: 2px;
  top: 2px;
  bottom: 2px;
  width: 24px;
  background: transparent;
  border: none;
  color: #64748b;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 3px;
  padding: 0;
}

.mp-top-search-btn:hover {
  color: #0844a4;
}

.mp-actions-group {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.mp-tool-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 4px;
  padding: 4px 9px;
  font-size: 11.5px;
  font-weight: 500;
  color: #334155;
  cursor: pointer;
  transition: all 0.15s ease;
  line-height: 1.2;
}

.mp-tool-btn:hover {
  background: #f1f5f9;
  border-color: #94a3b8;
  color: #0f172a;
}

.mp-tool-btn.primary-accent {
  background: #2b619e;
  border-color: #204b7d;
  color: #ffffff;
}

.mp-tool-btn.primary-accent:hover {
  background: #235284;
}

.mp-badge {
  background: #255582;
  color: #ffffff;
  font-size: 10px;
  padding: 1px 5px;
  border-radius: 10px;
  margin-left: 2px;
}

/* Page Title & Intro */
.mp-page-title {
  font-size: 24px;
  font-weight: bold;
  color: #0844a4;
  margin: 0 0 6px 0;
  line-height: 1.2;
}

.mp-intro-desc {
  font-size: 13px;
  line-height: 1.45;
  color: #333333;
  margin: 0 0 16px 0;
  max-width: 950px;
}

/* Two-Column Grid: Left Content (Calculators & Charts) vs Right Sidebar */
.mp-layout-grid {
  display: grid;
  grid-template-columns: 1fr 220px;
  gap: 22px;
  align-items: start;
}

.mp-left-col {
  min-width: 0;
}

/* Section Container */
.mp-section {
  margin-bottom: 30px;
}

.mp-section-title {
  font-size: 17px;
  font-weight: bold;
  color: #0844a4;
  margin: 0 0 6px 0;
}

.mp-section-desc {
  font-size: 12.5px;
  line-height: 1.45;
  color: #333333;
  margin: 0 0 14px 0;
}

/* Dual Column Layout: Form Box (Left) & Results Box (Right) */
.mp-calc-row {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 16px;
  align-items: start;
}

/* --------------------------------------------------------------------------
   Left Form Box (Light Grey Box with Table Inputs)
   -------------------------------------------------------------------------- */
.mp-form-box {
  background: #f2f4f8;
  border: 1px solid #d0d7de;
  border-radius: 2px;
  padding: 12px;
  box-sizing: border-box;
}

.mp-input-table {
  width: 100%;
  border-collapse: collapse;
  background: #ffffff;
  border: 1px solid #c0c8d0;
  font-size: 12px;
}

.mp-input-table td {
  border: 1px solid #c0c8d0;
  padding: 3px 5px;
  vertical-align: middle;
}

.mp-label-cell {
  background: #f2f4f8;
  color: #333333;
  font-size: 12px;
  width: 135px;
}

.mp-input-cell {
  background: #ffffff;
  padding: 2px 4px !important;
}

.mp-input-cell input {
  width: 100%;
  height: 20px;
  border: none;
  outline: none;
  font-size: 12px;
  font-family: inherit;
  color: #000000;
  padding: 0 2px;
  box-sizing: border-box;
}

.mp-unit-cell {
  background: #ffffff;
  color: #333333;
  font-size: 11.5px;
  padding: 2px 4px !important;
  white-space: nowrap;
  width: 40px;
}

/* Repayment Options */
.mp-repay-section {
  margin-top: 10px;
  font-size: 12px;
}

.mp-repay-title {
  font-weight: bold;
  color: #222222;
  margin-bottom: 5px;
}

.mp-radio-row {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 4px;
  cursor: pointer;
  color: #222222;
}

.mp-radio-row input[type="radio"] {
  margin: 0;
  cursor: pointer;
}

.mp-extra-inputs {
  margin-left: 18px;
  margin-bottom: 6px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.mp-extra-line {
  display: flex;
  align-items: center;
  gap: 6px;
}

.mp-extra-line input {
  width: 75px;
  height: 20px;
  border: 1px solid #7f9db9;
  background: #ffffff;
  padding: 0 4px;
  font-size: 12px;
  font-family: inherit;
  box-sizing: border-box;
}

.mp-extra-line span {
  font-size: 12px;
  color: #333333;
}

/* Action Buttons */
.mp-btn-line {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
}

.mp-btn-calc {
  background: #38761d;
  color: #ffffff;
  border: 1px solid #234c11;
  border-radius: 4px;
  font-weight: bold;
  font-size: 13px;
  padding: 4px 14px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  line-height: 1.4;
}

.mp-btn-calc:hover {
  background: #2b5d16;
}

.mp-btn-calc .mp-arrow {
  font-size: 10px;
}

.mp-btn-clear {
  background: #999999;
  color: #ffffff;
  border: 1px solid #777777;
  border-radius: 4px;
  font-weight: normal;
  font-size: 13px;
  padding: 4px 14px;
  cursor: pointer;
  line-height: 1.4;
}

.mp-btn-clear:hover {
  background: #888888;
}

/* --------------------------------------------------------------------------
   Right Results Box
   -------------------------------------------------------------------------- */
.mp-results-box {
  background: #ffffff;
  border: 1px solid #c0c8d0;
  border-radius: 2px;
  overflow: hidden;
}

.mp-res-header {
  background: #38761d;
  color: #ffffff;
  padding: 5px 8px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.mp-res-title {
  font-size: 15px;
  font-weight: bold;
}

.mp-btn-save {
  background: #234c11;
  color: #ffffff;
  border: 1px solid #16330a;
  border-radius: 2px;
  padding: 1px 6px;
  font-size: 11px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-family: inherit;
}

.mp-btn-save:hover {
  background: #1a3c0c;
}

.mp-disk-icon {
  font-size: 11px;
}

.mp-res-content {
  padding: 10px 12px 8px;
}

.mp-res-summary {
  font-size: 12.5px;
  line-height: 1.45;
  color: #000000;
  margin: 0 0 10px 0;
}

.mp-res-summary strong {
  font-weight: bold;
}

/* Stat Cards Row (Navy Blue Header + White Bordered Box + Green/Grey Bars) */
.mp-stat-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 10px;
}

.mp-stat-panel {
  display: flex;
  flex-direction: column;
}

.mp-stat-top {
  background: #205081;
  color: #ffffff;
  text-align: center;
  padding: 4px 6px;
}

.mp-stat-title {
  font-size: 11.5px;
  font-weight: bold;
  line-height: 1.2;
}

.mp-stat-val {
  font-size: 15px;
  font-weight: bold;
  line-height: 1.25;
}

.mp-stat-mid {
  background: #ffffff;
  border: 1px solid #c8d2dc;
  border-top: none;
  padding: 5px 6px;
}

.mp-stat-orig-lbl,
.mp-stat-new-lbl {
  font-size: 10px;
  color: #444444;
  margin-bottom: 2px;
}

.mp-bar-track {
  background: #e6e6e6;
  height: 7px;
  width: 100%;
  margin-bottom: 5px;
  border-radius: 1px;
  overflow: hidden;
}

.mp-bar-fill-grey {
  background: #b0b8c0;
  height: 100%;
}

.mp-bar-fill-green {
  background: #4a8b2c;
  height: 100%;
  transition: width 0.3s ease;
}

.mp-stat-bot {
  text-align: center;
  font-size: 11px;
  color: #000000;
  margin-top: 3px;
}

/* Comparison Table */
.mp-comp-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 11.5px;
  margin-top: 6px;
}

.mp-comp-table th {
  background: #205081;
  color: #ffffff;
  font-weight: bold;
  padding: 4px 8px;
  text-align: right;
  border: 1px solid #1b4570;
}

.mp-comp-table th.mp-th-empty {
  border-top: 1px solid #1b4570;
  border-left: 1px solid #1b4570;
}

.mp-comp-table td {
  padding: 3px 8px;
  border: 1px solid #dcdcdc;
  text-align: right;
  color: #222222;
}

.mp-comp-table td:first-child {
  text-align: left;
  color: #333333;
}

.mp-comp-table tr:nth-child(even) td {
  background: #f4f4f4;
}

.mp-comp-table tr:nth-child(odd) td {
  background: #ffffff;
}

.mp-amort-center {
  text-align: center;
  margin-top: 6px;
}

.mp-amort-link {
  color: #0844a4;
  font-size: 11.5px;
  text-decoration: underline;
  cursor: pointer;
}

.mp-amort-link:hover {
  color: #002277;
}

/* --------------------------------------------------------------------------
   Chart Container (Centered below calculator results, width ~370px)
   -------------------------------------------------------------------------- */
.mp-chart-container {
  display: flex;
  justify-content: center;
  margin-top: 12px;
}

.mp-svg-chart {
  width: 370px;
  height: 190px;
  background: #ffffff;
  border: 1px solid #c0c0c0;
  display: block;
}

/* --------------------------------------------------------------------------
   Right Column: Search Bar + Financial Calculators Box
   -------------------------------------------------------------------------- */
.mp-right-col {
  width: 220px;
}

.mp-search-block {
  display: flex;
  align-items: center;
  margin-bottom: 12px;
  position: relative;
}

.mp-search-input {
  width: 145px;
  height: 24px;
  border: 1px solid #7f9db9;
  padding: 0 4px;
  font-size: 12px;
  font-family: inherit;
  outline: none;
  box-sizing: border-box;
}

.mp-search-btn {
  background: #2b619e;
  color: #ffffff;
  border: 1px solid #1e4b7d;
  height: 24px;
  padding: 0 10px;
  font-size: 12px;
  font-family: inherit;
  cursor: pointer;
  margin-left: -1px;
}

.mp-search-btn:hover {
  background: #235284;
}

.mp-search-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: #ffffff;
  border: 1px solid #7f9db9;
  border-radius: 3px;
  margin-top: 2px;
  z-index: 1000;
  max-height: 280px;
  overflow-y: auto;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  display: none;
}

.mp-search-item,
.mp-search-dropdown-item {
  padding: 6px 9px;
  font-size: 12px;
  cursor: pointer;
  color: #0844a4;
  border-bottom: 1px solid #f1f5f9;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  text-decoration: none;
  background: #ffffff;
}

.mp-search-item:hover,
.mp-search-dropdown-item:hover,
.mp-search-item.active,
.mp-search-dropdown-item.active {
  background: #f0f4f8;
  color: #0c3370;
}

.mp-search-tag {
  font-size: 10px;
  color: #64748b;
  background: #f1f5f9;
  padding: 2px 6px;
  border-radius: 3px;
  white-space: nowrap;
}

.mp-search-no-results {
  padding: 8px 10px;
  font-size: 12px;
  color: #64748b;
  text-align: center;
}

/* Financial Calculators Card */
.mp-side-box {
  border: 1px solid #c0c8d0;
  border-radius: 2px;
  overflow: hidden;
  background: #ffffff;
  margin-bottom: 10px;
}

.mp-side-head {
  background: #205081;
  color: #ffffff;
  font-size: 12.5px;
  font-weight: bold;
  padding: 5px 8px;
}

.mp-side-links-grid {
  padding: 8px 8px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px 6px;
  font-size: 11.5px;
  background: #fcfcfc;
}

.mp-side-links-grid a {
  color: #0844a4;
  text-decoration: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mp-side-links-grid a:hover {
  text-decoration: underline;
}

.mp-side-links-grid a.mp-side-active {
  font-weight: bold;
  color: #0844a4;
}

.mp-side-foot {
  padding: 5px 8px;
  border-top: 1px solid #e2e8f0;
  font-size: 11.5px;
  background: #ffffff;
}

.mp-side-foot a {
  color: #0844a4;
  text-decoration: none;
}

.mp-side-foot a:hover {
  text-decoration: underline;
}

/* Bottom Category Links */
.mp-side-bottom-links {
  font-size: 11.5px;
  color: #777777;
  padding: 2px 0;
  line-height: 1.5;
}

.mp-side-bottom-links a {
  color: #0844a4;
  text-decoration: none;
}

.mp-side-bottom-links a:hover {
  text-decoration: underline;
}

/* --------------------------------------------------------------------------
   Fraction Solver & SEO Article (Clean, Professional, Below Main View)
   -------------------------------------------------------------------------- */
.mp-extra-section-wrap {
  margin-top: 40px;
  border-top: 1px solid #e0e0e0;
  padding-top: 24px;
}

.mp-fraction-box {
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  border-radius: 3px;
  padding: 14px 18px;
  margin-bottom: 24px;
}

.mp-fraction-title {
  font-size: 15px;
  font-weight: bold;
  color: #0844a4;
  margin: 0 0 6px 0;
}

.mp-fraction-desc {
  font-size: 12px;
  color: #444444;
  margin: 0 0 12px 0;
}

.mp-fraction-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.mp-fraction-group {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.mp-fraction-stack {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
}

.mp-fraction-stack input {
  width: 36px;
  height: 20px;
  text-align: center;
  border: 1px solid #7f9db9;
  font-size: 12px;
}

.mp-fraction-divider {
  width: 36px;
  height: 1px;
  background: #333333;
  margin: 2px 0;
}

.mp-fraction-op-select {
  height: 24px;
  font-size: 13px;
  font-weight: bold;
  border: 1px solid #7f9db9;
}

.mp-fraction-results {
  display: flex;
  gap: 18px;
  margin-bottom: 10px;
}

.mp-frac-item {
  font-size: 12px;
}

.mp-frac-item strong {
  font-size: 14px;
  color: #0844a4;
  margin-left: 4px;
}

.mp-seo-content {
  font-size: 13px;
  line-height: 1.6;
  color: #333333;
}

.mp-seo-content h2 {
  font-size: 16px;
  font-weight: bold;
  color: #0844a4;
  margin: 18px 0 6px 0;
}

.mp-faq-item {
  border: 1px solid #e2e8f0;
  border-radius: 3px;
  margin-bottom: 6px;
}

.mp-faq-q {
  width: 100%;
  text-align: left;
  background: #f8fafc;
  border: none;
  padding: 8px 12px;
  font-size: 13px;
  font-weight: bold;
  color: #0844a4;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
}

.mp-faq-a {
  padding: 8px 12px;
  font-size: 12.5px;
  color: #333333;
  display: none;
  background: #ffffff;
}

.mp-faq-a.open {
  display: block;
}

/* Modals */
.mp-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.mp-modal-card {
  background: #ffffff;
  border: 1px solid #7f9db9;
  border-radius: 3px;
  width: 90%;
  max-width: 600px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  overflow: hidden;
}

.mp-modal-header {
  background: #205081;
  color: #ffffff;
  padding: 6px 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: bold;
  font-size: 13px;
}

.mp-modal-close {
  background: none;
  border: none;
  color: #ffffff;
  font-size: 16px;
  cursor: pointer;
}

.mp-modal-body {
  padding: 14px;
}

/* Print Modal & Printable Statement Sheet */
.mp-print-modal-card {
  max-width: 780px;
  width: 95%;
  max-height: 92vh;
  display: flex;
  flex-direction: column;
}

.mp-print-actions-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  padding: 8px 14px;
  background: #f8fafc;
  border-bottom: 1px solid #e2e8f0;
}

.mp-print-actions-left {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  color: #475569;
}

.mp-print-feedback {
  display: none;
  background: #ecfdf5;
  color: #065f46;
  border: 1px solid #a7f3d0;
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 3px;
  font-weight: 600;
}

.mp-print-actions-btns {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.mp-print-sheet {
  padding: 20px 24px;
  overflow-y: auto;
  max-height: calc(92vh - 105px);
  background: #ffffff;
  color: #1e293b;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  line-height: 1.5;
}

/* Printable Document Specific Styles */
.mp-pr-header {
  border-bottom: 2px solid #0844a4;
  padding-bottom: 12px;
  margin-bottom: 16px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.mp-pr-brand {
  font-size: 18px;
  font-weight: 700;
  color: #0844a4;
  letter-spacing: -0.2px;
}

.mp-pr-subbrand {
  font-size: 12px;
  color: #64748b;
  margin-top: 2px;
}

.mp-pr-meta {
  text-align: right;
  font-size: 11.5px;
  color: #64748b;
}

.mp-pr-doc-title {
  font-size: 15px;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 12px;
}

.mp-pr-metric-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-bottom: 18px;
}

.mp-pr-card {
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  border-radius: 4px;
  padding: 10px 12px;
}

.mp-pr-card.highlight {
  background: #f0fdf4;
  border-color: #86efac;
}

.mp-pr-card-label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  color: #64748b;
  letter-spacing: 0.3px;
}

.mp-pr-card.highlight .mp-pr-card-label {
  color: #15803d;
}

.mp-pr-card-val {
  font-size: 17px;
  font-weight: 700;
  color: #0f172a;
  margin-top: 4px;
}

.mp-pr-card.highlight .mp-pr-card-val {
  color: #166534;
}

.mp-pr-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 18px;
  font-size: 12.5px;
}

.mp-pr-table th,
.mp-pr-table td {
  padding: 7px 10px;
  border: 1px solid #cbd5e1;
  text-align: left;
}

.mp-pr-table th {
  background: #f1f5f9;
  font-weight: 600;
  color: #334155;
}

.mp-pr-table td.num,
.mp-pr-table th.num {
  text-align: right;
}

.mp-pr-table tr:nth-child(even) td {
  background: #f8fafc;
}

.mp-pr-table tr.highlight td {
  background: #f0fdf4;
  font-weight: 600;
  color: #166534;
}

.mp-pr-notice {
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  border-radius: 4px;
  padding: 10px 14px;
  font-size: 11.5px;
  color: #1e40af;
  margin-top: 14px;
  line-height: 1.5;
}

.mp-pr-footer {
  margin-top: 20px;
  padding-top: 10px;
  border-top: 1px solid #e2e8f0;
  font-size: 10.5px;
  color: #94a3b8;
  display: flex;
  justify-content: space-between;
}

/* Responsive */
@media (max-width: 860px) {
  .mp-layout-grid {
    grid-template-columns: 1fr;
  }
  .mp-right-col {
    width: 100%;
  }
  .mp-calc-row {
    grid-template-columns: 1fr;
  }
  .mp-top-bar {
    flex-direction: column;
    align-items: stretch;
  }
  .mp-actions-group {
    justify-content: flex-start;
  }
  .mp-pr-metric-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Print Styles */
@media print {
  body {
    background: #ffffff !important;
    color: #000000 !important;
  }

  /* Hide navigation, top bar, sidebar, and non-print overlays */
  .site-header,
  .site-footer,
  .mp-top-bar,
  .mp-right-col,
  .mp-extra-section-wrap,
  .mp-btn-line,
  #header,
  #footer,
  .mp-btn-save,
  .mp-res-btn,
  .mp-tool-btn,
  .mp-search-block,
  .mp-modal-header,
  .mp-print-actions-bar,
  #mp-history-modal,
  #mp-amort-modal {
    display: none !important;
  }

  /* When print modal is active (body.mp-print-open) */
  body.mp-print-open .mp-page-container {
    display: none !important;
  }

  body.mp-print-open #mp-print-modal {
    position: static !important;
    background: none !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
    padding: 0 !important;
    margin: 0 !important;
    overflow: visible !important;
  }

  body.mp-print-open #mp-print-modal .mp-modal-card {
    border: none !important;
    box-shadow: none !important;
    width: 100% !important;
    max-width: 100% !important;
    max-height: none !important;
    overflow: visible !important;
    padding: 0 !important;
    margin: 0 !important;
  }

  body:not(.mp-print-open) #mp-print-modal {
    display: none !important;
  }

  .mp-print-sheet {
    padding: 0 !important;
    max-height: none !important;
    overflow: visible !important;
  }

  /* Fallback if user uses browser Ctrl+P without modal open */
  body:not(.mp-print-open) .mp-modal-overlay {
    display: none !important;
  }

  body:not(.mp-print-open) .mp-page-container {
    max-width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
  }
  body:not(.mp-print-open) .mp-layout-grid {
    display: block !important;
  }
  body:not(.mp-print-open) .mp-calc-row {
    display: grid !important;
    grid-template-columns: 280px 1fr !important;
    page-break-inside: avoid;
    margin-bottom: 24px !important;
  }
  body:not(.mp-print-open) .mp-form-box,
  body:not(.mp-print-open) .mp-results-box {
    border: 1px solid #888888 !important;
    box-shadow: none !important;
  }
  body:not(.mp-print-open) .mp-res-header {
    background: #0844a4 !important;
    color: #ffffff !important;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }
  body:not(.mp-print-open) .mp-chart-container svg {
    max-width: 100% !important;
  }
}
