      <!-- Rank Master Form -->
      <div class="master-form-container" id="rankMasterContainer" style="display: none;">
        <div class="master-form-card">
          <div class="master-form-header">
            <div class="header-icon">
              <i class="bi bi-star-fill"></i>
            </div>
            <div class="header-text">
              <h3>RANK MASTER</h3>
              <p>Rank And Designation Management</p>
            </div>
          </div>
          <div class="master-form-body">
            <!-- Rank Entry Section -->
            <div class="rank-entry-section">
              <div class="form-row-two">
                <div class="form-group">
                  <label><i class="bi bi-trophy"></i> Rank</label>
                  <input type="text" id="rankInput" class="form-control" placeholder="Enter Rank Number">
                </div>
                <div class="form-group">
                  <label><i class="bi bi-person-badge"></i> Designation</label>
                  <input type="text" id="designationInput" class="form-control" placeholder="Enter Designation">
                </div>
              </div>
              <div class="rank-actions-inline">
                <button class="btn-add-small" id="rankAddBtn"><i class="bi bi-plus-lg"></i> ADD</button>
              </div>
            </div>

            <!-- Rank Data Table -->
            <div class="data-table-container">
              <table class="data-table" id="rankTable">
                <thead>
                  <tr>
                    <th>Rank</th>
                    <th>Designation</th>
                    <th>Action</th>
                  </tr>
                </thead>
                <tbody id="rankTableBody">
                  <tr><td>1</td><td>CLERICAL</td><td><button class="btn-delete-row" onclick="deleteRank(0)"><i class="bi bi-trash"></i></button></td></tr>
                  <tr><td>2</td><td>RECEPTIONIST</td><td><button class="btn-delete-row" onclick="deleteRank(1)"><i class="bi bi-trash"></i></button></td></tr>
                  <tr><td>3</td><td>BACK OFFICE EXECUTIVE</td><td><button class="btn-delete-row" onclick="deleteRank(2)"><i class="bi bi-trash"></i></button></td></tr>
                  <tr><td>4</td><td>FRONT OFFICE EXECUTIVE</td><td><button class="btn-delete-row" onclick="deleteRank(3)"><i class="bi bi-trash"></i></button></td></tr>
                  <tr><td>5</td><td>BRANCH COORDINATOR</td><td><button class="btn-delete-row" onclick="deleteRank(4)"><i class="bi bi-trash"></i></button></td></tr>
                  <tr><td>6</td><td>HO COORDINATOR</td><td><button class="btn-delete-row" onclick="deleteRank(5)"><i class="bi bi-trash"></i></button></td></tr>
                  <tr><td>7</td><td>FIELD OFFICER</td><td><button class="btn-delete-row" onclick="deleteRank(6)"><i class="bi bi-trash"></i></button></td></tr>
                  <tr><td>8</td><td>LOAN OFFICER</td><td><button class="btn-delete-row" onclick="deleteRank(7)"><i class="bi bi-trash"></i></button></td></tr>
                  <tr><td>9</td><td></td><td><button class="btn-delete-row" onclick="deleteRank(8)"><i class="bi bi-trash"></i></button></td></tr>
                  <tr><td>10</td><td></td><td><button class="btn-delete-row" onclick="deleteRank(9)"><i class="bi bi-trash"></i></button></td></tr>
                  <tr><td>11</td><td></td><td><button class="btn-delete-row" onclick="deleteRank(10)"><i class="bi bi-trash"></i></button></td></tr>
                  <tr><td>12</td><td>ASSISTANT BR MANAGER</td><td><button class="btn-delete-row" onclick="deleteRank(11)"><i class="bi bi-trash"></i></button></td></tr>
                  <tr><td>13</td><td>BRANCH MANAGER</td><td><button class="btn-delete-row" onclick="deleteRank(12)"><i class="bi bi-trash"></i></button></td></tr>
                  <tr><td>14</td><td>BRANCH HEAD</td><td><button class="btn-delete-row" onclick="deleteRank(13)"><i class="bi bi-trash"></i></button></td></tr>
                  <tr><td>15</td><td>CLUSTER HEAD</td><td><button class="btn-delete-row" onclick="deleteRank(14)"><i class="bi bi-trash"></i></button></td></tr>
                </tbody>
              </table>
            </div>

            <div class="master-form-actions">
              <button class="btn-new" id="rankNewBtn"><i class="bi bi-plus-circle"></i> NEW</button>
              <button class="btn-save" id="rankSaveBtn"><i class="bi bi-save"></i> SAVE</button>
              <button class="btn-trash" id="rankTrashBtn"><i class="bi bi-trash"></i> TRASH LAST</button>
              <button class="btn-exit" id="rankExitBtn"><i class="bi bi-box-arrow-right"></i> EXIT</button>
            </div>
          </div>
        </div>
      </div>
      <!-- Rank Master Form -->