
    html, body {
      overflow-x: hidden;
      overflow-y: auto;
      overscroll-behavior-y: auto;
      -webkit-overflow-scrolling: touch;
      touch-action: pan-y;
    }

    .me-transfer-wrap {
      background: #f1f5f9;
      padding: 24px 16px 36px;
      font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
      position: relative;
    }
    button, .me-toggle-btn { touch-action: manipulation; }

    .me-transfer-card {
      max-width: 920px;
      margin: 0 auto;
      background: #ffffff;
      border-radius: 18px;
      padding: 28px 28px 32px;
      border: 1px solid #e2e8f0;
      box-shadow: 0 4px 24px rgba(15, 23, 42, 0.05);
    }

    .me-transfer-title-row {
      display: flex;
      align-items: center;
      gap: 10px;
      flex-wrap: wrap;
      margin-bottom: 6px;
    }

    .me-transfer-header h1 {
      font-size: 30px;
      font-weight: 700;
      text-transform: uppercase;
      margin: 0;
    }

    .me-updated-badge {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      min-height: 26px;
      padding: 4px 10px;
      border-radius: 999px;
      background: linear-gradient(135deg, #f5d778 0%, #c9972a 55%, #8b6415 100%);
      border: 1px solid rgba(120, 82, 8, 0.36);
      box-shadow: 0 8px 18px rgba(164, 111, 20, 0.18);
      color: #111111 !important;
      font-size: 12px;
      font-weight: 800;
      line-height: 1;
      text-transform: uppercase;
      white-space: nowrap;
    }

    .me-transfer-header p {
      margin: 0 0 18px;
      font-size: 14px;
      color: #555555;
    }

    .me-transfer-grid {
      display: grid;
      grid-template-columns: 1fr;
      gap: 20px;
    }

    .me-transfer-inputs {
      display: flex;
      flex-direction: column;
      gap: 12px;
    }

    .me-field-group label {
      display: block;
      font-size: 13px;
      margin-bottom: 4px;
    }

    .me-field-group select,
    .me-field-group input[type="number"] {
      width: 100%;
      padding: 8px 10px;
      border-radius: 8px;
      border: 1px solid #dddddd;
      font-size: 14px;
      box-sizing: border-box;
    }

    .me-transfer-preview {
      border-radius: 14px;
      border: 1px solid #f0f0f0;
      padding: 12px 14px;
    }

    .me-transfer-preview h3 {
      margin: 0 0 8px;
      font-size: 16px;
      font-weight: 600;
    }

    .me-transfer-preview p {
      margin: 4px 0;
      font-size: 13px;
    }

    @media (max-width:768px) {
      .me-transfer-card {
        padding: 18px 14px 24px;
      }
      .me-transfer-title-row {
        align-items: flex-start;
      }
      .me-transfer-header h1 {
        font-size: 24px;
        line-height: 1.18;
        flex: 1 1 210px;
      }
      .me-updated-badge {
        min-height: 24px;
        font-size: 11px;
      }
    }

    /* =========================
   SIZE (Quick + Inputs)
   ========================= */

    .me-size-presets {
      display: flex;
      flex-wrap: wrap;
      gap: 6px;
      align-items: center;
      margin-bottom: 6px;
      font-size: 9px !important;
    }

    .me-size-presets-label {
      font-size: 11px;
      font-weight: 600;
      color: #555555;
    }

    .me-size-grid {
      display: grid;
      grid-template-columns: repeat(3, minmax(0, 1fr));
      gap: 8px;
      margin-top: 6px;
    }

    .me-size-grid input {
      padding: 6px 8px;
      font-size: 13px;
    }

    .me-size-label {
      display: block;
      font-size: 12px;
      margin-bottom: 2px;
    }

    /* final quick-size pill design (your preferred) */
    .me-size-preset {
      display: inline-block;
      padding: 3px 8px;
      margin: 1px;
      cursor: pointer;
      background: #f0f0f0;
      color: #000000;
      border: 1px solid #f0f0f0;
      border-radius: 999px;
      transition: all 0.2s ease;
      font-size: 10px;
      font-weight: 500;
    }

    .me-size-preset:hover {
      background: #e0e0e0;
    }

    .me-size-preset.active {
      background: #000000;
      color: #ffffff;
      border-color: #000000;
    }

    /* hint */
    .me-hint {
      display: block;
      font-size: 12px;
      color: #777777;
      margin-top: 4px;
    }

    /* =========================
   MAIN WRAP (me-dha-*)
   ========================= */

    .me-dha-wrap {
      background: #000000;
      padding: 40px 16px;
      font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
    }

    .me-dha-card {
      max-width: 1200px;
      margin: 0 auto;
      background: #ffffff;
      border-radius: 18px;
      padding: 24px 24px 32px;
    }

    .me-dha-header h2 {
      font-size: 30px;
      font-weight: 700;
      text-transform: uppercase;
      margin: 0 0 8px;
    }

    .me-dha-header p {
      margin: 0 0 16px;
      font-size: 15px;
      color: #555555;
    }

    .me-dha-layout {
      display: grid;
      grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
      gap: 24px;
    }

    .me-dha-inputs {
      display: flex;
      flex-direction: column;
      gap: 14px;
    }

    @media (max-width:900px) {
      .me-dha-layout {
        grid-template-columns: 1fr;
      }
    }

    @media (max-width:600px) {
      .me-dha-card {
        padding: 18px 14px 24px;
      }
    }

    /* =========================
   STEPS + SPACING
   ========================= */

    .me-step {
      border-radius: 14px;
      border: 1px solid #f0f0f0;
      padding: 12px 14px;
      margin-bottom: 10px;
      background: #f3e8b6;
    }

    .me-step-head {
      display: flex;
      align-items: center;
      justify-content: flex-start;
      gap: 10px;
      margin-bottom: 10px;
    }

    .me-step-badge {
  font-size: 11px;
  text-transform: uppercase;
  border-radius: 999px;
  border: 1px solid #000000;
  padding: 2px 8px;
  /* New properties below */
  background-color: #000000;
  color: #ffffff;
}

    .me-step-head h3 {
      font-size: 16px;
      font-weight: 600;
      margin: 0;
    }

    .me-step-body label {
      display: block;
      font-size: 13px;
      margin-bottom: 10px;
    }

    .me-step-body label select,
    .me-step-body label input {
      width: 100%;
      margin-top: 4px;
      padding: 8px 10px;
      border-radius: 8px;
      border: 1px solid #dddddd;
      font-size: 14px;
    }

    /* FIX: gap between fields inside steps */
    .me-step-body .me-field-group {
      margin-bottom: 14px;
    }

    .me-step-body .me-field-group label {
      margin-bottom: 6px;
    }


    .me-toggle-row {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 10px;
      margin-bottom: 8px;
      font-size: 13px;
      padding: 6px 8px;
      border: 1px solid #e6e6e6;
      border-radius: 10px;
      background: #fafafa;
    }

    .me-toggle-row span {
      flex: 1 1 auto;
      min-width: 140px;
    }

    .me-toggle-group {
      display: inline-flex;
      border-radius: 999px !important;
      border: 1px solid #000000 !important;
      background-color: #f5f5f5 !important;
      overflow: hidden;
      flex-wrap: nowrap;
    }

    .me-stamp-payment-row .me-toggle-group {
      flex-wrap: nowrap;
      border-radius: 16px !important;
      overflow: visible;
      gap: 4px;
      padding: 4px;
    }

    .me-stamp-payment-row {
      flex-direction: row;
      align-items: center;
      flex-wrap: nowrap;
      gap: 10px;
    }

    .me-stamp-payment-row .me-payment-label-wrap {
      width: auto;
      min-width: 0;
      flex: 1 1 auto;
      max-width: none;
      justify-content: flex-start;
    }

    .me-stamp-payment-row .me-payment-label-wrap > span:first-child {
      min-width: 0;
      white-space: nowrap;
      overflow: visible;
      text-overflow: clip;
      line-height: 1.1;
    }

    .me-stamp-payment-row .me-toggle-group {
      width: auto;
      flex: 0 0 auto;
      margin-left: auto;
    }

    .me-stamp-payment-row .me-toggle-btn {
      min-width: 0;
      flex: 1 1 0;
      white-space: nowrap;
      line-height: 1.15;
      font-size: 10px !important;
      padding: 6px 10px !important;
      border-radius: 12px !important;
    }

    .me-toggle-btn {
      border: none !important;
      background-color: transparent !important;
      color: #000000 !important;
      padding: 4px 12px !important;
      font-size: 12px !important;
      cursor: pointer !important;
      min-width: 56px;
      text-align: center;
      flex: 1 1 auto;
    }

    .me-toggle-btn.active {
      background-color: #000000 !important;
      color: #ffffff !important;
    }

    /* =========================
   RESULTS PANELS
   ========================= */

    .me-dha-results {
      display: flex;
      flex-direction: column;
      gap: 14px !important;
      margin-top: 20px;
    }

    .me-dha-panel {
      border-radius: 14px;
      border: 1px solid #f0f0f0;
      padding: 12px 14px;
      background: #f3e8b6;
    }

    .me-dha-panel h3 {
      margin: 0 0 8px;
      font-size: 16px;
      font-weight: 600;
    }

    .me-dc-fbr {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 10px;
    }

    .me-label {
      font-size: 14px;
      color: #222222;
    }

    .me-value {
      display: block;
      font-size: 15px;
      font-weight: 700;
    }

    .me-stamp-label-wrap {
      display: inline-flex;
      align-items: flex-start;
      gap: 8px;
      flex-wrap: nowrap;
      max-width: 100%;
    }

    .me-info-label-wrap {
      display: inline-flex;
      align-items: flex-start;
      gap: 6px;
      flex-wrap: nowrap;
      max-width: 100%;
    }

    .me-row-label-wrap .me-label-text,
    .me-stamp-label-wrap .me-label-text {
      line-height: 22px;
    }

    .me-inline-info-btn,
    .me-stamp-info-btn {
      padding: 0;
      border: 1px solid #8a6d0a;
      border-radius: 50%;
      background: linear-gradient(180deg, #fff7cf 0%, #d4af37 100%);
      color: #111111;
      font-family: Georgia, "Times New Roman", serif;
      font-style: italic;
      font-weight: 900;
      line-height: 1;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      cursor: pointer;
      flex: 0 0 auto;
      margin-top: 1px;
      box-shadow: 0 2px 6px rgba(0, 0, 0, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.7);
      transition: transform 0.16s ease, box-shadow 0.16s ease, filter 0.16s ease;
    }

    .me-inline-info-btn,
    .me-stamp-info-btn {
      width: 22px;
      height: 22px;
      min-width: 22px;
      min-height: 22px;
      max-width: 22px;
      max-height: 22px;
      font-size: 12px;
    }

    .me-stamp-info-btn:hover {
      transform: translateY(-1px) scale(1.04);
      box-shadow: 0 4px 10px rgba(0, 0, 0, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.85);
    }

    .me-inline-info-btn:hover {
      transform: translateY(-1px) scale(1.04);
      box-shadow: 0 4px 10px rgba(0, 0, 0, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.85);
    }

    .me-stamp-info-btn:active {
      transform: scale(0.96);
    }

    .me-inline-info-btn:active {
      transform: scale(0.96);
    }

    .me-stamp-info-btn:focus-visible {
      outline: 2px solid #8a6d0a;
      outline-offset: 2px;
    }

    .me-inline-info-btn:focus-visible {
      outline: 2px solid #8a6d0a;
      outline-offset: 2px;
    }

    .me-info-overlay,
    .me-stamp-breakdown-overlay {
      position: fixed;
      inset: 0;
      display: none;
      align-items: center;
      justify-content: center;
      padding: 16px;
      background: rgba(0, 0, 0, 0.6);
      backdrop-filter: blur(3px);
      z-index: 2147483647;
    }

    .me-stamp-breakdown-overlay {
      z-index: 2147483646;
    }

    .me-stamp-breakdown-overlay.is-open {
      display: flex;
    }

    .me-info-overlay.is-open {
      display: flex;
    }

    .me-info-card,
    .me-stamp-breakdown-card {
      position: relative;
      width: min(100%, 460px);
      max-height: min(84vh, 640px);
      overflow: auto;
      border-radius: 18px;
      background: linear-gradient(180deg, #ffffff 0%, #fffdf3 100%);
      border: 1px solid rgba(212, 175, 55, 0.22);
      color: #111111;
      padding: 18px 18px 16px;
      box-shadow: 0 24px 80px rgba(0, 0, 0, 0.32);
    }

    .me-info-card {
      width: min(100%, 420px);
    }

    .me-info-title,
    .me-stamp-breakdown-title {
      margin: 0 32px 10px 0;
      font-size: 18px;
      line-height: 1.2;
      font-weight: 800;
    }

    .me-info-body,
    .me-stamp-breakdown-subtitle {
      margin: -4px 32px 14px 0;
      font-size: 12px;
      color: #666666;
    }

    .me-info-body {
      margin-top: 0;
      color: #333333;
      font-size: 13px;
      line-height: 1.4;
    }

    .me-info-body p {
      margin: 0 0 10px;
      line-height: 1.45;
    }

    .me-info-body p:first-child {
      padding: 12px 14px;
      border-radius: 14px;
      background: #f8f3df;
      border: 1px solid rgba(0, 0, 0, 0.06);
    }

    .me-info-body strong {
      color: #111111;
      font-weight: 800;
    }

    .me-info-body ul {
      margin: 0 0 10px;
      padding: 12px 12px 10px 28px;
      border-radius: 14px;
      background: #ffffff;
      border: 1px solid rgba(0, 0, 0, 0.06);
      line-height: 1.45;
    }

    .me-info-body li {
      margin-bottom: 7px;
      padding-bottom: 7px;
      border-bottom: 1px solid #f1f1f1;
    }

    .me-info-body li:last-child {
      margin-bottom: 0;
      padding-bottom: 0;
      border-bottom: 0;
    }

    .me-info-note {
      margin-top: 10px;
      padding: 12px 14px;
      border-radius: 14px;
      background: linear-gradient(180deg, #f8eec2 0%, #e3c65a 100%);
      color: #111111;
      font-size: 13px;
      font-weight: 700;
      line-height: 1.45;
    }

    .me-stamp-breakdown-summary {
      display: grid;
      gap: 6px;
      margin: 0 0 14px;
      padding: 12px 14px;
      border-radius: 14px;
      background: #f8f3df;
      border: 1px solid rgba(0, 0, 0, 0.06);
      font-size: 12px;
      line-height: 1.4;
    }

    .me-stamp-breakdown-summary strong {
      color: #111111;
    }

    .me-stamp-breakdown-section {
      margin-bottom: 12px;
      padding: 12px 12px 10px;
      border-radius: 14px;
      background: #ffffff;
      border: 1px solid rgba(0, 0, 0, 0.06);
    }

    .me-stamp-breakdown-section-title {
      margin: 0 0 10px;
      font-size: 14px;
      line-height: 1.25;
      font-weight: 800;
      color: #111111;
    }

    .me-stamp-breakdown-table {
      width: 100%;
      border-collapse: collapse;
    }

    .me-stamp-breakdown-table tr td {
      padding: 7px 0;
      border-bottom: 1px solid #f1f1f1;
      font-size: 13px;
      line-height: 1.35;
      vertical-align: top;
    }

    .me-stamp-breakdown-table tr:last-child td {
      border-bottom: 0;
      padding-bottom: 0;
    }

    .me-stamp-breakdown-table td:last-child {
      text-align: right;
      white-space: nowrap;
      font-weight: 700;
      width: 36%;
    }

    .me-stamp-breakdown-subtotal-row td {
      font-weight: 800;
      color: #111111;
    }

    .me-stamp-breakdown-list {
      display: flex;
      flex-direction: column;
      gap: 8px;
    }

    .me-stamp-breakdown-row {
      display: flex;
      align-items: flex-start;
      justify-content: space-between;
      gap: 12px;
      font-size: 13px;
      line-height: 1.35;
      padding-bottom: 8px;
      border-bottom: 1px solid #f1f1f1;
    }

    .me-stamp-breakdown-row:last-child {
      border-bottom: 0;
      padding-bottom: 0;
    }

    .me-stamp-breakdown-row span {
      color: #333333;
    }

    .me-stamp-breakdown-row strong {
      flex: 0 0 auto;
      font-weight: 700;
      white-space: nowrap;
    }

    .me-stamp-breakdown-total {
      margin-top: 12px;
      padding: 12px 14px;
      border-radius: 14px;
      background: linear-gradient(180deg, #f8eec2 0%, #e3c65a 100%);
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 12px;
      font-size: 14px;
      font-weight: 800;
    }

    .me-stamp-breakdown-close {
      position: absolute;
      top: 10px;
      right: 10px;
      width: 32px;
      height: 32px;
      border: 1px solid #8a6d0a;
      border-radius: 50%;
      background: linear-gradient(180deg, #ffffff 0%, #f5e6ac 100%);
      color: #111111;
      font-size: 18px;
      line-height: 1;
      cursor: pointer;
      box-shadow: 0 2px 8px rgba(0, 0, 0, 0.16);
    }

    .me-stamp-breakdown-close:hover {
      background: #111111;
      color: #ffffff;
    }

    body.me-exporting .me-no-export,
    body.me-exporting .me-stamp-breakdown-overlay,
    body.me-exporting .me-info-overlay {
      display: none !important;
    }

    @media (max-width: 991px) {
      body.me-transfer-calculator-page #compare-property-panel,
      body.me-transfer-calculator-page .compare-property-panel {
        display: none !important;
        visibility: hidden !important;
        pointer-events: none !important;
      }
    }

    @media print {
      .me-no-export,
      .me-stamp-breakdown-overlay,
      .me-info-overlay {
        display: none !important;
      }
    }

    .me-table {
      width: 100%;
      border-collapse: collapse;
      font-size: 13px;
      table-layout: fixed;
    }

    .me-table tr {
      height: 34px;
    }

    .me-table td {
      padding: 5px 0;
      border-bottom: 1px dashed #eeeeee;
      line-height: 22px;
      vertical-align: middle;
    }

    .me-table td:first-child {
      width: 74%;
      word-break: break-word;
      padding-right: 12px;
    }

    .me-table td:last-child {
      text-align: right;
      width: 26%;
      white-space: nowrap;
    }

    .me-summary-grid {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 8px;
    }

.me-grand{
  grid-column: 1 / -1;
  padding-top: 4px;
  padding: 12px 14px;
  border-radius: 10px;
  border-top: 1px solid #eeeeee;
  background: #d4af37;
  display: flex;
  justify-content: flex-end;
  text-align: right;
  gap: 6px;
}

.me-grand .me-label{
  font-weight: 600;
  font-size: 15px;
}

.me-grand .me-value{
  letter-spacing: 0.02em;
}

    .me-note {
      margin: 8px 0 0;
      font-size: 12px;
      color: #777777;
    }

    /* nicer summary boxes */
    .me-result-box {
      background: #ffffff;
      border-radius: 14px;
      padding: 12px 14px;
    }

    .me-result-title {
      font-size: 15px;
      font-weight: 700;
      margin: 0 0 6px;
      line-height: 1.2;
      color: #000000 !important;
    }

    .me-result-row {
      display: flex;
      justify-content: space-between;
      padding: 3px 0;
      font-size: 13px;
      line-height: 1.2;
    }

    .me-edit-label-wrap {
      display: flex;
      align-items: center;
      gap: 6px;
      flex-wrap: nowrap;
    }

    .me-edit-label {
      flex: 1 1 200px;
      padding: 6px;
      border: 1px solid #000000;
      border-radius: 8px;
      font-size: 12px;
    }

    .me-edit-amt {
      width: 120px;
      max-width: 100%;
      padding: 6px;
      border: 1px solid #000000;
      border-radius: 8px;
      text-align: right;
    }

    .me-row-del {
      border: 1px solid #000000;
      background: #000000;
      color: #ffffff;
      border-radius: 999px;
      width: 24px;
      height: 24px;
      padding: 0;
      font-size: 12px;
      line-height: 1;
      cursor: pointer;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      flex: 0 0 auto;
    }

    .me-row-move,
    .me-drag-handle,
    .me-mini-del {
      border: 1px solid #000000;
      background: #ffffff;
      color: #000000;
      border-radius: 999px;
      height: 24px;
      min-width: 28px;
      padding: 0 9px;
      font-size: 11px;
      font-weight: 700;
      line-height: 1;
      cursor: pointer;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      flex: 0 0 auto;
      box-shadow: 0 1px 3px rgba(0,0,0,0.12);
      transition: background 0.16s ease, color 0.16s ease, transform 0.16s ease;
    }

    .me-row-move:hover,
    .me-drag-handle:hover {
      background: #d4af37;
      color: #000000;
      transform: translateY(-1px);
    }

    .me-mini-del {
      width: 24px;
      min-width: 24px;
      padding: 0;
      background: #000000;
      color: #ffffff;
    }

    .me-mini-del:hover,
    .me-row-del:hover {
      background: #d4af37;
      color: #000000;
    }

    .me-mini-summary .me-result-row {
      font-size: 12px;
      color: #555555;
      justify-content: flex-start;
    }

    .me-mini-summary .me-result-label,
    .me-mini-summary .me-result-value {
      font-weight: 500;
      color: #555555 !important;
    }

    .me-summary-breadcrumbs {
      display: flex;
      flex-direction: column;
      gap: 2px;
    }

    .me-summary-line {
      font-size: 11px;
      line-height: 1.05;
      color: #333333;
      letter-spacing: 0.01em;
    }

    .me-result-title.me-section-title {
      background: linear-gradient(120deg, #111111, #3a3a3a);
      color: #ffffff !important;
      padding: 6px 10px;
      border-radius: 10px;
      display: flex;
      align-items: center;
      gap: 8px;
      font-weight: 700;
      box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
    }

    .me-result-title.me-section-title svg {
      color: #ffffff !important;
    }

    .me-summary-line-edit {
      display: flex;
      align-items: center;
      gap: 6px;
    }

    .me-custom-edit-cell {
      display: flex;
      gap: 6px;
      align-items: center;
      flex-wrap: nowrap;
    }

    .me-custom-label-input,
    .me-custom-payer-select {
      box-sizing: border-box;
      padding: 6px;
      border: 1px solid #000000;
      border-radius: 8px;
      font-size: 12px;
    }

    .me-custom-label-input {
      flex: 1 1 auto;
      min-width: 120px;
    }

    .me-custom-payer-select {
      flex: 0 0 76px;
      min-width: 76px;
    }

    .me-drag-handle {
      cursor: grab;
    }

    .me-drag-handle:active {
      cursor: grabbing;
    }

    .me-custom-row.me-drag-over,
    .me-table tr.me-drag-over {
      outline: 2px dashed #000000;
      outline-offset: 2px;
    }

    .me-summary-head {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 8px;
      margin-bottom: 6px;
    }

    .me-summary-tools {
      display: inline-flex;
      gap: 6px;
    }

    .me-summary-tools button {
      border: 1px solid #000000;
      background: #ffffff;
      color: #000000;
      border-radius: 999px;
      padding: 2px 8px;
      font-size: 11px;
      cursor: pointer;
    }

    .me-summary-del {
      border: 1px solid #000000;
      background: #000000;
      color: #ffffff;
      border-radius: 999px;
      padding: 2px 6px;
      font-size: 11px;
      line-height: 1;
      margin-left: 6px;
      cursor: pointer;
    }

    .me-summary-input {
      border: 1px solid #000000;
      border-radius: 8px;
      padding: 4px 6px;
      font-size: 12px;
      width: 48%;
      box-sizing: border-box;
    }

    .me-summary-line-input {
      width: 100%;
    }

    .me-dc-head {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 8px;
    }

    .me-dc-tools button {
      border: 1px solid #000000;
      background: #ffffff;
      color: #000000;
      border-radius: 999px;
      padding: 2px 8px;
      font-size: 11px;
      cursor: pointer;
    }

    .me-result-label {
      font-weight: 500;
      color: #444444 !important;
    }

    .me-result-value {
      font-weight: 600;
      color: #000000 !important;
    }

    .me-divider {
      border-top: 1px solid #e8e8e8;
      margin-top: 8px;
      margin-bottom: 4px;
    }

    /* =========================
   THEME OVERRIDES (IMPORTANT)
   ========================= */

    .me-dha-wrap select,
    .me-dha-wrap input[type="number"],
    .me-dha-wrap input[type="text"],
    .me-dha-wrap input[type="checkbox"],
    .me-dha-wrap input[type="radio"] {
      background-color: #ffffff !important;
      color: #000000 !important;
      border: 1px solid #000000 !important;
      border-radius: 6px !important;
      font-size: 13px !important;
    }

    .me-dha-wrap table td,
    .me-dha-wrap h2,
    .me-dha-wrap h3,
    .me-dha-wrap label,
    .me-dha-wrap p,
    .me-dha-wrap span {
      color: #000000 !important;
    }

    /* =========================
   ACTION BUTTONS
   ========================= */

    .me-dha-wrap .me-primary-btn,
    .me-dha-wrap button#calcBtn {
      background: linear-gradient(135deg, #f3d374 0%, #c9972a 52%, #8b6415 100%) !important;
      color: #111111 !important;
      border: 1px solid #9a711b !important;
      border-radius: 999px !important;
      padding: 8px 18px !important;
      font-size: 13px !important;
      font-weight: 600 !important;
      cursor: pointer !important;
    }

    .me-dha-wrap .me-primary-btn:hover,
    .me-dha-wrap button#calcBtn:hover {
      background: #111111 !important;
      color: #ffffff !important;
    }

    .me-dha-wrap .me-secondary-btn,
    .me-dha-wrap button#resetBtn {
      background-color: #ffffff !important;
      color: #000000 !important;
      border: 1px solid #c9972a !important;
      border-radius: 999px !important;
      padding: 7px 18px !important;
      font-size: 13px !important;
      font-weight: 500 !important;
      cursor: pointer !important;
    }

    .me-step-body .me-primary-btn,
    .me-step-body .me-secondary-btn {
      display: inline-flex;
      align-items: center;
      gap: 8px;
    }

    .me-step-body .me-btn-icon svg {
      width: 16px;
      height: 16px;
      display: block;
    }

    .me-step-body .me-primary-btn .me-btn-icon svg{
      fill:#111111;
    }

    .me-step-body .me-primary-btn:hover .me-btn-icon svg{
      fill:#ffffff;
    }

    .me-step-body .me-secondary-btn .me-btn-icon svg{
      fill:#000000;
    }

    .me-step-actions{
      display:flex;
      gap:12px;
      flex-wrap:wrap;
      align-items:center;
      justify-content:center;
    }

    @media (max-width:440px){
      .me-step-actions{
        flex-direction:column;
        align-items:stretch;
      }
      .me-step-actions .me-primary-btn,
      .me-step-actions .me-secondary-btn{
        width:100%;
        justify-content:center;
      }
    }
    @media (min-width:435px) and (max-width:520px){
      .me-step-actions{
        flex-wrap:nowrap;
        gap:8px;
      }
      .me-step-actions .me-primary-btn,
      .me-step-actions .me-secondary-btn{
        padding:7px 12px !important;
        font-size:12px !important;
      }
      .me-step-actions .me-btn-icon svg{
        width:14px;
        height:14px;
      }
    }

    .me-dha-wrap .me-secondary-btn:hover,
    .me-dha-wrap button#resetBtn:hover {
      background-color: #111111 !important;
      color: #ffffff !important;
    }

    /* Download buttons - centered */
    .me-dha-actions {
      text-align: center;
      padding-top: 10px;
    }

    .me-download-btn {
      position: relative;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 8px;
      padding: 12px 30px !important;
      border-radius: 999px !important;
      border: 1px solid #000000 !important;
      font-size: 14px !important;
      font-weight: 700 !important;
      text-transform: uppercase;
      letter-spacing: 0.04em;
      cursor: pointer;
      overflow: hidden;
    }

    /* Primary: JPG */
    #downloadJpgBtn {
      color: #ffffff !important;
      border: none !important;
      background-image: linear-gradient(120deg, #000000, #333333, #000000);
      background-size: 200% 200%;
      animation: me-hero-gradient 3s ease infinite;
      box-shadow: 0 8px 22px rgba(0, 0, 0, 0.35);
    }

    #downloadJpgBtn:hover {
      transform: translateY(-1px);
      box-shadow: 0 10px 28px rgba(0, 0, 0, 0.45);
    }

    #downloadJpgBtn::after {
      content: "";
      position: absolute;
      inset: 0;
      background: radial-gradient(circle at 0% 0%, rgba(255, 255, 255, 0.28), transparent 55%);
      opacity: 0;
      pointer-events: none;
      transition: opacity 0.3s ease;
    }

    #downloadJpgBtn:hover::after {
      opacity: 1;
    }

    /* Secondary: PDF */
    #saveResultsBtn {
      background: #ffffff !important;
      color: #000000 !important;
      border: 1px solid #000000 !important;
      box-shadow: 0 6px 16px rgba(0, 0, 0, 0.18);
    }

    #saveResultsBtn:hover {
      background: #000000 !important;
      color: #ffffff !important;
      transform: translateY(-1px);
      box-shadow: 0 10px 24px rgba(0, 0, 0, 0.25);
    }

    @keyframes me-hero-gradient {
      0% {
        background-position: 0% 50%;
      }

      50% {
        background-position: 100% 50%;
      }

      100% {
        background-position: 0% 50%;
      }
    }

    @media (max-width:600px) {
      #downloadJpgBtn,
      #saveResultsBtn {
        width: 100%;
        max-width: 100%;
      }
    }

    /* PDF progress overlay */
    .me-pdf-overlay {
      position: fixed !important;
      inset: 0 !important;
      top: 0 !important;
      right: 0 !important;
      bottom: 0 !important;
      left: 0 !important;
      width: 100vw !important;
      height: 100vh !important;
      background: rgba(0, 0, 0, 0.55);
      display: none;
      align-items: center;
      justify-content: center;
      z-index: 9999;
      padding: 20px;
      box-sizing: border-box;
      pointer-events: auto;
      -webkit-transform: translateZ(0);
      transform: translateZ(0);
    }

    .me-pdf-overlay.active {
      display: flex !important;
    }

    .me-pdf-overlay.active::before {
      content: attr(data-status);
      position: absolute;
      top: calc(12px + env(safe-area-inset-top, 0px));
      left: 50%;
      transform: translateX(-50%);
      background: rgba(0, 0, 0, 0.75);
      color: #ffffff;
      padding: 6px 12px;
      border-radius: 999px;
      font-size: 12px;
      letter-spacing: 0.01em;
      max-width: 90%;
      text-align: center;
      box-sizing: border-box;
    }

    .me-pdf-box {
      background: #ffffff;
      color: #000000;
      border-radius: 14px;
      padding: 18px 20px;
      max-width: 340px;
      width: 100%;
      text-align: center;
      border: 1px solid #000000;
      box-shadow: 0 10px 24px rgba(0, 0, 0, 0.2);
      font-size: 13px;
      position: relative;
      z-index: 10001;
    }

    .me-pdf-hint {
      margin-top: 6px;
      font-size: 11px;
      color: #555555;
    }

    .me-pdf-action {
      margin-top: 10px;
      display: none;
      align-items: center;
      justify-content: center;
      border: 1px solid #000000;
      background: #000000;
      color: #ffffff;
      border-radius: 999px;
      padding: 6px 12px;
      font-size: 12px;
      cursor: pointer;
    }

    .me-pdf-action-float {
      position: fixed;
      bottom: 18px;
      left: 50%;
      transform: translateX(-50%);
      display: none;
      align-items: center;
      justify-content: center;
      border: 1px solid #000000;
      background: #000000;
      color: #ffffff;
      border-radius: 999px;
      padding: 8px 14px;
      font-size: 13px;
      cursor: pointer;
      z-index: 10000;
    }

    .me-pdf-spinner {
      width: 28px;
      height: 28px;
      border: 3px solid #dddddd;
      border-top-color: #000000;
      border-radius: 50%;
      margin: 0 auto 10px;
      animation: me-spin 0.9s linear infinite;
    }

    @keyframes me-spin {
      to {
        transform: rotate(360deg);
      }
    }

    @media (prefers-reduced-motion: reduce) {
      #downloadJpgBtn,
      .me-pdf-spinner,
      .me-shake {
        animation: none !important;
      }
    }

    /* =========================
   PDF REPORT (REPORT PAGE)
   KEEP ONLY ONE VERSION
   ========================= */

    .me-report-page {
      width: 210mm;
      height: 297mm;
      box-sizing: border-box;
      padding: 10mm 15mm 12mm;
      font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
      position: relative;
      background: #ffffff;
      color: #000000;
      display: flex;
      flex-direction: column;
    }

.me-report-page{ 
  position:relative;
padding-top:10px !important; }
.me-report-content-box{ position:relative; z-index:1; }
.me-report-page a,
.me-report-page a:visited{
  color:#000 !important;
  text-decoration:none !important;
}

.me-report-watermark{
  position:absolute;
  inset:0;
  display:flex;
  align-items:center;
  justify-content:center;
  z-index:3;                 /* always on top */
  opacity:0.08;
  padding-top: 80px;
  font-size:64px;
  font-weight:800;
  letter-spacing:2px;
  transform:rotate(-13deg);
  pointer-events:none;
  color:#000000;             /* LIGHT GOLD */
  mix-blend-mode: multiply; /* works over black + white */
}



    .me-report-header {
      display: flex;
      justify-content: space-between;
      align-items: flex-start;
      gap: 20px;
      border-bottom: 1px solid #dddddd;
      padding-bottom: 6px;
      margin-bottom: 6px;
    }

    .me-report-header-left {
      display: flex;
      gap: 8px;
      align-items: flex-start;
    }

    .me-report-header-left img {
      height: 42px;
      width: auto;
    }

    .me-report-header-left h1 {
      font-size: 14px;
      margin: 0 0 2px;
      text-transform: uppercase;
    }

    .me-report-header-left small {
      font-size: 9px;
      color: #555555;
    }

    .me-report-date {
      margin-bottom: 4px;
      font-weight: 600;
    }

    .me-report-body {
      flex: 1;
      display: flex;
      justify-content: center;
      align-items: flex-start;
    }

    .me-report-content-box {
      max-width: 170mm;
      width: 100%;
      font-size: 10px;
    }

    .me-report-footer {
      display: flex;
      justify-content: space-between;
      align-items: flex-end;
      margin-top: 10mm;
      font-size: 8.5px;
      border-top: 1px solid #e0e0e0;
      padding-top: 3mm;
    }

    .me-report-footer-left span,
    .me-report-footer-right span {
      display: block;
    }

    .me-social-icons span {
      display: inline-block;
      margin-left: 3px;
      border: 1px solid #000;
      border-radius: 50%;
      padding: 2px 4px;
      font-size: 7px;
    }

    /* PDF target tweaks */
    .me-dha-report-target {
      background: #ffffff !important;
      padding: 16px 20px !important;
      max-width: 800px;
      margin: 0 auto;
      border-radius: 0;
      box-shadow: none !important;
    }

    .me-dha-report-target #saveResultsBtn {
      display: none !important;
    }

    .me-dha-report-logo {
      display: flex;
      justify-content: space-between;
      align-items: flex-end;
      margin-bottom: 12px;
      padding-bottom: 10px;
      border-bottom: 1px solid #dddddd;
      font-size: 11px;
      color: #555555;
    }

    .me-dha-report-logo img {
      height: 40px;
      width: auto;
    }

    .me-dha-report-meta {
      text-align: right;
      line-height: 1.4;
    }

/* ===== ACTION BUTTONS (only Calc + Reset) ===== */
#calcBtn, #resetBtn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;

  border-radius:999px !important;
  padding:12px 22px !important;
  font-size:14px !important;
  font-weight:700 !important;
  letter-spacing:0;

  transition: transform .15s ease, box-shadow .15s ease, background .15s ease, color .15s ease;
}

/* Calculate (gold accent) */
#calcBtn{
  background-image: linear-gradient(120deg, #f3d374, #c9972a, #8b6415);
  background-size: 200% 200%;
  animation: me-hero-gradient 3s ease infinite;

  color:#111 !important;
  border:1px solid #9a711b !important;
  box-shadow: 0 10px 24px rgba(171,119,26,0.22) !important;
}
#calcBtn:hover{
  transform: translateY(-1px);
  background:#111 !important;
  color:#fff !important;
  box-shadow: 0 14px 30px rgba(0,0,0,0.22) !important;
}

/* Reset (clean white) */
#resetBtn{
  background:#fff !important;
  color:#000 !important;
  border:1px solid #c9972a !important;
  box-shadow: 0 10px 24px rgba(171,119,26,0.12) !important;
}
#resetBtn:hover{
  transform: translateY(-1px);
  background:#000 !important;
  color:#fff !important;
  box-shadow: 0 14px 30px rgba(0,0,0,0.16) !important;
}

/* Mobile full-width */
@media (max-width: 600px){
  #calcBtn, #resetBtn{ width:100% !important; }
  #calcBtn{ margin-bottom: 8px; }
}

@media (max-width:600px) {
  .me-breakdown-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .me-breakdown-tools {
    width: 100%;
    flex-wrap: wrap;
    justify-content: stretch;
  }

  .me-breakdown-tools button {
    width: 100%;
    flex: 1 1 100%;
  }

  .me-table td:first-child {
    width: 66%;
  }

  .me-table td:last-child {
    width: 34%;
  }

  .me-edit-label {
    flex: 1 1 100%;
  }

  .me-edit-amt {
    width: 100%;
  }

  .me-custom-edit-cell select,
  .me-custom-edit-cell input {
    width: 100%;
  }

  .me-custom-edit-cell {
    flex-wrap: wrap;
  }

  .me-custom-label-input {
    flex: 1 1 100%;
    min-width: 100%;
  }

  .me-custom-payer-select {
    flex: 1 1 76px;
    min-width: 76px;
    width: auto;
  }
}

@media (max-width:439px) {
  .me-toggle-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .me-toggle-row span {
    min-width: 0;
  }

  .me-toggle-group {
    width: 100%;
    flex-wrap: wrap;
  }

  .me-toggle-btn {
    flex: 1 1 48%;
    padding: 6px 10px !important;
    min-height: 36px;
    line-height: 1.15;
  }

  .me-size-presets {
    gap: 5px;
  }

  .me-size-preset {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 32px;
    padding: 6px 10px !important;
    line-height: 1.1;
  }

  .me-stamp-payment-row {
    flex-direction: column;
    align-items: stretch;
    justify-content: space-between;
    flex-wrap: nowrap;
    gap: 8px;
  }

  .me-stamp-payment-row .me-payment-label-wrap {
    width: 100%;
    min-width: 0;
    max-width: none;
    justify-content: flex-start;
  }

  .me-stamp-payment-row .me-payment-label-wrap > span:first-child {
    min-width: 0;
    white-space: nowrap;
    overflow: visible;
    text-overflow: clip;
    line-height: 1.1;
  }

  .me-stamp-payment-row .me-toggle-group {
    box-sizing: border-box;
    width: 100%;
    flex: 0 0 auto;
    margin-left: 0;
    flex-wrap: nowrap;
  }

  .me-stamp-payment-row .me-toggle-btn {
    flex: 1 1 0;
    min-width: 0;
  }

  .me-toggle-group[data-toggle-for="verificationOption"],
  .me-toggle-group[data-toggle-for="bianaOption"],
  .me-toggle-group[data-toggle-for="agreementOption"],
  .me-toggle-group[data-toggle-for="fedOption"] {
    box-sizing: border-box;
    flex-wrap: nowrap;
    gap: 4px;
    padding: 4px;
    border-radius: 16px !important;
    overflow: visible;
  }

  .me-toggle-group[data-toggle-for="verificationOption"] .me-toggle-btn,
  .me-toggle-group[data-toggle-for="bianaOption"] .me-toggle-btn,
  .me-toggle-group[data-toggle-for="agreementOption"] .me-toggle-btn,
  .me-toggle-group[data-toggle-for="fedOption"] .me-toggle-btn {
    flex: 1 1 0;
    min-width: 0;
    white-space: nowrap;
    line-height: 1.15;
    border-radius: 12px !important;
  }
}

/* Force ONLY inside calculator */
.me-dha-wrap .me-size-preset{
  background:#fff !important;
  color:#000 !important;
  border:1px solid #ddd !important;
}
#meEditBreakdownBtn,
#meAddLineBtn{
  background:#d4af37 !important; /* light gold */
  color:#000 !important;
  border-color:#d4af37 !important;
}
#meEditBreakdownBtn:hover,
#meAddLineBtn:hover{
  background:#bfa133 !important;
}


.me-dha-wrap .me-size-preset.active{
  background:#000 !important;
  color:#fff !important;
  border-color:#000 !important;
}

/* Stop theme/elementor from forcing all buttons black */
.me-dha-wrap button:not(.me-size-preset):not(.me-toggle-btn):not(#calcBtn):not(#resetBtn){
  background: initial !important;
  color: initial !important;
}

.me-size-presets{ display:flex !important; visibility:visible !important; opacity:1 !important; }

.me-report-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 20px;
  border-top: 1px solid #000;
  font-family: Inter, Arial, sans-serif;
  font-size: 10px;
  line-height: 1.4;
  color: #000;
}

.me-footer-left {
  max-width: 65%;
}

.me-footer-right {
  text-align: right;
}

.me-footer-site {
  font-weight: 600;
  display: block;
  margin-bottom: 4px;
}

.me-footer-icons {
  display: flex;
  gap: 6px;
  justify-content: flex-end;
}

.me-icon {
  width: 12px;
  height: 12px;
  fill: #000;
}





.me-result-split{
  display:flex !important;
  flex-direction:row !important; /* force logo LEFT */
  align-items:center !important;
}

.me-result-logoBox{
  display:flex !important;
  align-items:center !important;
  justify-content:center !important; /* center */
}

.me-result-logoBox img{
  width:100% !important;
  height:100% !important;
  object-fit:contain !important;
  display:block !important;
}




.me-report-footer{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:14px;
  padding-top:10px;
  margin-top:10px;
  border-top:1px solid #000;
  font-size:11px;
  line-height:1.35;
}

.me-report-footer-right{
  text-align:right;
}

.me-social-icons{
  display:flex;
  gap:8px;
  align-items:center;
  justify-content:flex-end;
  margin-top:4px;
}

.me-social-icons svg{
  width:14px !important;
  height:14px !important;
  display:block;
}

.me-social-icons path{
  fill:#000 !important;
}




.me-breakdown-tools{
  display:flex;
  align-items:center;
  gap:10px;
  margin-bottom:10px;
  justify-content:flex-end;
  border:1px solid rgba(255,255,255,0.28);
  background:rgba(255,255,255,0.08);
  border-radius:999px;
  padding:4px 6px;
}
.me-breakdown-tools button{
  flex:0 0 auto;
}
.me-secondary-btn{
  border:1px solid #000;
  background:#fff;
  color:#000;
  padding:8px 12px;
  border-radius:10px;
  font-family:Inter, sans-serif;
  cursor:pointer;
}

/* ===== PDF HEADER (3 blocks) ===== */
.me-report-header{
  display:grid;
  grid-template-columns: 110px 1fr 54px; 
  gap: 12px;
  align-items:center;
  padding-bottom: 6px;
  border-bottom: 1px solid #dddddd;
}


/* Square boxes */
.me-report-box{
  height:54px;
  border:none;
  border-radius:12px;
  display:flex;
  align-items:center;
  justify-content:center;
  overflow:hidden;
  background:#fff;
}

.me-report-box-left{
  width:110px;
  justify-content:flex-start;
}

.me-report-box-right{
  width:54px;
}


.me-report-qr-img{
  width:100%;
  height:100%;
  object-fit:contain;
  padding:0;
  display:block;
}


/* QR */
.me-report-qr-img{
  width:100%;
  height:100%;
  object-fit:contain;
  padding:6px;
  display:block;
}

/* Center title */
.me-report-center{
  text-align:center;
  line-height:1.2;
}



.me-report-title{
  margin:0;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color:#000;
}

.me-report-subtitle{
  margin-top:4px;
  font-size: 10px;
  font-weight: 500;
  color:#444;
}

/* Date row (under header line, right aligned) */
.me-report-date-row{
  display:flex;
  justify-content:flex-end;
  margin-top:6px;
}

.me-report-date{
  font-size: 9.5px;
  color:#444;
  font-weight:600;
}

.me-breakdown-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  margin-bottom:10px;
}
.me-breakdown-title{ margin:0; }
.me-breakdown-tools{ display:flex; gap:8px; }


.me-sum-with-logo{
  display:grid;
  grid-template-columns: 1fr 86px;
  gap:12px;
  position:relative;
}
.me-sum-logoBox{
  width:86px;
  height:86px;
  border:1px solid #eee;
  border-radius:14px;
  display:flex;
  align-items:center;
  justify-content:center;
  overflow:hidden;
  background:#fff;
  margin-top:6px;
}
.me-sum-logoBox img{
  width:100%;
  height:100%;
  object-fit:contain;   /* important */
}
.me-sum-main .me-result-row{
  display:flex;
  justify-content:space-between;
  gap:10px;
}
.me-sum-main .me-result-value{
  text-align:right;
  font-weight:600;
}


.me-report-page #meEditBreakdownBtn,
.me-report-page #meAddLineBtn,
.me-report-page #meEditSummaryBtn,
.me-report-page #meAddSummaryBtn,
.me-report-page #meEditDcFbrBtn,
.me-report-page #meEditPropertySummaryBtn,
.me-report-page #meAddPropertySummaryBtn{
  display:none !important;
}

.me-report-page .me-breakdown-tools{
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  padding: 0 !important;
}


.me-report-page .me-footer-icons svg{
  width:12px !important;
  height:12px !important;
  display:block !important;
}
.me-report-page .me-footer-icons{
  display:flex;
  gap:6px;
  justify-content:flex-end;
  align-items:center;
}


.me-report-logo-img{
  max-height:48px;      /* balanced */
  width:auto;
  height:auto;
  object-fit:contain;
  display:block;
}




.me-report-qr-img{
  width:46px !important;
  height:46px !important;
  object-fit:contain !important;
  display:block;
}

.me-report-header,
.me-report-date-row,
.me-report-footer{
  flex: 0 0 auto;
}

.me-report-body{
  flex: 1 1 auto;
  overflow: hidden;
}

.me-report-content-box{
  transform-origin: top center;
}


.me-breakdown-head{
  background: linear-gradient(120deg, #000000, #3a3a3a, #000000);
  color:#fff;
  padding:10px 12px;
  border-radius:12px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  box-shadow: 0 10px 22px rgba(0,0,0,0.2);
}

.me-breakdown-title{
  margin:0;
  font-weight:700;
  font-size:18px;
  color:#fff;
  display:flex;
  align-items:center;
  gap:8px;
}

.me-breakdown-title svg{
  width:14px !important;
  height:14px !important;
}
.me-result-title svg,
.me-label svg{
  width:14px !important;
  height:14px !important;
  vertical-align:middle;
}

.me-report-content-box{
  padding:10px 12px !important;
}
.me-report-body{
  margin-top:6px !important;
}

/* Give logo box a bit more height + padding so it never clips */
.me-report-box{
  height: 60px !important;
    overflow: hidden !important;
    }
    .me-report-box-left{
      padding: 6px !important;
      }
      .me-report-box-left img{
          width: 100% !important;      /* fill horizontally */
            height: auto !important;     /* keep original ratio */
              max-height: 100% !important; /* never overflow */
                object-fit: contain !important;
                  display: block !important;
                  }
      



      /* Fix Elementor/Houzez making quick-size buttons huge */
      .me-dha-wrap .me-size-preset{
        appearance: none !important;
          -webkit-appearance: none !important;
            border: 1px solid #ddd !important;
              background: #f0f0f0 !important;
                color: #000 !important;

                  padding: 3px 8px !important;
                    font-size: 10px !important;
                      line-height: 1.2 !important;

                        min-height: 0 !important;
                          height: auto !important;
                            box-shadow: none !important;
                              text-transform: none !important;
                              }

                              /* Active state (only selected button black) */
                              .me-dha-wrap .me-size-preset.active{
                                background:#000 !important;
                                  color:#fff !important;
                                    border-color:#000 !important;
                                    }


                                    .me-dha-wrap *{
  box-sizing: border-box;
}

/* hide property summary only */
#previewProperty,
#previewSize,
#previewCoveredAreaRow{
  display:none !important;
}


.me-dha-panel.me-result-box{
  display: none !important;
}

.me-dha-panel.me-show-panel{
  background: #f3e8b6;
  display: block !important;
}

/* BUT show DC / FBR panel */
.me-dha-panel.me-result-box:has(#previewDCValue),
.me-dha-panel.me-result-box:has(#previewFBRValue){
  display: block !important;
}

@media screen{
  .me-dha-panel.me-result-box{
    display: none !important;
  }
  .me-dha-panel.me-show-panel{
    display: block !important;
  }
}



/* Dropdown selected/placeholder styling */
.me-field-group select.me-placeholder {
  color: #777 !important;
  border-color: #bbb !important;
}
.me-field-group select.me-selected {
  color: #000 !important;
  border-color: #000 !important;
}

/* Error highlight */
.me-field-group select.me-error,
.me-field-group input.me-error {
  border-color: #d00000 !important;
  box-shadow: 0 0 0 3px rgba(208,0,0,0.15) !important;
}


.me-toggle-group.me-locked{opacity:.65; pointer-events:none;}
.me-field-error{outline:2px solid #ff3b3b !important; outline-offset:2px;}
.me-shake{animation:meShake .28s linear 2;}
@keyframes meShake{0%{transform:translateX(0)}25%{transform:translateX(-4px)}50%{transform:translateX(4px)}75%{transform:translateX(-3px)}100%{transform:translateX(0)}}

.me-field-group select.me-selected{
  border-color:#000;
  box-shadow:0 0 0 2px rgba(0,0,0,.08);
}




  #meResultSection{
    display:none;
    scroll-margin-top: 12px;
    padding-bottom: 28px;
  }
  .me-show-results #meInputSection{ display:none; }
  .me-show-results #meResultSection{ display:block; }

  .me-back-btn{
    border:1px solid #000;
    background:#fff;
    color:#000;
    border-radius:999px;
    padding:12px 18px;
    font-weight:800;
    cursor:pointer;
  }
  .me-back-btn:hover{
    background:#000;
    color:#fff;
  }

    .me-dha-actions{
      display:flex;
      gap:12px;
      align-items:center;
      justify-content:center;
      flex-wrap:wrap;
    }

  .me-dha-actions .me-back-btn,
  .me-dha-actions #downloadJpgBtn,
  .me-dha-actions #saveResultsBtn{
    width:auto;
    flex:1 1 260px;
  }

  /* __MAAN_RESULT_SAFE_PAD__ */
@media (max-width:600px){
  #meResultSection{ padding-bottom:36px; }
    #meResultSection{
      padding-bottom: 36px;
    }
    .me-dha-actions{
      flex-direction:column;
      align-items:stretch;
    }
    .me-dha-actions .me-back-btn,
    .me-dha-actions #downloadJpgBtn,
    .me-dha-actions #saveResultsBtn{
      width:100%;
      flex:1 1 auto;
    }
  }

  .me-result-actions{
    display:flex;
    flex-wrap:wrap;
    gap:12px;
    align-items:center;
    justify-content:center;
    margin-top:14px;
  }
  .me-action-btn{
    display:inline-flex;
    align-items:center;
    gap:10px;
    padding:12px 16px;
    border-radius:12px;
    border:1px solid #000;
    background:#ffffff;
    color:#000000;
    font-weight:800;
    letter-spacing:0.01em;
    cursor:pointer;
    box-shadow:0 10px 18px rgba(0,0,0,0.12);
    transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, color 0.15s ease;
  }
  .me-action-btn:hover{
    transform: translateY(-1px);
    box-shadow:0 14px 22px rgba(0,0,0,0.16);
  }
  .me-action-btn svg{
    width:20px;
    height:20px;
    flex:0 0 auto;
  }
  .me-action-btn.me-action-primary{
    background:#000000;
    color:#ffffff;
    border-color:#000000;
  }
  .me-action-btn.me-action-primary svg{
    fill:#ffffff;
  }
  @media (max-width:400px){
    .me-result-actions{
      flex-direction:column;
      align-items:stretch;
    }
    .me-action-btn{
      width:100%;
      justify-content:center;
    }
  }
  @media (min-width:435px) and (max-width:520px){
    .me-result-actions{
      flex-wrap:nowrap;
      gap:8px;
    }
    .me-action-btn{
      padding:10px 12px;
      font-size:13px;
    }
    .me-action-btn svg{
      width:18px;
      height:18px;
    }
  }

  .me-edited-badge{
    display:none;
    align-items:center;
    gap:6px;
    padding:4px 10px;
    border-radius:999px;
    border:1px solid #f2c66d;
    background:#fff3cd;
    color:#8a5b00;
    font-size:11px;
    font-weight:700;
    text-transform:uppercase;
    letter-spacing:0.04em;
    margin-bottom:8px;
  }

  /* Export-only background overrides */
  .me-exporting .me-dha-panel,
  .me-exporting .me-dha-panel.me-show-panel,
  .me-exporting .me-grand{
    background:#ffffff !important;
  }
  .me-exporting .me-result-actions{
    display:none !important;
  }
  .me-report-page .me-result-actions{
    display:none !important;
  }




  
  .me-aftercalc-wrap{
    background:#ffffff;
    padding:24px 14px;
    font-family:Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
    color:#000;
  }
  .me-aftercalc-box{
    max-width:980px;
    margin:0 auto;
  }

  .me-sep{
    height:1px;
    background:linear-gradient(90deg, transparent, #e6e6e6, transparent);
    margin:6px 0 18px;
  }

  .me-title{
    font-size:30px;
    font-weight:700;
    text-transform:uppercase;
    line-height:1.3;
    margin:0 0 8px;
    letter-spacing:.02em;
  }
  .me-lead{
    font-size:18px;
    line-height:1.6;
    margin:0 0 18px;
    color:#111;
  }

  .me-badge-row{
    display:flex;
    flex-wrap:wrap;
    gap:8px;
    margin:0 0 18px;
  }
  .me-badge{
    border:1px solid #000;
    border-radius:999px;
    padding:6px 10px;
    font-size:12px;
    font-weight:600;
    letter-spacing:.02em;
    background:#fff;
  }

  .me-downloads{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:10px;
    margin:0 0 22px;
  }
  .me-dl-btn{
    display:flex;
    align-items:center;
    justify-content:center;
    gap:10px;
    text-decoration:none;
    border-radius:14px;
    padding:14px 16px;
    font-weight:700;
    font-size:14px;
    border:1px solid #000;
    background:linear-gradient(135deg, #ffffff, #f1f1f1) !important;
  color:#000 !important;
  transform:translateY(0);
    transition:transform .12s ease, background .12s ease, color .12s ease, box-shadow .12s ease;
    text-align:center;
    min-height:54px;
    box-shadow:0 8px 18px rgba(0,0,0,0.12);
  }
  .me-dl-btn svg{
    width:20px;
    height:20px;
    flex:0 0 auto;
  }
  .me-dl-btn:hover{
    background:linear-gradient(135deg, #ffffff, #e9e9e9);
    color:#000;
    transform:translateY(-2px);
    box-shadow:0 12px 24px rgba(0,0,0,0.16);
  }
  .me-dl-btn span{
    display:block;
    color:#000 !important;
  opacity:1 !important;
    font-weight:600;
    opacity:.92;
  }

  .me-grid{
    display:grid;
    grid-template-columns:1.2fr .8fr;
    gap:18px;
    align-items:start;
  }
  .me-card{
    border:1px solid #ececec;
    border-radius:16px;
    padding:16px;
    background:#fff;
  }
  .me-card h2{
    font-size:22px;
    font-weight:700;
    margin:0 0 10px;
  }
  .me-card h3{
    font-size:18px;
    font-weight:700;
    margin:18px 0 10px;
  }
  .me-list{
    margin:0;
    padding-left:18px;
    line-height:1.7;
    font-size:16px;
    color:#111;
  }
  .me-list li{ margin:6px 0; }

  .me-links a{
    color:#000;
    font-weight:700;
    text-decoration:underline;
  }

  .me-help{
    margin-top:14px;
    padding:14px;
    border-radius:14px;
    border:1px solid #000;
    background:#fff;
    font-size:16px;
    line-height:1.6;
  }
  .me-help a{
    color:#000;
    font-weight:800;
    text-decoration:underline;
  }

  .me-thumb{
    display:block;
    border-radius:16px;
    overflow:hidden;
    border:1px solid #ececec;
    background:#fff;
  }
  .me-thumb img{
    width:100%;
    height:auto;
    display:block;
  }
  .me-thumb-cap{
    padding:12px 14px;
    font-size:14px;
    color:#333;
    line-height:1.5;
  }

  .me-foot{
    margin-top:14px;
    font-size:16px;
    font-weight:800;
    color:#000;
  }

  @media (max-width:900px){
    .me-grid{ grid-template-columns:1fr; }
  }
  @media (max-width:640px){
    .me-title{ font-size:24px; }
    .me-downloads{ grid-template-columns:1fr; }
    .me-aftercalc-wrap{ padding:18px 12px; }
  }



  /* Target only the select when it has the .me-selected class */
.me-field-group select.me-selected {
    background-color: #585858 !important;
    color: #ffffff !important;
    border-color: #000000 !important;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'%3E%3C/path%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    padding-right: 30px;
}

/* Optional: Ensure the focus ring doesn't turn blue/white */
.me-field-group select.me-selected:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.2);
}

/* To ensure the options inside are readable (Note: some browsers don't allow styling options) */
.me-field-group select.me-selected option {
    background-color: #ffffff;
    color: #000000;
}


  
/* Quetta quick button toggles */
.me-toggle-group{
  gap:10px;
  flex-wrap:wrap;
}
.me-toggle-btn{
  appearance:none;
  border:1px solid rgba(255,255,255,.25);
  background:transparent;
  color:#fff;
  padding:10px 14px;
  border-radius:12px;
  font-family:inherit;
  font-size:14px;
  cursor:pointer;
}
.me-toggle-btn.is-active{
  background:#fff;
  color:#000;
  border-color:#fff;
}

/* =========================================================
   OFFICIAL A4 PRINT STYLES — AL BARKAT REAL ESTATE
   ========================================================= */
.ab-print-official-header,
.ab-print-official-footer {
  display: none !important;
}

.me-print-btn {
  background: #0f172a !important;
  color: #ffffff !important;
  border: 1px solid #1e293b !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  font-weight: 600 !important;
  transition: all 0.2s ease !important;
}

.me-print-btn:hover {
  background: #1e293b !important;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.25) !important;
}

@media print {
  /* 1. Hide all chrome, nav, footers, sidebars, interactive tools */
  #ab-top-contact-bar,
  header,
  footer,
  nav,
  aside,
  .ab-mobile-bar,
  #ab-chatbot-bubble,
  .ab-chat-bubble,
  button[class*="chat"],
  #ab-chat-toggle-btn,
  #ab-chat-widget-box,
  #ab-fab,
  #ab-upload-overlay,
  .me-no-export,
  .me-result-actions,
  .me-summary-tools,
  .me-dc-tools,
  .me-breakdown-tools,
  .me-edited-badge,
  .me-inline-info-btn,
  .me-stamp-info-btn,
  .me-stamp-breakdown-overlay,
  .me-info-overlay,
  #meInputSection,
  button,
  .me-action-btn,
  .me-back-btn,
  #printStatementBtn,
  #saveResultsBtn,
  #downloadJpgBtn {
    display: none !important;
    visibility: hidden !important;
    height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  /* 2. Container resets */
  html, body, #root, #root > div, main, #ab-transfer-calculator-root-v2 {
    background: #ffffff !important;
    color: #0f172a !important;
    margin: 0 !important;
    padding: 0 !important;
    width: 100% !important;
    min-height: 0 !important;
    height: auto !important;
  }

  #meResultSection {
    display: block !important;
    visibility: visible !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  .me-transfer-wrap {
    background: #ffffff !important;
    padding: 0 !important;
    margin: 0 !important;
    min-height: auto !important;
  }

  .me-transfer-card {
    max-width: 100% !important;
    width: 100% !important;
    box-shadow: none !important;
    border: 1.5px solid #cbd5e1 !important;
    border-radius: 8px !important;
    margin: 0 auto !important;
    padding: 14px 18px !important;
    background: #ffffff !important;
    page-break-inside: avoid;
    break-inside: avoid;
  }

  .me-dha-results {
    padding: 0 !important;
    margin: 0 !important;
  }

  /* 3. Official Print Header */
  .ab-print-official-header {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    border-bottom: 2px solid #0f172a;
    padding-bottom: 10px;
    margin-bottom: 12px;
  }

  .ab-print-brand-row {
    display: flex;
    align-items: center;
    gap: 12px;
  }

  .ab-print-logo {
    height: 48px;
    width: auto;
    object-fit: contain;
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
  }

  .ab-print-company-name {
    margin: 0;
    font-size: 16px;
    font-weight: 800;
    color: #0f172a;
    letter-spacing: 0.5px;
    text-transform: uppercase;
  }

  .ab-print-company-sub {
    margin: 2px 0 0 0;
    font-size: 9.5px;
    color: #475569;
    font-weight: 600;
  }

  .ab-print-doc-meta {
    text-align: right;
  }

  .ab-print-doc-title {
    font-size: 11.5px;
    font-weight: 800;
    color: #b45309;
    text-transform: uppercase;
    letter-spacing: 0.5px;
  }

  .ab-print-doc-date {
    font-size: 9.5px;
    color: #64748b;
    font-weight: 600;
    margin-top: 3px;
  }

  /* 4. Panels & Tables */
  .me-dha-panel {
    border: 1px solid #e2e8f0 !important;
    border-radius: 6px !important;
    background: #f8fafc !important;
    margin-bottom: 8px !important;
    padding: 8px 12px !important;
    page-break-inside: avoid;
    break-inside: avoid;
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
  }

  .me-sum-with-logo {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
  }

  .me-sum-logoBox img {
    height: 60px !important;
    width: auto !important;
    object-fit: contain !important;
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
  }

  .me-result-row {
    font-size: 9.5pt !important;
    line-height: 1.5 !important;
  }

  .me-dc-fbr {
    grid-template-columns: 1fr 1fr !important;
    gap: 12px !important;
  }

  .me-table {
    width: 100% !important;
    font-size: 9.5pt !important;
    border-collapse: collapse !important;
  }

  .me-table tr {
    height: auto !important;
  }

  .me-table td {
    padding: 3px 0 !important;
    border-bottom: 1px dashed #cbd5e1 !important;
    line-height: 1.35 !important;
  }

  /* 5. Grand Total */
  .me-grand {
    background: #0f172a !important;
    color: #ffffff !important;
    padding: 10px 14px !important;
    border-radius: 6px !important;
    margin-top: 8px !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    page-break-inside: avoid;
    break-inside: avoid;
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
  }

  .me-grand .me-label {
    font-size: 12pt !important;
    font-weight: 700 !important;
    color: #ffffff !important;
  }

  .me-grand .me-value {
    font-size: 15pt !important;
    font-weight: 900 !important;
    color: #d4af37 !important;
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
  }

  /* 6. Official Print Footer */
  .ab-print-official-footer {
    display: block !important;
    margin-top: 12px;
    page-break-inside: avoid;
    break-inside: avoid;
  }

  .ab-print-sig-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    padding-top: 10px;
    border-top: 1px solid #cbd5e1;
  }

  .ab-print-sig-col {
    width: 32%;
  }

  .ab-print-sig-col.right {
    text-align: right;
  }

  .ab-print-sig-line {
    border-bottom: 1px dashed #94a3b8;
    height: 24px;
    margin-bottom: 4px;
  }

  .ab-print-sig-title {
    font-size: 8pt;
    font-weight: 700;
    color: #0f172a;
    text-transform: uppercase;
  }

  .ab-print-sig-name {
    font-size: 7.5pt;
    font-weight: 500;
    color: #475569;
    margin-top: 1px;
  }

  .ab-print-seal-col {
    text-align: center;
  }

  .ab-print-seal {
    display: inline-block;
    border: 1.5px solid #d4af37;
    color: #b45309;
    font-size: 7.5pt;
    font-weight: 800;
    padding: 3px 8px;
    border-radius: 4px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
  }

  .ab-print-disclaimer {
    margin-top: 8px;
    font-size: 7pt;
    color: #64748b;
    text-align: center;
    line-height: 1.35;
  }

  @page {
    size: A4 portrait;
    margin: 8mm 10mm;
  }
}

