Offline Notepad View raw

Shared snapshot

📜ACCOUNT NOTES ni V

FOR TEAM KIRK ONLY!!!

<div class="unresponsive-container" style="background: #fff; margin-top: 10px; padding: 12px; border-radius: 8px; color: #1e293b;">
  
  <!-- Reset Button Component -->
  <button onclick="
    var parentDetails = this.closest('details');
    if (parentDetails) {
      var inputs = parentDetails.querySelectorAll('input[type=\'text\']');
      inputs.forEach(function(i) { i.value = ''; });
      var selects = parentDetails.querySelectorAll('select');
      selects.forEach(function(s) { s.selectedIndex = 0; });
      
      // Reset live preview text fields
      document.getElementById('un_out_cid').innerText = '';
      document.getElementById('un_out_nm').innerText = '';
      document.getElementById('un_out_acc').innerText = '';
      document.getElementById('un_out_ts').innerText = '';
      document.getElementById('un_out_qry').innerText = '';
      
      // Restore baseline standard options
      document.getElementById('un_out_dept').innerText = 'UNRESPONSIVE - MOVERS/RETENTIONS/OB RETAIN MESSAGING MESSAGING/SALES WEBCHAT//EBB WEBCHAT';
      document.getElementById('un_out_id').innerText = 'AH/3RD PARTY';
      document.getElementById('un_out_dp').innerText = 'PASSED/FAILED';
      document.getElementById('un_out_res').innerText = 'CX is unresponsive//idle for 15 minutes//No interaction.';
    }
  " style="width: 100%; margin-top: 8px; margin-bottom: 12px; background: #e2e8f0; color: #475569; border: 1px solid #cbd5e1; padding: 10px; font-weight: 700; border-radius: 8px; cursor: pointer; text-transform: uppercase; font-size: 0.85em; transition: background 0.2s;">
    🗑️ Clear All Answers
  </button>

  <!-- Input Configuration Grid -->
  <div style="display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 10px;">
    
    <!-- Department Selection Dropdown -->
    <label style="font-weight:700; font-size:0.85em; grid-column: span 2;">DEPARTMENT TYPE:
      <select required onchange="document.getElementById('un_out_dept').innerText = 'UNRESPONSIVE - ' + this.value;" style="width:100%; padding:6px; border:1px solid #ccc; border-radius:4px; margin-top: 4px;">
        <option value="" disabled selected hidden>-- Select Department --</option>
        <option value="MOVERS">MOVERS</option>
        <option value="RETENTIONS">RETENTIONS</option>
        <option value="OB RETAIN MESSAGING">OB RETAIN MESSAGING</option>
        <option value="SALES WEBCHAT">SALES WEBCHAT</option>
        <option value="EBB WEBCHAT">EBB WEBCHAT</option>
      </select>
    </label>

    <label style="font-weight:700; font-size:0.85em;">CONTACT ID:
      <input type="text" placeholder=" " onkeyup="document.getElementById('un_out_cid').innerText = this.value;" style="width:100%; padding:6px; border:1px solid #ccc; border-radius:4px; margin-top: 4px;">
    </label>

    <label style="font-weight:700; font-size:0.85em;">Identity of the chatter:
      <select required onchange="document.getElementById('un_out_id').innerText = this.value;" style="width:100%; padding:6px; border:1px solid #ccc; border-radius:4px; margin-top: 4px;">
        <option value="" disabled selected hidden>-- Select Identity --</option>
        <option value="AH">AH</option>
        <option value="3RD PARTY">3RD PARTY</option>
      </select>
    </label>
    
    <label style="font-weight:700; font-size:0.85em;">Name of the chatter:
      <input type="text" placeholder=" " onkeyup="document.getElementById('un_out_nm').innerText = this.value;" style="width:100%; padding:6px; border:1px solid #ccc; border-radius:4px; margin-top: 4px;">
    </label>

    <label style="font-weight:700; font-size:0.85em;">ACCOUNT #:
      <input type="text" placeholder=" " onkeyup="document.getElementById('un_out_acc').innerText = this.value;" style="width:100%; padding:6px; border:1px solid #ccc; border-radius:4px; margin-top: 4px;">
    </label>
    
    <label style="font-weight:700; font-size:0.85em;">DPA STATUS:
      <select required onchange="document.getElementById('un_out_dp').innerText = this.value;" style="width:100%; padding:6px; border:1px solid #ccc; border-radius:4px; margin-top: 4px;">
        <option value="" disabled selected hidden>-- Select Status --</option>
        <option value="PASSED">PASSED</option>
        <option value="PASSED by manual DPA of the BOT">PASSED by manual DPA of the BOT</option>
        <option value="PASSED in the previous chat">PASSED in the previous chat</option>
        <option value="FAILED">FAILED</option>
      </select>
    </label>
    
    <label style="font-weight:700; font-size:0.85em;">DPA TIME STAMP:
      <input type="text" placeholder="HH:MM" onkeyup="document.getElementById('un_out_ts').innerText = this.value;" style="width:100%; padding:6px; border:1px solid #ccc; border-radius:4px; margin-top: 4px;">
    </label>
  </div>

  <!-- Free Text Entry Fields -->
  <div style="display: flex; flex-direction: column; gap: 8px; margin-bottom: 12px;">
    <label style="font-weight:700; font-size:0.85em; color: #333;">QUERY: Customer want to...
      <input type="text" placeholder="e.g. disconnect service, check bill details..." onkeyup="document.getElementById('un_out_qry').innerText = this.value;" style="width:100%; padding:8px; border:1px solid #ccc; border-radius:4px; margin-top:4px; font-weight:600;">
    </label>
    
    <label style="font-weight:700; font-size:0.85em; color: #333;">RESOLUTION:
      <select required onchange="document.getElementById('un_out_res').innerText = this.value;" style="width:100%; padding:8px; border:1px solid #ccc; border-radius:4px; margin-top:4px; font-weight:600;">
        <option value="CX is unresponsive//idle for 15 minutes//No interaction.">CX is unresponsive//idle for 15 minutes//No interaction.</option>
        <option value="Customer dropped chat session abruptly.">Customer dropped chat session abruptly.</option>
      </select>
    </label>
  </div>

  <!-- Copy Action Button -->
  <button onclick="var range = document.createRange(); range.selectNode(document.getElementById('unresponsive_output_note')); window.getSelection().removeAllRanges(); window.getSelection().addRange(range); document.execCommand('copy'); window.getSelection().removeAllRanges(); alert('Unresponsive Note Copied!');" style="width: 100%; background: linear-gradient(135deg, #1e293b, #0f172a); color: #fff; border: none; padding: 12px; font-weight: 900; border-radius: 8px; cursor: pointer; text-transform: uppercase; margin-bottom: 10px; box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1);">📋 Click to Copy Unresponsive Note</button>
  
  <!-- AUTO POPULATED NOTE PREVIEW -->
  <pre id="unresponsive_output_note" style="width: 100%; font-family: monospace; font-size: 0.95em; padding: 12px; border: 2px dashed #475569; border-radius: 6px; background: #f8fafc; box-sizing: border-box; white-space: pre-wrap; font-weight: bold; color: #1e293b; margin: 0;">***************************HYBRID MESSAGING***************************

UNRESPONSIVE - MOVERS/RETENTIONS/OB RETAIN MESSAGING/SALES WEBCHAT//EBB WEBCHAT CONTACT ID: Identity of the chatter: AH/3RD PARTY Name of the chatter: ACCOUNT #: DPA STATUS: PASSED/FAILED DPA TIME STAMP: QUERY: Customer want to RESOLUTION: CX is unresponsive//idle for 15 minutes//No interaction.

<div class="mover-container" style="background: #fff; margin-top: 10px; padding: 12px; border-radius: 8px; color: #1e293b;">

  <!-- Reset Button Component -->
  <button onclick="
    var parentDetails = this.closest('details');
    if (parentDetails) {
      var inputs = parentDetails.querySelectorAll('input[type=\'text\']');
      inputs.forEach(function(i) { i.value = ''; });
      var textareas = parentDetails.querySelectorAll('textarea');
      textareas.forEach(function(t) { t.value = ''; });
      var selects = parentDetails.querySelectorAll('select');
      selects.forEach(function(s) { s.selectedIndex = 0; });
      
      // Clear text values inside the template output preview
      document.getElementById('out_cid').innerText = '';
      document.getElementById('out_nm').innerText = '';
      document.getElementById('out_an').innerText = '';
      document.getElementById('out_ts').innerText = '';
      document.getElementById('out_wo').innerText = '';
      document.getElementById('out_to').innerText = '';
      document.getElementById('out_add').innerText = '';
      document.getElementById('out_md').innerText = '';
      document.getElementById('out_dd').innerText = '';
      document.getElementById('out_dr').innerText = '';
      document.getElementById('out_pp').innerText = '';
      document.getElementById('out_be').innerText = '';
      document.getElementById('out_ai').innerText = '';
      
      // Restore defaults
      document.getElementById('out_id').innerText = 'AH/3RD PARTY';
      document.getElementById('out_dp').innerText = 'PASSED/FAILED';
      document.getElementById('out_cnum').innerText = 'Verified/ Updated';
      document.getElementById('out_em').innerText = 'Verified/ Updated';
      document.getElementById('out_cjm').innerText = 'N/A';
      document.getElementById('out_res').innerText = 'Booked disconnection.';
    }
  " style="width: 100%; margin-top: 8px; margin-bottom: 12px; background: #e2e8f0; color: #475569; border: 1px solid #cbd5e1; padding: 10px; font-weight: 700; border-radius: 8px; cursor: pointer; text-transform: uppercase; font-size: 0.85em;">
    🗑️ Clear All Answers
  </button>
  
  <!-- Inputs Grid (First Half) -->
  <div style="display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 10px;">
    <label style="font-weight:700; font-size:0.85em;">CONTACT ID:<input type="text" placeholder=" " onkeyup="document.getElementById('out_cid').innerText = this.value;" style="width:100%; padding:6px; border:1px solid #ccc; border-radius:4px;"></label>
    
    <label style="font-weight:700; font-size:0.85em;">Identity:
      <select required onchange="document.getElementById('out_id').innerText = this.value;" style="width:100%; padding:6px; border:1px solid #ccc; border-radius:4px;">
        <option value="" disabled selected hidden>-- Select Identity --</option>
        <option value="AH">AH</option>
        <option value="3RD PARTY">3RD PARTY</option>
      </select>
    </label>
    
    <label style="font-weight:700; font-size:0.85em;">Chatter Name:<input type="text" placeholder=" " onkeyup="document.getElementById('out_nm').innerText = this.value;" style="width:100%; padding:6px; border:1px solid #ccc; border-radius:4px;"></label>
    <label style="font-weight:700; font-size:0.85em;">Account Number:<input type="text" placeholder=" " onkeyup="document.getElementById('out_an').innerText = this.value;" style="width:100%; padding:6px; border:1px solid #ccc; border-radius:4px;"></label>
    
    <label style="font-weight:700; font-size:0.85em;">DPA STATUS:
      <select required onchange="document.getElementById('out_dp').innerText = this.value;" style="width:100%; padding:6px; border:1px solid #ccc; border-radius:4px;">
        <option value="" disabled selected hidden>-- Select Status --</option>
        <option value="PASSED">PASSED</option>
        <option value="PASSED by manual DPA of the BOT">PASSED by manual DPA of the BOT</option>
        <option value="PASSED in the previous chat">PASSED in the previous chat</option>
        <option value="FAILED">FAILED</option>
      </select>
    </label>
    
    <label style="font-weight:700; font-size:0.85em;">DPA TIMESTAMP:<input type="text" placeholder=" " onkeyup="document.getElementById('out_ts').innerText = this.value;" style="width:100%; padding:6px; border:1px solid #ccc; border-radius:4px;"></label>
    
    <label style="font-weight:700; font-size:0.85em;">Contact No Status:
      <select required onchange="document.getElementById('out_cnum').innerText = this.value;" style="width:100%; padding:6px; border:1px solid #ccc; border-radius:4px;">
        <option value="" disabled selected hidden>-- Select Status --</option>
        <option value="Verified">Verified</option>
        <option value="Updated">Updated</option>
      </select>
    </label>
    <label style="font-weight:700; font-size:0.85em;">Email Status:
      <select required onchange="document.getElementById('out_em').innerText = this.value;" style="width:100%; padding:6px; border:1px solid #ccc; border-radius:4px;">
        <option value="" disabled selected hidden>-- Select Status --</option>
        <option value="Verified">Verified</option>
        <option value="Updated">Updated</option>
      </select>
    </label>

CJM: -- Select CJM -- N/A YES

    <label style="font-weight:700; font-size:0.85em;">WO:<input type="text" placeholder=" " onkeyup="document.getElementById('out_wo').innerText = this.value;" style="width:100%; padding:6px; border:1px solid #ccc; border-radius:4px;"></label>
    <label style="font-weight:700; font-size:0.85em;">MOVING TO:<input type="text" placeholder=" " onkeyup="document.getElementById('out_to').innerText = this.value;" style="width:100%; padding:6px; border:1px solid #ccc; border-radius:4px;"></label>
    <label style="font-weight:700; font-size:0.85em;">NEW ADDRESS:<input type="text" placeholder=" " onkeyup="document.getElementById('out_add').innerText = this.value;" style="width:100%; padding:6px; border:1px solid #ccc; border-radius:4px;"></label>
    <label style="font-weight:700; font-size:0.85em;">MOVING DATE:<input type="text" placeholder=" " onkeyup="document.getElementById('out_md').innerText = this.value;" style="width:100%; padding:6px; border:1px solid #ccc; border-radius:4px;"></label>
    <label style="font-weight:700; font-size:0.85em;">DISCO DATE:<input type="text" placeholder=" " onkeyup="document.getElementById('out_dd').innerText = this.value;" style="width:100%; padding:6px; border:1px solid #ccc; border-radius:4px;"></label>
    <label style="font-weight:700; font-size:0.85em;">DISCO REASON:<input type="text" placeholder=" " onkeyup="document.getElementById('out_dr').innerText = this.value;" style="width:100%; padding:6px; border:1px solid #ccc; border-radius:4px;"></label>
  </div>

  <!-- Dropdown for Resolution -->
  <div style="margin-bottom: 12px;">
    <label style="font-weight:700; font-size:0.85em; color: #333;">RESOLUTION:
      <select required onchange="document.getElementById('out_res').innerText = this.value;" style="width:100%; padding:8px; border:1px solid #ccc; border-radius:4px; margin-top:4px; font-weight:600;">
        <option value="" disabled selected hidden>-- Select Resolution --</option>
        <option value="Booked disconnection.">Booked disconnection. (Blank)</option>
        <option value="Booked disconnection. (Advised EDF)">Booked disconnection. (Advised EDF)</option>
        <option value="Booked disconnection. (Educated about EDF waiver for non-serve)">Booked disconnection. (Educated about EDF waiver for non-serve)</option>
        <option value="Booked disconnection. (Advised Notice Fee)">Booked disconnection. (Advised Notice Fee)</option>
        <option value="Booked disconnection. (Educated about Notice Fee waiver for non-serve)">Booked disconnection. (Educated about Notice Fee waiver for non-serve)</option>
      </select>
    </label>
  </div>

  <!-- Paste Boxes for Billing Data & AI Summary -->
  <div style="display: flex; flex-direction: column; gap: 8px; margin-bottom: 12px;">
    <label style="font-weight:700; font-size:0.85em; color: #333;">PASTE PP DETAILS:
      <textarea placeholder=" " onkeyup="document.getElementById('out_pp').innerText = this.value ? '\n' + this.value : '';" style="width:100%; height:60px; padding:6px; border:1px solid #ccc; border-radius:4px; font-family: monospace; resize: vertical; margin-top: 4px;"></textarea>
    </label>
    <label style="font-weight:700; font-size:0.85em; color: #333;">PASTE BE DETAILS:
      <textarea placeholder=" " onkeyup="document.getElementById('out_be').innerText = this.value ? '\n' + this.value : '';" style="width:100%; height:60px; padding:6px; border:1px solid #ccc; border-radius:4px; font-family: monospace; resize: vertical; margin-top: 4px;"></textarea>
    </label>
    <label style="font-weight:700; font-size:0.85em; color: #333;">AI SUMMARY:
      <textarea placeholder=" " onkeyup="document.getElementById('out_ai').innerText = this.value ? '\n' + this.value : '';" style="width:100%; height:60px; padding:6px; border:1px solid #ccc; border-radius:4px; font-family: monospace; resize: vertical; margin-top: 4px;"></textarea>
    </label>
  </div>

  <!-- Copy Action Button -->
  <button onclick="var range = document.createRange(); range.selectNode(document.getElementById('mov_out')); window.getSelection().removeAllRanges(); window.getSelection().addRange(range); document.execCommand('copy'); window.getSelection().removeAllRanges(); alert('Movers Note Copied!');" style="width: 100%; background: linear-gradient(135deg, #FF416C, #FF4B2B); color: #fff; border: none; padding: 12px; font-weight: 900; border-radius: 8px; cursor: pointer; text-transform: uppercase;">📋 Click to Copy Note</button>
  
  <!-- Preview Output Field (Pre-formatted block) -->
  <pre id="mov_out" style="width: 100%; font-family: monospace; font-size: 0.95em; padding: 12px; border: 2px dashed #FF416C; border-radius: 6px; background: #FFF5F5; box-sizing: border-box; margin-top: 10px; white-space: pre-wrap; font-weight: bold; color: #333;">***************************HYBRID MESSAGING***************************

MOVERS DISCO CONTACT ID: Identity of the chatter: AH/3RD PARTY Name of the chatter: Account Number: DPA STATUS: PASSED/FAILED DPA TIME STAMP: Contact Number Update Status: Verified/ Updated Email address Status: Verified/ Updated CJM: N/A WO: QUERY: Customer want to cancel due to moving to RESOLUTION: Booked disconnection. Final bill discussed. Advised to return Equipment. NEW ADDRESS: MOVING DATE: DISCO DATE: DISCO REASON: HYBRID MESSAGING PP: BE: HYBRID MESSAGING AI SUMMARY: HYBRID MESSAGING

  <!-- Reset Button Component -->
  <button onclick="
    var parentDetails = this.closest('details');
    if (parentDetails) {
      var inputs = parentDetails.querySelectorAll('input[type=\'text\']');
      inputs.forEach(function(i) { i.value = ''; });
      var textareas = parentDetails.querySelectorAll('textarea');
      textareas.forEach(function(t) { t.value = ''; });
      var selects = parentDetails.querySelectorAll('select');
      selects.forEach(function(s) { s.selectedIndex = 0; });
      
      // Clear live view preview template strings
      document.getElementById('mt_out_cid').innerText = '';
      document.getElementById('mt_out_nm').innerText = '';
      document.getElementById('mt_out_ts').innerText = '';
      document.getElementById('mt_out_owo').innerText = '';
      document.getElementById('mt_out_nwo').innerText = '';
      document.getElementById('mt_out_oacc').innerText = '';
      document.getElementById('mt_out_oadd').innerText = '';
      document.getElementById('mt_out_nacc').innerText = '';
      document.getElementById('mt_out_nadd').innerText = '';
      document.getElementById('mt_out_dd').innerText = '';
      document.getElementById('mt_out_idat').innerText = '';
      document.getElementById('mt_out_pk').innerText = '';
      document.getElementById('mt_out_res').innerText = '';
      document.getElementById('mt_out_pp').innerText = '';
      document.getElementById('mt_out_be_old').innerText = '';
      document.getElementById('mt_out_be_new').innerText = '';
      document.getElementById('mt_out_ai').innerText = '';
      
      // Reset baseline system strings
      document.getElementById('mt_out_id').innerText = 'AH/3RD PARTY';
      document.getElementById('mt_out_dp').innerText = 'PASSED/FAILED';
      document.getElementById('mt_out_cnum').innerText = 'Verified/ Updated';
      document.getElementById('mt_out_em').innerText = 'Verified/ Updated';
      document.getElementById('mt_out_cjm').innerText = 'N/A';
      document.getElementById('mt_out_co').innerText = 'Contract continuation/New contract';
      document.getElementById('mt_out_fe').innerText = 'Waived/Applied';
      document.getElementById('mt_out_lf').innerText = 'Used/Not Available';
      
      // Hide conditional sub-sections
      document.getElementById('contract_section').style.display='none';
      document.getElementById('rk_section').style.display='none';
      document.getElementById('mt_out_contract_end').innerText='';
      document.getElementById('mt_contract_end_preview').innerText='';
      document.getElementById('mt_contract_suppression_preview').innerText='';
      document.getElementById('mt_rk_preview').innerText='';
    }
  " style="width: 100%; margin-top: 8px; margin-bottom: 12px; background: #e2e8f0; color: #475569; border: 1px solid #cbd5e1; padding: 10px; font-weight: 700; border-radius: 8px; cursor: pointer; text-transform: uppercase; font-size: 0.85em; transition: background 0.2s;">
    🗑️ Clear All Answers
  </button>

  <!-- 1. INPUT BOXES TO FILL -->
  <div style="display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 10px;">
    <label style="font-weight:700; font-size:0.85em;">CONTACT ID:<input type="text" placeholder=" " onkeyup="document.getElementById('mt_out_cid').innerText = this.value;" style="width:100%; padding:6px; border:1px solid #ccc; border-radius:4px;"></label>

CJM: -- Select CJM -- N/A YES

    <label style="font-weight:700; font-size:0.85em;">Chatter Name:<input type="text" placeholder=" " onkeyup="document.getElementById('mt_out_nm').innerText = this.value;" style="width:100%; padding:6px; border:1px solid #ccc; border-radius:4px;"></label>

    <label style="font-weight:700; font-size:0.85em;">Identity:
      <select required onchange="document.getElementById('mt_out_id').innerText = this.value;" style="width:100%; padding:6px; border:1px solid #ccc; border-radius:4px;">
        <option value="" disabled selected hidden>-- Select Identity --</option>
        <option value="AH">AH</option>
        <option value="3RD PARTY">3RD PARTY</option>
      </select>
    </label>
    



    
    <label style="font-weight:700; font-size:0.85em;">DPA STATUS:
      <select required onchange="document.getElementById('mt_out_dp').innerText = this.value;" style="width:100%; padding:6px; border:1px solid #ccc; border-radius:4px;">
        <option value="" disabled selected hidden>-- Select Status --</option>
        <option value="PASSED">PASSED</option>
        <option value="PASSED by manual DPA of the BOT">PASSED by manual DPA of the BOT</option>
        <option value="PASSED in the previous chat">PASSED in the previous chat</option>
        <option value="FAILED">FAILED</option>
      </select>
    </label>
    
    <label style="font-weight:700; font-size:0.85em;">DPA TIMESTAMP:<input type="text" placeholder="HH:MM" onkeyup="document.getElementById('mt_out_ts').innerText = this.value;" style="width:100%; padding:6px; border:1px solid #ccc; border-radius:4px;"></label>
    
    <label style="font-weight:700; font-size:0.85em;">Contact No Status:
      <select required onchange="document.getElementById('mt_out_cnum').innerText = this.value;" style="width:100%; padding:6px; border:1px solid #ccc; border-radius:4px;">
        <option value="" disabled selected hidden>-- Select Status --</option>
        <option value="Verified">Verified</option>
        <option value="Updated">Updated</option>
      </select>
    </label>
    
    <label style="font-weight:700; font-size:0.85em;">Email Status:
      <select required onchange="document.getElementById('mt_out_em').innerText = this.value;" style="width:100%; padding:6px; border:1px solid #ccc; border-radius:4px;">
        <option value="" disabled selected hidden>-- Select Status --</option>
        <option value="Verified">Verified</option>
        <option value="Updated">Updated</option>
      </select>
    </label>
    

    <label style="font-weight:700; font-size:0.85em;">Old address WO:<input type="text" placeholder=" " onkeyup="document.getElementById('mt_out_owo').innerText = this.value;" style="width:100%; padding:6px; border:1px solid #ccc; border-radius:4px;"></label>

    <label style="font-weight:700; font-size:0.85em;">New address WO:<input type="text" placeholder=" " onkeyup="document.getElementById('mt_out_nwo').innerText = this.value;" style="width:100%; padding:6px; border:1px solid #ccc; border-radius:4px;"></label>

    <label style="font-weight:700; font-size:0.85em;">OLD ACCOUNT #:<input type="text" placeholder=" " onkeyup="document.getElementById('mt_out_oacc').innerText = this.value;" style="width:100%; padding:6px; border:1px solid #ccc; border-radius:4px;"></label>

    <label style="font-weight:700; font-size:0.85em;">NEW ACCOUNT #:<input type="text" placeholder=" " onkeyup="document.getElementById('mt_out_nacc').innerText = this.value;" style="width:100%; padding:6px; border:1px solid #ccc; border-radius:4px;"></label>

    <label style="font-weight:700; font-size:0.85em;">OLD ADDRESS:<input type="text" placeholder=" " onkeyup="document.getElementById('mt_out_oadd').innerText = this.value;" style="width:100%; padding:6px; border:1px solid #ccc; border-radius:4px;"></label>

    <label style="font-weight:700; font-size:0.85em;">NEW ADDRESS:<input type="text" placeholder=" " onkeyup="document.getElementById('mt_out_nadd').innerText = this.value;" style="width:100%; padding:6px; border:1px solid #ccc; border-radius:4px;"></label>

    <label style="font-weight:700; font-size:0.85em;">DISCO DATE:<input type="text" placeholder=" " onkeyup="document.getElementById('mt_out_dd').innerText = this.value;" style="width:100%; padding:6px; border:1px solid #ccc; border-radius:4px;"></label>

    <label style="font-weight:700; font-size:0.85em;">INSTALL DATE:<input type="text" placeholder=" " onkeyup="document.getElementById('mt_out_idat').innerText = this.value;" style="width:100%; padding:6px; border:1px solid #ccc; border-radius:4px;"></label>
    
    <label style="font-weight:700; font-size:0.85em;">CONTRACT:
      <select required onchange="
        document.getElementById('mt_out_co').innerText = this.value;

        if(this.value.includes('Contract continuation')){
          document.getElementById('contract_section').style.display='block';
        } else {
          document.getElementById('contract_section').style.display='none';
          document.getElementById('rk_section').style.display='none';

          document.getElementById('mt_out_contract_end').innerText='';
          document.getElementById('mt_contract_end_preview').innerText='';
          document.getElementById('mt_contract_suppression_preview').innerText='';
          document.getElementById('mt_rk_preview').innerText='';
        }
      "
      style="width:100%; padding:6px; border:1px solid #ccc; border-radius:4px;">
        <option value="" disabled selected hidden>-- Select Contract Option --</option>
        <option value="Contract continuation">Contract continuation</option>
        <option value="New contract">New contract</option>
      </select>
    </label>

    <!-- Conditional Contract Subsection Box -->
    <div id="contract_section" style="display:none; grid-column:1 / span 2;">
      <label style="font-weight:700; font-size:0.85em; display:block; margin-bottom:10px;">
        CONTRACT END DATE:
        <input type="text" placeholder="DD/MM/YYYY" onkeyup="
          document.getElementById('mt_out_contract_end').innerText=this.value;
          document.getElementById('mt_contract_end_preview').innerText= this.value ? '\nContract end date: ' + this.value : '';
        " style="width:100%; padding:6px; border:1px solid #ccc; border-radius:4px; margin-top:4px;">
      </label>

      <label style="font-weight:700; font-size:0.85em; display:block; margin-bottom:10px;">
        CONTRACT SUPPRESSION:
        <textarea onkeyup="
          document.getElementById('mt_contract_suppression_preview').innerText= this.value ? 'CONTRACT SUPPRESSION:\n' + this.value + '\n***************************HYBRID MESSAGING***************************\n' : '';
        " style="width:100%; height:70px; padding:6px; border:1px solid #ccc; border-radius:4px; margin-top:4px; font-family:sans-serif;"></textarea>
      </label>

      <label style="font-weight:700; font-size:0.85em; display:block; margin-bottom:10px;">
        RK NEEDED?
        <select onchange="
          document.getElementById('rk_section').style.display = this.value==='YES' ? 'block' : 'none';
          if(this.value!=='YES'){ document.getElementById('mt_rk_preview').innerText=''; }
        " style='width:100%; padding:6px; border:1px solid #ccc; border-radius:4px; margin-top:4px;'>
          <option value='' disabled selected hidden>-- Select Option --</option>
          <option value='YES'>YES</option>
          <option value='NO'>NO</option>
        </select>
      </label>

      <!-- Conditional RK Sub-section Panel (Moved under RK NEEDED?) -->
      <div id="rk_section" style="display:none; margin-top:10px; margin-bottom:10px;">
        <label style="font-weight:700; font-size:0.85em; color:#333;">
          RK:
          <textarea onkeyup="document.getElementById('mt_rk_preview').innerText= this.value ? 'RK:\n' + this.value + '\n***************************HYBRID MESSAGING***************************\n' : '';" style="width:100%; height:70px; padding:6px; border:1px solid #ccc; border-radius:4px; font-family:monospace; margin-top:4px;"></textarea>
        </label>
      </div>
    </div>
    
    <label style="font-weight:700; font-size:0.85em;">PACKAGE:<input type="text" placeholder=" " onkeyup="document.getElementById('mt_out_pk').innerText = this.value;" style="width:100%; padding:6px; border:1px solid #ccc; border-radius:4px;"></label>
    
    <label style="font-weight:700; font-size:0.85em;">MOVERS FEE:
      <select required onchange="document.getElementById('mt_out_fe').innerText = this.value;" style="width:100%; padding:6px; border:1px solid #ccc; border-radius:4px;">
        <option value="" disabled selected hidden>-- Select Fee Option --</option>
        <option value="Applied £20">Applied £20</option>
        <option value="Applied £35">Applied £35</option>
        <option value="Waived £20">Waived £20</option>
        <option value="Waived £35">Waived £35</option>
        <option value="Applied £XX Discounted £XX">Applied £XX Discounted £XX</option>
      </select>
    </label>
    
    <label style="font-weight:700; font-size:0.85em;">LIKE FOR LIKE BUTTON:
      <select required onchange="document.getElementById('mt_out_lf').innerText = this.value;" style="width:100%; padding:6px; border:1px solid #ccc; border-radius:4px;">
        <option value="" disabled selected hidden>-- Select Button Status --</option>
        <option value="Used">Used</option>
        <option value="Not Available L4L button not clickable due DOCSIS to XGS-PON or XGS-PON to DOCSIS">Not Available L4L button not clickable due DOCSIS to XGS-PON or XGS-PON to DOCSIS</option>
        <option value="Not Available L4L button not clickable due to Out Franchise move (DI-IN)">Not Available L4L button not clickable due to Out Franchise move (DI-IN)</option>
        <option value="Not Available L4L button not clickable due to additional requirement (Netflix, Add-Ons, etc...) (DI-IN)">Not Available L4L button not clickable due to additional requirement (Netflix, Add-Ons, etc...) (DI-IN)</option>
        <option value="Not Available L4L button not clickable due to existing account disconnected within 30 days">Not Available L4L button not clickable due to existing account disconnected within 30 days</option>
      </select>
    </label>
  </div>

  <!-- Dropdown for Resolution -->
  <div style="margin-bottom: 12px;">
    <label style="font-weight:700; font-size:0.85em; color: #333;">RESOLUTION:
      <input type="text" placeholder="Process house move XXX..." onkeyup="document.getElementById('mt_out_res').innerText = this.value;" style="width:100%; padding:8px; border:1px solid #ccc; border-radius:4px; margin-top:4px; font-weight:600;">
    </label>
  </div>
  
  <!-- 2. BIG PASTE BOXES FOR BILLING DETAILS -->
  <div style="display: flex; flex-direction: column; gap: 8px; margin-bottom: 12px;">
    <label style="font-weight:700; font-size:0.85em; color: #333;">PASTE PP: OLD ADDRESS DETAILS:
      <textarea placeholder=" " onkeyup="document.getElementById('mt_out_pp').innerText = this.value ? '\n' + this.value : '';" style="width:100%; height:60px; padding:6px; border:1px solid #ccc; border-radius:4px; font-family: monospace; resize: vertical; margin-top: 4px;"></textarea>
    </label>
    
    <label style="font-weight:700; font-size:0.85em; color: #333;">PASTE BE: OLD ADDRESS DETAILS:
      <textarea placeholder=" " onkeyup="document.getElementById('mt_out_be_old').innerText = this.value ? '\n' + this.value : '';" style="width:100%; height:60px; padding:6px; border:1px solid #ccc; border-radius:4px; font-family: monospace; resize: vertical; margin-top: 4px;"></textarea>
    </label>

    <label style="font-weight:700; font-size:0.85em; color: #333;">PASTE BE: NEW ADDRESS DETAILS:
      <textarea placeholder=" " onkeyup="document.getElementById('mt_out_be_new').innerText = this.value ? '\n' + this.value : '';" style="width:100%; height:60px; padding:6px; border:1px solid #ccc; border-radius:4px; font-family: monospace; resize: vertical; margin-top: 4px;"></textarea>
    </label>
    
    <label style="font-weight:700; font-size:0.85em; color: #333;">AI SUMMARY:
      <textarea placeholder=" " onkeyup="document.getElementById('mt_out_ai').innerText = this.value ? '\n' + this.value : '';" style="width:100%; height:60px; padding:6px; border:1px solid #ccc; border-radius:4px; font-family: monospace; resize: vertical; margin-top: 4px;"></textarea>
    </label>
  </div>

  <!-- Copy Action Button -->
  <button onclick="var range = document.createRange(); range.selectNode(document.getElementById('mt_out')); window.getSelection().removeAllRanges(); window.getSelection().addRange(range); document.execCommand('copy'); window.getSelection().removeAllRanges(); alert('M&T Note Copied!');" style="width: 100%; background: linear-gradient(135deg, #8A2387, #E94057); color: #fff; border: none; padding: 12px; font-weight: 900; border-radius: 8px; cursor: pointer; text-transform: uppercase;">📋 Click to Copy M&T Note</button>
  
  <span id="mt_out_contract_end" style="display:none;"></span>

  <!-- 3. AUTO POPULATED NOTE PREVIEW -->
  <pre id="mt_out" style="width: 100%; font-family: monospace; font-size: 0.95em; padding: 12px; border: 2px dashed #E94057; border-radius: 6px; background: #FFF5F6; box-sizing: border-box; margin-top: 10px; white-space: pre-wrap; font-weight: bold; color: #333;">***************************HYBRID MESSAGING***************************

M&T CONTACT ID: Identity of the chatter: AH/3RD PARTY Name of the chatter: DPA STATUS: PASSED/FAILED DPA TIME STAMP: Contact Number Update Status: Verified/ Updated Email address Status: Verified/ Updated CJM: N/A Old address WO: New address WO: QUERY: Customer want to move the service to new address. RESOLUTION: Process house move XXX OLD ACCOUNT #: OLD ADDRESS: NEW ACCOUNT #: NEW ADDRESS: DISCO DATE: INSTALL DATE: CONTRACT: Contract continuation/New contract PACKAGE: MOVERS FEE: Waived/Applied LIKE FOR LIKE BUTTON: Used/Not Available HYBRID MESSAGING PP: OLD ADDRESS: BE: OLD ADDRESS: HYBRID MESSAGING BE: NEW ADDRESS: HYBRID MESSAGING AI SUMMARY: HYBRID MESSAGING

  <!-- Reset Button Component -->
  <button onclick="
    var parentDetails = this.closest('details');
    if (parentDetails) {
      var inputs = parentDetails.querySelectorAll('input[type=\'text\']');
      inputs.forEach(function(i) { i.value = ''; });
      var textareas = parentDetails.querySelectorAll('textarea');
      textareas.forEach(function(t) { t.value = ''; });
      var selects = parentDetails.querySelectorAll('select');
      selects.forEach(function(s) { s.selectedIndex = 0; });
      
      // Clear live preview tracking IDs
      document.getElementById('q_out_cid').innerText = '';
      document.getElementById('q_out_nm').innerText = '';
      document.getElementById('q_out_acc').innerText = '';
      document.getElementById('q_out_ts').innerText = '';
      document.getElementById('q_out_qry').innerText = '';
      document.getElementById('q_out_res').innerText = '';
      document.getElementById('q_out_ai').innerText = '';
      
      // Fall back to target baselines
      document.getElementById('q_out_id').innerText = 'AH/3RD PARTY';
      document.getElementById('q_out_dp').innerText = 'PASSED/FAILED';
      document.getElementById('q_out_cnum').innerText = 'Verified/ Updated';
      document.getElementById('q_out_em').innerText = 'Verified/ Updated';
      document.getElementById('q_out_cjm').innerText = 'N/A';
      
      // Hide dynamic box on reset
      document.getElementById('cjm-case-container').style.display = 'none';
    }
  " style="width: 100%; margin-top: 8px; margin-bottom: 12px; background: #e2e8f0; color: #475569; border: 1px solid #cbd5e1; padding: 10px; font-weight: 700; border-radius: 8px; cursor: pointer; text-transform: uppercase; font-size: 0.85em; transition: background 0.2s;">
    🗑️ Clear All Answers
  </button>

  <!-- Input Grid -->
  <div style="display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 10px;">
    <label style="font-weight:700; font-size:0.85em;">CONTACT ID:
      <input type="text" placeholder=" " onkeyup="document.getElementById('q_out_cid').innerText = this.value;" style="width:100%; padding:6px; border:1px solid #ccc; border-radius:4px; box-sizing: border-box; margin-top: 4px;">
    </label>
    
    <label style="font-weight:700; font-size:0.85em;">Identity:
      <select required onchange="document.getElementById('q_out_id').innerText = this.value;" style="width:100%; padding:6px; border:1px solid #ccc; border-radius:4px; box-sizing: border-box; margin-top: 4px;">
        <option value="" disabled selected hidden>-- Select Identity --</option>
        <option value="AH">AH</option>
        <option value="3RD PARTY">3RD PARTY</option>
      </select>
    </label>
    
    <label style="font-weight:700; font-size:0.85em;">Chatter Name:
      <input type="text" placeholder=" " onkeyup="document.getElementById('q_out_nm').innerText = this.value;" style="width:100%; padding:6px; border:1px solid #ccc; border-radius:4px; box-sizing: border-box; margin-top: 4px;">
    </label>
    
    <label style="font-weight:700; font-size:0.85em;">ACCOUNT #:
      <input type="text" placeholder=" " onkeyup="document.getElementById('q_out_acc').innerText = this.value;" style="width:100%; padding:6px; border:1px solid #ccc; border-radius:4px; box-sizing: border-box; margin-top: 4px;">
    </label>
    
    <label style="font-weight:700; font-size:0.85em;">DPA STATUS:
      <select required onchange="document.getElementById('q_out_dp').innerText = this.value;" style="width:100%; padding:6px; border:1px solid #ccc; border-radius:4px; box-sizing: border-box; margin-top: 4px;">
        <option value="" disabled selected hidden>-- Select Status --</option>
        <option value="PASSED">PASSED</option>
        <option value="PASSED by manual DPA of the BOT">PASSED by manual DPA of the BOT</option>
        <option value="PASSED in the previous chat">PASSED in the previous chat</option>
        <option value="FAILED">FAILED</option>
      </select>
    </label>
    
    <label style="font-weight:700; font-size:0.85em;">DPA TIMESTAMP:
      <input type="text" placeholder="HH:MM" onkeyup="document.getElementById('q_out_ts').innerText = this.value;" style="width:100%; padding:6px; border:1px solid #ccc; border-radius:4px; box-sizing: border-box; margin-top: 4px;">
    </label>
    
    <label style="font-weight:700; font-size:0.85em;">Contact No Status:
      <select required onchange="document.getElementById('q_out_cnum').innerText = this.value;" style="width:100%; padding:6px; border:1px solid #ccc; border-radius:4px; box-sizing: border-box; margin-top: 4px;">
        <option value="" disabled selected hidden>-- Select Status --</option>
        <option value="Verified">Verified</option>
        <option value="Updated">Updated</option>
      </select>
    </label>
    
    <label style="font-weight:700; font-size:0.85em;">Email Status:
      <select required onchange="document.getElementById('q_out_em').innerText = this.value;" style="width:100%; padding:6px; border:1px solid #ccc; border-radius:4px; box-sizing: border-box; margin-top: 4px;">
        <option value="" disabled selected hidden>-- Select Status --</option>
        <option value="Verified">Verified</option>
        <option value="Updated">Updated</option>
      </select>
    </label>
    
    <label style="font-weight:700; font-size:0.85em;">CJM:
      <select required onchange="
        var container = document.getElementById('cjm-case-container');
        var caseInput = document.getElementById('cjm_case_input');
        if (this.value === 'YES') {
          container.style.display = 'block';
          document.getElementById('q_out_cjm').innerText = 'YES | Case Ref: ' + caseInput.value;
        } else {
          container.style.display = 'none';
          caseInput.value = '';
          document.getElementById('q_out_cjm').innerText = this.value;
        }
      " style="width:100%; padding:6px; border:1px solid #ccc; border-radius:4px; box-sizing: border-box; margin-top: 4px;">
        <option value="" disabled selected hidden>-- Select CJM --</option>
        <option value="N/A">N/A</option>
        <option value="YES">YES</option>
      </select>
    </label>

    <!-- Conditional Case Reference Entry Field -->
    <div id="cjm-case-container" style="display: none; margin-top: 0px;">
      <label style="font-weight:700; font-size:0.85em; color: #1e293b;">CASE REFERENCE:
        <input type="text" id="cjm_case_input" placeholder="Case reference..." onkeyup="document.getElementById('q_out_cjm').innerText = 'YES | Case Ref: ' + this.value;" style="width:100%; padding:6px; border:1px solid #ccc; border-radius:4px; box-sizing: border-box; margin-top: 4px; font-weight: 600;">
      </label>
    </div>
  </div>

  <!-- Query and Resolution Text Inputs -->
  <div style="display: flex; flex-direction: column; gap: 8px; margin-bottom: 12px;">
    <label style="font-weight:700; font-size:0.85em; color: #333;">QUERY: Customer want to...
      <input type="text" placeholder="Type what customer wants here..." onkeyup="document.getElementById('q_out_qry').innerText = this.value;" style="width:100%; padding:8px; border:1px solid #ccc; border-radius:4px; margin-top:4px; font-weight:600; box-sizing: border-box;">
    </label>
    <label style="font-weight:700; font-size:0.85em; color: #333;">RESOLUTION:
      <input type="text" placeholder="Type resolution here..." onkeyup="document.getElementById('q_out_res').innerText = this.value;" style="width:100%; padding:8px; border:1px solid #ccc; border-radius:4px; margin-top:4px; font-weight:600; box-sizing: border-box;">
    </label>
    <label style="font-weight:700; font-size:0.85em; color: #333;">AI SUMMARY:
      <textarea placeholder=" " onkeyup="document.getElementById('q_out_ai').innerText = this.value ? '\n' + this.value : '';" style="width:100%; height:60px; padding:6px; border:1px solid #ccc; border-radius:4px; font-family: monospace; resize: vertical; margin-top: 4px; box-sizing: border-box;"></textarea>
    </label>
  </div>

  <!-- Copy Action Button -->
  <button onclick="
    var range = document.createRange(); 
    range.selectNode(document.getElementById('q_out')); 
    window.getSelection().removeAllRanges(); 
    window.getSelection().addRange(range); 
    document.execCommand('copy'); 
    window.getSelection().removeAllRanges(); 
    
    var toast = document.getElementById('copy-toast');
    toast.className = 'show';
    setTimeout(function() { toast.className = toast.className.replace('show', ''); }, 2500);
  " style="width: 100%; background: linear-gradient(135deg, #00B4DB, #0083B0); color: #fff; border: none; padding: 12px; font-weight: 900; border-radius: 8px; cursor: pointer; text-transform: uppercase;">📋 Click to Copy Note</button>
  
  <!-- Preview Output Field -->
  <pre id="q_out" style="width: 100%; font-family: monospace; font-size: 0.95em; padding: 12px; border: 2px dashed #0083B0; border-radius: 6px; background: #F0FAFC; box-sizing: border-box; margin-top: 10px; white-space: pre-wrap; font-weight: bold; color: #333;">***************************HYBRID MESSAGING***************************

QUERY CONTACT ID: Identity of the chatter: AH/3RD PARTY Name of the chatter: ACCOUNT #: DPA STATUS: PASSED/FAILED DPA TIME STAMP: Contact Number Update Status: Verified/ Updated Email address Status: Verified/ Updated CJM: N/A QUERY: Customer want to RESOLUTION: HYBRID MESSAGING AI SUMMARY: HYBRID MESSAGING

<button onclick=" var parentDetails = this.closest('details'); if (parentDetails) { var inputs = parentDetails.querySelectorAll('input[type='text']'); inputs.forEach(function(i) { i.value = ''; }); var textareas = parentDetails.querySelectorAll('textarea'); textareas.forEach(function(t) { t.value = ''; }); var selects = parentDetails.querySelectorAll('select'); selects.forEach(function(s) { s.selectedIndex = 0; });

// Clear live preview text layers
document.getElementById('ret_out_cid').innerText = '';
document.getElementById('ret_out_nm').innerText = '';
document.getElementById('ret_out_acc').innerText = '';
document.getElementById('ret_out_ts').innerText = '';
document.getElementById('ret_out_wo').innerText = '';
document.getElementById('ret_out_qry').innerText = '';
document.getElementById('ret_out_ofr').innerText = '';
document.getElementById('ret_out_res').innerText = '';
document.getElementById('ret_out_pp').innerText = '';
document.getElementById('ret_out_be').innerText = '';
document.getElementById('ret_out_ai').innerText = '';

// Restore baseline options
document.getElementById('ret_out_type').innerText = 'DISCONNECTION/RECONTRACT/QUERY/OTS';
document.getElementById('ret_out_id').innerText = 'AH/3RD PARTY';
document.getElementById('ret_out_dp').innerText = 'PASSED/FAILED';
document.getElementById('ret_out_cnum').innerText = 'Verified/ Updated';
document.getElementById('ret_out_em').innerText = 'Verified/ Updated';
document.getElementById('ret_out_cjm').innerText = 'N/A';
document.getElementById('ret_out_tk').innerText = 'YES';

} " style="width: 100%; margin-top: 8px; margin-bottom: 12px; background: #e2e8f0; color: #475569; border: 1px solid #cbd5e1; padding: 10px; font-weight: 700; border-radius: 8px; cursor: pointer; text-transform: uppercase; font-size: 0.85em; transition: background 0.2s;"> 🗑️ Clear All Answers

  <!-- Input Configuration Grid -->
  <div style="display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 10px;">
    
    <!-- Department Selection Dropdown -->
    <label style="font-weight:700; font-size:0.85em; grid-column: span 2;"> CHAT TYPE:
      <select required onchange="document.getElementById('ret_out_type').innerText = this.value;" style="width:100%; padding:6px; border:1px solid #ccc; border-radius:4px; margin-top: 4px;">
        <option value="" disabled selected hidden>-- Select Type of Chat --</option>
        <option value="DISCONNECTION">DISCONNECTION</option>
        <option value="RECONTRACT">RECONTRACT</option>
        <option value="QUERY">QUERY</option>
        <option value="OTS">OTS</option>
      </select>
    </label>
    
    <label style="font-weight:700; font-size:0.85em;">CONTACT ID:<input type="text" placeholder=" " onkeyup="document.getElementById('ret_out_cid').innerText = this.value;" style="width:100%; padding:6px; border:1px solid #ccc; border-radius:4px;"></label>

    <label style="font-weight:700; font-size:0.85em;">Identity:
      <select required onchange="document.getElementById('ret_out_id').innerText = this.value;" style="width:100%; padding:6px; border:1px solid #ccc; border-radius:4px;">
        <option value="" disabled selected hidden>-- Select Identity --</option>
        <option value="AH">AH</option>
        <option value="3RD PARTY">3RD PARTY</option>
      </select>
    </label>
    
    <label style="font-weight:700; font-size:0.85em;">Chatter Name:<input type="text" placeholder=" " onkeyup="document.getElementById('ret_out_nm').innerText = this.value;" style="width:100%; padding:6px; border:1px solid #ccc; border-radius:4px;"></label>
    <label style="font-weight:700; font-size:0.85em;">ACCOUNT #:<input type="text" placeholder=" " onkeyup="document.getElementById('ret_out_acc').innerText = this.value;" style="width:100%; padding:6px; border:1px solid #ccc; border-radius:4px;"></label>
    
    <label style="font-weight:700; font-size:0.85em;">DPA STATUS:
      <select required onchange="document.getElementById('ret_out_dp').innerText = this.value;" style="width:100%; padding:6px; border:1px solid #ccc; border-radius:4px;">
        <option value="" disabled selected hidden>-- Select Status --</option>
        <option value="PASSED">PASSED</option>
        <option value="PASSED by manual DPA of the BOT">PASSED by manual DPA of the BOT</option>
        <option value="PASSED in the previous chat">PASSED in the previous chat</option>
        <option value="FAILED">FAILED</option>
      </select>
    </label>
    
    <label style="font-weight:700; font-size:0.85em;">DPA TIMESTAMP:<input type="text" placeholder=" " onkeyup="document.getElementById('ret_out_ts').innerText = this.value;" placeholder="HH:MM" style="width:100%; padding:6px; border:1px solid #ccc; border-radius:4px;"></label>
    
    <label style="font-weight:700; font-size:0.85em;">Contact No Status:
      <select required onchange="document.getElementById('ret_out_cnum').innerText = this.value;" style="width:100%; padding:6px; border:1px solid #ccc; border-radius:4px;">
        <option value="" disabled selected hidden>-- Select Status --</option>
        <option value="Verified">Verified</option>
        <option value="Updated">Updated</option>
      </select>
    </label>
    
    <label style="font-weight:700; font-size:0.85em;">Email Status:
      <select required onchange="document.getElementById('ret_out_em').innerText = this.value;" style="width:100%; padding:6px; border:1px solid #ccc; border-radius:4px;">
        <option value="" disabled selected hidden>-- Select Status --</option>
        <option value="Verified">Verified</option>
        <option value="Updated">Updated</option>
      </select>
    </label>

CJM: -- Select CJM -- N/A YES

    <label style="font-weight:700; font-size:0.85em;">WO:<input type="text" placeholder=" " onkeyup="document.getElementById('ret_out_wo').innerText = this.value;" style="width:100%; padding:6px; border:1px solid #ccc; border-radius:4px;"></label>
    
    <label style="font-weight:700; font-size:0.85em;">MESSENGER TOOLKIT:
      <select required onchange="document.getElementById('ret_out_tk').innerText = this.value;" style="width:100%; padding:6px; border:1px solid #ccc; border-radius:4px;">
        <option value="" disabled selected hidden>-- Select Option --</option>
        <option value="YES">YES</option>
        <option value="NO - MAIN DISCOUNT">NO - MAIN DISCOUNT</option>
        <option value="N/A">N/A</option>
      </select>
    </label>
  </div>
  <!-- Free Text Inputs -->
  <div style="display: flex; flex-direction: column; gap: 8px; margin-bottom: 12px;">
    <label style="font-weight:700; font-size:0.85em; color: #333;">QUERY: Customer wants to...
      <input type="text" placeholder="Type query details..." onkeyup="document.getElementById('ret_out_qry').innerText = this.value;" style="width:100%; padding:8px; border:1px solid #ccc; border-radius:4px; margin-top:4px; font-weight:600;">
    </label>
    <label style="font-weight:700; font-size:0.85em; color: #333;">OFFERED:
      <input type="text" placeholder="£X/month for XTV, X broadband..." onkeyup="document.getElementById('ret_out_ofr').innerText = this.value;" style="width:100%; padding:8px; border:1px solid #ccc; border-radius:4px; margin-top:4px; font-weight:600;">
    </label>
    <label style="font-weight:700; font-size:0.85em; color: #333;">RESOLUTION:
      <input type="text" placeholder="Type final resolution here..." onkeyup="document.getElementById('ret_out_res').innerText = this.value;" style="width:100%; padding:8px; border:1px solid #ccc; border-radius:4px; margin-top:4px; font-weight:600;">
    </label>
    <label style="font-weight:700; font-size:0.85em; color: #333;">EFFECTIVE DATE:  
      <input type="text" placeholder="Type the date of Disconnection date or Recontract date..." onkeyup="document.getElementById('ret_out_ed').innerText = this.value;" style="width:100%; padding:8px; border:1px solid #ccc; border-radius:4px; margin-top:4px; font-weight:600;">
    </label>
  </div>

  <!-- 2. BIG PASTE BOXES FOR BILLING DETAILS -->
  <div style="display: flex; flex-direction: column; gap: 8px; margin-bottom: 12px;">
    <label style="font-weight:700; font-size:0.85em; color: #333;">PASTE PP DETAILS:
      <textarea placeholder=" " onkeyup="document.getElementById('ret_out_pp').innerText = this.value ? '\n' + this.value : '';" style="width:100%; height:60px; padding:6px; border:1px solid #ccc; border-radius:4px; font-family: monospace; resize: vertical; margin-top: 4px;"></textarea>
    </label>
    <label style="font-weight:700; font-size:0.85em; color: #333;">PASTE BE DETAILS:
      <textarea placeholder=" " onkeyup="document.getElementById('ret_out_be').innerText = this.value ? '\n' + this.value : '';" style="width:100%; height:60px; padding:6px; border:1px solid #ccc; border-radius:4px; font-family: monospace; resize: vertical; margin-top: 4px;"></textarea>
    </label>
    <label style="font-weight:700; font-size:0.85em; color: #333;">AI SUMMARY:
      <textarea placeholder=" " onkeyup="document.getElementById('ret_out_ai').innerText = this.value ? '\n' + this.value : '';" style="width:100%; height:60px; padding:6px; border:1px solid #ccc; border-radius:4px; font-family: monospace; resize: vertical; margin-top: 4px;"></textarea>
    </label>
  </div>

  <!-- Copy Action Button -->
  <button onclick="var range = document.createRange(); range.selectNode(document.getElementById('ret_out')); window.getSelection().removeAllRanges(); window.getSelection().addRange(range); document.execCommand('copy'); window.getSelection().removeAllRanges(); alert('Retention Note Copied!');" style="width: 100%; background: linear-gradient(135deg, #11998e, #38ef7d); color: #fff; border: none; padding: 12px; font-weight: 900; border-radius: 8px; cursor: pointer; text-transform: uppercase;">📋 Click to Copy Retention Note</button>
  
  <!-- 3. AUTO POPULATED NOTE PREVIEW -->
  <pre id="ret_out" style="width: 100%; font-family: monospace; font-size: 0.95em; padding: 12px; border: 2px dashed #38ef7d; border-radius: 6px; background: #F1FDF5; box-sizing: border-box; margin-top: 10px; white-space: pre-wrap; font-weight: bold; color: #333;">***************************HYBRID MESSAGING***************************

RETENTION DISCONNECTION/RECONTRACT/QUERY/OTS CONTACT ID: Identity of the chatter: AH/3RD PARTY Name of the chatter: ACCOUNT #: DPA STATUS: PASSED/FAILED DPA TIME STAMP: Contact Number Update Status: Verified/ Updated Email address Status: Verified/ Updated CJM: N/A WO: QUERY: Customer wants to OFFERED: £X/month for XTV, X broadband, and X chatter services with XX MESSENGER TOOLKIT: YES RESOLUTION: EFFECTIVE DATE: HYBRID MESSAGING PP: BE: HYBRID MESSAGING AI SUMMARY: HYBRID MESSAGING

  <!-- Reset Button Component -->
  <button onclick="
    var parentDetails = this.closest('details');
    if (parentDetails) {
      parentDetails.querySelectorAll('input[type=\'text\']').forEach(i => i.value = '');
      parentDetails.querySelectorAll('textarea').forEach(t => t.value = '');
      parentDetails.querySelectorAll('select').forEach(s => s.selectedIndex = 0);
      document.getElementById('obret_out_cid').innerText = '';
      document.getElementById('obret_out_nm').innerText = '';
      document.getElementById('obret_out_acc').innerText = '';
      document.getElementById('obret_out_ts').innerText = '';
      document.getElementById('obret_out_wo').innerText = '';
      document.getElementById('obret_out_qry').innerText = 'XXX';
      document.getElementById('obret_out_ofr').innerText = '£X/month for XTV, X broadband, and X chatter services with XX';
      document.getElementById('obret_out_res').innerText = '';
      document.getElementById('obret_out_pp').innerText = '';
      document.getElementById('obret_out_be').innerText = '';
      document.getElementById('obret_out_ai').innerText = '';
      document.getElementById('obret_out_id').innerText = 'AH/3RD PARTY';
      document.getElementById('obret_out_dp').innerText = 'PASSED/FAILED';
      document.getElementById('obret_out_cnum').innerText = 'Verified/ Updated';
      document.getElementById('obret_out_em').innerText = 'Verified/ Updated';
    }
  " style="width: 100%; margin-top: 8px; margin-bottom: 12px; background: #e2e8f0; color: #475569; border: 1px solid #cbd5e1; padding: 10px; font-weight: 700; border-radius: 8px; cursor: pointer; text-transform: uppercase; font-size: 0.85em; transition: background 0.2s;">
    🗑️ Clear All Answers
  </button>

  <!-- Input Grid -->
  <div style="display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 10px;">
    <label style="font-weight:700; font-size:0.85em;">CONTACT ID:<input type="text" placeholder=" " onkeyup="document.getElementById('obret_out_cid').innerText = this.value;" style="width:100%; padding:6px; border:1px solid #ccc; border-radius:4px; font-weight:bold; color:#000;"></label>
    
    <label style="font-weight:700; font-size:0.85em;">Identity:
      <select required onchange="document.getElementById('obret_out_id').innerText = this.value;" style="width:100%; padding:6px; border:1px solid #ccc; border-radius:4px; font-weight:bold;">
        <option value="" disabled selected hidden>-- Select Identity --</option>
        <option value="AH">AH</option>
        <option value="3RD PARTY">3RD PARTY</option>
      </select>
    </label>
    <label style="font-weight:700; font-size:0.85em;">Chatter Name:<input type="text" placeholder=" " onkeyup="document.getElementById('obret_out_nm').innerText = this.value;" style="width:100%; padding:6px; border:1px solid #ccc; border-radius:4px; font-weight:bold; color:#000;"></label>
    <label style="font-weight:700; font-size:0.85em;">ACCOUNT #:<input type="text" placeholder=" " onkeyup="document.getElementById('obret_out_acc').innerText = this.value;" style="width:100%; padding:6px; border:1px solid #ccc; border-radius:4px; font-weight:bold; color:#000;"></label>
    
    <label style="font-weight:700; font-size:0.85em;">DPA STATUS:
      <select required onchange="document.getElementById('obret_out_dp').innerText = this.value;" style="width:100%; padding:6px; border:1px solid #ccc; border-radius:4px; font-weight:bold;">
        <option value="" disabled selected hidden>-- Select Status --</option>
        <option value="PASSED">PASSED</option>
        <option value="PASSED by manual DPA of the BOT">PASSED by manual DPA of the BOT</option>
        <option value="PASSED in the previous chat">PASSED in the previous chat</option>
        <option value="FAILED">FAILED</option>
      </select>
    </label>
    
    <label style="font-weight:700; font-size:0.85em;">DPA TIME STAMP:<input type="text" placeholder="e.g. 17:15" onkeyup="document.getElementById('obret_out_ts').innerText = this.value;" style="width:100%; padding:6px; border:1px solid #ccc; border-radius:4px; font-weight:bold; color:#000;"></label>
    
    <label style="font-weight:700; font-size:0.85em;">Contact No Status:
      <select required onchange="document.getElementById('obret_out_cnum').innerText = this.value;" style="width:100%; padding:6px; border:1px solid #ccc; border-radius:4px; font-weight:bold;">
        <option value="" disabled selected hidden>-- Select Status --</option>
        <option value="Verified">Verified</option>
        <option value="Updated">Updated</option>
      </select>
    </label>
    
    <label style="font-weight:700; font-size:0.85em;">Email Status:
      <select required onchange="document.getElementById('obret_out_em').innerText = this.value;" style="width:100%; padding:6px; border:1px solid #ccc; border-radius:4px; font-weight:bold;">
        <option value="" disabled selected hidden>-- Select Status --</option>
        <option value="Verified">Verified</option>
        <option value="Updated">Updated</option>
      </select>
    </label>
    
    <label style="font-weight:700; font-size:0.85em;">WO:<input type="text" placeholder=" " onkeyup="document.getElementById('obret_out_wo').innerText = this.value;" style="width:100%; padding:6px; border:1px solid #ccc; border-radius:4px; font-weight:bold; color:#000;"></label>
  </div>

  <!-- Free Text Inputs -->
  <div style="display: flex; flex-direction: column; gap: 8px; margin-bottom: 12px;">
    <label style="font-weight:700; font-size:0.85em; color: #333;">QUERY: Customer received...
      <input type="text" placeholder="Type query details..." onkeyup="document.getElementById('obret_out_qry').innerText = this.value || 'XXX';" style="width:100%; padding:8px; border:1px solid #ccc; border-radius:4px; margin-top:4px; font-weight:600; color:#000;"></label>
    <label style="font-weight:700; font-size:0.85em; color: #333;">OFFERED:
      <input type="text" placeholder="£X/month for XTV..." onkeyup="document.getElementById('obret_out_ofr').innerText = this.value || '£X/month for XTV, X broadband, and X chatter services with XX';" style="width:100%; padding:8px; border:1px solid #ccc; border-radius:4px; margin-top:4px; font-weight:600; color:#000;"></label>
    <label style="font-weight:700; font-size:0.85em; color: #333;">RESOLUTION:
      <input type="text" placeholder="Type final resolution here..." onkeyup="document.getElementById('obret_out_res').innerText = this.value;" style="width:100%; padding:8px; border:1px solid #ccc; border-radius:4px; margin-top:4px; font-weight:600; color:#000;"></label>
  </div>

  <!-- 2. BIG PASTE BOXES FOR BILLING DETAILS & AI SUMMARY -->
  <div style="display: flex; flex-direction: column; gap: 8px; margin-bottom: 12px;">
    <label style="font-weight:700; font-size:0.85em; color: #333;">PASTE PP DETAILS:
      <textarea placeholder=" " onkeyup="document.getElementById('obret_out_pp').innerText = this.value ? '\n' + this.value : '';" style="width:100%; height:60px; padding:6px; border:1px solid #ccc; border-radius:4px; font-family: monospace; resize: vertical; margin-top: 4px; font-weight:bold; color:#000;"></textarea>
    </label>
    <label style="font-weight:700; font-size:0.85em; color: #333;">PASTE BE DETAILS:
      <textarea placeholder=" " onkeyup="document.getElementById('obret_out_be').innerText = this.value ? '\n' + this.value : '';" style="width:100%; height:60px; padding:6px; border:1px solid #ccc; border-radius:4px; font-family: monospace; resize: vertical; margin-top: 4px; font-weight:bold; color:#000;"></textarea>
    </label>
    <label style="font-weight:700; font-size:0.85em; color: #333;">AI SUMMARY:
      <textarea placeholder=" " onkeyup="document.getElementById('obret_out_ai').innerText = this.value ? '\n' + this.value : '';" style="width:100%; height:60px; padding:6px; border:1px solid #ccc; border-radius:4px; font-family: monospace; resize: vertical; margin-top: 4px; font-weight:bold; color:#000;"></textarea>
    </label>
  </div>

  <!-- Copy Action Button -->
  <button onclick="var range = document.createRange(); range.selectNode(document.getElementById('obret_out')); window.getSelection().removeAllRanges(); window.getSelection().addRange(range); document.execCommand('copy'); window.getSelection().removeAllRanges(); alert('OB Retention Note Copied!');" style="width: 100%; background: linear-gradient(135deg, #00f2fe, #4facfe); color: #fff; border: none; padding: 12px; font-weight: 900; border-radius: 8px; cursor: pointer; text-transform: uppercase;">📋 Click to Copy OB Retention Note</button>
  
  <!-- 3. AUTO POPULATED NOTE PREVIEW -->
  <pre id="obret_out" style="width: 100%; font-family: monospace; font-size: 0.95em; padding: 12px; border: 2px dashed #4facfe; border-radius: 6px; background: #F4FAFC; box-sizing: border-box; margin-top: 10px; white-space: pre-wrap; font-weight: bold; color: #333;">***************************HYBRID MESSAGING***************************

OB RETAIN MESSAGING CONTACT ID: Identity of the chatter: AH/3RD PARTY Name of the chatter: ACCOUNT #: DPA STATUS: PASSED/FAILED DPA TIME STAMP: Contact Number Update Status: Verified/ Updated Email address Status: Verified/ Updated CJM: N/A WO: QUERY: Customer received XXX OFFERED: £X/month for XTV, X broadband, and X chatter services with XX RESOLUTION: HYBRID MESSAGING PP: BE: HYBRID MESSAGING AI SUMMARY: HYBRID MESSAGING

<button onclick=" var parentDetails = this.closest('details'); if (parentDetails) { var inputs = parentDetails.querySelectorAll('input[type='text']'); inputs.forEach(function(i) { i.value = ''; }); var textareas = parentDetails.querySelectorAll('textarea'); textareas.forEach(function(t) { t.value = ''; }); var selects = parentDetails.querySelectorAll('select'); selects.forEach(function(s) { s.selectedIndex = 0; });

// Clear live view tracking spans
document.getElementById('s_out_cid').innerText = '';
document.getElementById('s_out_acc').innerText = '';
document.getElementById('s_out_nm').innerText = '';
document.getElementById('s_out_add').innerText = '';
document.getElementById('s_out_sor').innerText = '';
document.getElementById('s_out_em').innerText = '';
document.getElementById('s_out_ph').innerText = '';
document.getElementById('s_out_idat').innerText = '';
document.getElementById('s_out_wo').innerText = '';
document.getElementById('s_out_o2').innerText = '';
document.getElementById('s_out_sim').innerText = '';
document.getElementById('s_out_pkg').innerText = '';
document.getElementById('s_out_be').innerText = '';
document.getElementById('s_out_ai').innerText = '';

// Baseline setting strings
document.getElementById('s_out_ots').innerText = 'SUCCESSFUL/ UNSUCCESSFUL/N.A';

} " style="width: 100%; margin-top: 8px; margin-bottom: 12px; background: #e2e8f0; color: #475569; border: 1px solid #cbd5e1; padding: 10px; font-weight: 700; border-radius: 8px; cursor: pointer; text-transform: uppercase; font-size: 0.85em; transition: background 0.2s;"> 🗑️ Clear All Answers

  <!-- Input Grid -->
  <div style="display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 10px;">
    <label style="font-weight:700; font-size:0.85em;">CID:<input type="text" placeholder=" " onkeyup="document.getElementById('s_out_cid').innerText = this.value;" style="width:100%; padding:6px; border:1px solid #ccc; border-radius:4px;"></label>
    <label style="font-weight:700; font-size:0.85em;">NEW Account number:<input type="text" placeholder=" " onkeyup="document.getElementById('s_out_acc').innerText = this.value;" style="width:100%; padding:6px; border:1px solid #ccc; border-radius:4px;"></label>
    <label style="font-weight:700; font-size:0.85em;">Customer Name:<input type="text" placeholder=" " onkeyup="document.getElementById('s_out_nm').innerText = this.value;" style="width:100%; padding:6px; border:1px solid #ccc; border-radius:4px;"></label>
    <label style="font-weight:700; font-size:0.85em;">ADDRESS DETAILS:<input type="text" placeholder=" " onkeyup="document.getElementById('s_out_add').innerText = this.value;" style="width:100%; padding:6px; border:1px solid #ccc; border-radius:4px;"></label>
    <label style="font-weight:700; font-size:0.85em;">OTS:
      <select required onchange="document.getElementById('s_out_ots').innerText = this.value;" style="width:100%; padding:6px; border:1px solid #ccc; border-radius:4px;">
        <option value="" disabled selected hidden>-- Select OTS Status --</option>
        <option value="SUCCESSFUL">SUCCESSFUL</option>
        <option value="UNSUCCESSFUL">UNSUCCESSFUL</option>
        <option value="N.A">N.A</option>
      </select>
    </label>
    
    <label style="font-weight:700; font-size:0.85em;">SOR Number:<input type="text" placeholder=" " onkeyup="document.getElementById('s_out_sor').innerText = this.value;" style="width:100%; padding:6px; border:1px solid #ccc; border-radius:4px;"></label>
    <label style="font-weight:700; font-size:0.85em;">Email address:<input type="text" placeholder=" " onkeyup="document.getElementById('s_out_em').innerText = this.value;" style="width:100%; padding:6px; border:1px solid #ccc; border-radius:4px;"></label>
    <label style="font-weight:700; font-size:0.85em;">Contact number:<input type="text" placeholder=" " onkeyup="document.getElementById('s_out_ph').innerText = this.value;" style="width:100%; padding:6px; border:1px solid #ccc; border-radius:4px;"></label>
    <label style="font-weight:700; font-size:0.85em;">Install date:<input type="text" placeholder=" " onkeyup="document.getElementById('s_out_idat').innerText = this.value;" style="width:100%; padding:6px; border:1px solid #ccc; border-radius:4px;"></label>
    <label style="font-weight:700; font-size:0.85em;">WO:<input type="text" placeholder=" " onkeyup="document.getElementById('s_out_wo').innerText = this.value;" style="width:100%; padding:6px; border:1px solid #ccc; border-radius:4px;"></label>
    <label style="font-weight:700; font-size:0.85em;">O2 Order Ref ID:<input type="text" placeholder=" " onkeyup="document.getElementById('s_out_o2').innerText = this.value;" style="width:100%; padding:6px; border:1px solid #ccc; border-radius:4px;"></label>
    <label style="font-weight:700; font-size:0.85em;">SIM PACKAGE:<input type="text" placeholder=" " onkeyup="document.getElementById('s_out_sim').innerText = this.value;" style="width:100%; padding:6px; border:1px solid #ccc; border-radius:4px;"></label>
  </div>
  <!-- Package Offer Fields Layout -->
  <div style="display: flex; flex-direction: column; gap: 8px; margin-bottom: 12px;">
    <label style="font-weight:700; font-size:0.85em; color: #333;">PACKAGE OFFERED Details:
      <input type="text" placeholder="£/month for X TV, X Broadband, X Chatter services for 24 months contract, £XX thereafter" onkeyup="document.getElementById('s_out_pkg').innerText = this.value || '£/month for X TV, X Broadband, X Chatter services for 24 months contract, £XX thereafter';" style="width:100%; padding:8px; border:1px solid #ccc; border-radius:4px; margin-top:4px; font-weight:600;">
    </label>
  </div>

  <!-- 2. BIG PASTE BOX FOR BILLING DETAILS -->
  <div style="display: flex; flex-direction: column; gap: 8px; margin-bottom: 12px;">
    <label style="font-weight:700; font-size:0.85em; color: #333;">PASTE BE DETAILS:
      <textarea placeholder=" " onkeyup="document.getElementById('s_out_be').innerText = this.value ? '\n' + this.value : '';" style="width:100%; height:60px; padding:6px; border:1px solid #ccc; border-radius:4px; font-family: monospace; resize: vertical; margin-top: 4px;"></textarea>
    </label>
    <label style="font-weight:700; font-size:0.85em; color: #333;">AI SUMMARY:
      <textarea placeholder=" " onkeyup="document.getElementById('s_out_ai').innerText = this.value ? '\n' + this.value : '';" style="width:100%; height:60px; padding:6px; border:1px solid #ccc; border-radius:4px; font-family: monospace; resize: vertical; margin-top: 4px;"></textarea>
    </label>
  </div>

  <!-- Copy Action Button -->
  <button onclick="var range = document.createRange(); range.selectNode(document.getElementById('s_out')); window.getSelection().removeAllRanges(); window.getSelection().addRange(range); document.execCommand('copy'); window.getSelection().removeAllRanges(); alert('Sales Note Copied!');" style="width: 100%; background: linear-gradient(135deg, #f12711, #f5af19); color: #fff; border: none; padding: 12px; font-weight: 900; border-radius: 8px; cursor: pointer; text-transform: uppercase;">📋 Click to Copy Sales Note</button>
  
  <!-- 3. AUTO POPULATED NOTE PREVIEW -->
  <pre id="s_out" style="width: 100%; font-family: monospace; font-size: 0.95em; padding: 12px; border: 2px dashed #f5af19; border-radius: 6px; background: #FFFDF5; box-sizing: border-box; margin-top: 10px; white-space: pre-wrap; font-weight: bold; color: #333;">***************************HYBRID MESSAGING***************************

SALES WEBCHAT SALE CID: NEW Account number: Name of the customer: ADDRESS DETAILS: QUERY: The customer wants to join VM RESOLUTION: Processed New Acquisition OTS : SUCCESSFUL/ UNSUCCESSFUL/N.A SOR Number: Email address: Contact number: Install date: WO: O2 Order Reference ID: SIM PACKAGE: PACKAGE OFFERED: £/month for X TV, X Broadband, X Chatter services for 24 months contract, £XX thereafter HYBRID MESSAGING BE: HYBRID MESSAGING AI SUMMARY: HYBRID MESSAGING

🗑️ Clear All Answers

  <!-- Input Grid -->
  <div style="display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 10px;">
    <label style="font-weight:700; font-size:0.85em;">CID:<input type="text" onkeyup="document.getElementById('nebb_out_cid').innerText = this.value;" style="width:100%; padding:6px; border:1px solid #ccc; border-radius:4px;"></label>
    <label style="font-weight:700; font-size:0.85em;">ACCOUNT NUMBER:<input type="text" onkeyup="document.getElementById('nebb_out_acc').innerText = this.value;" style="width:100%; padding:6px; border:1px solid #ccc; border-radius:4px;"></label>
    <label style="font-weight:700; font-size:0.85em;">Name (AH):<input type="text" onkeyup="document.getElementById('nebb_out_nm').innerText = this.value;" style="width:100%; padding:6px; border:1px solid #ccc; border-radius:4px;"></label>
    <label style="font-weight:700; font-size:0.85em;">BOT VALIDATED:<select onchange="document.getElementById('nebb_out_bot').innerText = this.value;" style="width:100%; padding:6px; border:1px solid #ccc; border-radius:4px;"><option value="YES / NO">YES / NO</option><option value="YES">YES</option><option value="NO">NO</option></select></label>
    <label style="font-weight:700; font-size:0.85em;">OTS:<select onchange="document.getElementById('nebb_out_ots').innerText = this.value;" style="width:100%; padding:6px; border:1px solid #ccc; border-radius:4px;">            <option value="" disabled selected hidden>-- Select OTS Status --</option>
  <!-- Package Offer Row Layout -->
  <div style="display: flex; flex-direction: column; gap: 8px; margin-bottom: 12px;">
    <label style="font-weight:700; font-size:0.85em; color: #333;">PACKAGE Details:
      <input type="text" onkeyup="document.getElementById('nebb_out_pkg').innerText = this.value;" placeholder="Essential Broadband for £XX.00/month" style="width:100%; padding:8px; border:1px solid #ccc; border-radius:4px; margin-top:4px; font-weight:600;">
    </label>
  </div>
  <!-- 2. BIG PASTE BOX FOR BILLING DETAILS -->
  <div style="display: flex; flex-direction: column; gap: 8px; margin-bottom: 12px;">
    <label style="font-weight:700; font-size:0.85em; color: #333;">PASTE BE DETAILS:
      <textarea onkeyup="document.getElementById('nebb_out_be').innerText = this.value ? '\n' + this.value : '';" style="width:100%; height:60px; padding:6px; border:1px solid #ccc; border-radius:4px; font-family: monospace; resize: vertical; margin-top: 4px;"></textarea>
    </label>
    <label style="font-weight:700; font-size:0.85em; color: #333;">AI SUMMARY:
      <textarea onkeyup="document.getElementById('nebb_out_ai').innerText = this.value ? '\n' + this.value : '';" style="width:100%; height:60px; padding:6px; border:1px solid #ccc; border-radius:4px; font-family: monospace; resize: vertical;"></textarea>
    </label>
  </div>

  <!-- Copy Action Button -->
  <button onclick="var range = document.createRange(); range.selectNode(document.getElementById('nebb_out')); window.getSelection().removeAllRanges(); window.getSelection().addRange(range); document.execCommand('copy'); window.getSelection().removeAllRanges(); alert('New EBB Note Copied!');" style="width: 100%; background: linear-gradient(135deg, #2193b0, #6dd5ed); color: #fff; border: none; padding: 12px; font-weight: 900; border-radius: 8px; cursor: pointer; text-transform: uppercase;">📋 Click to Copy New EBB Note</button>
  
  <!-- 3. AUTO POPULATED NOTE PREVIEW -->
  <pre id="nebb_out" style="width: 100%; font-family: monospace; font-size: 0.95em; padding: 12px; border: 2px dashed #6dd5ed; border-radius: 6px; background: #F4FAFC; box-sizing: border-box; margin-top: 10px; white-space: pre-wrap; font-weight: bold; color: #333;">***************************HYBRID MESSAGING***************************

EBB WEBCHAT NEW EBB CUSTOMER CID: ACCOUNT NUMBER: Name (AH): ELIGIBILITY BOT VALIDATED: YES / NO QUERY: The customer wants to join and get EBB RESOLUTION: Processed New Acqui OTS : SUCCESSFUL/ UNSUCCESSFUL/N.A SOR Number: PN: EM: PACKAGE: Essential Broadband for £XX.00/month INSTALL DATE: WO: HYBRID MESSAGING BE: HYBRID MESSAGING AI SUMMARY: HYBRID MESSAGING

  <!-- Reset Button Component -->
  <button onclick="
    var parentDetails = this.closest('details');
    if (parentDetails) {
      parentDetails.querySelectorAll('input[type=\'text\']').forEach(i => i.value = '');
      parentDetails.querySelectorAll('textarea').forEach(t => t.value = '');
      parentDetails.querySelectorAll('select').forEach(s => s.selectedIndex = 0);
      document.getElementById('exebb_out_cid').innerText = '';
      document.getElementById('exebb_out_acc').innerText = '';
      document.getElementById('exebb_out_nm').innerText = '';
      document.getElementById('exebb_out_ts').innerText = 'XXX';
      document.getElementById('exebb_out_pkg').innerText = '';
      document.getElementById('exebb_out_wo').innerText = '';
      document.getElementById('exebb_out_be').innerText = '';
      document.getElementById('exebb_out_ai').innerText = '';
      document.getElementById('exebb_out_dpa').innerText = 'PASSED / FAILED';
      document.getElementById('exebb_out_bot').innerText = 'YES / NO';
      document.getElementById('exebb_out_pn').innerText = 'VERIFIED UPDATED';
      document.getElementById('exebb_out_em').innerText = 'VERIFIED UPDATED';
    }
  " style="width: 100%; margin-top: 8px; margin-bottom: 12px; background: #e2e8f0; color: #475569; border: 1px solid #cbd5e1; padding: 10px; font-weight: 700; border-radius: 8px; cursor: pointer; text-transform: uppercase; font-size: 0.85em; transition: background 0.2s;">
    🗑️ Clear All Answers
  </button>

  <!-- Input Grid -->
  <div style="display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 10px;">
    <label style="font-weight:700; font-size:0.85em;">CID:<input type="text" placeholder=" " onkeyup="document.getElementById('exebb_out_cid').innerText = this.value;" style="width:100%; padding:6px; border:1px solid #ccc; border-radius:4px; font-weight:bold; color:#000;"></label>
    <label style="font-weight:700; font-size:0.85em;">ACCOUNT NUMBER:<input type="text" placeholder=" " onkeyup="document.getElementById('exebb_out_acc').innerText = this.value;" style="width:100%; padding:6px; border:1px solid #ccc; border-radius:4px; font-weight:bold; color:#000;"></label>
    <label style="font-weight:700; font-size:0.85em;">Name (AH):<input type="text" placeholder=" " onkeyup="document.getElementById('exebb_out_nm').innerText = this.value;" style="width:100%; padding:6px; border:1px solid #ccc; border-radius:4px; font-weight:bold; color:#000;"></label>

    <label style="font-weight:700; font-size:0.85em;">DPA STATUS:
      <select required onchange="document.getElementById('exebb_out_dpa').innerText = this.value;" style="width:100%; padding:6px; border:1px solid #ccc; border-radius:4px; font-weight:bold;">
        <option value="" disabled selected hidden>-- Select DPA --</option>
        <option value="PASSED">PASSED</option>
        <option value="PASSED by manual DPA of the BOT">PASSED by manual DPA of the BOT</option>
        <option value="PASSED in the previous chat">PASSED in the previous chat</option>
        <option value="FAILED">FAILED</option>
      </select>
    </label>
    
    <label style="font-weight:700; font-size:0.85em;">DPA TIME STAMP:<input type="text" placeholder="e.g. 14:25" onkeyup="document.getElementById('exebb_out_ts').innerText = this.value || 'XXX';" style="width:100%; padding:6px; border:1px solid #ccc; border-radius:4px; font-weight:bold; color:#000;"></label>
    
    <label style="font-weight:700; font-size:0.85em;">BOT VALIDATED:
      <select required onchange="document.getElementById('exebb_out_bot').innerText = this.value;" style="width:100%; padding:6px; border:1px solid #ccc; border-radius:4px; font-weight:bold;">
        <option value="" disabled selected hidden>-- Select Bot Status --</option>
        <option value="YES">YES</option>
        <option value="NO">NO</option>
      </select>
    </label>
    
    <label style="font-weight:700; font-size:0.85em;">PN STATUS:
      <select required onchange="document.getElementById('exebb_out_pn').innerText = this.value;" style="width:100%; padding:6px; border:1px solid #ccc; border-radius:4px; font-weight:bold;">
        <option value="" disabled selected hidden>-- Select PN Status --</option>
        <option value="VERIFIED">VERIFIED</option>
        <option value="UPDATED">UPDATED</option>
      </select>
    </label>
    
    <label style="font-weight:700; font-size:0.85em;">EM STATUS:
      <select required onchange="document.getElementById('exebb_out_em').innerText = this.value;" style="width:100%; padding:6px; border:1px solid #ccc; border-radius:4px; font-weight:bold;">
        <option value="" disabled selected hidden>-- Select EM Status --</option>
        <option value="VERIFIED">VERIFIED</option>
        <option value="UPDATED">UPDATED</option>
      </select>
    </label>
    
    <label style="font-weight:700; font-size:0.85em;">PACKAGE:<input type="text" placeholder=" " onkeyup="document.getElementById('exebb_out_pkg').innerText = this.value;" style="width:100%; padding:6px; border:1px solid #ccc; border-radius:4px; font-weight:bold; color:#000;"></label>
    <label style="font-weight:700; font-size:0.85em;">WO:<input type="text" placeholder=" " onkeyup="document.getElementById('exebb_out_wo').innerText = this.value;" style="width:100%; padding:6px; border:1px solid #ccc; border-radius:4px; font-weight:bold; color:#000;"></label>
  </div>

  <!-- 2. BIG PASTE BOX FOR BILLING DETAILS -->
  <div style="display: flex; flex-direction: column; gap: 8px; margin-bottom: 12px;">
    <label style="font-weight:700; font-size:0.85em; color: #333;">PASTE BE DETAILS:
      <textarea placeholder=" " onkeyup="document.getElementById('exebb_out_be').innerText = this.value ? '\n' + this.value : '';" style="width:100%; height:60px; padding:6px; border:1px solid #ccc; border-radius:4px; font-family: monospace; resize: vertical; margin-top: 4px; font-weight:bold; color:#000;"></textarea>
    </label>
    <label style="font-weight:700; font-size:0.85em; color: #333;">AI SUMMARY:
      <textarea placeholder=" " onkeyup="document.getElementById('exebb_out_ai').innerText = this.value ? '\n' + this.value : '';" style="width:100%; height:60px; padding:6px; border:1px solid #ccc; border-radius:4px; font-family: monospace; resize: vertical; margin-top: 4px; font-weight:bold; color:#000;"></textarea>
    </label>
  </div>

  <!-- Copy Action Button -->
  <button onclick="var range = document.createRange(); range.selectNode(document.getElementById('exebb_out')); window.getSelection().removeAllRanges(); window.getSelection().addRange(range); document.execCommand('copy'); window.getSelection().removeAllRanges(); alert('Existing EBB Note Copied!');" style="width: 100%; background: linear-gradient(135deg, #4568DC, #B06AB3); color: #fff; border: none; padding: 12px; font-weight: 900; border-radius: 8px; cursor: pointer; text-transform: uppercase;">📋 Click to Copy Existing EBB Note</button>
  
  <!-- 3. AUTO POPULATED NOTE PREVIEW -->
  <pre id="exebb_out" style="width: 100%; font-family: monospace; font-size: 0.95em; padding: 12px; border: 2px dashed #B06AB3; border-radius: 6px; background: #F5F6FC; box-sizing: border-box; margin-top: 10px; white-space: pre-wrap; font-weight: bold; color: #333;">***************************HYBRID MESSAGING***************************

EBB WEBCHAT EXISTING EBB CID: ACCOUNT NUMBER: Name (AH): DPA STATUS: PASSED / FAILED DPA TIME STAMP: XXX ELIGIBILITY BOT VALIDATED: YES / NO QUERY: The customer wants to renew RESOLUTION: Processed Renewal PN STATUS: VERIFIED UPDATED EM STATUS: VERIFIED UPDATED PACKAGE: WO: HYBRID MESSAGING BE: HYBRID MESSAGING AI SUMMARY: HYBRID MESSAGING

  <!-- Reset Button Component -->
  <button onclick="
    var parentDetails = this.closest('details');
    if (parentDetails) {
      parentDetails.querySelectorAll('input[type=\'text\']').forEach(i => i.value = '');
      parentDetails.querySelectorAll('textarea').forEach(t => t.value = '');
      parentDetails.querySelectorAll('select').forEach(s => s.selectedIndex = 0);
      document.getElementById('rtebb_out_cid').innerText = '';
      document.getElementById('rtebb_out_acc').innerText = '';
      document.getElementById('rtebb_out_nm').innerText = '';
      document.getElementById('rtebb_out_ts').innerText = 'XXX';
      document.getElementById('rtebb_out_pkg').innerText = '';
      document.getElementById('rtebb_out_wo').innerText = '';
      document.getElementById('rtebb_out_be').innerText = '';
      document.getElementById('rtebb_out_ai').innerText = '';
      document.getElementById('rtebb_out_dpa').innerText = 'PASSED / FAILED';
      document.getElementById('rtebb_out_bot').innerText = 'YES / NO';
      document.getElementById('rtebb_out_pn').innerText = 'VERIFIED UPDATED';
      document.getElementById('rtebb_out_em').innerText = 'VERIFIED UPDATED';
    }
  " style="width: 100%; margin-top: 8px; margin-bottom: 12px; background: #e2e8f0; color: #475569; border: 1px solid #cbd5e1; padding: 10px; font-weight: 700; border-radius: 8px; cursor: pointer; text-transform: uppercase; font-size: 0.85em; transition: background 0.2s;">
    🗑️ Clear All Answers
  </button>

  <!-- Input Grid -->
  <div style="display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 10px;">
    <label style="font-weight:700; font-size:0.85em;">CID:<input type="text" placeholder=" " onkeyup="document.getElementById('rtebb_out_cid').innerText = this.value;" style="width:100%; padding:6px; border:1px solid #ccc; border-radius:4px; font-weight:bold; color:#000;"></label>
    <label style="font-weight:700; font-size:0.85em;">ACCOUNT NUMBER:<input type="text" placeholder=" " onkeyup="document.getElementById('rtebb_out_acc').innerText = this.value;" style="width:100%; padding:6px; border:1px solid #ccc; border-radius:4px; font-weight:bold; color:#000;"></label>
    <label style="font-weight:700; font-size:0.85em;">Name (AH):<input type="text" placeholder=" " onkeyup="document.getElementById('rtebb_out_nm').innerText = this.value;" style="width:100%; padding:6px; border:1px solid #ccc; border-radius:4px; font-weight:bold; color:#000;"></label>

    <label style="font-weight:700; font-size:0.85em;">DPA STATUS:
      <select required onchange="document.getElementById('rtebb_out_dpa').innerText = this.value;" style="width:100%; padding:6px; border:1px solid #ccc; border-radius:4px; font-weight:bold;">
        <option value="" disabled selected hidden>-- Select DPA --</option>
        <option value="PASSED">PASSED</option>
        <option value="PASSED by manual DPA of the BOT">PASSED by manual DPA of the BOT</option>
        <option value="PASSED in the previous chat">PASSED in the previous chat</option>
        <option value="FAILED">FAILED</option>
      </select>
    </label>
    
    <label style="font-weight:700; font-size:0.85em;">DPA TIME STAMP:<input type="text" placeholder="e.g. 15:40" onkeyup="document.getElementById('rtebb_out_ts').innerText = this.value || 'XXX';" style="width:100%; padding:6px; border:1px solid #ccc; border-radius:4px; font-weight:bold; color:#000;"></label>
    
    <label style="font-weight:700; font-size:0.85em;">BOT VALIDATED:
      <select required onchange="document.getElementById('rtebb_out_bot').innerText = this.value;" style="width:100%; padding:6px; border:1px solid #ccc; border-radius:4px; font-weight:bold;">
        <option value="" disabled selected hidden>-- Select Bot Status --</option>
        <option value="YES">YES</option>
        <option value="NO">NO</option>
      </select>
    </label>
    
    <label style="font-weight:700; font-size:0.85em;">PN STATUS:
      <select required onchange="document.getElementById('rtebb_out_pn').innerText = this.value;" style="width:100%; padding:6px; border:1px solid #ccc; border-radius:4px; font-weight:bold;">
        <option value="" disabled selected hidden>-- Select PN Status --</option>
        <option value="VERIFIED">VERIFIED</option>
        <option value="UPDATED">UPDATED</option>
      </select>
    </label>
    
    <label style="font-weight:700; font-size:0.85em;">EM STATUS:
      <select required onchange="document.getElementById('rtebb_out_em').innerText = this.value;" style="width:100%; padding:6px; border:1px solid #ccc; border-radius:4px; font-weight:bold;">
        <option value="" disabled selected hidden>-- Select EM Status --</option>
        <option value="VERIFIED">VERIFIED</option>
        <option value="UPDATED">UPDATED</option>
      </select>
    </label>
    
    <label style="font-weight:700; font-size:0.85em;">PACKAGE:<input type="text" placeholder=" " onkeyup="document.getElementById('rtebb_out_pkg').innerText = this.value;" style="width:100%; padding:6px; border:1px solid #ccc; border-radius:4px; font-weight:bold; color:#000;"></label>
    <label style="font-weight:700; font-size:0.85em;">WO:<input type="text" placeholder=" " onkeyup="document.getElementById('rtebb_out_wo').innerText = this.value;" style="width:100%; padding:6px; border:1px solid #ccc; border-radius:4px; font-weight:bold; color:#000;"></label>
  </div>


  <!-- 2. BIG PASTE BOX FOR BILLING DETAILS & AI SUMMARY -->
  <div style="display: flex; flex-direction: column; gap: 8px; margin-bottom: 12px;">
    <label style="font-weight:700; font-size:0.85em; color: #333;">PASTE BE DETAILS:
      <textarea placeholder=" " onkeyup="document.getElementById('rtebb_out_be').innerText = this.value ? '\n' + this.value : '';" style="width:100%; height:60px; padding:6px; border:1px solid #ccc; border-radius:4px; font-family: monospace; resize: vertical; margin-top: 4px; font-weight:bold; color:#000;"></textarea>
    </label>
    <label style="font-weight:700; font-size:0.85em; color: #333;">AI SUMMARY:
      <textarea placeholder=" " onkeyup="document.getElementById('rtebb_out_ai').innerText = this.value ? '\n' + this.value : '';" style="width:100%; height:60px; padding:6px; border:1px solid #ccc; border-radius:4px; font-family: monospace; resize: vertical; margin-top: 4px; font-weight:bold; color:#000;"></textarea>
    </label>
  </div>

  <!-- Copy Action Button -->
  <button onclick="var range = document.createRange(); range.selectNode(document.getElementById('rtebb_out')); window.getSelection().removeAllRanges(); window.getSelection().addRange(range); document.execCommand('copy'); window.getSelection().removeAllRanges(); alert('Regular to EBB Note Copied!');" style="width: 100%; background: linear-gradient(135deg, #111111, #434343); color: #fff; border: none; padding: 12px; font-weight: 900; border-radius: 8px; cursor: pointer; text-transform: uppercase;">📋 Click to Copy Regular to EBB Note</button>
  
  <!-- 3. AUTO POPULATED NOTE PREVIEW -->
  <pre id="rtebb_out" style="width: 100%; font-family: monospace; font-size: 0.95em; padding: 12px; border: 2px dashed #434343; border-radius: 6px; background: #F9F9F9; box-sizing: border-box; margin-top: 10px; white-space: pre-wrap; font-weight: bold; color: #333;">***************************HYBRID MESSAGING***************************

EBB WEBCHAT REGULAR TO EBB CID: ACCOUNT NUMBER: Name (AH): DPA STATUS: PASSED / FAILED DPA TIME STAMP: XXX ELIGIBILITY BOT VALIDATED: YES / NO QUERY: The customer wants to renew RESOLUTION: Processed Renewal PN STATUS: VERIFIED UPDATED EM STATUS: VERIFIED UPDATED PACKAGE: WO: HYBRID MESSAGING BE: HYBRID MESSAGING AI SUMMARY: HYBRID MESSAGING

<!-- ==================== SHOWTIME BABY DOLLS TREND STICKMAN ==================== -->
<div style="width: 120px; height: 200px; position: relative; animation: babyDollBounce 0.4s ease-in-out infinite alternate;">
  <!-- Head -->
  <div style="width: 40px; height: 40px; border: 5px solid #000; border-radius: 50%; position: absolute; left: 37px; top: 0;"></div>
  
  <!-- Torso / Spine (Shakes fast with the hip isolations) -->
  <div style="width: 5px; height: 75px; background: #000; position: absolute; left: 57px; top: 48px; transform-origin: top center; animation: digiHipShake 0.4s ease-in-out infinite;"></div>
  
  <!-- LEFT ARM (Flicks up/down on the sharp "Dong" accents) -->
  <div style="width: 45px; height: 5px; background: #000; position: absolute; left: 15px; top: 65px; transform-origin: right center; animation: leftDongFlick 0.8s ease-in-out infinite;"></div>
  
  <!-- RIGHT ARM (Flicks up/down opposite to the left) -->
  <div style="width: 45px; height: 5px; background: #000; position: absolute; left: 60px; top: 65px; transform-origin: left center; animation: rightDongFlick 0.8s ease-in-out infinite;"></div>
  
  <!-- LEFT LEG (Steps out on the rhythm) -->
  <div style="width: 5px; height: 75px; background: #000; position: absolute; left: 45px; top: 121px; transform-origin: top center; animation: danceStepLeft 0.4s ease-in-out infinite alternate;"></div>
  
  <!-- RIGHT LEG (Steps out on the rhythm) -->
  <div style="width: 5px; height: 75px; background: #000; position: absolute; left: 69px; top: 121px; transform-origin: top center; animation: danceStepRight 0.4s ease-in-out infinite alternate-reverse;"></div>
</div>